|
@@ -64,9 +64,9 @@ public class WzOutboundOrderHController extends JeecgController<WzOutboundOrderH
|
|
|
public Result<CLfCompareResultListVo> compareCLFDetailList(String tasknos) {
|
|
|
CLfCompareResultListVo result = new CLfCompareResultListVo();
|
|
|
ArrayList<CLFCompareResultVO> clfCompareResultVOS = new ArrayList<>();
|
|
|
- String[] tasknoList = tasknos.split(",");
|
|
|
+ String[] tasknoArray = tasknos.split(",");
|
|
|
HashMap<String, List<CLfCompareDO>> compareMap = new HashMap<>();
|
|
|
- for (String taskno : tasknoList) {
|
|
|
+ for (String taskno : tasknoArray) {
|
|
|
List<CLfCompareDO> Dos = wzOutboundOrderHService.getCLFCompareDoListByTaskNoList(taskno);
|
|
|
if (!Dos.isEmpty()) {
|
|
|
Dos.forEach(dos-> {
|
|
@@ -89,25 +89,44 @@ public class WzOutboundOrderHController extends JeecgController<WzOutboundOrderH
|
|
|
clfCompareResultVO.setWlmc(cLfCompareDO.getWlmc());
|
|
|
clfCompareResultVO.setGgxh(cLfCompareDO.getGgxh());
|
|
|
ArrayList<CLFCompareTaskResultVo> taskVoList = new ArrayList<>();
|
|
|
+ List<String> taskNoList = new ArrayList<>(Arrays.asList(tasknoArray));
|
|
|
for (CLfCompareDO CDo : cLfCompareDOS) {
|
|
|
CLFCompareTaskResultVo clfCompareTaskResultVo = new CLFCompareTaskResultVo();
|
|
|
clfCompareTaskResultVo.setTaskno(CDo.getRwh());
|
|
|
+ taskNoList.remove(CDo.getRwh());
|
|
|
ArrayList<Map<String, Object>> filedList = new ArrayList<>();
|
|
|
+ HashMap<String, Object> flag = new HashMap<>();
|
|
|
HashMap<String, Object> totalAmount = new HashMap<>();
|
|
|
HashMap<String, Object> totalCount = new HashMap<>();
|
|
|
HashMap<String, Object> unitPrice = new HashMap<>();
|
|
|
+ flag.put("name", "flag");
|
|
|
+ flag.put("value", "yes");
|
|
|
totalAmount.put("name", "totalAmount");
|
|
|
totalAmount.put("value", CDo.getTotalAmount());
|
|
|
totalCount.put("name", "totalCount");
|
|
|
totalCount.put("value", CDo.getTotalCount());
|
|
|
unitPrice.put("name", "unitPrice");
|
|
|
unitPrice.put("value", CDo.getUnitPrice());
|
|
|
+ filedList.add(flag);
|
|
|
filedList.add(totalAmount);
|
|
|
filedList.add(totalCount);
|
|
|
filedList.add(unitPrice);
|
|
|
clfCompareTaskResultVo.setTaskFiled(filedList);
|
|
|
taskVoList.add(clfCompareTaskResultVo);
|
|
|
}
|
|
|
+ if (!taskNoList.isEmpty()){
|
|
|
+ for (String no : taskNoList) {
|
|
|
+ CLFCompareTaskResultVo clfCompareTaskResultVo = new CLFCompareTaskResultVo();
|
|
|
+ clfCompareTaskResultVo.setTaskno(no);
|
|
|
+ HashMap<String, Object> flag = new HashMap<>();
|
|
|
+ flag.put("name", "flag");
|
|
|
+ flag.put("value", "no");
|
|
|
+ ArrayList<Map<String, Object>> filedList = new ArrayList<>();
|
|
|
+ filedList.add(flag);
|
|
|
+ clfCompareTaskResultVo.setTaskFiled(filedList);
|
|
|
+ taskVoList.add(clfCompareTaskResultVo);
|
|
|
+ }
|
|
|
+ }
|
|
|
clfCompareResultVO.setTaskVoList(taskVoList);
|
|
|
clfCompareResultVOS.add(clfCompareResultVO);
|
|
|
}
|