Bladeren bron

【CHG】修改代码格式

zhaomn 2 jaren geleden
bovenliggende
commit
e3f85b051f

+ 208 - 207
railway-business/src/main/resources/mapper/bi/ShowBdycMapper.xml

@@ -1,29 +1,30 @@
 <?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">
+  "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>
+  <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,
+  <sql id="Base_Column_List">
+    id
+    ,
                 found_date,
                 line_name,
                 station_name,
@@ -39,198 +40,198 @@
                 rectify_date,
                 counted,
                 plan_date
-    </sql>
+  </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>
+  <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>
+  <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>
+  <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 id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_bdyc
+    WHERE del_flag='0' and id = #{id}
 
-    </select>
+  </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>
+  <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>

+ 197 - 196
railway-business/src/main/resources/mapper/bi/ShowDlycMapper.xml

@@ -1,28 +1,29 @@
 <?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">
+  "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>
+  <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,
+  <sql id="Base_Column_List">
+    id
+    ,
                 qxsbmc,
                 ssgq,
                 sdjb,
@@ -37,188 +38,188 @@
                 rectify_user,
                 rectify_date,
                 counted
-    </sql>
+  </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>
+  <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>
+  <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>
+  <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 id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_dlyc
+    WHERE del_flag='0' and id = #{id}
 
-    </select>
+  </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>
+  <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>

+ 406 - 405
railway-business/src/main/resources/mapper/bi/ShowSbxjMapper.xml

@@ -1,47 +1,48 @@
 <?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">
+  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.railway.business.bi.mapper.ShowSbxjMapper">
 
-    <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowSbxj">
-                <result column="id" property="id"/>
-                <result column="dept_name" property="deptName"/>
-                <result column="team_name" property="teamName"/>
-                <result column="xjdy" property="xjdy"/>
-                <result column="xb" property="xb"/>
-                <result column="pds" property="pds"/>
-                <result column="bds" property="bds"/>
-                <result column="sdxl" property="sdxl"/>
-                <result column="qybds" property="qybds"/>
-                <result column="atfqs" property="atfqs"/>
-                <result column="plan1" property="plan1"/>
-                <result column="actual1" property="actual1"/>
-                <result column="plan2" property="plan2"/>
-                <result column="actual2" property="actual2"/>
-                <result column="plan3" property="plan3"/>
-                <result column="actual3" property="actual3"/>
-                <result column="plan4" property="plan4"/>
-                <result column="actual4" property="actual4"/>
-                <result column="plan5" property="plan5"/>
-                <result column="actual5" property="actual5"/>
-                <result column="plan6" property="plan6"/>
-                <result column="actual6" property="actual6"/>
-                <result column="plan7" property="plan7"/>
-                <result column="actual7" property="actual7"/>
-                <result column="plan8" property="plan8"/>
-                <result column="actual8" property="actual8"/>
-                <result column="plan9" property="plan9"/>
-                <result column="actual9" property="actual9"/>
-                <result column="plan10" property="plan10"/>
-                <result column="actual10" property="actual10"/>
-                <result column="plan11" property="plan11"/>
-                <result column="actual11" property="actual11"/>
-                <result column="plan12" property="plan12"/>
-                <result column="actual12" property="actual12"/>
-    </resultMap>
+  <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowSbxj">
+    <result column="id" property="id"/>
+    <result column="dept_name" property="deptName"/>
+    <result column="team_name" property="teamName"/>
+    <result column="xjdy" property="xjdy"/>
+    <result column="xb" property="xb"/>
+    <result column="pds" property="pds"/>
+    <result column="bds" property="bds"/>
+    <result column="sdxl" property="sdxl"/>
+    <result column="qybds" property="qybds"/>
+    <result column="atfqs" property="atfqs"/>
+    <result column="plan1" property="plan1"/>
+    <result column="actual1" property="actual1"/>
+    <result column="plan2" property="plan2"/>
+    <result column="actual2" property="actual2"/>
+    <result column="plan3" property="plan3"/>
+    <result column="actual3" property="actual3"/>
+    <result column="plan4" property="plan4"/>
+    <result column="actual4" property="actual4"/>
+    <result column="plan5" property="plan5"/>
+    <result column="actual5" property="actual5"/>
+    <result column="plan6" property="plan6"/>
+    <result column="actual6" property="actual6"/>
+    <result column="plan7" property="plan7"/>
+    <result column="actual7" property="actual7"/>
+    <result column="plan8" property="plan8"/>
+    <result column="actual8" property="actual8"/>
+    <result column="plan9" property="plan9"/>
+    <result column="actual9" property="actual9"/>
+    <result column="plan10" property="plan10"/>
+    <result column="actual10" property="actual10"/>
+    <result column="plan11" property="plan11"/>
+    <result column="actual11" property="actual11"/>
+    <result column="plan12" property="plan12"/>
+    <result column="actual12" property="actual12"/>
+  </resultMap>
 
-    <sql id="Base_Column_List">
-                id,
+  <sql id="Base_Column_List">
+    id
+    ,
                 dept_name,
                 team_name,
                 xjdy,
@@ -75,378 +76,378 @@
                 actual11,
                 plan12,
                 actual12
-    </sql>
+  </sql>
 
