|
@@ -8,6 +8,7 @@ import com.steerinfo.dil.mapper.*;
|
|
import com.steerinfo.dil.model.*;
|
|
import com.steerinfo.dil.model.*;
|
|
import com.steerinfo.dil.service.IOmstruckOrderService;
|
|
import com.steerinfo.dil.service.IOmstruckOrderService;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
|
+import io.swagger.models.auth.In;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -805,13 +806,18 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
if(orderStatus == 5 || orderStatus == 6) {
|
|
if(orderStatus == 5 || orderStatus == 6) {
|
|
throw new RuntimeException("订单已被接收或已被拒绝!");
|
|
throw new RuntimeException("订单已被接收或已被拒绝!");
|
|
}
|
|
}
|
|
- BigDecimal orderType = (BigDecimal) orderMessage.get("orderType");
|
|
|
|
- //添加各个实绩
|
|
|
|
- if(orderType.intValue() != 11){
|
|
|
|
|
|
+ int orderType = DataChange.dataToBigDecimal(orderMessage.get("orderType")).intValue();
|
|
|
|
+ if(orderType == 11){
|
|
|
|
+ //发送计量委托
|
|
|
|
+ orderMessage.put("asd", 1);
|
|
|
|
+ orderMessage.put("orderId", orderId);
|
|
|
|
+ tmsTruckFeign.sendMeasureCommission(orderMessage);
|
|
|
|
+ }else {
|
|
|
|
+ //添加各个实绩
|
|
omstruckOrderSeparateService.addAllSonResult(orderMessage);
|
|
omstruckOrderSeparateService.addAllSonResult(orderMessage);
|
|
}
|
|
}
|
|
//判断订单是否是一车多单
|
|
//判断订单是否是一车多单
|
|
- if (orderType.intValue()==15 || orderType.intValue()==16 || orderType.intValue()==19) {
|
|
|
|
|
|
+ if (orderType ==15 || orderType ==16 || orderType ==19) {
|
|
//通过订单查询趟次
|
|
//通过订单查询趟次
|
|
Map<String, Object> sporadicOrderTimes = omstruckOrderMapper.getSporadicOrderTimes(orderId);
|
|
Map<String, Object> sporadicOrderTimes = omstruckOrderMapper.getSporadicOrderTimes(orderId);
|
|
BigDecimal orderTimes = DataChange.dataToBigDecimal(sporadicOrderTimes.get("orderTimes"));
|
|
BigDecimal orderTimes = DataChange.dataToBigDecimal(sporadicOrderTimes.get("orderTimes"));
|