فهرست منبع

app根据userId查询党员风采管理列表

wch 3 سال پیش
والد
کامیت
90d10f5b86
1فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده
  1. 20 0
      ruoyi-hndj/src/main/java/com/ruoyi/daily/member/controller/MemberController.java

+ 20 - 0
ruoyi-hndj/src/main/java/com/ruoyi/daily/member/controller/MemberController.java

@@ -4,6 +4,8 @@ import java.io.IOException;
 import java.util.Date;
 import java.util.List;
 
+import com.ruoyi.base.staff.domain.Staff;
+import com.ruoyi.base.staff.service.IStaffService;
 import com.ruoyi.common.config.RuoYiConfig;
 import com.ruoyi.common.core.domain.entity.SysUser;
 import com.ruoyi.common.utils.DateUtils;
@@ -42,6 +44,8 @@ public class MemberController extends BaseController
     @Autowired
     private IMemberService memberService;
 
+    @Autowired
+    private IStaffService staffService;
     @Autowired
     private ISysUserService userService;
 
@@ -129,6 +133,22 @@ public class MemberController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * app根据userId查询党员风采管理列表
+     */
+    @PostMapping("/appMemberByUserId")
+    @ResponseBody
+    @CrossOrigin(origins = "*", maxAge = 3600)
+    public TableDataInfo appMemberByUserId(Integer userId)
+    {
+        startPage();
+        Staff staff = staffService.selectStaffByUserId(userId);
+        Member member  = new Member();
+        member.setStaffId(staff.getStaffId());
+        List<Member> list = memberService.selectMemberList(member);
+        return getDataTable(list);
+    }
+
     /**
      * 修改党员风采
      */