-    <insert id="insert" parameterType="com.railway.business.bi.domain.ShowSbxj">
-        <selectKey keyProperty="id" order="BEFORE" resultType="String">
-            select replace(uuid(), '-', '') from dual
-        </selectKey>
-        INSERT INTO show_sbxj
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-                    <if test ='null != deptName'>
-                    dept_name,
-                    </if>
-                    <if test ='null != teamName'>
-                    team_name,
-                    </if>
-                    <if test ='null != xjdy'>
-                    xjdy,
-                    </if>
-                    <if test ='null != xb'>
-                    xb,
-                    </if>
-                    <if test ='null != pds'>
-                    pds,
-                    </if>
-                    <if test ='null != bds'>
-                    bds,
-                    </if>
-                    <if test ='null != sdxl'>
-                    sdxl,
-                    </if>
-                    <if test ='null != qybds'>
-                    qybds,
-                    </if>
-                    <if test ='null != atfqs'>
-                    atfqs,
-                    </if>
-                    <if test ='null != plan1'>
-                    plan1,
-                    </if>
-                    <if test ='null != actual1'>
-                    actual1,
-                    </if>
-                    <if test ='null != plan2'>
-                    plan2,
-                    </if>
-                    <if test ='null != actual2'>
-                    actual2,
-                    </if>
-                    <if test ='null != plan3'>
-                    plan3,
-                    </if>
-                    <if test ='null != actual3'>
-                    actual3,
-                    </if>
-                    <if test ='null != plan4'>
-                    plan4,
-                    </if>
-                    <if test ='null != actual4'>
-                    actual4,
-                    </if>
-                    <if test ='null != plan5'>
-                    plan5,
-                    </if>
-                    <if test ='null != actual5'>
-                    actual5,
-                    </if>
-                    <if test ='null != plan6'>
-                    plan6,
-                    </if>
-                    <if test ='null != actual6'>
-                    actual6,
-                    </if>
-                    <if test ='null != plan7'>
-                    plan7,
-                    </if>
-                    <if test ='null != actual7'>
-                    actual7,
-                    </if>
-                    <if test ='null != plan8'>
-                    plan8,
-                    </if>
-                    <if test ='null != actual8'>
-                    actual8,
-                    </if>
-                    <if test ='null != plan9'>
-                    plan9,
-                    </if>
-                    <if test ='null != actual9'>
-                    actual9,
-                    </if>
-                    <if test ='null != plan10'>
-                    plan10,
-                    </if>
-                    <if test ='null != actual10'>
-                    actual10,
-                    </if>
-                    <if test ='null != plan11'>
-                    plan11,
-                    </if>
-                    <if test ='null != actual11'>
-                    actual11,
-                    </if>
-                    <if test ='null != plan12'>
-                    plan12,
-                    </if>
-                    <if test ='null != actual12'>
-                    actual12
-                    </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-                    <if test ='null != deptName'>
-                    #{deptName},
-                    </if>
-                    <if test ='null != teamName'>
-                    #{teamName},
-                    </if>
-                    <if test ='null != xjdy'>
-                    #{xjdy},
-                    </if>
-                    <if test ='null != xb'>
-                    #{xb},
-                    </if>
-                    <if test ='null != pds'>
-                    #{pds},
-                    </if>
-                    <if test ='null != bds'>
-                    #{bds},
-                    </if>
-                    <if test ='null != sdxl'>
-                    #{sdxl},
-                    </if>
-                    <if test ='null != qybds'>
-                    #{qybds},
-                    </if>
-                    <if test ='null != atfqs'>
-                    #{atfqs},
-                    </if>
-                    <if test ='null != plan1'>
-                    #{plan1},
-                    </if>
-                    <if test ='null != actual1'>
-                    #{actual1},
-                    </if>
-                    <if test ='null != plan2'>
-                    #{plan2},
-                    </if>
-                    <if test ='null != actual2'>
-                    #{actual2},
-                    </if>
-                    <if test ='null != plan3'>
-                    #{plan3},
-                    </if>
-                    <if test ='null != actual3'>
-                    #{actual3},
-                    </if>
-                    <if test ='null != plan4'>
-                    #{plan4},
-                    </if>
-                    <if test ='null != actual4'>
-                    #{actual4},
-                    </if>
-                    <if test ='null != plan5'>
-                    #{plan5},
-                    </if>
-                    <if test ='null != actual5'>
-                    #{actual5},
-                    </if>
-                    <if test ='null != plan6'>
-                    #{plan6},
-                    </if>
-                    <if test ='null != actual6'>
-                    #{actual6},
-                    </if>
-                    <if test ='null != plan7'>
-                    #{plan7},
-                    </if>
-                    <if test ='null != actual7'>
-                    #{actual7},
-                    </if>
-                    <if test ='null != plan8'>
-                    #{plan8},
-                    </if>
-                    <if test ='null != actual8'>
-                    #{actual8},
-                    </if>
-                    <if test ='null != plan9'>
-                    #{plan9},
-                    </if>
-                    <if test ='null != actual9'>
-                    #{actual9},
-                    </if>
-                    <if test ='null != plan10'>
-                    #{plan10},
-                    </if>
-                    <if test ='null != actual10'>
-                    #{actual10},
-                    </if>
-                    <if test ='null != plan11'>
-                    #{plan11},
-                    </if>
-                    <if test ='null != actual11'>
-                    #{actual11},
-                    </if>
-                    <if test ='null != plan12'>
-                    #{plan12},
-                    </if>
-                    <if test ='null != actual12'>
-                    #{actual12}
-                    </if>
-        </trim>
-    </insert>
+  <insert id="insert" parameterType="com.railway.business.bi.domain.ShowSbxj">
+    <selectKey keyProperty="id" order="BEFORE" resultType="String">
+      select replace(uuid(), '-', '') from dual
+    </selectKey>
+    INSERT INTO show_sbxj
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test='null != deptName'>
+        dept_name,
+      </if>
+      <if test='null != teamName'>
+        team_name,
+      </if>
+      <if test='null != xjdy'>
+        xjdy,
+      </if>
+      <if test='null != xb'>
+        xb,
+      </if>
+      <if test='null != pds'>
+        pds,
+      </if>
+      <if test='null != bds'>
+        bds,
+      </if>
+      <if test='null != sdxl'>
+        sdxl,
+      </if>
+      <if test='null != qybds'>
+        qybds,
+      </if>
+      <if test='null != atfqs'>
+        atfqs,
+      </if>
+      <if test='null != plan1'>
+        plan1,
+      </if>
+      <if test='null != actual1'>
+        actual1,
+      </if>
+      <if test='null != plan2'>
+        plan2,
+      </if>
+      <if test='null != actual2'>
+        actual2,
+      </if>
+      <if test='null != plan3'>
+        plan3,
+      </if>
+      <if test='null != actual3'>
+        actual3,
+      </if>
+      <if test='null != plan4'>
+        plan4,
+      </if>
+      <if test='null != actual4'>
+        actual4,
+      </if>
+      <if test='null != plan5'>
+        plan5,
+      </if>
+      <if test='null != actual5'>
+        actual5,
+      </if>
+      <if test='null != plan6'>
+        plan6,
+      </if>
+      <if test='null != actual6'>
+        actual6,
+      </if>
+      <if test='null != plan7'>
+        plan7,
+      </if>
+      <if test='null != actual7'>
+        actual7,
+      </if>
+      <if test='null != plan8'>
+        plan8,
+      </if>
+      <if test='null != actual8'>
+        actual8,
+      </if>
+      <if test='null != plan9'>
+        plan9,
+      </if>
+      <if test='null != actual9'>
+        actual9,
+      </if>
+      <if test='null != plan10'>
+        plan10,
+      </if>
+      <if test='null != actual10'>
+        actual10,
+      </if>
+      <if test='null != plan11'>
+        plan11,
+      </if>
+      <if test='null != actual11'>
+        actual11,
+      </if>
+      <if test='null != plan12'>
+        plan12,
+      </if>
+      <if test='null != actual12'>
+        actual12
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test='null != deptName'>
+        #{deptName},
+      </if>
+      <if test='null != teamName'>
+        #{teamName},
+      </if>
+      <if test='null != xjdy'>
+        #{xjdy},
+      </if>
+      <if test='null != xb'>
+        #{xb},
+      </if>
+      <if test='null != pds'>
+        #{pds},
+      </if>
+      <if test='null != bds'>
+        #{bds},
+      </if>
+      <if test='null != sdxl'>
+        #{sdxl},
+      </if>
+      <if test='null != qybds'>
+        #{qybds},
+      </if>
+      <if test='null != atfqs'>
+        #{atfqs},
+      </if>
+      <if test='null != plan1'>
+        #{plan1},
+      </if>
+      <if test='null != actual1'>
+        #{actual1},
+      </if>
+      <if test='null != plan2'>
+        #{plan2},
+      </if>
+      <if test='null != actual2'>
+        #{actual2},
+      </if>
+      <if test='null != plan3'>
+        #{plan3},
+      </if>
+      <if test='null != actual3'>
+        #{actual3},
+      </if>
+      <if test='null != plan4'>
+        #{plan4},
+      </if>
+      <if test='null != actual4'>
+        #{actual4},
+      </if>
+      <if test='null != plan5'>
+        #{plan5},
+      </if>
+      <if test='null != actual5'>
+        #{actual5},
+      </if>
+      <if test='null != plan6'>
+        #{plan6},
+      </if>
+      <if test='null != actual6'>
+        #{actual6},
+      </if>
+      <if test='null != plan7'>
+        #{plan7},
+      </if>
+      <if test='null != actual7'>
+        #{actual7},
+      </if>
+      <if test='null != plan8'>
+        #{plan8},
+      </if>
+      <if test='null != actual8'>
+        #{actual8},
+      </if>
+      <if test='null != plan9'>
+        #{plan9},
+      </if>
+      <if test='null != actual9'>
+        #{actual9},
+      </if>
+      <if test='null != plan10'>
+        #{plan10},
+      </if>
+      <if test='null != actual10'>
+        #{actual10},
+      </if>
+      <if test='null != plan11'>
+        #{plan11},
+      </if>
+      <if test='null != actual11'>
+        #{actual11},
+      </if>
+      <if test='null != plan12'>
+        #{plan12},
+      </if>
+      <if test='null != actual12'>
+        #{actual12}
+      </if>
+    </trim>
+  </insert>
 
