Browse Source

'焦炭一车多趟'

HUJIANGUO 3 năm trước cách đây
mục cha
commit
8761ba0f97

+ 2 - 1
src/main/java/com/steerinfo/dil/service/impl/TmstruckLeaveFactoryResultServiceImpl.java

@@ -184,8 +184,9 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
                     throw new Exception("请提醒司机确认订单!");
                 }
                 i += utilsService.closeOrderNormally(map);
+                // 判断是否要自动派单
                 Map<String,Object> mapValue = omsFeign.getSaleAllMessages(orderId.intValue());
-                BigDecimal closeStatus = (BigDecimal) mapValue.get("closeStatus");
+                BigDecimal closeStatus = DataChange.dataToBigDecimal(mapValue.get("closeStatus"));
                 if (closeStatus.intValue() == 0) {
                     amsFeign.dispatchTruckOrderByCarrier(mapValue);
                 }

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -1,7 +1,7 @@
 api.version: api/v1/truckTms
 spring:
   profiles:
-    include: ${SPRING_PROFILES:prod}
+    include: ${SPRING_PROFILES:dev}
   jackson:
     date-format: yyyy-MM-dd HH:mm:ss
     time-zone: GMT+8