|
@@ -12,6 +12,7 @@ import com.steerinfo.dil.util.EASCapacityTestUtil;
|
|
|
import com.steerinfo.dil.util.SaleLogUtil;
|
|
|
import com.steerinfo.dil.util.getRequestUtils;
|
|
|
import io.swagger.models.auth.In;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.tools.ant.taskdefs.Sleep;
|
|
|
import org.junit.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -1102,13 +1103,22 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
|
try {
|
|
|
//查询排队记录
|
|
|
if(orderType == 1) {
|
|
|
+ BigDecimal resultTotalId = DataChange.dataToBigDecimal(orderMessage.get("resultTotalId"));
|
|
|
+ if(resultTotalId.compareTo(BigDecimal.ZERO) <= 0){
|
|
|
+ throw new Exception("总实绩ID有误" + resultTotalId.doubleValue());
|
|
|
+ }
|
|
|
Map<String, Object> queueMap = omstruckOrderMapper.getQueueInfo(orderMessage);
|
|
|
- if(queueMap != null){
|
|
|
- BigDecimal resultTotalId = DataChange.dataToBigDecimal(orderMessage.get("resultTotalId"));
|
|
|
- omstruckOrderMapper.updateTotalOrderStatus(resultTotalId);
|
|
|
- if("车辆已放行".equals(queueMap.get("insertUpdateRemark"))) {
|
|
|
+ if(queueMap != null && queueMap.get("resultId") != null
|
|
|
+ && StringUtils.isNotEmpty(queueMap.get("resultId").toString())){
|
|
|
+ Map<String, Object> qMap = new HashMap<>();
|
|
|
+ qMap.put("resultTotalId", resultTotalId);
|
|
|
+ qMap.put("orderStatus", "排队中");
|
|
|
+ if("车辆已放行".equals(queueMap.get("insertUpdateRemark"))
|
|
|
+ || queueMap.get("queueAllowTime") != null) {
|
|
|
+ qMap.put("orderStatus", "已放行");
|
|
|
omstruckOrderMapper.updatePassthrough(resultTotalId);
|
|
|
}
|
|
|
+ omstruckOrderMapper.updateTotalOrderStatus(qMap);
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|