企业国别添加组织查询条件

This commit is contained in:
zhaoqing
2026-05-13 18:24:18 +08:00
parent b24fa2cd3e
commit 237e743280
3 changed files with 13 additions and 0 deletions
@@ -42,6 +42,13 @@ public class ErpCountryApplicationService{
private GwLogMapper gwLogMapper;
public TableDataInfo queryList(ErpCountryDTO erpCountryDTO) {
LoginUser loginUser = SecurityUtils.getLoginUser();
if (loginUser != null) {
Long topOrganizationId = loginUser.getUserPo().getTopOrganizationId();
if (topOrganizationId != null && topOrganizationId != 1) {
erpCountryDTO.setTopOrganizationId(topOrganizationId);
}
}
List<ErpCountryPO> list = erpCountryMapper.queryList(erpCountryDTO);
TableDataInfo tableDataInfo = new TableDataInfo();
tableDataInfo.setData(list);
@@ -40,6 +40,9 @@ public class ErpCountry implements Serializable {
@ApiModelProperty("推送人")
private Long pushBy;
@ApiModelProperty("推送人姓名")
private String pushByName;
@ApiModelProperty("所属组织ID")
private Long organizationId;
@@ -29,4 +29,7 @@ public class ErpCountryDTO {
@ApiModelProperty(value = "所属组织ID")
private Long organizationId;
@ApiModelProperty(value = "所属组织ID")
private Long TopOrganizationId;
}