-    <delete id="delete">
-        UPDATE show_sbxj
-        set del_flag='1'
-        WHERE id = #{id}
-    </delete>
+  <delete id="delete">
+    UPDATE show_sbxj
+    set del_flag='1'
+    WHERE id = #{id}
+  </delete>
 
-    <update id="update" parameterType="com.railway.business.bi.domain.ShowSbxj">
-        UPDATE show_sbxj
-        <set>
-                    <if test ='null != deptName'>dept_name = #{deptName},</if>
-                    <if test ='null != teamName'>team_name = #{teamName},</if>
-                    <if test ='null != xjdy'>xjdy = #{xjdy},</if>
-                    <if test ='null != xb'>xb = #{xb},</if>
-                    <if test ='null != pds'>pds = #{pds},</if>
-                    <if test ='null != bds'>bds = #{bds},</if>
-                    <if test ='null != sdxl'>sdxl = #{sdxl},</if>
-                    <if test ='null != qybds'>qybds = #{qybds},</if>
-                    <if test ='null != atfqs'>atfqs = #{atfqs},</if>
-                    <if test ='null != plan1'>plan1 = #{plan1},</if>
-                    <if test ='null != actual1'>actual1 = #{actual1},</if>
-                    <if test ='null != plan2'>plan2 = #{plan2},</if>
-                    <if test ='null != actual2'>actual2 = #{actual2},</if>
-                    <if test ='null != plan3'>plan3 = #{plan3},</if>
-                    <if test ='null != actual3'>actual3 = #{actual3},</if>
-                    <if test ='null != plan4'>plan4 = #{plan4},</if>
-                    <if test ='null != actual4'>actual4 = #{actual4},</if>
-                    <if test ='null != plan5'>plan5 = #{plan5},</if>
-                    <if test ='null != actual5'>actual5 = #{actual5},</if>
-                    <if test ='null != plan6'>plan6 = #{plan6},</if>
-                    <if test ='null != actual6'>actual6 = #{actual6},</if>
-                    <if test ='null != plan7'>plan7 = #{plan7},</if>
-                    <if test ='null != actual7'>actual7 = #{actual7},</if>
-                    <if test ='null != plan8'>plan8 = #{plan8},</if>
-                    <if test ='null != actual8'>actual8 = #{actual8},</if>
-                    <if test ='null != plan9'>plan9 = #{plan9},</if>
-                    <if test ='null != actual9'>actual9 = #{actual9},</if>
-                    <if test ='null != plan10'>plan10 = #{plan10},</if>
-                    <if test ='null != actual10'>actual10 = #{actual10},</if>
-                    <if test ='null != plan11'>plan11 = #{plan11},</if>
-                    <if test ='null != actual11'>actual11 = #{actual11},</if>
-                    <if test ='null != plan12'>plan12 = #{plan12},</if>
-                    <if test ='null != actual12'>actual12 = #{actual12}</if>
-        </set>
-        WHERE id = #{id}
-    </update>
+  <update id="update" parameterType="com.railway.business.bi.domain.ShowSbxj">
+    UPDATE show_sbxj
+    <set>
+      <if test='null != deptName'>dept_name = #{deptName},</if>
+      <if test='null != teamName'>team_name = #{teamName},</if>
+      <if test='null != xjdy'>xjdy = #{xjdy},</if>
+      <if test='null != xb'>xb = #{xb},</if>
+      <if test='null != pds'>pds = #{pds},</if>
+      <if test='null != bds'>bds = #{bds},</if>
+      <if test='null != sdxl'>sdxl = #{sdxl},</if>
+      <if test='null != qybds'>qybds = #{qybds},</if>
+      <if test='null != atfqs'>atfqs = #{atfqs},</if>
+      <if test='null != plan1'>plan1 = #{plan1},</if>
+      <if test='null != actual1'>actual1 = #{actual1},</if>
+      <if test='null != plan2'>plan2 = #{plan2},</if>
+      <if test='null != actual2'>actual2 = #{actual2},</if>
+      <if test='null != plan3'>plan3 = #{plan3},</if>
+      <if test='null != actual3'>actual3 = #{actual3},</if>
+      <if test='null != plan4'>plan4 = #{plan4},</if>
+      <if test='null != actual4'>actual4 = #{actual4},</if>
+      <if test='null != plan5'>plan5 = #{plan5},</if>
+      <if test='null != actual5'>actual5 = #{actual5},</if>
+      <if test='null != plan6'>plan6 = #{plan6},</if>
+      <if test='null != actual6'>actual6 = #{actual6},</if>
+      <if test='null != plan7'>plan7 = #{plan7},</if>
+      <if test='null != actual7'>actual7 = #{actual7},</if>
+      <if test='null != plan8'>plan8 = #{plan8},</if>
+      <if test='null != actual8'>actual8 = #{actual8},</if>
+      <if test='null != plan9'>plan9 = #{plan9},</if>
+      <if test='null != actual9'>actual9 = #{actual9},</if>
+      <if test='null != plan10'>plan10 = #{plan10},</if>
+      <if test='null != actual10'>actual10 = #{actual10},</if>
+      <if test='null != plan11'>plan11 = #{plan11},</if>
+      <if test='null != actual11'>actual11 = #{actual11},</if>
+      <if test='null != plan12'>plan12 = #{plan12},</if>
+      <if test='null != actual12'>actual12 = #{actual12}</if>
+    </set>
+    WHERE id = #{id}
+  </update>
 
 
-    <select id="getInfo" resultMap="BaseResultMap">
-        SELECT
-        <include refid="Base_Column_List"/>
-        FROM show_sbxj
-        WHERE del_flag='0' and id = #{id}
+  <select id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_sbxj
+    WHERE del_flag='0' and id = #{id}
 
