Browse Source

字段 新增是否删除

tags/24080901
PoffyZhang 1 year ago
parent
commit
a7999b0e51
2 changed files with 5 additions and 1 deletions
  1. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java
  2. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/model/entity/GovProjectDictionary.java

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/gov/manage/GovProjectCollectionManage.java View File

@@ -73,7 +73,8 @@ public class GovProjectCollectionManage {
public List<GovProjectDictionaryVO> dictionary(String type) {

List<GovProjectDictionary> dictionaries = dictionaryService.list(Wrappers.lambdaQuery(GovProjectDictionary.class)
.eq(StringUtils.isNotBlank(type), GovProjectDictionary::getType, type));
.eq(StringUtils.isNotBlank(type), GovProjectDictionary::getType, type)
.eq(GovProjectDictionary::getDeleted,Boolean.FALSE));

if(CollUtil.isEmpty(dictionaries)){
return Collections.emptyList();


+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/model/entity/GovProjectDictionary.java View File

@@ -43,4 +43,7 @@ public class GovProjectDictionary implements Serializable {

@ApiModelProperty("备注")
private String remark;

@ApiModelProperty("是否删除")
private Boolean deleted;
}

Loading…
Cancel
Save