text:故障记录状态修改(批量)
parent
33d4eb2c44
commit
4e14980155
|
@ -70,10 +70,15 @@ public class sysCarFaultLogController extends BaseController {
|
|||
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<>();
|
||||
wrapper.eq("id",id).set("status",3);
|
||||
wrapper.eq("id",ids).set("status",3);
|
||||
boolean update = service.update(null, wrapper);
|
||||
return Result.success(update);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue