修复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

@@ -45,4 +45,9 @@ public class DepartmentMaterialPageReqVO extends PageParam {
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
@Schema(description = "是否是公司")
private Boolean isCompany;
@Schema(description = "部门ID集合(内部使用)")
private List<Long> deptIds;
}

View File

@@ -1,5 +1,7 @@
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 lombok.*;
import java.util.*;
@@ -77,4 +79,13 @@ public class DepartmentMaterialRespVO {
// base_material_status 系统字典取值
private String status;
@JsonIgnore
@Schema(description = "物料基础字段 + 属性编码->原值的动态键值,基础字段优先,序列化时直接展开为顶层字段")
private Map<String, Object> flatAttributes;
@JsonAnyGetter
public Map<String, Object> getFlatAttributes() {
return flatAttributes;
}
}

View File

@@ -23,6 +23,7 @@ public interface DepartmentMaterialMapper extends BaseMapperX<DepartmentMaterial
.inIfPresent(DepartmentMaterialDO::getInfomationId, reqVO.getInfomationIds())
.eqIfPresent(DepartmentMaterialDO::getClassesId, reqVO.getClassesId())
.eqIfPresent(DepartmentMaterialDO::getDeptId, reqVO.getDeptId())
.inIfPresent(DepartmentMaterialDO::getDeptId, reqVO.getDeptIds())
.eqIfPresent(DepartmentMaterialDO::getDictionaryDataValue, reqVO.getDictionaryDataValue())
.eqIfPresent(DepartmentMaterialDO::getStatus, reqVO.getStatus())
.eqIfPresent(DepartmentMaterialDO::getRemark, reqVO.getRemark())