zhangyuewww пре 1 година
родитељ
комит
88b0164889

+ 2 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/QualityInspectionManagementServiceImpl.java

@@ -714,6 +714,7 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
             paymentManagement.setStatusFlag("5");
             paymentManagement.setNetWeight(qualityInspectionManagement1.getNetWeight());
             paymentManagement.setPureWeight(qualityInspectionManagement1.getPureWeight()!=null?qualityInspectionManagement1.getPureWeight():qualityInspectionManagement1.getNetWeight());
+            paymentManagement.setPureWeight(Float.valueOf(Math.round(paymentManagement.getPureWeight())));
             paymentManagement.setManagementType("1");
             paymentManagement.setGrossWeight(qualityInspectionManagement1.getGrossWeight());
             paymentManagement.setTare(weighingManagement.getTare());
@@ -723,7 +724,7 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
                 paymentManagement.setBinNumber(qualityInspectionManagement1.getBinNumber());
             }
             paymentManagement.setUnitDeduction(qualityInspectionManagement1.getDeductionAmount()==null?0:qualityInspectionManagement1.getDeductionAmount());
-            Double money = (qualityInspectionManagement1.getDryGrainPrice()-paymentManagement.getUnitDeduction()) * (qualityInspectionManagement1.getPureWeight()!=null?qualityInspectionManagement1.getPureWeight():qualityInspectionManagement1.getNetWeight());
+            Double money = (qualityInspectionManagement1.getDryGrainPrice()-paymentManagement.getUnitDeduction()) * (paymentManagement.getPureWeight()!=null?paymentManagement.getPureWeight():qualityInspectionManagement1.getNetWeight());
 //            BigDecimal money1 = new BigDecimal(money);
 //            Double money2 = money1.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
             if(qualityInspectionManagement1.getMoney() != null){