|
|
@ -58,6 +58,31 @@ public class AsCustomerVehicleRest{ |
|
|
|
private AsCustomerVehicleService asCustomerVehicleService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("批量禁用") |
|
|
|
@PostMapping("/disableState") |
|
|
|
public ResultBean disableState(@RequestBody String[] sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
for (String s : sid) { |
|
|
|
AsCustomerVehicle asCustomerVehicle = asCustomerVehicleService.fetchBySid(s); |
|
|
|
asCustomerVehicle.setIsEnable(0); |
|
|
|
asCustomerVehicleService.updateById(asCustomerVehicle); |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("批量启用") |
|
|
|
@PostMapping("/enable") |
|
|
|
public ResultBean enable(@RequestBody String[] sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
for (String s : sid) { |
|
|
|
AsCustomerVehicle asCustomerVehicle = asCustomerVehicleService.fetchBySid(s); |
|
|
|
asCustomerVehicle.setIsEnable(1); |
|
|
|
asCustomerVehicleService.updateById(asCustomerVehicle); |
|
|
|
} |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<AsCustomerVehicleVo>> listPage(@RequestBody PagerQuery<AsCustomerVehicleQuery> pq){ |
|
|
|