Browse Source

修改代码2

wangfeng 4 years ago
parent
commit
acfac8b7cc

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

@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 
 import java.io.Serializable;
-import java.time.LocalDateTime;
 import java.util.Date;
 
 /**
@@ -72,7 +71,6 @@ public class KlRulePlan implements Serializable {
      */
     private String code;
 
-    private Integer firstPlace;
     /**
      * 显示顺序
      */
@@ -80,14 +78,6 @@ public class KlRulePlan implements Serializable {
 
     private String remark;
 
-    public Integer getFirstPlace() {
-        return firstPlace;
-    }
-
-    public void setFirstPlace(Integer firstPlace) {
-        this.firstPlace = firstPlace;
-    }
-
     public Integer getNumber() {
         return number;
     }
@@ -103,6 +93,7 @@ public class KlRulePlan implements Serializable {
     public void setId(Long id) {
         this.id = id;
     }
+
     public String getIsDeleted() {
         return isDeleted;
     }
@@ -110,6 +101,7 @@ public class KlRulePlan implements Serializable {
     public void setIsDeleted(String isDeleted) {
         this.isDeleted = isDeleted;
     }
+
     public Date getGmtCreate() {
         return gmtCreate;
     }
@@ -117,6 +109,7 @@ public class KlRulePlan implements Serializable {
     public void setGmtCreate(Date gmtCreate) {
         this.gmtCreate = gmtCreate;
     }
+
     public Date getGmtModified() {
         return gmtModified;
     }
@@ -124,6 +117,7 @@ public class KlRulePlan implements Serializable {
     public void setGmtModified(Date gmtModified) {
         this.gmtModified = gmtModified;
     }
+
     public String getCreator() {
         return creator;
     }
@@ -131,6 +125,7 @@ public class KlRulePlan implements Serializable {
     public void setCreator(String creator) {
         this.creator = creator;
     }
+
     public String getModifier() {
         return modifier;
     }
@@ -138,6 +133,7 @@ public class KlRulePlan implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
+
     public Long getRuleType() {
         return ruleType;
     }
@@ -145,6 +141,7 @@ public class KlRulePlan implements Serializable {
     public void setRuleType(Long ruleType) {
         this.ruleType = ruleType;
     }
+
     public Long getParentId() {
         return parentId;
     }
@@ -152,6 +149,7 @@ public class KlRulePlan implements Serializable {
     public void setParentId(Long parentId) {
         this.parentId = parentId;
     }
+
     public String getName() {
         return name;
     }
@@ -159,6 +157,7 @@ public class KlRulePlan implements Serializable {
     public void setName(String name) {
         this.name = name;
     }
+
     public Integer getType() {
         return type;
     }
@@ -166,6 +165,7 @@ public class KlRulePlan implements Serializable {
     public void setType(Integer type) {
         this.type = type;
     }
+
     public String getCode() {
         return code;
     }
@@ -173,6 +173,7 @@ public class KlRulePlan implements Serializable {
     public void setCode(String code) {
         this.code = code;
     }
+
     public Integer getOrderNo() {
         return orderNo;
     }
@@ -180,6 +181,7 @@ public class KlRulePlan implements Serializable {
     public void setOrderNo(Integer orderNo) {
         this.orderNo = orderNo;
     }
+
     public String getRemark() {
         return remark;
     }

+ 15 - 0
src/main/java/com/diagbot/vo/DictionaryInfoVO.java

@@ -0,0 +1,15 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @author wangfeng
+ * @Description:
+ * @date 2021-03-17 13:20
+ */
+@Setter
+@Getter
+public class DictionaryInfoVO {
+    private Integer groupType;
+}

+ 36 - 0
src/main/java/com/diagbot/web/KlDictionaryConller.java

@@ -0,0 +1,36 @@
+package com.diagbot.web;
+
+import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.DictionaryInfoDTO;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.facade.KlDictionaryInfoFacade;
+import com.diagbot.vo.DictionaryInfoVO;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * @author wangfeng
+ * @Description:
+ * @date 2021-03-17 13:14
+ */
+@RestController
+@RequestMapping("/kl/dictionary")
+@Api(value = "字典表信息相关API", tags = { "字典表信息相关API" })
+public class KlDictionaryConller {
+    @Autowired
+    KlDictionaryInfoFacade dictionaryFacade;
+
+    @ApiOperation(value = "根据分组获取字典表信息详情[by:wangfeng]")
+    @PostMapping("/getDictionaryInfo")
+    @SysLogger("getDictionaryInfo")
+    public RespDTO<List<DictionaryInfoDTO>> getDictionaryInfoAll(@RequestBody DictionaryInfoVO dictionaryInfoVO) {
+        return RespDTO.onSuc(dictionaryFacade.getListByGroupType(dictionaryInfoVO.getGroupType()));
+    }
+}

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

@@ -16,7 +16,6 @@
         <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>