所有企业下部门树状所有数据根据企业类型 增加字段

main
zhaokai 2026-01-09 16:53:54 +08:00
parent 9f5ff459be
commit 78859de3fc
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jjb.saas.framework.auth.utils.AuthContext;
import com.zcloud.basic.info.command.convertor.DepartmentCoConvertor;
import com.zcloud.basic.info.domain.enums.CommonFlagEnum;
import com.zcloud.basic.info.domain.enums.CorpTypeEnum;
import com.zcloud.basic.info.dto.*;
import com.zcloud.basic.info.dto.clientobject.*;
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
@ -188,7 +189,10 @@ public class DepartmentQueryExe {
public Collection<DepartmentTreeInfoCO> listAllTreeByCorpType(DepartmentTreeQry qry) {
Map<String, Object> parmas = PageQueryHelper.toHashMap(qry);
List<Integer> enterpriseType = CorpTypeEnum.getCodesByEnterpriseType((Integer) parmas.get("enterpriseType"));
if (CollUtil.isNotEmpty(enterpriseType)) {
parmas.put("corpinfoTypeList",enterpriseType);
}
List<DepartmentDO> pageResponse = departmentRepository.listAllTreeByCorpType(parmas);
if (CollUtil.isEmpty(pageResponse)) {
return Collections.emptyList();

View File

@ -34,6 +34,9 @@ public class DepartmentTreeQry {
@ApiModelProperty(value = "企业类型(0-普通企业1-集团单位2-股份单位3-相关方企业4-货主单位5-驻港单位)", name = "corpinfoTypeList")
private List<Integer> corpinfoTypeList;
@ApiModelProperty(value = "企业类型1监管 2企业 3相关方", name = "enterpriseType")
private Integer enterpriseType;
}