diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java index 01ef13cea..dd53a1933 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseWaybillEntity.java @@ -274,7 +274,9 @@ public class WarehouseWaybillEntity extends TenantEntity { @ApiModelProperty(value = "预留5") private String reserve5; - private Integer stats = 0; //运单状态 弃用 + + @ApiModelProperty(value = "运单状态") + private Integer stats; //运单状态 弃用 @TableField(exist = false) private String statsStr; diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseWaybillController.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseWaybillController.java index 5d293fb95..b0b00e91b 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseWaybillController.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/controller/WarehouseWaybillController.java @@ -87,8 +87,9 @@ public class WarehouseWaybillController extends BladeController { @ApiOperationSupport(order = 1) @ApiOperation(value = "详情", notes = "传入warehouseWaybill") public R<WarehouseWaybillVO> detail(WarehouseWaybillEntity warehouseWaybill) { - WarehouseWaybillEntity detail = warehouseWaybillService.getOne(Condition.getQueryWrapper(warehouseWaybill)); - return R.data(WarehouseWaybillWrapper.build().entityVO(detail)); +// WarehouseWaybillEntity detail = warehouseWaybillService.getOne(Condition.getQueryWrapper(warehouseWaybill)); + WarehouseWaybillEntity byWaybillNo = warehouseWaybillService.findByWaybillNo(warehouseWaybill.getWaybillNo()); + return R.data(WarehouseWaybillWrapper.build().entityVO(byWaybillNo)); } /** @@ -117,6 +118,7 @@ public class WarehouseWaybillController extends BladeController { @ApiOperationSupport(order = 3) @ApiOperation(value = "分页", notes = "传入warehouseWaybill") public R<IPage<WarehouseWaybillVO>> page(WarehouseWaybillVO warehouseWaybill, Query query) { + IPage<WarehouseWaybillVO> pages = warehouseWaybillService.selectWarehouseWaybillPage(Condition.getPage(query), warehouseWaybill); return R.data(pages); }