Parcourir la source

【NEW】增加功能接口

zhaomn il y a 2 ans
Parent
commit
474a8cb183

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

@@ -0,0 +1,38 @@
+package com.railway.business.bi.controller;
+
+import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.service.IShowBdycService;
+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 = "bdyc")
+public class ShowBdycController extends BaseController {
+
+  private final IShowBdycService showBdycService;
+
+  public ShowBdycController(IShowBdycService showBdycService) {
+    this.showBdycService = showBdycService;
+  }
+
+  @ApiOperation(value = "列表")
+  @GetMapping(value = "/list")
+  public TableDataInfo getList(ShowBdyc showBdyc) {
+    startPage();
+    List<ShowBdyc> list = showBdycService.getList(showBdyc);
+    return getDataTable(list);
+  }
+
+}

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

@@ -0,0 +1,38 @@
+package com.railway.business.bi.controller;
+
+import com.railway.business.bi.domain.ShowDlyc;
+import com.railway.business.bi.service.IShowDlycService;
+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 = "dlyc")
+public class ShowDlycController extends BaseController {
+
+  private final IShowDlycService showDlycService;
+
+  public ShowDlycController(IShowDlycService showDlycService) {
+    this.showDlycService = showDlycService;
+  }
+
+  @ApiOperation(value = "列表")
+  @GetMapping(value = "/list")
+  public TableDataInfo getList(ShowDlyc showDlyc) {
+    startPage();
+    List<ShowDlyc> list = showDlycService.getList(showDlyc);
+    return getDataTable(list);
+  }
+
+}

+ 83 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowBdyc.java

@@ -0,0 +1,83 @@
+package com.railway.business.bi.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 大屏展示-变电异常信息详情表 row_format =
+ * @author author 2023-01-30
+ */
+@Data
+@ApiModel("大屏展示-变电异常信息详情表 row_format =")
+@EqualsAndHashCode(callSuper = true)
+public class ShowBdyc extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "发现时间")
+    private Date foundDate;
+
+    @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 stationName;
+
+    @ApiModelProperty(value = "缺陷设备名称")
+    @Length(min = 1, max = 255, message = "【缺陷设备名称】长度必须介于 {min} 和 {max} 之间")
+    private String qxsbmc;
+
+    @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 qxdj;
+
+    @ApiModelProperty(value = "缺陷内容")
+    @Length(min = 1, max = 255, message = "【缺陷内容】长度必须介于 {min} 和 {max} 之间")
+    private String qxnr;
+
+    @ApiModelProperty(value = "原因")
+    @Length(min = 1, max = 255, message = "【原因】长度必须介于 {min} 和 {max} 之间")
+    private String reason;
+
+    @ApiModelProperty(value = "责任部门")
+    @Length(min = 1, max = 255, message = "【责任部门】长度必须介于 {min} 和 {max} 之间")
+    private String zrbm;
+
+    @ApiModelProperty(value = "涉及工区")
+    @Length(min = 1, max = 255, message = "【涉及工区】长度必须介于 {min} 和 {max} 之间")
+    private String sjgq;
+
+    @ApiModelProperty(value = "整改情况")
+    @Length(min = 1, max = 255, message = "【整改情况】长度必须介于 {min} 和 {max} 之间")
+    private String rectifyResult;
+
+    @ApiModelProperty(value = "整改措施")
+    @Length(min = 1, max = 255, message = "【整改措施】长度必须介于 {min} 和 {max} 之间")
+    private String rectifyWay;
+
+    @ApiModelProperty(value = "整改时间")
+    private Date rectifyDate;
+
+    @ApiModelProperty(value = "计数")
+    private Integer counted;
+
+    @ApiModelProperty(value = "计划处理时间\n(每周倒排计划)")
+    private Date planDate;
+
+    public ShowBdyc() {
+    }
+
+}

+ 81 - 0
railway-business/src/main/java/com/railway/business/bi/domain/ShowDlyc.java

