zhangyuewww 2 vuotta sitten
vanhempi
commit
e72dd3dea2

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

@@ -539,7 +539,7 @@ public class TranProcessInfoServiceImpl extends ServiceImpl<TranProcessInfoMappe
                                             tranSettlementReport1.setSettlementWeight(tranCarInfo.getLoadNetWeight() > tranCarInfo.getUnloadNetWeight() ? tranCarInfo.getUnloadNetWeight() : tranCarInfo.getLoadNetWeight());
                                             tranSettlementReport1.setSettlementWeight(tranCarInfo.getLoadNetWeight() > tranCarInfo.getUnloadNetWeight() ? tranCarInfo.getUnloadNetWeight() : tranCarInfo.getLoadNetWeight());
                                             tranSettlementReport1.setTransportDamage(tranSettlementReport1.getSettlementWeight() * 0.001);
                                             tranSettlementReport1.setTransportDamage(tranSettlementReport1.getSettlementWeight() * 0.001);
                                         }
                                         }
-                                        if (tranSettlementReport1.getLossWeight() < 0) {
+                                        if (tranSettlementReport1.getLossWeight() <= 0) {
                                             tranSettlementReport1.setActualLoss(0d);
                                             tranSettlementReport1.setActualLoss(0d);
                                             tranSettlementReport1.setDeductionAmount(0d);
                                             tranSettlementReport1.setDeductionAmount(0d);
                                         }
                                         }