فهرست منبع

途宝报单bug修改

wangzhuo 1 سال پیش
والد
کامیت
7dfdbeadc4

+ 12 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/OrderBillsPlansServiceImpl.java

@@ -232,6 +232,18 @@ public class OrderBillsPlansServiceImpl implements IOrderBillsPlansService {
             System.out.println(e.getMessage());
         }
 
+
+            if (orderBillsPlansVo.getDetourEmptyMile() == null) {
+                orderBillsPlansVo.setDetourEmptyMile(0d);
+            }
+            if (orderBillsPlansVo.getDetourLoadMile() == null) {
+                orderBillsPlansVo.setDetourLoadMile(0d);
+            }
+            if (orderBillsPlansVo.getDetourDesc() == null) {
+                orderBillsPlansVo.setDetourDesc("");
+            }
+        System.out.println(orderBillsPlansVo.getDetourDesc());
+
         Integer i = orderBillsPlansMapper.updateOrderBillsPlansByid(orderBillsPlans);
 
         if (i == 1) {

+ 6 - 10
ruoyi-system/src/main/resources/mapper/system/OrderBillsPlansMapper.xml

@@ -22,16 +22,12 @@
         UnLoadQty = #{unLoadQty},
         UnLoadDate = #{unLoadDate},
 
-        <if test="ifDetour != null and ifDetour != ''">
-            ifDetour = #{ifDetour},
-            <if test="detourEmptyMile != null and detourEmptyMile != '' or detourEmptyMile == 0">
-                detourEmptyMile = #{detourEmptyMile},
-            </if>
-            <if test="detourLoadMile != null and detourLoadMile != '' or detourLoadMile == 0">
-                detourLoadMile = #{detourLoadMile},
-            </if>
-            detourDesc = #{detourDesc},
-        </if>
+
+        ifDetour = #{ifDetour},
+        detourEmptyMile = #{detourEmptyMile},
+        detourLoadMile = #{detourLoadMile},
+        detourDesc = #{detourDesc},
+
         driverassdesc = #{driverassdesc}
         where sysId = '1'
         and OrderNo = #{orderNo}