-    </select>
+  </select>
 
-    <select id="getList" resultMap="BaseResultMap">
-        SELECT
-        <include refid="Base_Column_List"/>
-        FROM show_sbxj
-        <where>
-            del_flag='0'
-                <if test="deptName!=null and deptName!=''">
-                    and dept_name=#{deptName}
-                </if>
-                <if test="teamName!=null and teamName!=''">
-                    and team_name=#{teamName}
-                </if>
-                <if test="xjdy!=null and xjdy!=''">
-                    and xjdy=#{xjdy}
-                </if>
-                <if test="xb!=null and xb!=''">
-                    and xb=#{xb}
-                </if>
-                <if test="pds!=null and pds!=''">
-                    and pds=#{pds}
-                </if>
-                <if test="bds!=null and bds!=''">
-                    and bds=#{bds}
-                </if>
-                <if test="sdxl!=null and sdxl!=''">
-                    and sdxl=#{sdxl}
-                </if>
-                <if test="qybds!=null and qybds!=''">
-                    and qybds=#{qybds}
-                </if>
-                <if test="atfqs!=null and atfqs!=''">
-                    and atfqs=#{atfqs}
-                </if>
-                <if test="plan1!=null and plan1!=''">
-                    and plan1=#{plan1}
-                </if>
-                <if test="actual1!=null and actual1!=''">
-                    and actual1=#{actual1}
-                </if>
-                <if test="plan2!=null and plan2!=''">
-                    and plan2=#{plan2}
-                </if>
-                <if test="actual2!=null and actual2!=''">
-                    and actual2=#{actual2}
-                </if>
-                <if test="plan3!=null and plan3!=''">
-                    and plan3=#{plan3}
-                </if>
-                <if test="actual3!=null and actual3!=''">
-                    and actual3=#{actual3}
-                </if>
-                <if test="plan4!=null and plan4!=''">
-                    and plan4=#{plan4}
-                </if>
-                <if test="actual4!=null and actual4!=''">
-                    and actual4=#{actual4}
-                </if>
-                <if test="plan5!=null and plan5!=''">
-                    and plan5=#{plan5}
-                </if>
-                <if test="actual5!=null and actual5!=''">
-                    and actual5=#{actual5}
-                </if>
-                <if test="plan6!=null and plan6!=''">
-                    and plan6=#{plan6}
-                </if>
-                <if test="actual6!=null and actual6!=''">
-                    and actual6=#{actual6}
-                </if>
-                <if test="plan7!=null and plan7!=''">
-                    and plan7=#{plan7}
-                </if>
-                <if test="actual7!=null and actual7!=''">
-                    and actual7=#{actual7}
-                </if>
-                <if test="plan8!=null and plan8!=''">
-                    and plan8=#{plan8}
-                </if>
-                <if test="actual8!=null and actual8!=''">
-                    and actual8=#{actual8}
-                </if>
-                <if test="plan9!=null and plan9!=''">
-                    and plan9=#{plan9}
-                </if>
-                <if test="actual9!=null and actual9!=''">
-                    and actual9=#{actual9}
-                </if>
-                <if test="plan10!=null and plan10!=''">
-                    and plan10=#{plan10}
-                </if>
-                <if test="actual10!=null and actual10!=''">
-                    and actual10=#{actual10}
-                </if>
-                <if test="plan11!=null and plan11!=''">
-                    and plan11=#{plan11}
-                </if>
-                <if test="actual11!=null and actual11!=''">
-                    and actual11=#{actual11}
-                </if>
-                <if test="plan12!=null and plan12!=''">
-                    and plan12=#{plan12}
-                </if>
-                <if test="actual12!=null and actual12!=''">
-                    and actual12=#{actual12}
-                </if>
-        </where>
-    </select>
+  <select id="getList" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_sbxj
+    <where>
+      del_flag='0'
+      <if test="deptName!=null and deptName!=''">
+        and dept_name=#{deptName}
+      </if>
+      <if test="teamName!=null and teamName!=''">
+        and team_name=#{teamName}
+      </if>
+      <if test="xjdy!=null and xjdy!=''">
+        and xjdy=#{xjdy}
+      </if>
+      <if test="xb!=null and xb!=''">
+        and xb=#{xb}
+      </if>
+      <if test="pds!=null and pds!=''">
+        and pds=#{pds}
+      </if>
+      <if test="bds!=null and bds!=''">
+        and bds=#{bds}
+      </if>
+      <if test="sdxl!=null and sdxl!=''">
+        and sdxl=#{sdxl}
+      </if>
+      <if test="qybds!=null and qybds!=''">
+        and qybds=#{qybds}
+      </if>
+      <if test="atfqs!=null and atfqs!=''">
+        and atfqs=#{atfqs}
+      </if>
+      <if test="plan1!=null and plan1!=''">
+        and plan1=#{plan1}
+      </if>
+      <if test="actual1!=null and actual1!=''">
+        and actual1=#{actual1}
+      </if>
+      <if test="plan2!=null and plan2!=''">
+        and plan2=#{plan2}
+      </if>
+      <if test="actual2!=null and actual2!=''">
+        and actual2=#{actual2}
+      </if>
+      <if test="plan3!=null and plan3!=''">
+        and plan3=#{plan3}
+      </if>
+      <if test="actual3!=null and actual3!=''">
+        and actual3=#{actual3}
+      </if>
+      <if test="plan4!=null and plan4!=''">
+        and plan4=#{plan4}
+      </if>
+      <if test="actual4!=null and actual4!=''">
+        and actual4=#{actual4}
+      </if>
+      <if test="plan5!=null and plan5!=''">
+        and plan5=#{plan5}
+      </if>
+      <if test="actual5!=null and actual5!=''">
+        and actual5=#{actual5}
+      </if>
+      <if test="plan6!=null and plan6!=''">
+        and plan6=#{plan6}
+      </if>
+      <if test="actual6!=null and actual6!=''">
+        and actual6=#{actual6}
+      </if>
+      <if test="plan7!=null and plan7!=''">
+        and plan7=#{plan7}
+      </if>
+      <if test="actual7!=null and actual7!=''">
+        and actual7=#{actual7}
+      </if>
+      <if test="plan8!=null and plan8!=''">
+        and plan8=#{plan8}
+      </if>
+      <if test="actual8!=null and actual8!=''">
+        and actual8=#{actual8}
+      </if>
+      <if test="plan9!=null and plan9!=''">
+        and plan9=#{plan9}
+      </if>
+      <if test="actual9!=null and actual9!=''">
+        and actual9=#{actual9}
+      </if>
+      <if test="plan10!=null and plan10!=''">
+        and plan10=#{plan10}
+      </if>
+      <if test="actual10!=null and actual10!=''">
+        and actual10=#{actual10}
+      </if>
+      <if test="plan11!=null and plan11!=''">
+        and plan11=#{plan11}
+      </if>
+      <if test="actual11!=null and actual11!=''">
+        and actual11=#{actual11}
+      </if>
+      <if test="plan12!=null and plan12!=''">
+        and plan12=#{plan12}
+      </if>
+      <if test="actual12!=null and actual12!=''">
+        and actual12=#{actual12}
+      </if>
+    </where>
+  </select>
 
 </mapper>

