| | |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.service.impl.OrderServiceImpl; |
| | | import com.zy.asrs.utils.OrderUtils; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.Synchronized; |
| | | import org.slf4j.Logger; |
| | |
| | | params.getCombParams().forEach(combParam -> { |
| | | agvMobileService.comb(combParam, getUserId()); |
| | | }); |
| | | //获取判断时哪个厂的订单 |
| | | String csocode = params.getCombParams().get(0).getCombMats().get(0).getCsocode(); |
| | | String factory = OrderUtils.getFactory(csocode); |
| | | params.setContainerType(Short.valueOf(params.getContainerCode().substring(0, 2))); |
| | | workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false); |
| | | workService.emptyPlateIn(params.getDevNo(), params.getContainerCode(), params.getContainerType(), getUserId(), false,factory); |
| | | |
| | | return R.ok("生成工作档成功"); |
| | | } |
| | |
| | | |
| | | for (AgvMobileStartParam.Pda pda : params.getPad()) { |
| | | pda.setContainerType(Short.valueOf(pda.getContainerCode().substring(0, 2))); |
| | | workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false); |
| | | workService.emptyPlateIn(pda.getDevNo(), pda.getContainerCode(), pda.getContainerType(), getUserId(), false,null); |
| | | } |
| | | |
| | | return R.ok(); |