Bläddra i källkod

字段 新增是否删除

master
PoffyZhang 1 år sedan
förälder
incheckning
a7999b0e51
2 ändrade filer med 5 tillägg och 1 borttagningar
  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 Visa fil

@@ -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 Visa fil

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

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

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

Laddar…
Avbryt
Spara