+ 208 - 207
railway-business/src/main/resources/mapper/bi/ShowYdtsMapper.xml

@@ -1,29 +1,30 @@
 <?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">
+  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.railway.business.bi.mapper.ShowYdtsMapper">
 
-    <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowYdts">
-                <result column="id" property="id"/>
-                <result column="branch_name" property="branchName"/>
-                <result column="dept_name" property="deptName"/>
-                <result column="line_sddj" property="lineSddj"/>
-                <result column="line_name" property="lineName"/>
-                <result column="station_name" property="stationName"/>
-                <result column="line_xz" property="lineXz"/>
-                <result column="substation_name" property="substationName"/>
-                <result column="switch_high" property="switchHigh"/>
-                <result column="switch_low" property="switchLow"/>
-                <result column="last_year" property="lastYear"/>
-                <result column="plan_month" property="planMonth"/>
-                <result column="overdue_reminder" property="overdueReminder"/>
-                <result column="completion_date" property="completionDate"/>
-                <result column="jhtzjy" property="jhtzjy"/>
-                <result column="overdue_reason" property="overdueReason"/>
-    </resultMap>
+  <resultMap id="BaseResultMap" type="com.railway.business.bi.domain.ShowYdts">
+    <result column="id" property="id"/>
+    <result column="branch_name" property="branchName"/>
+    <result column="dept_name" property="deptName"/>
+    <result column="line_sddj" property="lineSddj"/>
+    <result column="line_name" property="lineName"/>
+    <result column="station_name" property="stationName"/>
+    <result column="line_xz" property="lineXz"/>
+    <result column="substation_name" property="substationName"/>
+    <result column="switch_high" property="switchHigh"/>
+    <result column="switch_low" property="switchLow"/>
+    <result column="last_year" property="lastYear"/>
+    <result column="plan_month" property="planMonth"/>
+    <result column="overdue_reminder" property="overdueReminder"/>
+    <result column="completion_date" property="completionDate"/>
+    <result column="jhtzjy" property="jhtzjy"/>
+    <result column="overdue_reason" property="overdueReason"/>
+  </resultMap>
 
