|
|
@@ -34,6 +34,7 @@ import com.sckw.transport.model.*;
|
|
|
import com.sckw.transport.model.dto.*;
|
|
|
import com.sckw.transport.model.vo.CarWaybillVO;
|
|
|
import com.sckw.transport.model.vo.OrderFinishVO;
|
|
|
+import com.sckw.transport.model.vo.WaybillCountVo;
|
|
|
import jakarta.annotation.Resource;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
@@ -582,7 +583,7 @@ public class ConsignOrderService {
|
|
|
//验证当前物流订单是否还存在进行的车辆运单
|
|
|
boolean flag = judgmentWaybillOrderIsFinish(id);
|
|
|
if (flag) {
|
|
|
- throw new BusinessException("您现在有车辆运单正在执行中,该订单目前不可完结,请先将运单执行完毕");
|
|
|
+ throw new BusinessException("检测您现在有运单正在执行中,该订单目前不可完结,请先将运单执行完毕!");
|
|
|
}
|
|
|
//修改单据本身数据
|
|
|
BigDecimal ignoreAmount = logisticsOrder.getAmount().subtract(logisticsOrder.getTotalLoadAmount());
|
|
|
@@ -908,14 +909,23 @@ public class ConsignOrderService {
|
|
|
* @return
|
|
|
*/
|
|
|
public HttpResult consignOrderFinishDetail(String orderId) {
|
|
|
- OrderFinishVO orderFinishVO = kwtLogisticsOrderMapper.selectOrderFinishData(orderId);
|
|
|
+// OrderFinishVO orderFinishVO = kwtLogisticsOrderMapper.selectOrderFinishData(orderId);
|
|
|
+ Map<String, Object> map = new HashMap(NumberConstant.SIXTEEN);
|
|
|
+ map.put("upperlOrderId", orderId);
|
|
|
+ //随意给个值 主要是传递不为null
|
|
|
+ map.put("passStatus", 1);
|
|
|
+ WaybillCountVo waybillOrderCount = kwtWaybillOrderMapper.findWaybillOrderCount(map);
|
|
|
+ OrderFinishVO orderFinishVO = new OrderFinishVO();
|
|
|
+ orderFinishVO.setLoadAmount(waybillOrderCount == null ? new BigDecimal("0.00") : waybillOrderCount.getLoadAmount());
|
|
|
+ orderFinishVO.setUnloadAmount(waybillOrderCount == null ? new BigDecimal("0.00") : waybillOrderCount.getUnloadAmount());
|
|
|
+ orderFinishVO.setNumber(waybillOrderCount == null ? NumberConstant.ZERO : waybillOrderCount.getTotalComplete());
|
|
|
return HttpResult.ok(orderFinishVO);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 托运订单-新建订单
|
|
|
*
|
|
|
- * @param addOrderDTO 页面传递数据
|
|
|
+ * @param addOrderDTO 页面传递数据
|
|
|
* @return
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|