feat:站内信信息状态修改
parent
82ae994601
commit
43546c4749
|
@ -63,10 +63,11 @@ public class SysCarFaultMessageController extends BaseController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PutMapping("/updateStatusById/{id}")
|
@PutMapping("/updateStatusById/{id}")
|
||||||
public void updateStatusById(@PathVariable("id")Long id){
|
public Result updateStatusById(@PathVariable("id")Long id){
|
||||||
UpdateWrapper<SysCarFaultMessage> wrapper = new UpdateWrapper<>();
|
UpdateWrapper<SysCarFaultMessage> wrapper = new UpdateWrapper<>();
|
||||||
wrapper.eq("id",id);
|
wrapper.eq("id",id);
|
||||||
wrapper.set("status",1);
|
wrapper.set("status",1);
|
||||||
service.update(wrapper);
|
boolean update = service.update(wrapper);
|
||||||
|
return Result.success(update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue