Forráskód Böngészése

下来菜单修改

wangfeng 4 éve
szülő
commit
d339f3530d

+ 19 - 12
src/main/java/com/diagbot/entity/KlRulePlan.java

@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 
 import java.io.Serializable;
+import java.time.LocalDateTime;
 import java.util.Date;
 
 /**
@@ -48,6 +49,7 @@ public class KlRulePlan implements Serializable {
      * 修改人,如果为0则表示纪录未修改
      */
     private String modifier;
+    private String planCode;
 
     /**
      * 规则类型(1:开单合理性;2:高危;3:危急值;4:其他值提醒;5:其他值提醒输血;6:正常项目重复开立)
@@ -71,6 +73,7 @@ public class KlRulePlan implements Serializable {
      */
     private String code;
 
+    private Integer firstPlace;
     /**
      * 显示顺序
      */
@@ -78,6 +81,22 @@ public class KlRulePlan implements Serializable {
 
     private String remark;
 
+    public String getPlanCode() {
+        return planCode;
+    }
+
+    public void setPlanCode(String planCode) {
+        this.planCode = planCode;
+    }
+
+    public Integer getFirstPlace() {
+        return firstPlace;
+    }
+
+    public void setFirstPlace(Integer firstPlace) {
+        this.firstPlace = firstPlace;
+    }
+
     public Integer getNumber() {
         return number;
     }
@@ -93,7 +112,6 @@ public class KlRulePlan implements Serializable {
     public void setId(Long id) {
         this.id = id;
     }
-
     public String getIsDeleted() {
         return isDeleted;
     }
@@ -101,7 +119,6 @@ public class KlRulePlan implements Serializable {
     public void setIsDeleted(String isDeleted) {
         this.isDeleted = isDeleted;
     }
-
     public Date getGmtCreate() {
         return gmtCreate;
     }
@@ -109,7 +126,6 @@ public class KlRulePlan implements Serializable {
     public void setGmtCreate(Date gmtCreate) {
         this.gmtCreate = gmtCreate;
     }
-
     public Date getGmtModified() {
         return gmtModified;
     }
@@ -117,7 +133,6 @@ public class KlRulePlan implements Serializable {
     public void setGmtModified(Date gmtModified) {
         this.gmtModified = gmtModified;
     }
-
     public String getCreator() {
         return creator;
     }
@@ -125,7 +140,6 @@ public class KlRulePlan implements Serializable {
     public void setCreator(String creator) {
         this.creator = creator;
     }
-
     public String getModifier() {
         return modifier;
     }
@@ -133,7 +147,6 @@ public class KlRulePlan implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
-
     public Long getRuleType() {
         return ruleType;
     }
@@ -141,7 +154,6 @@ public class KlRulePlan implements Serializable {
     public void setRuleType(Long ruleType) {
         this.ruleType = ruleType;
     }
-
     public Long getParentId() {
         return parentId;
     }
@@ -149,7 +161,6 @@ public class KlRulePlan implements Serializable {
     public void setParentId(Long parentId) {
         this.parentId = parentId;
     }
-
     public String getName() {
         return name;
     }
@@ -157,7 +168,6 @@ public class KlRulePlan implements Serializable {
     public void setName(String name) {
         this.name = name;
     }
-
     public Integer getType() {
         return type;
     }
@@ -165,7 +175,6 @@ public class KlRulePlan implements Serializable {
     public void setType(Integer type) {
         this.type = type;
     }
-
     public String getCode() {
         return code;
     }
@@ -173,7 +182,6 @@ public class KlRulePlan implements Serializable {
     public void setCode(String code) {
         this.code = code;
     }
-
     public Integer getOrderNo() {
         return orderNo;
     }
@@ -181,7 +189,6 @@ public class KlRulePlan implements Serializable {
     public void setOrderNo(Integer orderNo) {
         this.orderNo = orderNo;
     }
-
     public String getRemark() {
         return remark;
     }

+ 2 - 0
src/main/java/com/diagbot/vo/KlRuleMenuVO.java

@@ -15,4 +15,6 @@ public class KlRuleMenuVO {
      * 规则类型(1:开单合理性;2:高危;3:危急值;4:其他值提醒;5:其他值提醒输血;6:正常项目重复开立)
      */
     private Integer ruleType;
+
+    private String planCode;
 }

+ 5 - 0
src/main/resources/mapper/KlRulePlanMapper.xml

@@ -10,12 +10,14 @@
         <result column="gmt_modified" property="gmtModified"/>
         <result column="creator" property="creator"/>
         <result column="modifier" property="modifier"/>
+        <result column="plan_code" property="planCode"/>
         <result column="rule_type" property="ruleType"/>
         <result column="parent_id" property="parentId"/>
         <result column="name" property="name"/>
         <result column="type" property="type"/>
         <result column="number" property="number"/>
         <result column="code" property="code"/>
+        <result column="first_place" property="firstPlace"/>
         <result column="order_no" property="orderNo"/>
         <result column="remark" property="remark"/>
     </resultMap>
@@ -24,5 +26,8 @@
         <if test="ruleType!=null">
             and rule_type = #{ruleType}
         </if>
+        <if test="planCode!=null and planCode !=''">
+            and plan_code = #{planCode}
+        </if>
     </select>
 </mapper>