| | |
| | | import com.bstek.bdf2.core.model.DefaultCompany; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.ld.igds.common.CoreCommonService; |
| | | import com.ld.igds.constant.Constant; |
| | | import com.ld.igds.constant.DepotStatus; |
| | | import com.ld.igds.inout.InoutConstant; |
| | | import com.ld.igds.inout.dto.InoutData; |
| | |
| | | |
| | | |
| | | //只有出入库状态的仓库才进行统计,其他状态表示出入库作业完成,不在执行统计 |
| | | if (DepotStatus.STATUS_03.getCode().equals(lastStore.getDepotStatus()) || |
| | | DepotStatus.STATUS_04.getCode().equals(lastStore.getDepotStatus())) { |
| | | if (DepotStatus.STATUS_2.getCode().equals(lastStore.getDepotStatus()) || |
| | | DepotStatus.STATUS_4.getCode().equals(lastStore.getDepotStatus())) { |
| | | |
| | | param = new InoutParam(); |
| | | param.setStart(lastStore.getCreateDate()); |
| | | //param.setStart(lastStore.getCreateDate()); |
| | | param.setEnd(new Date()); |
| | | param.setDeptId(data.getDeptId()); |
| | | param.setDepotId(data.getDepotId()); |
| | |
| | | lastStore.setId(ContextUtil.getUUID()); |
| | | lastStore.setUpdateUser(null); |
| | | lastStore.setUpdateDate(new Date()); |
| | | lastStore.setCreateDate(new Date()); |
| | | // lastStore.setCreateDate(new Date()); |
| | | |
| | | if (InoutConstant.TYPE_IN.equals(data.getType())) { |
| | | lastStore.setStorageReal(lastStore.getStorageReal() + sumRecordWeight); |
| | |
| | | for (InoutSysConf inoutSysConf : inoutSysConfList) { |
| | | |
| | | // 判断入库通知单是否启用 |
| | | if (Constant.YN_Y.equals(inoutSysConf.getNoticeTagIn())) { |
| | | //更新入库通知单完成量 |
| | | inoutCommonService.updateSumNoticeIn(inoutSysConf.getDeptId(), noticeInList); |
| | | } |
| | | //更新入库通知单完成量 |
| | | inoutCommonService.updateSumNoticeIn(inoutSysConf.getDeptId(), noticeInList); |
| | | |
| | | // 判断出库通知单是否启用 |
| | | if (Constant.YN_Y.equals(inoutSysConf.getNoticeTagOut())) { |
| | | //更新出库通知单完成量 |
| | | inoutCommonService.updateSumNoticeOut(inoutSysConf.getDeptId(), noticeOutList); |
| | | } |
| | | //更新出库通知单完成量 |
| | | inoutCommonService.updateSumNoticeOut(inoutSysConf.getDeptId(), noticeOutList); |
| | | } |
| | | } |
| | | |