-    <sql id="Base_Column_List">
-                id,
+  <sql id="Base_Column_List">
+    id
+    ,
                 branch_name,
                 dept_name,
                 line_sddj,
@@ -39,198 +40,198 @@
                 completion_date,
                 jhtzjy,
                 overdue_reason
-    </sql>
+  </sql>
 
-    <insert id="insert" parameterType="com.railway.business.bi.domain.ShowYdts">
-        <selectKey keyProperty="id" order="BEFORE" resultType="String">
-            select replace(uuid(), '-', '') from dual
-        </selectKey>
-        INSERT INTO show_ydts
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-                    <if test ='null != branchName'>
-                    branch_name,
-                    </if>
-                    <if test ='null != deptName'>
-                    dept_name,
-                    </if>
-                    <if test ='null != lineSddj'>
-                    line_sddj,
-                    </if>
-                    <if test ='null != lineName'>
-                    line_name,
-                    </if>
-                    <if test ='null != stationName'>
-                    station_name,
-                    </if>
-                    <if test ='null != lineXz'>
-                    line_xz,
-                    </if>
-                    <if test ='null != substationName'>
-                    substation_name,
-                    </if>
-                    <if test ='null != switchHigh'>
-                    switch_high,
-                    </if>
-                    <if test ='null != switchLow'>
-                    switch_low,
-                    </if>
-                    <if test ='null != lastYear'>
-                    last_year,
-                    </if>
-                    <if test ='null != planMonth'>
-                    plan_month,
-                    </if>
-                    <if test ='null != overdueReminder'>
-                    overdue_reminder,
-                    </if>
-                    <if test ='null != completionDate'>
-                    completion_date,
-                    </if>
-                    <if test ='null != jhtzjy'>
-                    jhtzjy,
-                    </if>
-                    <if test ='null != overdueReason'>
-                    overdue_reason
-                    </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-                    <if test ='null != branchName'>
-                    #{branchName},
-                    </if>
-                    <if test ='null != deptName'>
-                    #{deptName},
-                    </if>
-                    <if test ='null != lineSddj'>
-                    #{lineSddj},
-                    </if>
-                    <if test ='null != lineName'>
-                    #{lineName},
-                    </if>
-                    <if test ='null != stationName'>
-                    #{stationName},
-                    </if>
-                    <if test ='null != lineXz'>
-                    #{lineXz},
-                    </if>
-                    <if test ='null != substationName'>
-                    #{substationName},
-                    </if>
-                    <if test ='null != switchHigh'>
-                    #{switchHigh},
-                    </if>
-                    <if test ='null != switchLow'>
-                    #{switchLow},
-                    </if>
-                    <if test ='null != lastYear'>
-                    #{lastYear},
-                    </if>
-                    <if test ='null != planMonth'>
-                    #{planMonth},
-                    </if>
-                    <if test ='null != overdueReminder'>
-                    #{overdueReminder},
-                    </if>
-                    <if test ='null != completionDate'>
-                    #{completionDate},
-                    </if>
-                    <if test ='null != jhtzjy'>
-                    #{jhtzjy},
-                    </if>
-                    <if test ='null != overdueReason'>
-                    #{overdueReason}
-                    </if>
-        </trim>
-    </insert>
+  <insert id="insert" parameterType="com.railway.business.bi.domain.ShowYdts">
+    <selectKey keyProperty="id" order="BEFORE" resultType="String">
+      select replace(uuid(), '-', '') from dual
+    </selectKey>
+    INSERT INTO show_ydts
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test='null != branchName'>
+        branch_name,
+      </if>
+      <if test='null != deptName'>
+        dept_name,
+      </if>
+      <if test='null != lineSddj'>
+        line_sddj,
+      </if>
+      <if test='null != lineName'>
+        line_name,
+      </if>
+      <if test='null != stationName'>
+        station_name,
+      </if>
+      <if test='null != lineXz'>
+        line_xz,
+      </if>
+      <if test='null != substationName'>
+        substation_name,
+      </if>
+      <if test='null != switchHigh'>
+        switch_high,
+      </if>
+      <if test='null != switchLow'>
+        switch_low,
+      </if>
+      <if test='null != lastYear'>
+        last_year,
+      </if>
+      <if test='null != planMonth'>
+        plan_month,
+      </if>
+      <if test='null != overdueReminder'>
+        overdue_reminder,
+      </if>
+      <if test='null != completionDate'>
+        completion_date,
+      </if>
+      <if test='null != jhtzjy'>
+        jhtzjy,
+      </if>
+      <if test='null != overdueReason'>
+        overdue_reason
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test='null != branchName'>
+        #{branchName},
+      </if>
+      <if test='null != deptName'>
+        #{deptName},
+      </if>
+      <if test='null != lineSddj'>
+        #{lineSddj},
+      </if>
+      <if test='null != lineName'>
+        #{lineName},
+      </if>
+      <if test='null != stationName'>
+        #{stationName},
+      </if>
+      <if test='null != lineXz'>
+        #{lineXz},
+      </if>
+      <if test='null != substationName'>
+        #{substationName},
+      </if>
+      <if test='null != switchHigh'>
+        #{switchHigh},
+      </if>
+      <if test='null != switchLow'>
+        #{switchLow},
+      </if>
+      <if test='null != lastYear'>
+        #{lastYear},
+      </if>
+      <if test='null != planMonth'>
+        #{planMonth},
+      </if>
+      <if test='null != overdueReminder'>
+        #{overdueReminder},
+      </if>
+      <if test='null != completionDate'>
+        #{completionDate},
+      </if>
+      <if test='null != jhtzjy'>
+        #{jhtzjy},
+      </if>
+      <if test='null != overdueReason'>
+        #{overdueReason}
+      </if>
+    </trim>
+  </insert>
 
