解决门店车辆查询语句的问题

This commit is contained in:
2025-08-27 20:36:35 +08:00
parent f1b4c24135
commit 7d854f187a
4 changed files with 34 additions and 8 deletions

View File

@ -28,6 +28,9 @@ public class StoreCarDTO {
@ApiModelProperty("车辆型号名称")
private String modelName;
@ApiModelProperty("车辆图片,多图片逗号分隔")
private String images;
@ApiModelProperty("支持电池类型(48V标准版/100km,48V超长版/200km等)")
private String batteryType;

View File

@ -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;
}

View File

@ -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