Browse Source

优化

zhanglei
dimengzhe 2 years ago
parent
commit
c97a2ab0d5
  1. 7
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysorganization/SysOrganizationService.java
  2. 6
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysstaffinfo/SysStaffinfoService.java

7
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysorganization/SysOrganizationService.java

@ -17,7 +17,6 @@ import com.yxt.anrui.portal.api.sysuser.SysUserVo;
import com.yxt.anrui.portal.biz.sysstaffinfo.SysStaffinfoService;
import com.yxt.anrui.portal.biz.sysstafforg.SysStaffOrgService;
import com.yxt.anrui.portal.biz.sysuser.SysUserService;
import com.yxt.anrui.terminal.api.base.common.FinanceVo;
import com.yxt.common.base.config.RedisUtil;
import com.yxt.common.base.config.component.FileUploadComponent;
import com.yxt.common.base.service.MybatisBaseService;
@ -188,7 +187,8 @@ public class SysOrganizationService extends MybatisBaseService<SysOrganizationMa
List<String> orgList = new ArrayList<>();
if (sysStaffOrgVos.size() > 0) {
for (SysStaffOrgVo vv : sysStaffOrgVos) {
String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
// String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
String orgSid = vv.getOrgSid();
SysOrganization sysOrganization = fetchBySid(orgSid);
if (sysOrganization != null) {
orgList.add(orgSid);
@ -234,7 +234,8 @@ public class SysOrganizationService extends MybatisBaseService<SysOrganizationMa
List<String> orgList1 = new ArrayList<>();
if (sysStaffOrgVos1.size() > 0) {
for (SysStaffOrgVo vv : sysStaffOrgVos1) {
String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
// String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
String orgSid = vv.getOrgSid();
SysOrganization sysOrganization = fetchBySid(orgSid);
if (sysOrganization != null) {
orgList1.add(orgSid);

6
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysstaffinfo/SysStaffinfoService.java

@ -473,7 +473,8 @@ public class SysStaffinfoService extends MybatisBaseService<SysStaffinfoMapper,
List<String> orgList = new ArrayList<>();
if (sysStaffOrgVos.size() > 0) {
for (SysStaffOrgVo vv : sysStaffOrgVos) {
String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
// String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
String orgSid = vv.getOrgSid();
SysOrganization sysOrganization = sysOrganizationService.fetchBySid(orgSid);
if (sysOrganization != null) {
orgList.add(orgSid);
@ -609,7 +610,8 @@ public class SysStaffinfoService extends MybatisBaseService<SysStaffinfoMapper,
List<String> orgList1 = new ArrayList<>();
if (sysStaffOrgVos1.size() > 0) {
for (SysStaffOrgVo vv : sysStaffOrgVos1) {
String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
// String orgSid = sysStaffOrgService.getOrgByOrgSid(vv.getOrgSid());
String orgSid = vv.getOrgSid();
SysOrganization sysOrganization = sysOrganizationService.fetchBySid(orgSid);
if (sysOrganization != null) {
orgList1.add(orgSid);

Loading…
Cancel
Save