Commit a00b562e7c2049979ff652dfd5871a6af96c1c21
1 parent
ac1b737fa2
Exists in
master
and in
8 other branches
配置中心 化验项 参考项配置
Showing 1 changed file with 3 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/ReferConfigService.java
View file @
a00b562
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 | import com.lyms.platform.common.dao.operator.MongoCondition; |
5 | 5 | import com.lyms.platform.common.dao.operator.MongoOper; |
6 | 6 | import com.lyms.platform.common.dao.operator.MongoQuery; |
7 | +import com.lyms.platform.common.enums.YnEnums; | |
7 | 8 | import com.lyms.platform.common.result.BaseListResponse; |
8 | 9 | import com.lyms.platform.pojo.ReferValue; |
9 | 10 | import com.lyms.platform.query.ReferConfigQuery; |
... | ... | @@ -26,6 +27,7 @@ |
26 | 27 | } |
27 | 28 | |
28 | 29 | public void addRefer(ReferValue referValue) { |
30 | + referValue.setYn(YnEnums.YES.getId()); | |
29 | 31 | referConfigDao.addRefer(referValue); |
30 | 32 | } |
31 | 33 | |
... | ... | @@ -37,7 +39,7 @@ |
37 | 39 | public void delRefer(ReferValue referValue) { |
38 | 40 | MongoCondition mongoCondition = MongoCondition.newInstance(); |
39 | 41 | mongoCondition.and("id", referValue.getId(), MongoOper.IS); |
40 | - referValue.setYn(2); //软删除 | |
42 | + referValue.setYn(YnEnums.NO.getId()); //软删除 | |
41 | 43 | referConfigDao.updateRefer(mongoCondition.toMongoQuery(), referValue); |
42 | 44 | } |
43 | 45 | } |