树修改

This commit is contained in:
马三炮 2025-09-09 15:37:15 +08:00
parent 54b4e9557a
commit e29994443c
2 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,11 @@ public class PmOrgVo {
*/
private Integer id;
/**
* 树专用
*/
private String orgId;
/**
* 分公司id
*/

View File

@ -88,6 +88,11 @@ public class PmSubComServiceImpl implements PmSubComService {
PmOrg pmOrg = new PmOrg();
pmOrg.setSubComId(pmSubCompanyNew.getId());
List<PmOrgVo> pmOrgList = pmOrgMapper.selectPmOrgList(pmOrg);
if (pmOrgList.size()>0){
for (PmOrgVo pmOrgVo:pmOrgList) {
pmOrgVo.setOrgId("org-"+pmOrgVo.getId());
}
}
pmSubCompanyNew.setPmOrgList(pmOrgList);
}
}