feat:站内信信息状态修改
parent
88865776cd
commit
82ae994601
|
@ -1,14 +1,13 @@
|
|||
package com.muyu.breakdown.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.muyu.breakdown.domain.SysCarFaultMessage;
|
||||
import com.muyu.breakdown.service.SysCarFaultMessageService;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -58,4 +57,16 @@ public class SysCarFaultMessageController extends BaseController {
|
|||
List<SysCarFaultMessage> list = service.listStatusTwo();
|
||||
return getDataTable(list);
|
||||
}
|
||||
/**
|
||||
* 修改未读站内信息为已读
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/updateStatusById/{id}")
|
||||
public void updateStatusById(@PathVariable("id")Long id){
|
||||
UpdateWrapper<SysCarFaultMessage> wrapper = new UpdateWrapper<>();
|
||||
wrapper.eq("id",id);
|
||||
wrapper.set("status",1);
|
||||
service.update(wrapper);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue