commit
This commit is contained in:
+2
-1
@@ -60,11 +60,12 @@ public class ExecutiveCommitteeConfigController {
|
|||||||
sun.name as unionName,
|
sun.name as unionName,
|
||||||
sun.unionCode ,
|
sun.unionCode ,
|
||||||
(SELECT count( 1 ) FROM vw_user where sun.id = unionId) as memberCount,
|
(SELECT count( 1 ) FROM vw_user where sun.id = unionId) as memberCount,
|
||||||
|
(SELECT count( 1 ) FROM teacher_congress_delegate where unionId =sun.id and sessionId=@sessionId) as dbCount,
|
||||||
0 as quotaCount
|
0 as quotaCount
|
||||||
FROM
|
FROM
|
||||||
sys_union sun
|
sys_union sun
|
||||||
ORDER BY unionCode ASC
|
ORDER BY unionCode ASC
|
||||||
""");
|
""").setParam("sessionId",sessionId);
|
||||||
List<NutMap> listMap = committeeConfigService.listMap(sql);
|
List<NutMap> listMap = committeeConfigService.listMap(sql);
|
||||||
config.setUnionQuotaList(listMap);
|
config.setUnionQuotaList(listMap);
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-2
@@ -124,8 +124,13 @@ public class TeacherCongressDelegatePushController {
|
|||||||
cnd.and(group);
|
cnd.and(group);
|
||||||
}
|
}
|
||||||
cnd.desc("info.createdAt");
|
cnd.desc("info.createdAt");
|
||||||
if (!AuthUtil.hasRole(RoleConstant.SYSADMIN.name())) {
|
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||||
cnd.and("info.createdBy", "=", SecurityUtil.getUserId());
|
if (AuthUtil.hasRole(RoleConstant.UNIT_PARTY_SECRETARY.name())){
|
||||||
|
cnd.andEX("info.unionId", "=", SecurityUtil.getUnionId());
|
||||||
|
}else{
|
||||||
|
cnd.and("info.createdBy", "=", SecurityUtil.getUserId());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
sql.setCondition(cnd);
|
sql.setCondition(cnd);
|
||||||
Pagination<NutMap> pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
Pagination<NutMap> pagination = baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql);
|
||||||
|
|||||||
+1
-1
@@ -114,7 +114,7 @@ layout("/layouts/platform.html"){
|
|||||||
},
|
},
|
||||||
tableColumns: [
|
tableColumns: [
|
||||||
{prop: 'unionName', label: '分工会名称', sortable: true},
|
{prop: 'unionName', label: '分工会名称', sortable: true},
|
||||||
{prop: 'memberCount', label: '代表人数', sortable: true},
|
{prop: 'dbCount', label: '代表人数', sortable: true},
|
||||||
{prop: 'quotaCount', label: '分配人数', sortable: true}
|
{prop: 'quotaCount', label: '分配人数', sortable: true}
|
||||||
],
|
],
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user