提交 5b1eed7c authored 作者: 杨启发's avatar 杨启发

Merge branch 'refs/heads/fix_bug_26694_20240705' into test

...@@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated; ...@@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; import java.util.List;
...@@ -79,8 +80,8 @@ public class CarrierOrderChildController { ...@@ -79,8 +80,8 @@ public class CarrierOrderChildController {
@ApiOperation(value = "业务信息", notes = "<br>By:胡宇帆") @ApiOperation(value = "业务信息", notes = "<br>By:胡宇帆")
@GetMapping("/orderChildBussInfo") @GetMapping("/orderChildBussInfo")
public Result<OrderChildBussInfoVO> getOrderChildBussInfo(@NotBlank(message = "车牌号不能为空") String truckNo) { public Result<OrderChildBussInfoVO> getOrderChildBussInfo(@NotNull(message = "车辆id不能为空") Integer truckId) {
return Result.ok(orderChildService.getOrderChildBussInfo(truckNo)); return Result.ok(orderChildService.getOrderChildBussInfo(truckId));
} }
......
...@@ -66,7 +66,7 @@ public interface OrderChildDao extends BaseDao<OrderChildMapper, OrderChild, Int ...@@ -66,7 +66,7 @@ public interface OrderChildDao extends BaseDao<OrderChildMapper, OrderChild, Int
Integer getOrderChildTotalByUserNo(Long userNo); Integer getOrderChildTotalByUserNo(Long userNo);
List<OrderChild> getOrderChildBussInfo(String truckNo); List<OrderChild> getOrderChildBussInfo(int truckId);
List<OrderChild> selectListByOrderGoodsNo(String orderGoodsNo); List<OrderChild> selectListByOrderGoodsNo(String orderGoodsNo);
......
...@@ -371,9 +371,9 @@ public class OrderChildDaoImpl extends BaseDaoImpl<OrderChildMapper, OrderChild, ...@@ -371,9 +371,9 @@ public class OrderChildDaoImpl extends BaseDaoImpl<OrderChildMapper, OrderChild,
@Override @Override
public List<OrderChild> getOrderChildBussInfo(String truckNo) { public List<OrderChild> getOrderChildBussInfo(int truckId) {
LambdaQueryWrapper<OrderChild> query = new LambdaQueryWrapper(); LambdaQueryWrapper<OrderChild> query = new LambdaQueryWrapper();
query.eq(OrderChild::getTruckNo, truckNo) query.eq(OrderChild::getTruckId, truckId)
.in(OrderChild::getStatus, OrderChildEnum.Status.UNSETTLE.getCode(),OrderChildEnum.Status.COMPLETE.getCode()); .in(OrderChild::getStatus, OrderChildEnum.Status.UNSETTLE.getCode(),OrderChildEnum.Status.COMPLETE.getCode());
return baseMapper.selectList(query); return baseMapper.selectList(query);
} }
......
...@@ -70,7 +70,7 @@ public interface OrderChildService { ...@@ -70,7 +70,7 @@ public interface OrderChildService {
Integer getOrderChildTotalByUserNo(Long userNo); Integer getOrderChildTotalByUserNo(Long userNo);
OrderChildBussInfoVO getOrderChildBussInfo(String truckNo); OrderChildBussInfoVO getOrderChildBussInfo(int truckId);
IPage<OutputMonitorOrderChildVO> getMonitorOrerChildListsByParam(PageMonitorOrderChildQCParam param); IPage<OutputMonitorOrderChildVO> getMonitorOrerChildListsByParam(PageMonitorOrderChildQCParam param);
......
...@@ -2340,8 +2340,8 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -2340,8 +2340,8 @@ public class OrderChildServiceImpl implements OrderChildService {
} }
@Override @Override
public OrderChildBussInfoVO getOrderChildBussInfo(String truckNo) { public OrderChildBussInfoVO getOrderChildBussInfo(int truckId) {
List<OrderChild> childList = orderChildDao.getOrderChildBussInfo(truckNo); List<OrderChild> childList = orderChildDao.getOrderChildBussInfo(truckId);
if (CollectionUtils.isEmpty(childList)) { if (CollectionUtils.isEmpty(childList)) {
OrderChildBussInfoVO vo = OrderChildBussInfoVO.builder().completeNum(0).historyLoadWeight( OrderChildBussInfoVO vo = OrderChildBussInfoVO.builder().completeNum(0).historyLoadWeight(
new BigDecimal("0")).completeCarryWeight(new BigDecimal("0")).loseWeight( new BigDecimal("0")).completeCarryWeight(new BigDecimal("0")).loseWeight(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论