|
@@ -390,22 +390,46 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
|
|
|
private NoticeNumberVO addStoreNums(NoticeNumberVO noticeNumberVO,InStoreFormDTO inStoreFormDTO,OutStoreFormDTO outStoreFormDTO,StoreCheckJobDTO storeCheckJobDTO){
|
|
|
if (noticeNumberVO.getRoleFlag()!=5) {
|
|
|
- BigDecimal inStoreCount = inStoreFormMapper.getInStoreFormCount1(inStoreFormDTO);
|
|
|
- noticeNumberVO.setInStoreNum(inStoreCount == null ? initNum : inStoreCount);
|
|
|
- }
|
|
|
- //出库
|
|
|
- outStoreFormDTO.setStatus(OutStoreStatusEnum.NOT_EXECUTE.getValue());
|
|
|
- BigDecimal outStoreCount=outStoreFormMapper.getOutStoreFormCount1(outStoreFormDTO);
|
|
|
- noticeNumberVO.setOutStoreNum(outStoreCount==null?initNum:outStoreCount);
|
|
|
- if (noticeNumberVO.getRoleFlag()!=5) {
|
|
|
- //盘点
|
|
|
- BigDecimal storeCheckJobCount = storeCheckJobMapper.getNumByDTO(storeCheckJobDTO);
|
|
|
- noticeNumberVO.setPdNum(storeCheckJobCount == null ? initNum : storeCheckJobCount);
|
|
|
- //调拨,根据出入库type
|
|
|
- inStoreFormDTO.setType(InStoreTypeEnum.DIAOBO_RUKU.getValue());
|
|
|
- BigDecimal dbCount = inStoreFormMapper.getInStoreFormCount1(inStoreFormDTO);
|
|
|
- noticeNumberVO.setDbNum(dbCount == null ? initNum : dbCount);
|
|
|
+ List<Integer> statusList = new ArrayList<>();
|
|
|
+ statusList.add(3);//推送失败
|
|
|
+ statusList.add(4);//推送成功
|
|
|
+ inStoreFormDTO.setStatusList(statusList);
|
|
|
+ List<InStoreFormVO> inStoreFormVOS = inStoreFormMapper.getInStoreFormCountByStatus(inStoreFormDTO);
|
|
|
+ if (inStoreFormVOS != null) {
|
|
|
+ for (InStoreFormVO vo : inStoreFormVOS) {
|
|
|
+ if (vo.getStatus() == 3) {
|
|
|
+ noticeNumberVO.setInStoreFailNum(vo.getInStoreNum());
|
|
|
+ } else if (vo.getStatus() == 4) {
|
|
|
+ noticeNumberVO.setInStoreSuccessNum(vo.getInStoreNum());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //出库
|
|
|
+ List<Integer> statusList2 = new ArrayList<>();
|
|
|
+ statusList2.add(3);//推送失败
|
|
|
+ statusList2.add(4);//推送成功
|
|
|
+ outStoreFormDTO.setStatusList(statusList2);
|
|
|
+ List<OutStoreFormVO> outStoreFormVOS = outStoreFormMapper.getOutStoreFormCountByStatus(outStoreFormDTO);
|
|
|
+ if (outStoreFormVOS != null) {
|
|
|
+ for (OutStoreFormVO vo : outStoreFormVOS) {
|
|
|
+ if (vo.getStatus() == 3) {
|
|
|
+ noticeNumberVO.setOutStoreFailNum(vo.getOutStoreNum());
|
|
|
+ } else if (vo.getStatus() == 4) {
|
|
|
+ noticeNumberVO.setOutStoreSuccessNum(vo.getOutStoreNum());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+// noticeNumberVO.setOutStoreNum(outStoreCount==null?initNum:outStoreCount);
|
|
|
+// if (noticeNumberVO.getRoleFlag()!=5) {
|
|
|
+// //盘点
|
|
|
+// BigDecimal storeCheckJobCount = storeCheckJobMapper.getNumByDTO(storeCheckJobDTO);
|
|
|
+// noticeNumberVO.setPdNum(storeCheckJobCount == null ? initNum : storeCheckJobCount);
|
|
|
+// //调拨,根据出入库type
|
|
|
+// inStoreFormDTO.setType(InStoreTypeEnum.DIAOBO_RUKU.getValue());
|
|
|
+// BigDecimal dbCount = inStoreFormMapper.getInStoreFormCount1(inStoreFormDTO);
|
|
|
+// noticeNumberVO.setDbNum(dbCount == null ? initNum : dbCount);
|
|
|
+// }
|
|
|
return noticeNumberVO;
|
|
|
}
|
|
|
|