Commit f4f482f0 authored by hezhen's avatar hezhen

123

parent 5b555442
...@@ -45,10 +45,10 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{ ...@@ -45,10 +45,10 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
throw new BaseException("参数不能为空",ResultCode.FAILED_CODE); throw new BaseException("参数不能为空",ResultCode.FAILED_CODE);
} }
String vehicleId=StringUtils.isBlank(vehicle.getId()) ? "" : vehicle.getId(); String vehicleId=StringUtils.isBlank(vehicle.getId()) ? "" : vehicle.getId();
List<Vehicle> list=vehicleBiz.getListByExample(vehicleId,vehicle.getName()); /* List<Vehicle> list=vehicleBiz.getListByExample(vehicleId,vehicle.getName());
if (list.size() > 0){ if (list.size() > 0){
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE); throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
} }*/
VehicleApply vehicleApply=new VehicleApply(); VehicleApply vehicleApply=new VehicleApply();
BeanUtils.copyProperties(vehicle,vehicleApply); BeanUtils.copyProperties(vehicle,vehicleApply);
Integer formType=2; Integer formType=2;
......
...@@ -1609,10 +1609,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR ...@@ -1609,10 +1609,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
public String addOrUpd(VehicleApply vehicleApply){ public String addOrUpd(VehicleApply vehicleApply){
String vehicleId=StringUtils.isBlank(vehicleApply.getVehicleId()) ? "" : vehicleApply.getVehicleId(); String vehicleId=StringUtils.isBlank(vehicleApply.getVehicleId()) ? "" : vehicleApply.getVehicleId();
List<Vehicle> list=getListByExample(vehicleId,vehicleApply.getName()); /* List<Vehicle> list=getListByExample(vehicleId,vehicleApply.getName());
if (list.size() > 0){ if (list.size() > 0){
throw new BaseException("公司名称不能重复", ResultCode.FAILED_CODE); throw new BaseException("公司名称不能重复", ResultCode.FAILED_CODE);
} }*/
Vehicle vehicle= JSONUtil.toBean(vehicleApply.getChangeJson(),Vehicle.class); Vehicle vehicle= JSONUtil.toBean(vehicleApply.getChangeJson(),Vehicle.class);
if (StringUtils.isNotBlank(vehicleId)){ if (StringUtils.isNotBlank(vehicleId)){
vehicle.setExtensionList(null); vehicle.setExtensionList(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment