Browse Source

iaw 车辆列表查询修改

master
chenchaod 1 month ago
parent
commit
07c6aea50f

+ 4
- 4
zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/dto/comm/VehicleInfoPageRequestDTO.java View File

@@ -26,8 +26,8 @@ public class VehicleInfoPageRequestDTO extends AbstractBizPageRequestDTO {
@ApiModelProperty(value = "车牌颜色")
private Integer vehiclePlateColor;

@Override
protected void validate(ViolationValidator validator) {
validator.validFieldNotBlank("customerId", getCustomerId());
}
// @Override
// protected void validate(ViolationValidator validator) {
// validator.validFieldNotBlank("customerId", getCustomerId());
// }
}

+ 2
- 1
zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/manager/comm/VehicleInfoManagerImpl.java View File

@@ -28,7 +28,8 @@ public class VehicleInfoManagerImpl extends AbstractCommManager implements Vehic
private WxLoginUserUtil wxLoginUserUtil;
@Override
public Pagination page(VehicleInfoPageRequestDTO dto) throws ManagerException {
dto.validate();
// dto.validate();
if (!hasText(dto.getCustomerId())) return new Pagination();
QtkVehicleInfoPageRequest pageRequest = copyProperties(dto, new QtkVehicleInfoPageRequest());
Boolean checked = wxLoginUserUtil.checkCustomerInfoAndAccountInfo(dto.getCustomerId(), findAccountInfoByToken(dto.getAccessToken()));
if (checked){

Loading…
Cancel
Save