feat:站内信信息状态修改

master
袁子龙 2024-09-27 22:29:42 +08:00 committed by Liu Wu
parent 82ae994601
commit 43546c4749
1 changed files with 3 additions and 2 deletions

View File

@ -63,10 +63,11 @@ public class SysCarFaultMessageController extends BaseController {
* @return
*/
@PutMapping("/updateStatusById/{id}")
public void updateStatusById(@PathVariable("id")Long id){
public Result updateStatusById(@PathVariable("id")Long id){
UpdateWrapper<SysCarFaultMessage> wrapper = new UpdateWrapper<>();
wrapper.eq("id",id);
wrapper.set("status",1);
service.update(wrapper);
boolean update = service.update(wrapper);
return Result.success(update);
}
}