-    <delete id="delete">
-        UPDATE show_ydts
-        set del_flag='1'
-        WHERE id = #{id}
-    </delete>
+  <delete id="delete">
+    UPDATE show_ydts
+    set del_flag='1'
+    WHERE id = #{id}
+  </delete>
 
-    <update id="update" parameterType="com.railway.business.bi.domain.ShowYdts">
-        UPDATE show_ydts
-        <set>
-                    <if test ='null != branchName'>branch_name = #{branchName},</if>
-                    <if test ='null != deptName'>dept_name = #{deptName},</if>
-                    <if test ='null != lineSddj'>line_sddj = #{lineSddj},</if>
-                    <if test ='null != lineName'>line_name = #{lineName},</if>
-                    <if test ='null != stationName'>station_name = #{stationName},</if>
-                    <if test ='null != lineXz'>line_xz = #{lineXz},</if>
-                    <if test ='null != substationName'>substation_name = #{substationName},</if>
-                    <if test ='null != switchHigh'>switch_high = #{switchHigh},</if>
-                    <if test ='null != switchLow'>switch_low = #{switchLow},</if>
-                    <if test ='null != lastYear'>last_year = #{lastYear},</if>
-                    <if test ='null != planMonth'>plan_month = #{planMonth},</if>
-                    <if test ='null != overdueReminder'>overdue_reminder = #{overdueReminder},</if>
-                    <if test ='null != completionDate'>completion_date = #{completionDate},</if>
-                    <if test ='null != jhtzjy'>jhtzjy = #{jhtzjy},</if>
-                    <if test ='null != overdueReason'>overdue_reason = #{overdueReason}</if>
-        </set>
-        WHERE id = #{id}
-    </update>
+  <update id="update" parameterType="com.railway.business.bi.domain.ShowYdts">
+    UPDATE show_ydts
+    <set>
+      <if test='null != branchName'>branch_name = #{branchName},</if>
+      <if test='null != deptName'>dept_name = #{deptName},</if>
+      <if test='null != lineSddj'>line_sddj = #{lineSddj},</if>
+      <if test='null != lineName'>line_name = #{lineName},</if>
+      <if test='null != stationName'>station_name = #{stationName},</if>
+      <if test='null != lineXz'>line_xz = #{lineXz},</if>
+      <if test='null != substationName'>substation_name = #{substationName},</if>
+      <if test='null != switchHigh'>switch_high = #{switchHigh},</if>
+      <if test='null != switchLow'>switch_low = #{switchLow},</if>
+      <if test='null != lastYear'>last_year = #{lastYear},</if>
+      <if test='null != planMonth'>plan_month = #{planMonth},</if>
+      <if test='null != overdueReminder'>overdue_reminder = #{overdueReminder},</if>
+      <if test='null != completionDate'>completion_date = #{completionDate},</if>
+      <if test='null != jhtzjy'>jhtzjy = #{jhtzjy},</if>
+      <if test='null != overdueReason'>overdue_reason = #{overdueReason}</if>
+    </set>
+    WHERE id = #{id}
+  </update>
 
 
-    <select id="getInfo" resultMap="BaseResultMap">
-        SELECT
-        <include refid="Base_Column_List"/>
-        FROM show_ydts
-        WHERE del_flag='0' and id = #{id}
+  <select id="getInfo" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_ydts
+    WHERE del_flag='0' and id = #{id}
 
