|
@@ -57,6 +57,7 @@ public class FullSetRateController extends JeecgController<FullSetRate, IFullSet
|
|
|
if(oConvertUtils.isNotEmpty(fullSetRate.getBeginDate())){
|
|
|
queryWrapper.between("b.dPreDate",fullSetRate.getBeginDate(),fullSetRate.getEndDate());
|
|
|
}
|
|
|
+
|
|
|
if(oConvertUtils.isNotEmpty(fullSetRate.getDepartment())){
|
|
|
queryWrapper.eq("d.cDepName",fullSetRate.getDepartment());
|
|
|
}
|
|
@@ -68,17 +69,21 @@ public class FullSetRateController extends JeecgController<FullSetRate, IFullSet
|
|
|
if(oConvertUtils.isNotEmpty(fullSetRate.getSubcontractOrderNo())){
|
|
|
queryWrapper.like("om.cCode",fullSetRate.getSubcontractOrderNo());
|
|
|
}
|
|
|
-
|
|
|
- if(oConvertUtils.isNotEmpty(fullSetRate.getDeliveryDate())){
|
|
|
- queryWrapper.eq("b.dPreDate",fullSetRate.getDeliveryDate());
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if(oConvertUtils.isNotEmpty(fullSetRate.getSalesman())){
|
|
|
queryWrapper.eq("p.cPersonName",fullSetRate.getSalesman());
|
|
|
}
|
|
|
-
|
|
|
- if(oConvertUtils.isNotEmpty(fullSetRate.getSalesOrderQuantity())){
|
|
|
- queryWrapper.eq("b.iQuantity",fullSetRate.getSalesOrderQuantity());
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(oConvertUtils.isNotEmpty(fullSetRate.getSmllPo())){
|
|
|
+ queryWrapper.eq("b.cDefine28",fullSetRate.getSmllPo());
|
|
|
}
|
|
|
|
|
|
queryWrapper.isNotNull("om.cCode");
|
|
@@ -86,16 +91,17 @@ public class FullSetRateController extends JeecgController<FullSetRate, IFullSet
|
|
|
IPage<FullSetRate> pageList = fullSetRateService.queryListInfo(page,queryWrapper);
|
|
|
|
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
-
|
|
|
- List<String> moDeilsIDList = new ArrayList<>();
|
|
|
-
|
|
|
- BigDecimal cumulativeOnTimeDeliveryQuantity = BigDecimal.ZERO;
|
|
|
-
|
|
|
- BigDecimal cumulativeDelayedDeliveryQty = BigDecimal.ZERO;
|
|
|
-
|
|
|
- BigDecimal subcontractOrderQuantity = BigDecimal.ZERO;
|
|
|
|
|
|
for(FullSetRate li:pageList.getRecords()){
|
|
|
+
|
|
|
+ List<String> moDeilsIDList = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+ BigDecimal cumulativeOnTimeDeliveryQuantity = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ BigDecimal cumulativeDelayedDeliveryQty = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ BigDecimal subcontractOrderQuantity = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
|
QueryWrapper<FullSetRate> queryWrapper1 = new QueryWrapper<>();
|
|
@@ -105,7 +111,6 @@ public class FullSetRateController extends JeecgController<FullSetRate, IFullSet
|
|
|
|
|
|
|
|
|
for(FullSetRate momian:querySomain){
|
|
|
-
|
|
|
moDeilsIDList.add(momian.getISOsID());
|
|
|
|
|
|
List<FullSetRate> salesIssueList = fullSetRateService.querySalesIssue(momian.getISOsID());
|
|
@@ -129,6 +134,7 @@ public class FullSetRateController extends JeecgController<FullSetRate, IFullSet
|
|
|
}else {
|
|
|
subcontractOrderQuantity = subcontractOrderQuantity.add(new BigDecimal(subcontractOrderQuantity1));
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
li.setSubcontractOrderQuantity(subcontractOrderQuantity.toString());
|