Explorar el Código

字段 新增是否删除

tags/24080901
PoffyZhang hace 1 año
padre
commit
a7999b0e51
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  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 Ver fichero

@@ -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 Ver fichero

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

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

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

Cargando…
Cancelar
Guardar