|
|
|
@ -87,6 +87,7 @@ public class SelfReportServiceImpl extends ServiceImpl<SelfReportMapper, SelfRep
|
|
|
|
|
String ncQty = (String)map.get("ncQty");
|
|
|
|
|
String comments = (String)map.get("comments");
|
|
|
|
|
String location=(String)map.get("location");
|
|
|
|
|
String userGroup=(String)map.get("userGroup");
|
|
|
|
|
List<SelfReportRequest> list = (List<SelfReportRequest>)map.get("ncList");
|
|
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
|
|
|
list = mapper.convertValue(list, new TypeReference<List<SelfReportRequest>>() {});
|
|
|
|
@ -109,11 +110,11 @@ public class SelfReportServiceImpl extends ServiceImpl<SelfReportMapper, SelfRep
|
|
|
|
|
stringBuilder.append(",");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
anomalyService.createAnomalyTask(Constants.ABNORMAL_RESRCE,resrce,shopOrder,sfc,stringBuilder.toString(),location,ncQty,comments);
|
|
|
|
|
anomalyService.createAnomalyTask(Constants.ABNORMAL_RESRCE,resrce,shopOrder,sfc,stringBuilder.toString(),location,ncQty,comments,userGroup);
|
|
|
|
|
}
|
|
|
|
|
List<SelfReportRequest> otherAbnormalList = list.stream().filter(selfReportRequest -> selfReportRequest.getType().equals(Constants.ABNORMAL_OTHER)).collect(Collectors.toList());
|
|
|
|
|
if (otherAbnormalList.size()>0){
|
|
|
|
|
anomalyService.createAnomalyTask(Constants.ABNORMAL_RESRCE,resrce,shopOrder,sfc,"",location,ncQty,comments);
|
|
|
|
|
anomalyService.createAnomalyTask(Constants.ABNORMAL_RESRCE,resrce,shopOrder,sfc,"",location,ncQty,comments,userGroup);
|
|
|
|
|
}
|
|
|
|
|
QueryWrapper<SelfReport> queryWrapper=new QueryWrapper<>();
|
|
|
|
|
queryWrapper.eq(SelfReport.SFC,sfc);
|
|
|
|
|