Commit 0658762ba06457c1711171b38683a19f0d9787c9
1 parent
9690e96e
人机材修改
Showing
2 changed files
with
7 additions
and
4 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/rentalmechanicalcost/vo/RentalMechanicalCostPageReqVO.java
| @@ -19,10 +19,11 @@ public class RentalMechanicalCostPageReqVO extends PageParam { | @@ -19,10 +19,11 @@ public class RentalMechanicalCostPageReqVO extends PageParam { | ||
| 19 | private String id; | 19 | private String id; |
| 20 | @Schema(description = "机械名称", example = "张三") | 20 | @Schema(description = "机械名称", example = "张三") |
| 21 | private String mechName; | 21 | private String mechName; |
| 22 | - | 22 | + //租赁价格区间 |
| 23 | @Schema(description = "租赁总价格", example = "316") | 23 | @Schema(description = "租赁总价格", example = "316") |
| 24 | - private BigDecimal[] rentalTotalPrice; | ||
| 25 | - | 24 | + private BigDecimal rentalTotalPriceMin; |
| 25 | + @Schema(description = "租赁总价格", example = "316") | ||
| 26 | + private BigDecimal rentalTotalPriceMax; | ||
| 26 | @Schema(description = "开始使用时间") | 27 | @Schema(description = "开始使用时间") |
| 27 | @DateTimeFormat(pattern = "yyyy-MM-dd") | 28 | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| 28 | private Date startUseTime; | 29 | private Date startUseTime; |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/dal/mysql/rentalmechanicalcost/RentalMechanicalCostMapper.java
| @@ -20,7 +20,9 @@ public interface RentalMechanicalCostMapper extends BaseMapperX<RentalMechanical | @@ -20,7 +20,9 @@ public interface RentalMechanicalCostMapper extends BaseMapperX<RentalMechanical | ||
| 20 | return selectPage(reqVO, new LambdaQueryWrapperX<RentalMechanicalCostDO>() | 20 | return selectPage(reqVO, new LambdaQueryWrapperX<RentalMechanicalCostDO>() |
| 21 | .likeIfPresent(RentalMechanicalCostDO::getMechName, reqVO.getMechName()) | 21 | .likeIfPresent(RentalMechanicalCostDO::getMechName, reqVO.getMechName()) |
| 22 | //.eqIfPresent(RentalMechanicalCostDO::getMechType, reqVO.getMechType()) | 22 | //.eqIfPresent(RentalMechanicalCostDO::getMechType, reqVO.getMechType()) |
| 23 | - .betweenIfPresent(RentalMechanicalCostDO::getRentalTotalPrice, reqVO.getRentalTotalPrice()) | 23 | + //.betweenIfPresent(RentalMechanicalCostDO::getRentalTotalPrice, reqVO.getRentalTotalPrice()) |
| 24 | + .geIfPresent(RentalMechanicalCostDO::getRentalTotalPrice, reqVO.getRentalTotalPriceMin()) | ||
| 25 | + .leIfPresent(RentalMechanicalCostDO::getRentalTotalPrice, reqVO.getRentalTotalPriceMax()) | ||
| 24 | //.eqIfPresent(RentalMechanicalCostDO::getQuantity, reqVO.getQuantity()) | 26 | //.eqIfPresent(RentalMechanicalCostDO::getQuantity, reqVO.getQuantity()) |
| 25 | //.eqIfPresent(RentalMechanicalCostDO::getLicensePlate, reqVO.getLicensePlate()) | 27 | //.eqIfPresent(RentalMechanicalCostDO::getLicensePlate, reqVO.getLicensePlate()) |
| 26 | //.eqIfPresent(RentalMechanicalCostDO::getVehicleCategory, reqVO.getVehicleCategory()) | 28 | //.eqIfPresent(RentalMechanicalCostDO::getVehicleCategory, reqVO.getVehicleCategory()) |