feat: 提案配置不存在、校领导单位列表为 null 或为空时,记录警告并跳过角色刷新,继续人员全量更新
This commit is contained in:
@@ -351,8 +351,12 @@ public class SysDataUserAllUpdateServiceImpl implements SysDataUserUpdateService
|
|||||||
// 6. 处理其他任务
|
// 6. 处理其他任务
|
||||||
// 6.1 更新提案的校领导角色,发送订阅
|
// 6.1 更新提案的校领导角色,发送订阅
|
||||||
ProposalConfig config = dao.fetch(ProposalConfig.class, Cnd.where("delFlag", "=", false).desc("updatedAt"));
|
ProposalConfig config = dao.fetch(ProposalConfig.class, Cnd.where("delFlag", "=", false).desc("updatedAt"));
|
||||||
for (String unitId : config.getSchoolLeaderUnitIds()) {
|
if (config == null || config.getSchoolLeaderUnitIds() == null || config.getSchoolLeaderUnitIds().isEmpty()) {
|
||||||
RoleEventPublisher.broadcast(new RoleEventMsg(unitId, RoleConstant.PROPOSAL_BRANCH_SCHOOL_LEADER.name(), RoleEventMsg.RENEW_ROLE));
|
log.warn("未配置提案校领导单位,跳过校领导角色刷新,继续完成人员全量更新");
|
||||||
|
} else {
|
||||||
|
for (String unitId : config.getSchoolLeaderUnitIds()) {
|
||||||
|
RoleEventPublisher.broadcast(new RoleEventMsg(unitId, RoleConstant.PROPOSAL_BRANCH_SCHOOL_LEADER.name(), RoleEventMsg.RENEW_ROLE));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ sdk:
|
|||||||
appSecret: a65cec4fb69980bd88258fc8433a3eef
|
appSecret: a65cec4fb69980bd88258fc8433a3eef
|
||||||
redirectUri: /platform/wx/oauth2/callback
|
redirectUri: /platform/wx/oauth2/callback
|
||||||
cas:
|
cas:
|
||||||
enable: false
|
enable: true
|
||||||
server-url-prefix: https://i.zjnu.njupt.edu.cn/cas
|
server-url-prefix: https://authserver.zjnu.edu.cn/authserver
|
||||||
server-login-url: https://i.zjnu.njupt.edu.cn/cas/login
|
server-login-url: https://authserver.zjnu.edu.cn/authserver/login
|
||||||
qi-wx-server-login-url: httos:/cas.zjnu.whcp.eou.cn/lyuapServer/wechatauz/wxAuthRedirect
|
qi-wx-server-login-url: https://authserver.zjnu.edu.cn/authserver/login
|
||||||
client-host-url: https://zhgh.zjnu.njupt.edu.cn
|
client-host-url: https://lxy.zjnu.edu.cn
|
||||||
client-call-back-url: /platform/sso/login
|
client-call-back-url: /platform/sso/login
|
||||||
validation-type: cas
|
validation-type: cas
|
||||||
minio:
|
minio:
|
||||||
|
|||||||
@@ -35,10 +35,11 @@
|
|||||||
<!-- 框架日志级别(按需调整) -->
|
<!-- 框架日志级别(按需调整) -->
|
||||||
<logger name="org.eclipse.jetty" level="INFO"/>
|
<logger name="org.eclipse.jetty" level="INFO"/>
|
||||||
<logger name="org.quartz" level="INFO"/>
|
<logger name="org.quartz" level="INFO"/>
|
||||||
<logger name="org.nutz" level="INFO"/>
|
<logger name="org.nutz" level="DEBUG"/>
|
||||||
|
|
||||||
<!-- root logger:INFO 级别,仅输出到文件,避免控制台阻塞 -->
|
<!-- root logger:DEBUG 级别,输出到控制台和全量文件 -->
|
||||||
<root level="INFO">
|
<root level="DEBUG">
|
||||||
|
<appender-ref ref="STDOUT"/>
|
||||||
<appender-ref ref="ALL_FILE"/>
|
<appender-ref ref="ALL_FILE"/>
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user