| | |
| | | import com.ld.igds.inout.dto.InoutParam; |
| | | import com.ld.igds.inout.dto.InoutRecordItemData; |
| | | import com.ld.igds.inout.dto.InoutRecordItemParam; |
| | | import com.ld.igds.inout.mapper.InoutRecordMapper; |
| | | import com.ld.igds.inout.service.InoutRecordItemService; |
| | | import com.ld.igds.inout.service.InoutService; |
| | | import com.ld.igds.m.dto.NoticeParam; |
| | |
| | | private InoutCommonService inoutManagerService; |
| | | @Resource |
| | | private HInoutCarConfService carConfService; |
| | | @Autowired |
| | | private InoutRecordMapper inoutMapper; |
| | | |
| | | /** |
| | | * 出入库流程中的实时数据,直接从缓存中获取 |
| | |
| | | if (InoutConstant.PROGRESS_RECORD.equals(data.getProgress())) { |
| | | //说明流程已结束,重新统计数量 |
| | | inoutRecordItemService.updateNumByInoutItem(data.getRecordId()); |
| | | InoutParam param = new InoutParam(); |
| | | param.setId(data.getRecordId()); |
| | | param.setType(data.getType()); |
| | | param.setCompanyId(data.getCompanyId()); |
| | | InoutData completeData = inoutMapper.inoutQueryById(param); |
| | | inoutService.updateInoutCache(completeData); |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), null, data); |
| | | |
| | | } else { |
| | |
| | | // } |
| | | } |
| | | } |
| | | |
| | | InoutData completeData = inoutMapper.inoutQueryById(inoutParam); |
| | | inoutService.updateInoutCache(completeData); |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), null, data); |
| | | } |
| | | |