|
|
@@ -9,8 +9,10 @@ import com.tianhu.common.security.service.TokenService;
|
|
|
import com.tianhu.system.api.domain.SysUser;
|
|
|
import com.tianhu.system.api.model.LoginUser;
|
|
|
import com.tianhu.system.domain.SysNotice;
|
|
|
+import com.tianhu.system.domain.SysNoticeUserRel;
|
|
|
import com.tianhu.system.service.IOwnNoticeService;
|
|
|
import com.tianhu.system.service.ISysNoticeService;
|
|
|
+import com.tianhu.system.service.ISysNoticeUserRelService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -32,6 +34,9 @@ public class OwnNoticeController extends BaseController
|
|
|
private ISysNoticeService iSysNoticeService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private ISysNoticeUserRelService iSysNoticeUserRelService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private IOwnNoticeService iOwnNoticeService;
|
|
|
|
|
|
@Autowired
|
|
|
@@ -68,6 +73,24 @@ public class OwnNoticeController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 消息读取
|
|
|
+ */
|
|
|
+ @PostMapping("/readWork/{noticeId}")
|
|
|
+ public R readWork(@PathVariable("noticeId") String noticeId)
|
|
|
+ {
|
|
|
+ //获取当前企业的编号
|
|
|
+ LoginUser userInfo = tokenService.getLoginUser();
|
|
|
+ SysUser use = userInfo.getSysUser();
|
|
|
+ //处理备注
|
|
|
+ SysNoticeUserRel sysNoticeUserRel = new SysNoticeUserRel();
|
|
|
+ sysNoticeUserRel.setSnyrNoticeId(noticeId);
|
|
|
+ sysNoticeUserRel.setSnyrUserId(use.getUserId());
|
|
|
+ sysNoticeUserRel.setSnyrUserStatus("1");
|
|
|
+ iSysNoticeUserRelService.updateSysNoticeUserRel(sysNoticeUserRel);
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 处理待办
|
|
|
*/
|
|
|
@PostMapping("/dealWork")
|