【修改顶级组织ID获取逻辑】

This commit is contained in:
weizhihong 2022-10-19 08:53:03 +08:00
parent 853dd2fe35
commit afc62e8f4e

View File

@ -143,10 +143,9 @@ public class OrgScoringRuleService implements IOrgScoringRuleService {
@Override
public OrgScoringRuleVO queryOrgScoringRuleDetails(Long orgId, String schoolYear, Integer term, LoginUserInfoVO loginInfo) {
Org topOrg = iOrgService.getTopOrgOfUser(loginInfo.getAccountVO().getId());
OrgScoringRuleExample example = new OrgScoringRuleExample();
example.createCriteria()
.andOrgIdEqualTo(topOrg.getId())
.andOrgIdEqualTo(loginInfo.getTopOrgId())
.andCreatorIdEqualTo(loginInfo.getAccountVO().getId())
.andSchoolYearEqualTo(schoolYear)
.andTermEqualTo(term);