| | |
| | | import com.ld.igds.log.service.InteStatusLogService; |
| | | import com.ld.igds.m.InoutManageUtil; |
| | | import com.ld.igds.models.InteStatusLog; |
| | | import com.ld.igds.models.MPlan; |
| | | import com.ld.igds.models.MPlanDetail; |
| | | import com.ld.igds.models.InoutPlan; |
| | | import com.ld.igds.models.InoutPlanDetail; |
| | | import com.ld.igds.sh.dto.ApiResponse; |
| | | import com.ld.igds.sh.dto.Dto1502; |
| | | import com.ld.igds.sh.param.ApiRequest; |
| | |
| | | redisUtil.set(key, param.getEndTime()); |
| | | |
| | | //查询轮换计划信息 |
| | | List<MPlan> planList = hApiShServiceImpl.listPlan(companyId, |
| | | List<InoutPlan> planList = hApiShServiceImpl.listPlan(companyId, |
| | | InoutManageUtil.PLAN_TYPE_3, startTime, param.getEndTime()); |
| | | if (planList == null || planList.isEmpty()) { |
| | | return RespUtil.error(RespCodeEnum.CODE_2000.getCode(), request); |
| | | } |
| | | |
| | | //查询轮换明细计划信息 |
| | | List<MPlanDetail> list0 = new ArrayList<>(); |
| | | List<MPlanDetail> dataList; |
| | | for (MPlan plan : planList) { |
| | | List<InoutPlanDetail> list0 = new ArrayList<>(); |
| | | List<InoutPlanDetail> dataList; |
| | | for (InoutPlan plan : planList) { |
| | | dataList = hApiShServiceImpl.getPlanDetail(plan.getId()); |
| | | if(null != dataList){ |
| | | list0.addAll(dataList); |
| | |
| | | //查询库区信息 |
| | | List<DefaultDept> deptList = hApiShServiceImpl.listDept(companyId, companyId); |
| | | DefaultDept dept = deptList.get(0); |
| | | for (MPlanDetail planDetail : list0) { |
| | | for (InoutPlanDetail planDetail : list0) { |
| | | dto1502 = new Dto1502(); |
| | | |
| | | dto1502.setJhmxbm(planDetail.getId()); |