Bläddra i källkod

机构账号列表

5 år sedan
förälder
incheckning
9a615358cf

+ 14 - 0
bms/src/main/java/com/hssx/bms/controller/InstitutionalInformationController.java

@@ -113,6 +113,18 @@ public class InstitutionalInformationController {
         return msg;
     }
 
+    /**
+     * 创建机构账号获取机构列表
+     * @return
+     */
+    @ApiOperation(value = "教育机构信息列表", notes = "教育机构信息列表方法")
+    @RequestMapping("/createAccountforlist")
+    @ResponseBody
+    public HttpRespMsg createAccountforlist(){
+        HttpRespMsg msg = institutionalService.createAccountforlist();
+        return msg;
+    }
+
     /**
      * 教育机构信息列表
      * 参数:id 机构id
@@ -152,5 +164,7 @@ public class InstitutionalInformationController {
         return msg;
     }
 
+
+
 }
 

+ 2 - 0
bms/src/main/java/com/hssx/bms/service/InstitutionalInformationService.java

@@ -31,4 +31,6 @@ public interface InstitutionalInformationService extends IService<InstitutionalI
     HttpRespMsg deleteById(InstitutionalInformation information);
 
     HttpRespMsg getInstitutionAccountList(PageUtil page);
+
+    HttpRespMsg createAccountforlist();
 }

+ 7 - 0
bms/src/main/java/com/hssx/bms/service/impl/InstitutionalInformationServiceImpl.java

@@ -163,4 +163,11 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
         msg.data = pageInfo;
         return msg;
     }
+
+    @Override
+    public HttpRespMsg createAccountforlist() {
+        HttpRespMsg msg = new HttpRespMsg();
+        msg.data = institutionalMapper.selectList(new QueryWrapper<InstitutionalInformation>().isNull("sys_id"));
+        return msg;
+    }
 }