浏览代码

修改获取消息通知

肖玮 5 年之前
父节点
当前提交
5ee43ad484

+ 0 - 38
mec-education/src/main/java/com/ym/mec/education/controller/UserController.java

@@ -1,38 +0,0 @@
-package com.ym.mec.education.controller;
-
-import javax.annotation.Resource;
-
-import com.alibaba.fastjson.JSONObject;
-import com.ym.mec.auth.api.client.SysUserFeignService;
-import com.ym.mec.education.base.BaseResponse;
-import com.ym.mec.education.service.ISubjectService;
-
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * @program: mec
- * @description: 声部
- * @author: xw
- * @create: 2019-10-01 11:25
- */
-@RestController
-@RequestMapping("api/user")
-@Api(tags = "用户")
-public class UserController {
-
-    @Autowired
-    private SysUserFeignService sysUserFeignService;
-
-    @PostMapping("/detail")
-    @ApiOperation("个人明细")
-    public BaseResponse list() {
-        return BaseResponse.success(sysUserFeignService.queryUserInfo());
-    }
-}

+ 2 - 1
mec-education/src/main/java/com/ym/mec/education/service/impl/SysMessageServiceImpl.java

@@ -21,6 +21,7 @@ import org.snaker.engine.access.QueryFilter;
 import org.snaker.engine.entity.Task;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import javax.annotation.Resource;
 import java.util.List;
 import java.util.Objects;
 import java.util.Optional;
@@ -36,7 +37,7 @@ import java.util.Optional;
 @Service("ISysMessageService")
 public class SysMessageServiceImpl extends ServiceImpl<SysMessageMapper, SysMessage> implements ISysMessageService {
 
-    @Autowired
+    @Resource
     private SysUserFeignService userFeign;
     @Autowired
     private IQueryService taskQueryService;