| | |
| | | entity.setIocode(d.getIoCode()); |
| | | entity.setJobId(job.getId()); |
| | | entity.setIoQty(d.getIoQty()); |
| | | entity.setStatus(Constants.ZERO); |
| | | entity.setRate(d.getRate()); |
| | | entity.setMaterialName(d.getMaterialName()); |
| | | entity.setInRepertotyCode(d.getInRepertotyCode()); |
| | |
| | | job.setType(Constants.platformJobType.wxcxh);//默认是外协车卸货 |
| | | job.setStatus(Constants.PlatformJobStatus.WAIT_CONFIRM.getKey());//默认待确认状态 |
| | | Cars car = carsMapper.selectOne(new QueryWrapper<Cars>() |
| | | .select("*,(select count(1) from platform_job b where b.plate_num='"+param.getPlateNumber()+"' and b.status in()) as jobNum") |
| | | .select("*,(select count(1) from platform_job b where b.plate_num='"+param.getPlateNumber()+"' and b.status in("+ |
| | | Constants.PlatformJobStatus.LEAVED+")) as jobNum") |
| | | .lambda() |
| | | .eq(Cars::getIsdeleted,Constants.ZERO) |
| | | .eq(Cars::getType,Constants.ONE) |
| | |
| | | job.setType(Constants.platformJobType.wxczh);//默认是外协车装好 |
| | | job.setStatus(Constants.PlatformJobStatus.WAIT_CONFIRM.getKey());//默认待确认状态 |
| | | Cars car = carsMapper.selectOne(new QueryWrapper<Cars>() |
| | | .select("*,(select count(1) from platform_job b where b.plate_num='"+param.getPlateNumber()+"' and b.status in()) as jobNum") |
| | | .select("*,(select count(1) from platform_job b where b.plate_num='"+param.getPlateNumber()+"' and b.status in("+ |
| | | Constants.PlatformJobStatus.LEAVED+")) as jobNum") |
| | | .lambda() |
| | | .eq(Cars::getIsdeleted,Constants.ZERO) |
| | | .eq(Cars::getType,Constants.ONE) |
| | |
| | | entity.setIocode(d.getIoCode()); |
| | | entity.setJobId(job.getId()); |
| | | entity.setIoQty(d.getIoQty()); |
| | | entity.setStatus(Constants.ZERO); |
| | | entity.setRate(d.getRate()); |
| | | entity.setMaterialName(d.getMaterialName()); |
| | | iocodeList.add(d.getIoCode()); |
| | |
| | | */ |
| | | @Override |
| | | public WmsBaseResponse cancelOutbound(List<WmsActionNoticeRequest> list) { |
| | | //TODO-------------------处理出库取消通知业务-------------------- |
| | | if(list ==null || list.size() ==0){ |
| | | return returnFailReuslt("请求参数不正确,参数不能为空"); |
| | | } |
| | | |
| | | List<String> iocodeList = new ArrayList<>(); |
| | | for(WmsActionNoticeRequest param :list){ |
| | | iocodeList.add(param.getIoCode()); |
| | | } |
| | | //取消全部数据状态为 【已取消】 |
| | | platformWmsDetailMapper.update(null,new UpdateWrapper<PlatformWmsDetail>().lambda() |
| | | .set(PlatformWmsDetail::getStatus,Constants.TWO) |
| | | .in(PlatformWmsDetail::getIocode,iocodeList) |
| | | .eq(PlatformWmsDetail::getIsdeleted, Constants.ZERO)); |
| | | return returnSuccessReuslt(null); |
| | | } |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public WmsBaseResponse doneTask(List<WmsActionNoticeRequest> list) { |
| | | //TODO-------------------处理出入库作业完成通知业务-------------------- |
| | | if(list ==null || list.size() ==0){ |
| | | return returnFailReuslt("请求参数不正确,参数不能为空"); |
| | | } |
| | | List<String> iocodeList = new ArrayList<>(); |
| | | for(WmsActionNoticeRequest param :list){ |
| | | iocodeList.add(param.getIoCode()); |
| | | } |
| | | //取消全部数据状态为 【已完成】 |
| | | platformWmsDetailMapper.update(null,new UpdateWrapper<PlatformWmsDetail>().lambda() |
| | | .set(PlatformWmsDetail::getStatus,Constants.ONE) |
| | | .in(PlatformWmsDetail::getIocode,iocodeList) |
| | | .eq(PlatformWmsDetail::getIsdeleted, Constants.ZERO)); |
| | | |
| | | return returnSuccessReuslt(null); |
| | | } |