Browse Source

优化必填参数校验

shuiqilin
zhangxin 1 year ago
parent
commit
0a5b5219bb

+ 3
- 0
src/main/java/com/qtzl/alterSales/manager/service/VehicleInfoServiceImpl.java View File

@@ -129,6 +129,9 @@ public class VehicleInfoServiceImpl implements VehicleInfoService {
if (StringUtils.isEmpty(findByVehicleVo.getCardId()) || StringUtils.isEmpty(findByVehicleVo.getObuId())) {
FindByVehicleIdRequestVo findByVehicleRequestVo = new FindByVehicleIdRequestVo();
BeanUtil.copyProperties(findByVehicleVo, findByVehicleRequestVo);
if (StringUtils.isEmpty(findByVehicleRequestVo.getVehicleId())){
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("根据车辆编号查询卡签信息失败,请求参数车辆编号不能为空");
}
Map<String, String> requestParam = findByVehicleRequestVo.getRequestParam();
ZtHttpResponse response = null;
try {

Loading…
Cancel
Save