text:故障记录状态修改(批量)
parent
6ab4dbf279
commit
7f05431f41
|
@ -70,10 +70,15 @@ public class sysCarFaultLogController extends BaseController {
|
||||||
util.exportExcel(response,list,"车辆故障记录数据");
|
util.exportExcel(response,list,"车辆故障记录数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/updateStatusById/{id}")
|
/**
|
||||||
public Result updateStatusById(@PathVariable("id")Long id){
|
* 修改为忽略
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PutMapping("/updateStatusById/{ids}")
|
||||||
|
public Result updateStatusById(@PathVariable("ids")Long[] ids){
|
||||||
UpdateWrapper<SysCarFaultLog> wrapper = new UpdateWrapper<>();
|
UpdateWrapper<SysCarFaultLog> wrapper = new UpdateWrapper<>();
|
||||||
wrapper.eq("id",id).set("status",3);
|
wrapper.eq("id",ids).set("status",3);
|
||||||
boolean update = service.update(null, wrapper);
|
boolean update = service.update(null, wrapper);
|
||||||
return Result.success(update);
|
return Result.success(update);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue