| | |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.mapper.ReportQueryMapper; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.service.impl.BasStationDetlServiceImpl; |
| | | import com.zy.asrs.service.impl.BasStationServiceImpl; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | private MatService matService; |
| | | @Autowired |
| | | private WaitPakinService waitPakinService; |
| | | @Autowired |
| | | private BasStationServiceImpl basStationService; |
| | | @Autowired |
| | | private BasStationDetlService basStationDetlService; |
| | | |
| | | |
| | | /** |
| | |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | |
| | | if (param.getTaskType().equals("crn")) { |
| | | if (Cools.isEmpty(param.getTaskNo())) { |
| | | return R.error("任务号[taskNo]不能为空"); |
| | | } |
| | |
| | | } |
| | | |
| | | List<WrkDetl> wrkDetls = wrkDetlService.selectByWrkNo(Integer.valueOf(param.getTaskNo())); |
| | | |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("taskNo", param.getTaskNo()); |
| | | map.put("ioType", wrkMast.getIoType()); |
| | | map.put("wrkDetls", wrkDetls); |
| | | } else { |
| | | BasStation basStation = basStationService.selectOne(new EntityWrapper<BasStation>().eq("devNo", param.getAgvSite())); |
| | | if (Objects.isNull(basStation)) { |
| | | return R.error("站点不存在,请联系管理员检查站点信息!!"); |
| | | } |
| | | List<BasStationDetl> basStationDetls = basStationDetlService.selectList(new EntityWrapper<BasStationDetl>().eq("devNo", param.getAgvSite())); |
| | | map.put("taskNo", param.getAgvSite()); |
| | | map.put("ioType", "1"); |
| | | map.put("wrkDetls", basStationDetls); |
| | | } |
| | | return R.ok().add(map); |
| | | } |
| | | |