| | |
| | | import com.zy.common.model.enums.WorkNoType; |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.system.entity.Config; |
| | | import com.zy.system.service.impl.ConfigServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private BasStationService basStationService; |
| | | @Autowired |
| | | private BasContainerService basContainerService; |
| | | @Autowired |
| | | private ConfigServiceImpl configService; |
| | | |
| | | @Override |
| | | @Transactional |
| | |
| | | Order order = OrderInAndOutUtil.selectByNo(Boolean.TRUE, orderNo); |
| | | OrderInAndOutUtil.updateOrder(Boolean.TRUE, order.getId(), 2L, userId); |
| | | }); |
| | | if(!Cools.isEmpty(param.getLocNo())){ |
| | | if(!Cools.isEmpty(param.getRsta()) && param.getRsta().contains("-")){ |
| | | //生成AGV搬运任务 |
| | | //生成AGV搬运出库任务 |
| | | // 保存工作档 |
| | |
| | | if (param.getBarcode().charAt(0) == '3'){ |
| | | s = "307"; |
| | | }else if (param.getBarcode().charAt(0) == '4'){ |
| | | s = "401"; |
| | | }else if (param.getBarcode().charAt(0) == '5'){ |
| | | s = "402"; |
| | | }else if (param.getBarcode().charAt(0) == '5'){ |
| | | s = "401"; |
| | | } |
| | | String TaskNo = param.getBarcode()+"-"+date.getTime(); |
| | | task.setWrkNo(Integer.getInteger(param.getBarcode())) |
| | | String TaskNo = param.getBarcode()+"aa"+date.getTime(); |
| | | task.setWrkNo((int) date.getTime()) |
| | | .setTaskNo(TaskNo) |
| | | .setIoTime(date) |
| | | .setWrkSts(301L) // 工作状态:301.任务下发 |
| | |
| | | .setPicking("N") // 拣料 |
| | | .setExitMk("N")// 退出 |
| | | .setStaNo(s) |
| | | .setSourceStaNo(param.getLocNo())//空料架缓存区E1 |
| | | .setSourceStaNo(param.getRsta())//agv取货位 |
| | | .setEmptyMk("N")// 空板 |
| | | .setBarcode(param.getBarcode())// 托盘码 |
| | | .setLinkMis("N") |
| | |
| | | //滑块库 |
| | | if(locMast.getLocType3()==1){ |
| | | if(locMast.getLocType2()==1){ |
| | | |
| | | |
| | | sta = "402"; |
| | | }else if(locMast.getLocType2()==2){ |
| | | sta = "401"; |
| | | } |
| | | }else if(locMast.getLocType3()==2){ |
| | | sta="307"; |