优化兴安bug
This commit is contained in:
@@ -99,18 +99,15 @@ public class CarParkRecordController extends BaseController
|
||||
/**
|
||||
* 删除车辆授权
|
||||
*/
|
||||
@Log(title = "车辆授权", businessType = BusinessType.UPDATE)
|
||||
@Log(title = "车辆授权下发", businessType = BusinessType.UPDATE)
|
||||
@GetMapping("/down/{ids}")
|
||||
public AjaxResult down(@PathVariable Long[] ids)
|
||||
{
|
||||
int i=0;
|
||||
public AjaxResult down(@PathVariable Long[] ids) {
|
||||
for (Long id : ids) {
|
||||
CarParkRecord carParkRecord = carParkRecordService.selectCarParkRecordById(id);
|
||||
carParkRecord.setSync("2");
|
||||
carParkRecord.setSync("0");
|
||||
carParkRecordService.updateCarParkRecord(carParkRecord);
|
||||
i++;
|
||||
}
|
||||
return toAjax(i);
|
||||
return toAjax(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user