feat:站内信信息状态修改
parent
0fdb3514c6
commit
0d4818a448
|
@ -1,14 +1,13 @@
|
||||||
package com.muyu.breakdown.controller;
|
package com.muyu.breakdown.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.muyu.breakdown.domain.SysCarFaultMessage;
|
import com.muyu.breakdown.domain.SysCarFaultMessage;
|
||||||
import com.muyu.breakdown.service.SysCarFaultMessageService;
|
import com.muyu.breakdown.service.SysCarFaultMessageService;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.common.core.web.controller.BaseController;
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
import com.muyu.common.core.web.page.TableDataInfo;
|
import com.muyu.common.core.web.page.TableDataInfo;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -58,4 +57,16 @@ public class SysCarFaultMessageController extends BaseController {
|
||||||
List<SysCarFaultMessage> list = service.listStatusTwo();
|
List<SysCarFaultMessage> list = service.listStatusTwo();
|
||||||
return getDataTable(list);
|
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