|
|
@@ -63,21 +63,21 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class AcceptCarriageOrderService {
|
|
|
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 8000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 8000)
|
|
|
RemoteSystemService remoteSystemService;
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 8000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 8000)
|
|
|
TradeOrderInfoService tradeOrderInfoService;
|
|
|
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 8000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 8000)
|
|
|
GoodsInfoService goodsInfoService;
|
|
|
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 8000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 8000)
|
|
|
RemoteFleetService fleetService;
|
|
|
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 6000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 6000)
|
|
|
RemoteContractService remoteContractService;
|
|
|
|
|
|
- @DubboReference(version = "2.0.0", group = "design", check = false, timeout = 6000)
|
|
|
+ @DubboReference(version = "1.0.0", group = "design", check = false, timeout = 6000)
|
|
|
RemoteManageService remoteManageService;
|
|
|
|
|
|
@Resource
|
|
|
@@ -889,21 +889,22 @@ public class AcceptCarriageOrderService {
|
|
|
List<Long> wOrderIds = logisticsOrderCirculateMapper.selectEntityBylOrderIdAndOrderIds(stopOrderTakingDTO.getLOrderId(), stringList);
|
|
|
List<JSONObject> list = new ArrayList<>(stringList.size());
|
|
|
String type = stopOrderTakingDTO.getType();
|
|
|
- if (String.valueOf(NumberConstant.TWO).equals(type)){
|
|
|
- acceptStopDocumentCommit(stopOrderTakingDTO,list,wOrderIds);
|
|
|
- }else if (String.valueOf(NumberConstant.ONE).equals(type)){
|
|
|
- consignStopDocumentCommit(stopOrderTakingDTO,list,wOrderIds);
|
|
|
- }else {
|
|
|
- return HttpResult.error("单据类型错误!");
|
|
|
+ if (String.valueOf(NumberConstant.TWO).equals(type)) {
|
|
|
+ acceptStopDocumentCommit(stopOrderTakingDTO, list, wOrderIds);
|
|
|
+ } else if (String.valueOf(NumberConstant.ONE).equals(type)) {
|
|
|
+ consignStopDocumentCommit(stopOrderTakingDTO, list, wOrderIds);
|
|
|
+ } else {
|
|
|
+ return HttpResult.error("单据类型错误!");
|
|
|
}
|
|
|
return HttpResult.ok(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 托运订单-设置停止接单
|
|
|
+ *
|
|
|
* @param stopOrderTakingDTO
|
|
|
*/
|
|
|
- private void consignStopDocumentCommit(StopOrderTakingDTO stopOrderTakingDTO,List<JSONObject> list,List<Long> wOrderIds) {
|
|
|
+ private void consignStopDocumentCommit(StopOrderTakingDTO stopOrderTakingDTO, List<JSONObject> list, List<Long> wOrderIds) {
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(wOrderIds)) {
|
|
|
wOrderIds.forEach(wOrderId -> {
|
|
|
@@ -916,11 +917,11 @@ public class AcceptCarriageOrderService {
|
|
|
} else {
|
|
|
logisticsOrderCirculateMapper.update(null, new LambdaUpdateWrapper<KwtLogisticsOrderCirculate>()
|
|
|
.set(KwtLogisticsOrderCirculate::getStatus, NumberConstant.ONE)
|
|
|
- .set(KwtLogisticsOrderCirculate::getUpdateBy,LoginUserHolder.getUserId())
|
|
|
- .set(KwtLogisticsOrderCirculate::getUpdateTime,new Date())
|
|
|
+ .set(KwtLogisticsOrderCirculate::getUpdateBy, LoginUserHolder.getUserId())
|
|
|
+ .set(KwtLogisticsOrderCirculate::getUpdateTime, new Date())
|
|
|
.eq(KwtLogisticsOrderCirculate::getWOrderId, wOrderId)
|
|
|
);
|
|
|
-// /**更新MongoDB*/
|
|
|
+ /**更新MongoDB*/
|
|
|
SckwWaybillOrder order = new SckwWaybillOrder();
|
|
|
order.setStatus(NumberConstant.ONE);
|
|
|
order.setUpdateTime(new Date());
|
|
|
@@ -941,9 +942,10 @@ public class AcceptCarriageOrderService {
|
|
|
|
|
|
/**
|
|
|
* 承运订单设置停止接单
|
|
|
+ *
|
|
|
* @param stopOrderTakingDTO
|
|
|
*/
|
|
|
- private void acceptStopDocumentCommit(StopOrderTakingDTO stopOrderTakingDTO,List<JSONObject> list,List<Long> wOrderIds) {
|
|
|
+ private void acceptStopDocumentCommit(StopOrderTakingDTO stopOrderTakingDTO, List<JSONObject> list, List<Long> wOrderIds) {
|
|
|
if (CollectionUtils.isNotEmpty(wOrderIds)) {
|
|
|
wOrderIds.forEach(wOrderId -> {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
@@ -955,8 +957,8 @@ public class AcceptCarriageOrderService {
|
|
|
} else {
|
|
|
logisticsOrderCirculateMapper.update(null, new LambdaUpdateWrapper<KwtLogisticsOrderCirculate>()
|
|
|
.set(KwtLogisticsOrderCirculate::getStatus, NumberConstant.ONE)
|
|
|
- .set(KwtLogisticsOrderCirculate::getUpdateBy,LoginUserHolder.getUserId())
|
|
|
- .set(KwtLogisticsOrderCirculate::getUpdateTime,new Date())
|
|
|
+ .set(KwtLogisticsOrderCirculate::getUpdateBy, LoginUserHolder.getUserId())
|
|
|
+ .set(KwtLogisticsOrderCirculate::getUpdateTime, new Date())
|
|
|
.eq(KwtLogisticsOrderCirculate::getWOrderId, wOrderId)
|
|
|
);
|
|
|
// /**更新MongoDB*/
|
|
|
@@ -1699,4 +1701,5 @@ public class AcceptCarriageOrderService {
|
|
|
order.setUpdateTime(new Date());
|
|
|
logisticsOrderMapper.insert(order);
|
|
|
}
|
|
|
+
|
|
|
}
|