@@ -0,0 +1,81 @@
+package com.railway.business.bi.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 大屏展示-电力异常信息详情表 row_format =
+ * @author author 2023-01-30
+ */
+@Data
+@ApiModel("大屏展示-电力异常信息详情表 row_format =")
+@EqualsAndHashCode(callSuper = true)
+public class ShowDlyc extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "缺陷设备名称")
+    @Length(min = 1, max = 255, message = "【缺陷设备名称】长度必须介于 {min} 和 {max} 之间")
+    private String qxsbmc;
+
+    @ApiModelProperty(value = "工区")
+    @Length(min = 1, max = 255, message = "【工区】长度必须介于 {min} 和 {max} 之间")
+    private String ssgq;
+
+    @ApiModelProperty(value = "速度级别")
+    @Length(min = 1, max = 255, message = "【速度级别】长度必须介于 {min} 和 {max} 之间")
+    private String sdjb;
+
+    @ApiModelProperty(value = "线别")
+    @Length(min = 1, max = 255, message = "【线别】长度必须介于 {min} 和 {max} 之间")
+    private String lineName;
+
+    @ApiModelProperty(value = "发现日期")
+    private Date foundDate;
+
+    @ApiModelProperty(value = "缺陷内容")
+    @Length(min = 1, max = 255, message = "【缺陷内容】长度必须介于 {min} 和 {max} 之间")
+    private String qxnr;
+
+    @ApiModelProperty(value = "故障类别")
+    @Length(min = 1, max = 255, message = "【故障类别】长度必须介于 {min} 和 {max} 之间")
+    private String gzlb;
+
+    @ApiModelProperty(value = "原因")
+    @Length(min = 1, max = 255, message = "【原因】长度必须介于 {min} 和 {max} 之间")
+    private String reason;
+
+    @ApiModelProperty(value = "严重性")
+    @Length(min = 1, max = 255, message = "【严重性】长度必须介于 {min} 和 {max} 之间")
+    private String gravity;
+
+    @ApiModelProperty(value = "处理措施")
+    @Length(min = 1, max = 255, message = "【处理措施】长度必须介于 {min} 和 {max} 之间")
+    private String rectifyWay;
+
+    @ApiModelProperty(value = "处理结果")
+    @Length(min = 1, max = 255, message = "【处理结果】长度必须介于 {min} 和 {max} 之间")
+    private String rectifyResult;
+
+    @ApiModelProperty(value = "处理缺陷负责人")
+    @Length(min = 1, max = 255, message = "【处理缺陷负责人】长度必须介于 {min} 和 {max} 之间")
+    private String rectifyUser;
+
+    @ApiModelProperty(value = "消除日期")
+    private Date rectifyDate;
+
+    @ApiModelProperty(value = "计数")
+    @Length(min = 1, max = 255, message = "【计数】长度必须介于 {min} 和 {max} 之间")
+    private String counted;
+
+    public ShowDlyc() {
+    }
+
+}

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

@@ -0,0 +1,44 @@
+package com.railway.business.bi.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.bi.domain.ShowBdyc;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+ * 大屏展示-变电异常信息详情表 row_format =
+ *
+ * @author author
+ * @date 2023/01/30
+ */
+@Mapper
+@Repository
+public interface ShowBdycMapper {
+
+  /**
+   * 新增
+   */
+  int insert(ShowBdyc showBdyc);
+
+  /**
+   * 删除
+   */
+  int delete(@Param("id") String id);
+
+  /**
+   * 更新
+   */
+  int update(ShowBdyc showBdyc);
+
+  /**
+   * 获取单个
+   */
+  ShowBdyc getInfo(@Param("id") String id);
+
+  /**
+   * 查询列表
+   */
+  Page<ShowBdyc> getList(ShowBdyc showBdyc);
+
+}

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