-    </select>
+  </select>
 
-    <select id="getList" resultMap="BaseResultMap">
-        SELECT
-        <include refid="Base_Column_List"/>
-        FROM show_ydts
-        <where>
-            del_flag='0'
-                <if test="branchName!=null and branchName!=''">
-                    and branch_name=#{branchName}
-                </if>
-                <if test="deptName!=null and deptName!=''">
-                    and dept_name=#{deptName}
-                </if>
-                <if test="lineSddj!=null and lineSddj!=''">
-                    and line_sddj=#{lineSddj}
-                </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="lineXz!=null and lineXz!=''">
-                    and line_xz=#{lineXz}
-                </if>
-                <if test="substationName!=null and substationName!=''">
-                    and substation_name=#{substationName}
-                </if>
-                <if test="switchHigh!=null and switchHigh!=''">
-                    and switch_high=#{switchHigh}
-                </if>
-                <if test="switchLow!=null and switchLow!=''">
-                    and switch_low=#{switchLow}
-                </if>
-                <if test="lastYear!=null and lastYear!=''">
-                    and last_year=#{lastYear}
-                </if>
-                <if test="planMonth!=null and planMonth!=''">
-                    and plan_month=#{planMonth}
-                </if>
-                <if test="overdueReminder!=null and overdueReminder!=''">
-                    and overdue_reminder=#{overdueReminder}
-                </if>
-                <if test="completionDate!=null and completionDate!=''">
-                    and completion_date=#{completionDate}
-                </if>
-                <if test="jhtzjy!=null and jhtzjy!=''">
-                    and jhtzjy=#{jhtzjy}
-                </if>
-                <if test="overdueReason!=null and overdueReason!=''">
-                    and overdue_reason=#{overdueReason}
-                </if>
-        </where>
-    </select>
+  <select id="getList" resultMap="BaseResultMap">
+    SELECT
+    <include refid="Base_Column_List"/>
+    FROM show_ydts
+    <where>
+      del_flag='0'
+      <if test="branchName!=null and branchName!=''">
+        and branch_name=#{branchName}
+      </if>
+      <if test="deptName!=null and deptName!=''">
+        and dept_name=#{deptName}
+      </if>
+      <if test="lineSddj!=null and lineSddj!=''">
+        and line_sddj=#{lineSddj}
+      </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="lineXz!=null and lineXz!=''">
+        and line_xz=#{lineXz}
+      </if>
+      <if test="substationName!=null and substationName!=''">
+        and substation_name=#{substationName}
+      </if>
+      <if test="switchHigh!=null and switchHigh!=''">
+        and switch_high=#{switchHigh}
+      </if>
+      <if test="switchLow!=null and switchLow!=''">
+        and switch_low=#{switchLow}
+      </if>
+      <if test="lastYear!=null and lastYear!=''">
+        and last_year=#{lastYear}
+      </if>
+      <if test="planMonth!=null and planMonth!=''">
+        and plan_month=#{planMonth}
+      </if>
+      <if test="overdueReminder!=null and overdueReminder!=''">
+        and overdue_reminder=#{overdueReminder}
+      </if>
+      <if test="completionDate!=null and completionDate!=''">
+        and completion_date=#{completionDate}
+      </if>
+      <if test="jhtzjy!=null and jhtzjy!=''">
+        and jhtzjy=#{jhtzjy}
+      </if>
+      <if test="overdueReason!=null and overdueReason!=''">
+        and overdue_reason=#{overdueReason}
+      </if>
+    </where>
+  </select>
 
 </mapper>