Browse Source

操作人

wangfeng 4 years ago
parent
commit
f1d2039471

+ 5 - 0
src/main/java/com/diagbot/facade/KlRuleFacade.java

@@ -105,6 +105,7 @@ public class KlRuleFacade extends KlRuleServiceImpl {
                     .set(StringUtil.isNotBlank(klRuleInfoSaveVO.getParHasSub().toString()), "has_sub_cond", klRuleInfoSaveVO.getParHasSub())
                     .set(StringUtil.isNotBlank(klRuleInfoSaveVO.getParStatus().toString()), "status", klRuleInfoSaveVO.getParStatus())
                     .set(StringUtil.isNotBlank(klRuleInfoSaveVO.getParMsg()), "msg", klRuleInfoSaveVO.getParMsg())
+                    .set("modifier", klRuleInfoSaveVO.getModifier())
                     .set("gmt_modified", now);
             res = this.update(klRuleUpdate);
 
@@ -118,6 +119,8 @@ public class KlRuleFacade extends KlRuleServiceImpl {
             //先保存主表rule
             KlRule klRule = new KlRule();
             klRule.setConceptId(klRuleInfoSaveVO.getParConceptId());
+            klRule.setCreator(klRuleInfoSaveVO.getModifier());
+            klRule.setModifier(klRuleInfoSaveVO.getModifier());
             klRule.setDescription(klRuleInfoSaveVO.getParDescription());
             klRule.setHasSubCond(klRuleInfoSaveVO.getParHasSub());
             klRule.setRuleType(klRuleInfoSaveVO.getParRuleType());
@@ -185,6 +188,7 @@ public class KlRuleFacade extends KlRuleServiceImpl {
                 KlRuleCondition klRuleCondition = new KlRuleCondition();
                 KlRuleBase klRuleBase = new KlRuleBase();
                 klRuleBase.setGmtModified(now);
+                klRuleBase.setModifier(klRuleInfoSaveVO.getModifier());
                 klRuleBase.setConceptId(list.getSubConceptId());
                 klRuleBase.setType(list.getSubType());
                 klRuleBase.setDescription(list.getSubDescription());
@@ -202,6 +206,7 @@ public class KlRuleFacade extends KlRuleServiceImpl {
                 //再把数据保存在kl_rule_condition
                 if (res) {
                     klRuleCondition.setGmtCreate(now);
+                    klRuleCondition.setModifier(klRuleInfoSaveVO.getModifier());
                     klRuleCondition.setGroupType(list.getGroupType());
                     klRuleCondition.setRuleBaseId(klRuleBase.getId());
                     klRuleCondition.setRuleId(klRuleInfoSaveVO.getParId());

+ 1 - 0
src/main/java/com/diagbot/vo/KlRuleInfoSaveVO.java

@@ -32,5 +32,6 @@ public class KlRuleInfoSaveVO {
 /*    private String parlibName;
     private String parLenName;
     private String parLenCode;*/
+    private String modifier;
     private List<KlRuleInfoSaveSubVO> klRuleInfoSaveSub;
 }