Просмотр исходного кода

Merge branch 'master' of https://e.coding.net/chuanghaikeji/smartCampus/backend_code

夏文涛 2 лет назад
Родитель
Сommit
fb89f0210b

+ 4 - 2
src/main/java/com/template/services/impl/SmartAuthorGroupServiceImpl.java

@@ -39,6 +39,8 @@ public class SmartAuthorGroupServiceImpl extends ServiceImpl<SmartAuthorGroupMap
     public SmartApplyMapper smartApplyMapper;
     @Autowired
     public SmartDepartmentMapper smartDepartmentMapper;
+    @Autowired
+    public SmartMenuMapper smartMenuMapper;
 
     @Override
     public int insertSmartAuthorGroup(SmartAuthorGroup sa) {
@@ -106,11 +108,11 @@ public class SmartAuthorGroupServiceImpl extends ServiceImpl<SmartAuthorGroupMap
             List<SmartUser> list1 = smartUserMapper.selectList(queryWrapper1);
             JSONObject jsonObject1 = new JSONObject();
             jsonObject1.put("data", list1);
-            QueryWrapper<SmartApply> queryWrapper2 = new QueryWrapper<>();
+            QueryWrapper<SmartMenu> queryWrapper2 = new QueryWrapper<>();
             queryWrapper2.eq("deleted", 0);
             List<String> applyIds = Arrays.asList(data.getApplyId().split(","));
             queryWrapper2.in("id", applyIds);
-            List<SmartApply> list2 = smartApplyMapper.selectList(queryWrapper2);
+            List<SmartMenu> list2 = smartMenuMapper.selectList(queryWrapper2);
             JSONObject jsonObject2 = new JSONObject();
             jsonObject2.put("data", list2);
             AuthorListGroup item = AuthorListGroup.builder()