Przeglądaj źródła

【NEW】增加接口

zhaomn 2 lat temu
rodzic
commit
0fd516a1c0

+ 38 - 0
railway-business/src/main/java/com/railway/business/bi/controller/ShowTestPlanDtController.java

@@ -0,0 +1,38 @@
+package com.railway.business.bi.controller;
+
+import com.railway.business.bi.domain.ShowTestPlanDt;
+import com.railway.business.bi.service.IShowTestPlanDtService;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.page.TableDataInfo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import java.util.List;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author zhaomn
+ */
+@Api(value = "rest/bi", tags = "大屏展示-试验计划兑现情况-单体")
+@RestController
+@Validated
+@RequestMapping(value = "show/syjhdx/dt")
+public class ShowTestPlanDtController extends BaseController {
+
+  private final IShowTestPlanDtService showTestPlanDtService;
+
+  public ShowTestPlanDtController(IShowTestPlanDtService showTestPlanDtService) {
+    this.showTestPlanDtService = showTestPlanDtService;
+  }
+
+  @ApiOperation(value = "列表")
+  @GetMapping(value = "/list")
+  public TableDataInfo getList(ShowTestPlanDt showTestPlanDt) {
+    startPage();
+    List<ShowTestPlanDt> list = showTestPlanDtService.getList(showTestPlanDt);
+    return getDataTable(list);
+  }
+
+}

+ 39 - 0
railway-business/src/main/java/com/railway/business/bi/controller/ShowTestPlanKgController.java

@@ -0,0 +1,39 @@
+package com.railway.business.bi.controller;
+
+import com.railway.business.bi.domain.ShowTestPlanKg;
+import com.railway.business.bi.service.IShowTestPlanKgService;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.page.TableDataInfo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import java.util.List;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author zhaomn
+ */
+@Api(value = "rest/bi", tags = "大屏展示-试验计划兑现情况-开关分合")
+@RestController
+@Validated
+@RequestMapping(value = "show/syjhdx/kg")
+public class ShowTestPlanKgController extends BaseController {
+
+  private final IShowTestPlanKgService showTestPlanKgService;
+
+  public ShowTestPlanKgController(IShowTestPlanKgService showTestPlanKgService) {
+    this.showTestPlanKgService = showTestPlanKgService;
+  }
+
+
+  @ApiOperation(value = "列表")
+  @GetMapping(value = "/list")
+  public TableDataInfo getList(ShowTestPlanKg showTestPlanKg) {
+    startPage();
+    List<ShowTestPlanKg> list = showTestPlanKgService.getList(showTestPlanKg);
+    return getDataTable(list);
+  }
+
+}

+ 3 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowBpdjxjh.java

