Browse Source

字典和参数回显

chengyao 3 years ago
parent
commit
a1d5b353ed

+ 2 - 0
common/src/main/java/com/lantone/common/vo/GetHospitalSetVO.java

@@ -8,6 +8,8 @@ import java.io.Serializable;
 public class GetHospitalSetVO implements Serializable {
     private static final long serialVersionUID = 1L;
 
+    @ApiModelProperty(value = "id")
+    private Long id;
 
     /**
      * 组织机构ID

+ 3 - 0
security-center/src/main/java/com/lantone/security/facade/DictionaryManagementFacade.java

@@ -77,6 +77,9 @@ public class DictionaryManagementFacade {
         if (null != getDictionaryVO.getGroupType()) {
             dictionaryInfoLambdaQuery.like(DictionaryInfo::getGroupType, getDictionaryVO.getGroupType());
         }
+        if (null != getDictionaryVO.getId()) {
+            dictionaryInfoLambdaQuery.eq(DictionaryInfo::getId, getDictionaryVO.getId());
+        }
         dictionaryInfoLambdaQuery.orderByDesc(DictionaryInfo::getGmtCreate);
         IPage<DictionaryInfo> page = dictionaryInfoLambdaQuery.page(pageInfo);
         page.getRecords().forEach(obj -> {

+ 1 - 0
security-center/src/main/java/com/lantone/security/facade/HospitalSetManagementFacade.java

@@ -77,6 +77,7 @@ public class HospitalSetManagementFacade {
         if (null != getHospitalSetVO.getCode()) {
             hospitalSetLambdaQuery.like(HospitalSet::getCode, getHospitalSetVO.getCode());
         }
+        hospitalSetLambdaQuery.eq(null != getHospitalSetVO.getId(),HospitalSet::getId, getHospitalSetVO.getId());
         hospitalSetLambdaQuery.orderByDesc(HospitalSet::getGmtCreate);
         IPage<HospitalSet> page = hospitalSetLambdaQuery.page(pageInfo);
         return page;