解决门店车辆查询语句的问题
This commit is contained in:
		| @ -28,6 +28,9 @@ public class StoreCarDTO { | ||||
|     @ApiModelProperty("车辆型号名称") | ||||
|     private String modelName; | ||||
|  | ||||
|     @ApiModelProperty("车辆图片,多图片逗号分隔") | ||||
|     private String images; | ||||
|  | ||||
|     @ApiModelProperty("支持电池类型(48V标准版/100km,48V超长版/200km等)") | ||||
|     private String batteryType; | ||||
|  | ||||
|  | ||||
| @ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel; | ||||
| import io.swagger.annotations.ApiModelProperty; | ||||
| import lombok.Data; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| @Data | ||||
| @ApiModel(value = "门店车辆查询请求") | ||||
| public class StoreCarReq { | ||||
| @ -14,4 +16,7 @@ public class StoreCarReq { | ||||
|     @ApiModelProperty("车牌号码") | ||||
|     private String licensePlate; | ||||
|  | ||||
|     @ApiModelProperty("门店车辆状态") | ||||
|     private List<String> storeCarStatusList; | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -54,7 +54,7 @@ public class CarServiceImpl implements CarService { | ||||
|  | ||||
|     @Override | ||||
|     public Long countCarByStoreId(Long storeId) { | ||||
|         return carRepo.count(new LambdaQueryWrapper<CarPO>().eq(CarPO::getStoreId, storeId)); | ||||
|         return carRepo.count(new LambdaQueryWrapper<CarPO>().eq(CarPO::getStoreId, storeId).eq(CarPO::getDelFlag, "0").eq(CarPO::getStatus, "0")); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|  | ||||
		Reference in New Issue
	
	Block a user