Merge branch 'dev' into 'test'
修复BUG712,组织物料信息查询范围调整 See merge request jygk/dsc-base!25
This commit is contained in:
@@ -46,4 +46,7 @@ public class DepartmentMaterialPageReqDTO extends PageParam {
|
|||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
private LocalDateTime[] createTime;
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
|
@Schema(description = "是否是公司")
|
||||||
|
private Boolean isCompany;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package com.zt.plat.module.base.api.departmentmaterial.dto;
|
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 io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组织架构物料 Response DTO
|
* 组织架构物料 Response DTO
|
||||||
@@ -58,4 +61,13 @@ public class DepartmentMaterialRespDTO {
|
|||||||
|
|
||||||
@Schema(description = "状态编码")
|
@Schema(description = "状态编码")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
@Schema(description = "物料基础字段 + 属性编码->原值的动态键值,基础字段优先,序列化时直接展开为顶层字段")
|
||||||
|
private Map<String, Object> flatAttributes;
|
||||||
|
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Object> getFlatAttributes() {
|
||||||
|
return flatAttributes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,4 +45,9 @@ public class DepartmentMaterialPageReqVO extends PageParam {
|
|||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
private LocalDateTime[] createTime;
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
|
@Schema(description = "是否是公司")
|
||||||
|
private Boolean isCompany;
|
||||||
|
|
||||||
|
@Schema(description = "部门ID集合(内部使用)")
|
||||||
|
private List<Long> deptIds;
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
package com.zt.plat.module.base.controller.admin.departmentmaterial.vo;
|
package com.zt.plat.module.base.controller.admin.departmentmaterial.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -77,4 +79,13 @@ public class DepartmentMaterialRespVO {
|
|||||||
// base_material_status 系统字典取值
|
// base_material_status 系统字典取值
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
|
@Schema(description = "物料基础字段 + 属性编码->原值的动态键值,基础字段优先,序列化时直接展开为顶层字段")
|
||||||
|
private Map<String, Object> flatAttributes;
|
||||||
|
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Object> getFlatAttributes() {
|
||||||
|
return flatAttributes;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -23,6 +23,7 @@ public interface DepartmentMaterialMapper extends BaseMapperX<DepartmentMaterial
|
|||||||
.inIfPresent(DepartmentMaterialDO::getInfomationId, reqVO.getInfomationIds())
|
.inIfPresent(DepartmentMaterialDO::getInfomationId, reqVO.getInfomationIds())
|
||||||
.eqIfPresent(DepartmentMaterialDO::getClassesId, reqVO.getClassesId())
|
.eqIfPresent(DepartmentMaterialDO::getClassesId, reqVO.getClassesId())
|
||||||
.eqIfPresent(DepartmentMaterialDO::getDeptId, reqVO.getDeptId())
|
.eqIfPresent(DepartmentMaterialDO::getDeptId, reqVO.getDeptId())
|
||||||
|
.inIfPresent(DepartmentMaterialDO::getDeptId, reqVO.getDeptIds())
|
||||||
.eqIfPresent(DepartmentMaterialDO::getDictionaryDataValue, reqVO.getDictionaryDataValue())
|
.eqIfPresent(DepartmentMaterialDO::getDictionaryDataValue, reqVO.getDictionaryDataValue())
|
||||||
.eqIfPresent(DepartmentMaterialDO::getStatus, reqVO.getStatus())
|
.eqIfPresent(DepartmentMaterialDO::getStatus, reqVO.getStatus())
|
||||||
.eqIfPresent(DepartmentMaterialDO::getRemark, reqVO.getRemark())
|
.eqIfPresent(DepartmentMaterialDO::getRemark, reqVO.getRemark())
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user