Sfoglia il codice sorgente

字段 新增是否删除

master
PoffyZhang 1 anno fa
parent
commit
a7999b0e51
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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 Vedi 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 Vedi File

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

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

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

Loading…
Annulla
Salva