|
@ -101,7 +101,7 @@ public class AdminManageService {
|
|
|
//2. 社区医院3. 养老机构 4. 托育机构
|
|
|
public List<Map<String,Object>> getOrgList(String type){
|
|
|
if("2".equals(type)){
|
|
|
String sql = "SELECT t.name orgName,t.org_code orgCode" +
|
|
|
String sql = "SELECT distinct t.name orgName,t.org_code orgCode" +
|
|
|
" from base_team t,base_team_member tm" +
|
|
|
" WHERE t.id =tm.team_code and t.del=1 and tm.del = '1' ";
|
|
|
return jdbcTemplate.queryForList(sql);
|
|
@ -120,7 +120,7 @@ public class AdminManageService {
|
|
|
filter = " and a.id not in ('"+orgCodes+"')";
|
|
|
}
|
|
|
//2社工, 3教师,4助老员
|
|
|
String sql = "select id orgCode,name orgName from base_org a where a.del=1 and a.type="+type +filter;
|
|
|
String sql = "select code orgCode,name orgName from base_org a where a.del=1 and a.type="+type +filter;
|
|
|
return jdbcTemplate.queryForList(sql);
|
|
|
}
|
|
|
}
|