修复BUG712,组织物料信息查询范围调整

This commit is contained in:
yangchaojin
2026-01-20 09:23:25 +08:00
parent 5f14fe798d
commit b597920d55
6 changed files with 123 additions and 1 deletions

View File

@@ -46,4 +46,7 @@ public class DepartmentMaterialPageReqDTO extends PageParam {
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
@Schema(description = "是否是公司")
private Boolean isCompany;
}

View File

@@ -1,9 +1,12 @@
package com.zt.plat.module.base.api.departmentmaterial.dto;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.Map;
/**
* 组织架构物料 Response DTO
@@ -58,4 +61,13 @@ public class DepartmentMaterialRespDTO {
@Schema(description = "状态编码")
private String status;
@JsonIgnore
@Schema(description = "物料基础字段 + 属性编码->原值的动态键值,基础字段优先,序列化时直接展开为顶层字段")
private Map<String, Object> flatAttributes;
@JsonAnyGetter
public Map<String, Object> getFlatAttributes() {
return flatAttributes;
}
}