@@ -49,6 +49,9 @@ public class ShowBpdjxjh extends BaseEntity {
   @Length(min = 1, max = 255, message = "【兑现日期】长度必须介于 {min} 和 {max} 之间")
   private String completionDate;
 
+  @ApiModelProperty(value = "del_flag")
+  private String delFlag;
+
   public ShowBpdjxjh() {
   }
 

+ 3 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowGsd.java

@@ -88,6 +88,9 @@ public class ShowGsd extends BaseEntity {
   @Length(min = 1, max = 255, message = "【当月未完成原因】长度必须介于 {min} 和 {max} 之间")
   private String overdueReason;
 
+  @ApiModelProperty(value = "del_flag")
+  private String delFlag;
+
   public ShowGsd() {
   }
 

+ 3 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowGsy.java

@@ -73,6 +73,9 @@ public class ShowGsy extends BaseEntity {
   @Length(min = 1, max = 255, message = "【当月未完成原因】长度必须介于 {min} 和 {max} 之间")
   private String overdueReason;
 
+  @ApiModelProperty(value = "del_flag")
+  private String delFlag;
+
   public ShowGsy() {
   }
 

+ 56 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowTestPlanDt.java

@@ -0,0 +1,56 @@
+package com.railway.business.bi.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Date;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.hibernate.validator.constraints.Length;
+
+/**
+ * 大屏展示-试验计划兑现情况-单体
+ *
+ * @author ZhaoMn 2023-02-09
+ */
+@Data
+@ApiModel("大屏展示-试验计划兑现情况-单体")
+@EqualsAndHashCode(callSuper = true)
+public class ShowTestPlanDt extends BaseEntity {
+
+  @ApiModelProperty(value = "主键", hidden = true)
+  private String id;
+
+  @ApiModelProperty(value = "线路名称")
+  @Length(min = 1, max = 255, message = "【线路名称】长度必须介于 {min} 和 {max} 之间")
+  private String lineName;
+
+  @ApiModelProperty(value = "所亭名称")
+  @Length(min = 1, max = 255, message = "【所亭名称】长度必须介于 {min} 和 {max} 之间")
+  private String substationName;
+
+  @ApiModelProperty(value = "设备名称")
+  @Length(min = 1, max = 255, message = "【设备名称】长度必须介于 {min} 和 {max} 之间")
+  private String sbmc;
+
+  @ApiModelProperty(value = "运行编号")
+  @Length(min = 1, max = 255, message = "【运行编号】长度必须介于 {min} 和 {max} 之间")
+  private String yxbh;
+
+  @ApiModelProperty(value = "试验周期")
+  @Length(min = 1, max = 255, message = "【试验周期】长度必须介于 {min} 和 {max} 之间")
+  private String testCycle;
+
+  @ApiModelProperty(value = "计划试验日期")
+  private Date testPlanDate;
+
+  @ApiModelProperty(value = "完成日期")
+  private Date completionDate;
+
+  @ApiModelProperty(value = "del_flag")
+  private String delFlag;
+
+  public ShowTestPlanDt() {
+  }
+
+}

+ 48 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowTestPlanKg.java

@@ -0,0 +1,48 @@
+package com.railway.business.bi.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Date;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.hibernate.validator.constraints.Length;
+
+/**
+ * 大屏展示-试验计划兑现情况-开关分合
+ *
+ * @author ZhaoMn 2023-02-09
+ */
+@Data
+@ApiModel("大屏展示-试验计划兑现情况-开关分合")
+@EqualsAndHashCode(callSuper = true)
+public class ShowTestPlanKg extends BaseEntity {
+
+  @ApiModelProperty(value = "主键", hidden = true)
+  private String id;
+
+  @ApiModelProperty(value = "线别")
+  @Length(min = 1, max = 255, message = "【线别】长度必须介于 {min} 和 {max} 之间")
+  private String lineName;
+
+  @ApiModelProperty(value = "控制单元处所")
+  @Length(min = 1, max = 255, message = "【控制单元处所】长度必须介于 {min} 和 {max} 之间")
+  private String substationName;
+
+  @ApiModelProperty(value = "开关编号")
+  @Length(min = 1, max = 255, message = "【开关编号】长度必须介于 {min} 和 {max} 之间")
+  private String kgbh;
+
+  @ApiModelProperty(value = "计划时间")
+  private Date testPlanDate;
+
+  @ApiModelProperty(value = "实际时间")
+  private Date completionDate;
+
+  @ApiModelProperty(value = "del_flag")
+  private String delFlag;
+
+  public ShowTestPlanKg() {
+  }
+
+}

+ 44 - 0
railway-business/src/main/java/com/railway/business/bi/mapper/ShowTestPlanDtMapper.java

@@ -0,0 +1,44 @@
+package com.railway.business.bi.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.bi.domain.ShowTestPlanDt;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+ * 大屏展示-试验计划兑现情况-单体
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+@Mapper
+@Repository
+public interface ShowTestPlanDtMapper {
+
+  /**
+   * 新增
+   */
+  int insert(ShowTestPlanDt showTestPlanDt);
+
+  /**
+   * 删除
+   */
+  int delete(@Param("id") String id);
+
+  /**
+   * 更新
+   */
+  int update(ShowTestPlanDt showTestPlanDt);
+
+  /**
+   * 获取单个
+   */
+  ShowTestPlanDt getInfo(@Param("id") String id);
+
+  /**
+   * 查询列表
+   */
+  Page<ShowTestPlanDt> getList(ShowTestPlanDt showTestPlanDt);
+
+}

+ 44 - 0
railway-business/src/main/java/com/railway/business/bi/mapper/ShowTestPlanKgMapper.java

@@ -0,0 +1,44 @@
+package com.railway.business.bi.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.bi.domain.ShowTestPlanKg;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+ * 大屏展示-试验计划兑现情况-开关分合
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+@Mapper
+@Repository
+public interface ShowTestPlanKgMapper {
+
+  /**
+   * 新增
+   */
+  int insert(ShowTestPlanKg showTestPlanKg);
+
+  /**
+   * 删除
+   */
+  int delete(@Param("id") String id);
+
+  /**
+   * 更新
+   */
+  int update(ShowTestPlanKg showTestPlanKg);
+
+  /**
+   * 获取单个
+   */
+  ShowTestPlanKg getInfo(@Param("id") String id);
+
+  /**
+   * 查询列表
+   */
+  Page<ShowTestPlanKg> getList(ShowTestPlanKg showTestPlanKg);
+
+}

+ 19 - 0
railway-business/src/main/java/com/railway/business/bi/service/IShowTestPlanDtService.java

@@ -0,0 +1,19 @@
+package com.railway.business.bi.service;
+
+import com.railway.business.bi.domain.ShowTestPlanDt;
+import java.util.List;
+
+/**
+ * 大屏展示-试验计划兑现情况-单体
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+public interface IShowTestPlanDtService {
+
+  /**
+   * 查询列表
+   */
+  List<ShowTestPlanDt> getList(ShowTestPlanDt showTestPlanDt);
+
+}

+ 19 - 0
railway-business/src/main/java/com/railway/business/bi/service/IShowTestPlanKgService.java

@@ -0,0 +1,19 @@
+package com.railway.business.bi.service;
+
+import com.railway.business.bi.domain.ShowTestPlanKg;
+import java.util.List;
+
+/**
+ * 大屏展示-试验计划兑现情况-开关分合
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+public interface IShowTestPlanKgService {
+
+  /**
+   * 查询列表
+   */
+  List<ShowTestPlanKg> getList(ShowTestPlanKg showTestPlanKg);
+
+}

+ 32 - 0
railway-business/src/main/java/com/railway/business/bi/service/impl/ShowTestPlanDtServiceImpl.java

@@ -0,0 +1,32 @@
+package com.railway.business.bi.service.impl;
+
+import com.railway.business.bi.domain.ShowTestPlanDt;
+import com.railway.business.bi.mapper.ShowTestPlanDtMapper;
+import com.railway.business.bi.service.IShowTestPlanDtService;
+import java.util.List;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * 大屏展示-试验计划兑现情况-单体
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+@Service
+@Transactional(readOnly = true)
+public class ShowTestPlanDtServiceImpl implements IShowTestPlanDtService {
+
+  private final ShowTestPlanDtMapper showTestPlanDtMapper;
+
+  public ShowTestPlanDtServiceImpl(ShowTestPlanDtMapper showTestPlanDtMapper) {
+    this.showTestPlanDtMapper = showTestPlanDtMapper;
+  }
+
+  /**
+   * 查询列表
+   */
+  public List<ShowTestPlanDt> getList(ShowTestPlanDt showTestPlanDt) {
+    return showTestPlanDtMapper.getList(showTestPlanDt);
+  }
+}

+ 32 - 0
railway-business/src/main/java/com/railway/business/bi/service/impl/ShowTestPlanKgServiceImpl.java

@@ -0,0 +1,32 @@
+package com.railway.business.bi.service.impl;
+
+import com.railway.business.bi.domain.ShowTestPlanKg;
+import com.railway.business.bi.mapper.ShowTestPlanKgMapper;
+import com.railway.business.bi.service.IShowTestPlanKgService;
+import java.util.List;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * 大屏展示-试验计划兑现情况-开关分合
+ *
+ * @author ZhaoMn
+ * @date 2023/02/09
+ */
+@Service
+@Transactional(readOnly = true)
+public class ShowTestPlanKgServiceImpl implements IShowTestPlanKgService {
+
+  private final ShowTestPlanKgMapper showTestPlanKgMapper;
+
+  public ShowTestPlanKgServiceImpl(ShowTestPlanKgMapper showTestPlanKgMapper) {
+    this.showTestPlanKgMapper = showTestPlanKgMapper;
+  }
+
+  /**
+   * 查询列表
+   */
+  public List<ShowTestPlanKg> getList(ShowTestPlanKg showTestPlanKg) {
+    return showTestPlanKgMapper.getList(showTestPlanKg);
+  }
+}

+ 200 - 0
railway-business/src/main/resources/mapper/bi/ShowTestPlanDtMapper.xml

@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.railway.business.bi.mapper.ShowTestPlanDtMapper">
+
+  <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowTestPlanDt">
+    <result column="id" property="id"/>
+    <result column="line_name" property="lineName"/>
+    <result column="substation_name" property="substationName"/>
+    <result column="sbmc" property="sbmc"/>
+    <result column="yxbh" property="yxbh"/>
+    <result column="test_cycle" property="testCycle"/>
+    <result column="test_plan_date" property="testPlanDate"/>
+    <result column="completion_date" property="completionDate"/>
+    <result column="create_by" property="createBy"/>
+    <result column="create_time" property="createTime"/>
+    <result column="update_by" property="updateBy"/>
+    <result column="update_time" property="updateTime"/>
+    <result column="del_flag" property="delFlag"/>
+  </resultMap>
+
+  <sql id="Base_Column_List">
+    id,
+    line_name,
+    substation_name,
+    sbmc,
+    yxbh,
+    test_cycle,
+    test_plan_date,
+    completion_date,
+    create_by,
+    create_time,
+    update_by,
+    update_time,
+    del_flag
+  </sql>
+
+  <insert id="insert" parameterType="com.railway.business.bi.domain.ShowTestPlanDt">
+    <selectKey keyProperty="id" order="BEFORE" resultType="String">
+      select replace(uuid(), '-', '') from dual
+    </selectKey>
+    INSERT INTO show_test_plan_dt
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test='null != lineName'>
+        line_name,
+      </if>
+      <if test='null != substationName'>
+        substation_name,
+      </if>
+      <if test='null != sbmc'>
+        sbmc,
+      </if>
+      <if test='null != yxbh'>
+        yxbh,
+      </if>
+      <if test='null != testCycle'>
+        test_cycle,
+      </if>
+      <if test='null != testPlanDate'>
+        test_plan_date,
+      </if>
+      <if test='null != completionDate'>
+        completion_date,
+      </if>
+      <if test='null != createBy'>
+        create_by,
+      </if>
+      <if test='null != createTime'>
+        create_time,
+      </if>
+      <if test='null != updateBy'>
+        update_by,
+      </if>
+      <if test='null != updateTime'>
+        update_time,
+      </if>
+      <if test='null != delFlag'>
+        del_flag
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test='null != lineName'>
+        #{lineName},
+      </if>
+      <if test='null != substationName'>
+        #{substationName},
+      </if>
+      <if test='null != sbmc'>
+        #{sbmc},
+      </if>
+      <if test='null != yxbh'>
+        #{yxbh},
+      </if>
+      <if test='null != testCycle'>
+        #{testCycle},
+      </if>
+      <if test='null != testPlanDate'>
+        #{testPlanDate},
+      </if>
+      <if test='null != completionDate'>
+        #{completionDate},
+      </if>
+      <if test='null != createBy'>
+        #{createBy},
+      </if>
+      <if test='null != createTime'>
+        #{createTime},
+      </if>
+      <if test='null != updateBy'>
+        #{updateBy},
+      </if>
+      <if test='null != updateTime'>
+        #{updateTime},
+      </if>
+      <if test='null != delFlag'>
+        #{delFlag}
+      </if>
+    </trim>
+  </insert>
+
+  <delete id="delete">
+    UPDATE show_test_plan_dt
+    set del_flag='1'
+    WHERE id = #{id}
+  </delete>
+
+  <update id="update" parameterType="com.railway.business.bi.domain.ShowTestPlanDt">
+    UPDATE show_test_plan_dt
+    <set>
+      <if test='null != lineName'>line_name = #{lineName},</if>
+      <if test='null != substationName'>substation_name = #{substationName},</if>
+      <if test='null != sbmc'>sbmc = #{sbmc},</if>
+      <if test='null != yxbh'>yxbh = #{yxbh},</if>
+      <if test='null != testCycle'>test_cycle = #{testCycle},</if>
+      <if test='null != testPlanDate'>test_plan_date = #{testPlanDate},</if>
+      <if test='null != completionDate'>completion_date = #{completionDate},</if>
+      <if test='null != createBy'>create_by = #{createBy},</if>
+      <if test='null != createTime'>create_time = #{createTime},</if>
+      <if test='null != updateBy'>update_by = #{updateBy},</if>
+      <if test='null != updateTime'>update_time = #{updateTime},</if>
+      <if test='null != delFlag'>del_flag = #{delFlag}</if>
+    </set>
+    WHERE id = #{id}
+  </update>
+
+
+  <select id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_test_plan_dt
+    WHERE del_flag='0' and id = #{id}
+
+  </select>
+
+  <select id="getList" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_test_plan_dt
+    <where>
+      del_flag='0'
+      <if test="lineName!=null and lineName!=''">
+        and line_name=#{lineName}
+      </if>
+      <if test="substationName!=null and substationName!=''">
+        and substation_name=#{substationName}
+      </if>
+      <if test="sbmc!=null and sbmc!=''">
+        and sbmc=#{sbmc}
+      </if>
+      <if test="yxbh!=null and yxbh!=''">
+        and yxbh=#{yxbh}
+      </if>
+      <if test="testCycle!=null and testCycle!=''">
+        and test_cycle=#{testCycle}
+      </if>
+      <if test="testPlanDate!=null and testPlanDate!=''">
+        and test_plan_date=#{testPlanDate}
+      </if>
+      <if test="completionDate!=null and completionDate!=''">
+        and completion_date=#{completionDate}
+      </if>
+      <if test="createBy!=null and createBy!=''">
+        and create_by=#{createBy}
+      </if>
+      <if test="createTime!=null and createTime!=''">
+        and create_time=#{createTime}
+      </if>
+      <if test="updateBy!=null and updateBy!=''">
+        and update_by=#{updateBy}
+      </if>
+      <if test="updateTime!=null and updateTime!=''">
+        and update_time=#{updateTime}
+      </if>
+      <if test="delFlag!=null and delFlag!=''">
+        and del_flag=#{delFlag}
+      </if>
+    </where>
+  </select>
+
+</mapper>

+ 176 - 0
railway-business/src/main/resources/mapper/bi/ShowTestPlanKgMapper.xml

@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.railway.business.bi.mapper.ShowTestPlanKgMapper">
+
+  <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowTestPlanKg">
+    <result column="id" property="id"/>
+    <result column="line_name" property="lineName"/>
+    <result column="substation_name" property="substationName"/>
+    <result column="kgbh" property="kgbh"/>
+    <result column="test_plan_date" property="testPlanDate"/>
+    <result column="completion_date" property="completionDate"/>
+    <result column="create_by" property="createBy"/>
+    <result column="create_time" property="createTime"/>
+    <result column="update_by" property="updateBy"/>
+    <result column="update_time" property="updateTime"/>
+    <result column="del_flag" property="delFlag"/>
+  </resultMap>
+
+  <sql id="Base_Column_List">
+    id,
+    line_name,
+    substation_name,
+    kgbh,
+    test_plan_date,
+    completion_date,
+    create_by,
+    create_time,
+    update_by,
+    update_time,
+    del_flag
+  </sql>
+
+  <insert id="insert" parameterType="com.railway.business.bi.domain.ShowTestPlanKg">
+    <selectKey keyProperty="id" order="BEFORE" resultType="String">
+      select replace(uuid(), '-', '') from dual
+    </selectKey>
+    INSERT INTO show_test_plan_kg
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test='null != lineName'>
+        line_name,
+      </if>
+      <if test='null != substationName'>
+        substation_name,
+      </if>
+      <if test='null != kgbh'>
+        kgbh,
+      </if>
+      <if test='null != testPlanDate'>
+        test_plan_date,
+      </if>
+      <if test='null != completionDate'>
+        completion_date,
+      </if>
+      <if test='null != createBy'>
+        create_by,
+      </if>
+      <if test='null != createTime'>
+        create_time,
+      </if>
+      <if test='null != updateBy'>
+        update_by,
+      </if>
+      <if test='null != updateTime'>
+        update_time,
+      </if>
+      <if test='null != delFlag'>
+        del_flag
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test='null != lineName'>
+        #{lineName},
+      </if>
+      <if test='null != substationName'>
+        #{substationName},
+      </if>
+      <if test='null != kgbh'>
+        #{kgbh},
+      </if>
+      <if test='null != testPlanDate'>
+        #{testPlanDate},
+      </if>
+      <if test='null != completionDate'>
+        #{completionDate},
+      </if>
+      <if test='null != createBy'>
+        #{createBy},
+      </if>
+      <if test='null != createTime'>
+        #{createTime},
+      </if>
+      <if test='null != updateBy'>
+        #{updateBy},
+      </if>
+      <if test='null != updateTime'>
+        #{updateTime},
+      </if>
+      <if test='null != delFlag'>
+        #{delFlag}
+      </if>
+    </trim>
+  </insert>
+
+  <delete id="delete">
+    UPDATE show_test_plan_kg
+    set del_flag='1'
+    WHERE id = #{id}
+  </delete>
+
+  <update id="update" parameterType="com.railway.business.bi.domain.ShowTestPlanKg">
+    UPDATE show_test_plan_kg
+    <set>
+      <if test='null != lineName'>line_name = #{lineName},</if>
+      <if test='null != substationName'>substation_name = #{substationName},</if>
+      <if test='null != kgbh'>kgbh = #{kgbh},</if>
+      <if test='null != testPlanDate'>test_plan_date = #{testPlanDate},</if>
+      <if test='null != completionDate'>completion_date = #{completionDate},</if>
+      <if test='null != createBy'>create_by = #{createBy},</if>
+      <if test='null != createTime'>create_time = #{createTime},</if>
+      <if test='null != updateBy'>update_by = #{updateBy},</if>
+      <if test='null != updateTime'>update_time = #{updateTime},</if>
+      <if test='null != delFlag'>del_flag = #{delFlag}</if>
+    </set>
+    WHERE id = #{id}
+  </update>
+
+
+  <select id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_test_plan_kg
+    WHERE del_flag='0' and id = #{id}
+
+  </select>
+
+  <select id="getList" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_test_plan_kg
+    <where>
+      del_flag='0'
+      <if test="lineName!=null and lineName!=''">
+        and line_name=#{lineName}
+      </if>
+      <if test="substationName!=null and substationName!=''">
+        and substation_name=#{substationName}
+      </if>
+      <if test="kgbh!=null and kgbh!=''">
+        and kgbh=#{kgbh}
+      </if>
+      <if test="testPlanDate!=null and testPlanDate!=''">
+        and test_plan_date=#{testPlanDate}
+      </if>
+      <if test="completionDate!=null and completionDate!=''">
+        and completion_date=#{completionDate}
+      </if>
+      <if test="createBy!=null and createBy!=''">
+        and create_by=#{createBy}
+      </if>
+      <if test="createTime!=null and createTime!=''">
+        and create_time=#{createTime}
+      </if>
+      <if test="updateBy!=null and updateBy!=''">
+        and update_by=#{updateBy}
+      </if>
+      <if test="updateTime!=null and updateTime!=''">
+        and update_time=#{updateTime}
+      </if>
+      <if test="delFlag!=null and delFlag!=''">
+        and del_flag=#{delFlag}
+      </if>
+    </where>
+  </select>
+
+</mapper>