@@ -0,0 +1,44 @@
+package com.railway.business.bi.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.bi.domain.ShowDlyc;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+ * 大屏展示-电力异常信息详情表 row_format =
+ *
+ * @author author
+ * @date 2023/01/30
+ */
+@Mapper
+@Repository
+public interface ShowDlycMapper {
+
+  /**
+   * 新增
+   */
+  int insert(ShowDlyc showDlyc);
+
+  /**
+   * 删除
+   */
+  int delete(@Param("id") String id);
+
+  /**
+   * 更新
+   */
+  int update(ShowDlyc showDlyc);
+
+  /**
+   * 获取单个
+   */
+  ShowDlyc getInfo(@Param("id") String id);
+
+  /**
+   * 查询列表
+   */
+  Page<ShowDlyc> getList(ShowDlyc showDlyc);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/bi/service/IShowBdycService.java

@@ -0,0 +1,37 @@
+package com.railway.business.bi.service;
+
+import com.railway.business.bi.domain.ShowBdyc;
+import java.util.List;
+/**
+* 大屏展示-变电异常信息详情表 row_format =
+* @author author
+* @date 2023/01/30
+*/
+public interface IShowBdycService{
+
+    /**
+    * 新增
+    */
+    int create(ShowBdyc showBdyc);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(ShowBdyc showBdyc);
+
+    /**
+    * 获取单个
+    */
+    ShowBdyc getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<ShowBdyc> getList(ShowBdyc showBdyc);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/bi/service/IShowDlycService.java

@@ -0,0 +1,37 @@
+package com.railway.business.bi.service;
+
+import com.railway.business.bi.domain.ShowDlyc;
+import java.util.List;
+/**
+* 大屏展示-电力异常信息详情表 row_format =
+* @author author
+* @date 2023/01/30
+*/
+public interface IShowDlycService{
+
+    /**
+    * 新增
+    */
+    int create(ShowDlyc showDlyc);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(ShowDlyc showDlyc);
+
+    /**
+    * 获取单个
+    */
+    ShowDlyc getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<ShowDlyc> getList(ShowDlyc showDlyc);
+
+}

+ 72 - 0
railway-business/src/main/java/com/railway/business/bi/service/impl/ShowBdycServiceImpl.java

@@ -0,0 +1,72 @@
+package com.railway.business.bi.service.impl;
+
+import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.mapper.ShowBdycMapper;
+import com.railway.business.bi.service.IShowBdycService;
+import com.railway.common.utils.SecurityUtils;
+import java.time.LocalDateTime;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * 大屏展示-变电异常信息详情表 row_format =
+ *
+ * @author author
+ * @date 2023/01/30
+ */
+@Service
+@Transactional(readOnly = true)
+public class ShowBdycServiceImpl implements IShowBdycService {
+
+  @Autowired
+  private ShowBdycMapper showBdycMapper;
+
+  /**
+   * 新增
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int create(ShowBdyc showBdyc) {
+    showBdyc.setCreateTime(LocalDateTime.now());
+    showBdyc.setCreateBy(SecurityUtils.getUsername());
+    return showBdycMapper.insert(showBdyc);
+  }
+
+  /**
+   * 删除
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int delete(String[] ids) {
+    int r = 0;
+    for (String id : ids) {
+      int j = showBdycMapper.delete(id);
+      r = r + j;
+    }
+    return r;
+  }
+
+  /**
+   * 更新
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int update(ShowBdyc showBdyc) {
+    showBdyc.setUpdateTime(LocalDateTime.now());
+    showBdyc.setUpdateBy(SecurityUtils.getUsername());
+    return showBdycMapper.update(showBdyc);
+  }
+
+  /**
+   * 获取单个
+   */
+  public ShowBdyc getInfo(String id) {
+    return showBdycMapper.getInfo(id);
+  }
+
+  /**
+   * 查询列表
+   */
+  public List<ShowBdyc> getList(ShowBdyc showBdyc) {
+    return showBdycMapper.getList(showBdyc);
+  }
+}

+ 72 - 0
railway-business/src/main/java/com/railway/business/bi/service/impl/ShowDlycServiceImpl.java

@@ -0,0 +1,72 @@
+package com.railway.business.bi.service.impl;
+
+import com.railway.business.bi.domain.ShowDlyc;
+import com.railway.business.bi.mapper.ShowDlycMapper;
+import com.railway.business.bi.service.IShowDlycService;
+import com.railway.common.utils.SecurityUtils;
+import java.time.LocalDateTime;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * 大屏展示-电力异常信息详情表 row_format =
+ *
+ * @author author
+ * @date 2023/01/30
+ */
+@Service
+@Transactional(readOnly = true)
+public class ShowDlycServiceImpl implements IShowDlycService {
+
+  @Autowired
+  private ShowDlycMapper showDlycMapper;
+
+  /**
+   * 新增
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int create(ShowDlyc showDlyc) {
+    showDlyc.setCreateTime(LocalDateTime.now());
+    showDlyc.setCreateBy(SecurityUtils.getUsername());
+    return showDlycMapper.insert(showDlyc);
+  }
+
+  /**
+   * 删除
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int delete(String[] ids) {
+    int r = 0;
+    for (String id : ids) {
+      int j = showDlycMapper.delete(id);
+      r = r + j;
+    }
+    return r;
+  }
+
+  /**
+   * 更新
+   */
+  @Transactional(rollbackFor = Exception.class)
+  public int update(ShowDlyc showDlyc) {
+    showDlyc.setUpdateTime(LocalDateTime.now());
+    showDlyc.setUpdateBy(SecurityUtils.getUsername());
+    return showDlycMapper.update(showDlyc);
+  }
+
+  /**
+   * 获取单个
+   */
+  public ShowDlyc getInfo(String id) {
+    return showDlycMapper.getInfo(id);
+  }
+
+  /**
+   * 查询列表
+   */
+  public List<ShowDlyc> getList(ShowDlyc showDlyc) {
+    return showDlycMapper.getList(showDlyc);
+  }
+}

+ 236 - 0
railway-business/src/main/resources/mapper/bi/ShowBdycMapper.xml

@@ -0,0 +1,236 @@
+<?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.ShowBdycMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowBdyc">
+                <result column="id" property="id"/>
+                <result column="found_date" property="foundDate"/>
+                <result column="line_name" property="lineName"/>
+                <result column="station_name" property="stationName"/>
+                <result column="qxsbmc" property="qxsbmc"/>
+                <result column="yxbh" property="yxbh"/>
+                <result column="qxdj" property="qxdj"/>
+                <result column="qxnr" property="qxnr"/>
+                <result column="reason" property="reason"/>
+                <result column="zrbm" property="zrbm"/>
+                <result column="sjgq" property="sjgq"/>
+                <result column="rectify_result" property="rectifyResult"/>
+                <result column="rectify_way" property="rectifyWay"/>
+                <result column="rectify_date" property="rectifyDate"/>
+                <result column="counted" property="counted"/>
+                <result column="plan_date" property="planDate"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                found_date,
+                line_name,
+                station_name,
+                qxsbmc,
+                yxbh,
+                qxdj,
+                qxnr,
+                reason,
+                zrbm,
+                sjgq,
+                rectify_result,
+                rectify_way,
+                rectify_date,
+                counted,
+                plan_date
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.bi.domain.ShowBdyc">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO show_bdyc
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != foundDate'>
+                    found_date,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != stationName'>
+                    station_name,
+                    </if>
+                    <if test ='null != qxsbmc'>
+                    qxsbmc,
+                    </if>
+                    <if test ='null != yxbh'>
+                    yxbh,
+                    </if>
+                    <if test ='null != qxdj'>
+                    qxdj,
+                    </if>
+                    <if test ='null != qxnr'>
+                    qxnr,
+                    </if>
+                    <if test ='null != reason'>
+                    reason,
+                    </if>
+                    <if test ='null != zrbm'>
+                    zrbm,
+                    </if>
+                    <if test ='null != sjgq'>
+                    sjgq,
+                    </if>
+                    <if test ='null != rectifyResult'>
+                    rectify_result,
+                    </if>
+                    <if test ='null != rectifyWay'>
+                    rectify_way,
+                    </if>
+                    <if test ='null != rectifyDate'>
+                    rectify_date,
+                    </if>
+                    <if test ='null != counted'>
+                    counted,
+                    </if>
+                    <if test ='null != planDate'>
+                    plan_date
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != foundDate'>
+                    #{foundDate},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != stationName'>
+                    #{stationName},
+                    </if>
+                    <if test ='null != qxsbmc'>
+                    #{qxsbmc},
+                    </if>
+                    <if test ='null != yxbh'>
+                    #{yxbh},
+                    </if>
+                    <if test ='null != qxdj'>
+                    #{qxdj},
+                    </if>
+                    <if test ='null != qxnr'>
+                    #{qxnr},
+                    </if>
+                    <if test ='null != reason'>
+                    #{reason},
+                    </if>
+                    <if test ='null != zrbm'>
+                    #{zrbm},
+                    </if>
+                    <if test ='null != sjgq'>
+                    #{sjgq},
+                    </if>
+                    <if test ='null != rectifyResult'>
+                    #{rectifyResult},
+                    </if>
+                    <if test ='null != rectifyWay'>
+                    #{rectifyWay},
+                    </if>
+                    <if test ='null != rectifyDate'>
+                    #{rectifyDate},
+                    </if>
+                    <if test ='null != counted'>
+                    #{counted},
+                    </if>
+                    <if test ='null != planDate'>
+                    #{planDate}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE show_bdyc
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.bi.domain.ShowBdyc">
+        UPDATE show_bdyc
+        <set>
+                    <if test ='null != foundDate'>found_date = #{foundDate},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != stationName'>station_name = #{stationName},</if>
+                    <if test ='null != qxsbmc'>qxsbmc = #{qxsbmc},</if>
+                    <if test ='null != yxbh'>yxbh = #{yxbh},</if>
+                    <if test ='null != qxdj'>qxdj = #{qxdj},</if>
+                    <if test ='null != qxnr'>qxnr = #{qxnr},</if>
+                    <if test ='null != reason'>reason = #{reason},</if>
+                    <if test ='null != zrbm'>zrbm = #{zrbm},</if>
+                    <if test ='null != sjgq'>sjgq = #{sjgq},</if>
+                    <if test ='null != rectifyResult'>rectify_result = #{rectifyResult},</if>
+                    <if test ='null != rectifyWay'>rectify_way = #{rectifyWay},</if>
+                    <if test ='null != rectifyDate'>rectify_date = #{rectifyDate},</if>
+                    <if test ='null != counted'>counted = #{counted},</if>
+                    <if test ='null != planDate'>plan_date = #{planDate}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM show_bdyc
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM show_bdyc
+        <where>
+            del_flag='0'
+                <if test="foundDate!=null and foundDate!=''">
+                    and found_date=#{foundDate}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="stationName!=null and stationName!=''">
+                    and station_name=#{stationName}
+                </if>
+                <if test="qxsbmc!=null and qxsbmc!=''">
+                    and qxsbmc=#{qxsbmc}
+                </if>
+                <if test="yxbh!=null and yxbh!=''">
+                    and yxbh=#{yxbh}
+                </if>
+                <if test="qxdj!=null and qxdj!=''">
+                    and qxdj=#{qxdj}
+                </if>
+                <if test="qxnr!=null and qxnr!=''">
+                    and qxnr=#{qxnr}
+                </if>
+                <if test="reason!=null and reason!=''">
+                    and reason=#{reason}
+                </if>
+                <if test="zrbm!=null and zrbm!=''">
+                    and zrbm=#{zrbm}
+                </if>
+                <if test="sjgq!=null and sjgq!=''">
+                    and sjgq=#{sjgq}
+                </if>
+                <if test="rectifyResult!=null and rectifyResult!=''">
+                    and rectify_result=#{rectifyResult}
+                </if>
+                <if test="rectifyWay!=null and rectifyWay!=''">
+                    and rectify_way=#{rectifyWay}
+                </if>
+                <if test="rectifyDate!=null and rectifyDate!=''">
+                    and rectify_date=#{rectifyDate}
+                </if>
+                <if test="counted!=null and counted!=''">
+                    and counted=#{counted}
+                </if>
+                <if test="planDate!=null and planDate!=''">
+                    and plan_date=#{planDate}
+                </if>
+        </where>
+    </select>
+
+</mapper>

+ 224 - 0
railway-business/src/main/resources/mapper/bi/ShowDlycMapper.xml

@@ -0,0 +1,224 @@
+<?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.ShowDlycMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowDlyc">
+                <result column="id" property="id"/>
+                <result column="qxsbmc" property="qxsbmc"/>
+                <result column="ssgq" property="ssgq"/>
+                <result column="sdjb" property="sdjb"/>
+                <result column="line_name" property="lineName"/>
+                <result column="found_date" property="foundDate"/>
+                <result column="qxnr" property="qxnr"/>
+                <result column="gzlb" property="gzlb"/>
+                <result column="reason" property="reason"/>
+                <result column="gravity" property="gravity"/>
+                <result column="rectify_way" property="rectifyWay"/>
+                <result column="rectify_result" property="rectifyResult"/>
+                <result column="rectify_user" property="rectifyUser"/>
+                <result column="rectify_date" property="rectifyDate"/>
+                <result column="counted" property="counted"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                qxsbmc,
+                ssgq,
+                sdjb,
+                line_name,
+                found_date,
+                qxnr,
+                gzlb,
+                reason,
+                gravity,
+                rectify_way,
+                rectify_result,
+                rectify_user,
+                rectify_date,
+                counted
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.bi.domain.ShowDlyc">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO show_dlyc
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != qxsbmc'>
+                    qxsbmc,
+                    </if>
+                    <if test ='null != ssgq'>
+                    ssgq,
+                    </if>
+                    <if test ='null != sdjb'>
+                    sdjb,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != foundDate'>
+                    found_date,
+                    </if>
+                    <if test ='null != qxnr'>
+                    qxnr,
+                    </if>
+                    <if test ='null != gzlb'>
+                    gzlb,
+                    </if>
+                    <if test ='null != reason'>
+                    reason,
+                    </if>
+                    <if test ='null != gravity'>
+                    gravity,
+                    </if>
+                    <if test ='null != rectifyWay'>
+                    rectify_way,
+                    </if>
+                    <if test ='null != rectifyResult'>
+                    rectify_result,
+                    </if>
+                    <if test ='null != rectifyUser'>
+                    rectify_user,
+                    </if>
+                    <if test ='null != rectifyDate'>
+                    rectify_date,
+                    </if>
+                    <if test ='null != counted'>
+                    counted
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != qxsbmc'>
+                    #{qxsbmc},
+                    </if>
+                    <if test ='null != ssgq'>
+                    #{ssgq},
+                    </if>
+                    <if test ='null != sdjb'>
+                    #{sdjb},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != foundDate'>
+                    #{foundDate},
+                    </if>
+                    <if test ='null != qxnr'>
+                    #{qxnr},
+                    </if>
+                    <if test ='null != gzlb'>
+                    #{gzlb},
+                    </if>
+                    <if test ='null != reason'>
+                    #{reason},
+                    </if>
+                    <if test ='null != gravity'>
+                    #{gravity},
+                    </if>
+                    <if test ='null != rectifyWay'>
+                    #{rectifyWay},
+                    </if>
+                    <if test ='null != rectifyResult'>
+                    #{rectifyResult},
+                    </if>
+                    <if test ='null != rectifyUser'>
+                    #{rectifyUser},
+                    </if>
+                    <if test ='null != rectifyDate'>
+                    #{rectifyDate},
+                    </if>
+                    <if test ='null != counted'>
+                    #{counted}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE show_dlyc
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.bi.domain.ShowDlyc">
+        UPDATE show_dlyc
+        <set>
+                    <if test ='null != qxsbmc'>qxsbmc = #{qxsbmc},</if>
+                    <if test ='null != ssgq'>ssgq = #{ssgq},</if>
+                    <if test ='null != sdjb'>sdjb = #{sdjb},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != foundDate'>found_date = #{foundDate},</if>
+                    <if test ='null != qxnr'>qxnr = #{qxnr},</if>
+                    <if test ='null != gzlb'>gzlb = #{gzlb},</if>
+                    <if test ='null != reason'>reason = #{reason},</if>
+                    <if test ='null != gravity'>gravity = #{gravity},</if>
+                    <if test ='null != rectifyWay'>rectify_way = #{rectifyWay},</if>
+                    <if test ='null != rectifyResult'>rectify_result = #{rectifyResult},</if>
+                    <if test ='null != rectifyUser'>rectify_user = #{rectifyUser},</if>
+                    <if test ='null != rectifyDate'>rectify_date = #{rectifyDate},</if>
+                    <if test ='null != counted'>counted = #{counted}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM show_dlyc
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM show_dlyc
+        <where>
+            del_flag='0'
+                <if test="qxsbmc!=null and qxsbmc!=''">
+                    and qxsbmc=#{qxsbmc}
+                </if>
+                <if test="ssgq!=null and ssgq!=''">
+                    and ssgq=#{ssgq}
+                </if>
+                <if test="sdjb!=null and sdjb!=''">
+                    and sdjb=#{sdjb}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="foundDate!=null and foundDate!=''">
+                    and found_date=#{foundDate}
+                </if>
+                <if test="qxnr!=null and qxnr!=''">
+                    and qxnr=#{qxnr}
+                </if>
+                <if test="gzlb!=null and gzlb!=''">
+                    and gzlb=#{gzlb}
+                </if>
+                <if test="reason!=null and reason!=''">
+                    and reason=#{reason}
+                </if>
+                <if test="gravity!=null and gravity!=''">
+                    and gravity=#{gravity}
+                </if>
+                <if test="rectifyWay!=null and rectifyWay!=''">
+                    and rectify_way=#{rectifyWay}
+                </if>
+                <if test="rectifyResult!=null and rectifyResult!=''">
+                    and rectify_result=#{rectifyResult}
+                </if>
+                <if test="rectifyUser!=null and rectifyUser!=''">
+                    and rectify_user=#{rectifyUser}
+                </if>
+                <if test="rectifyDate!=null and rectifyDate!=''">
+                    and rectify_date=#{rectifyDate}
+                </if>
+                <if test="counted!=null and counted!=''">
+                    and counted=#{counted}
+                </if>
+        </where>
+    </select>
+
+</mapper>