|
|
@@ -0,0 +1,356 @@
|
|
|
+<?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.catenary.mapper.BusJcebFzswjfxcMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcebFzswjfxc">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="dept_station_id" property="deptStationId"/>
|
|
|
+ <result column="pillar_code" property="pillarCode"/>
|
|
|
+ <result column="xch" property="xch"/>
|
|
|
+ <result column="xc_id" property="xcId"/>
|
|
|
+ <result column="operation_date" property="operationDate"/>
|
|
|
+ <result column="zxzlcz" property="zxzlcz"/>
|
|
|
+ <result column="fxzlcz_xdzg" property="fxzlczXdzg"/>
|
|
|
+ <result column="fxzlcz_xdqg" property="fxzlczXdqg"/>
|
|
|
+ <result column="cxzlcz" property="cxzlcz"/>
|
|
|
+ <result column="zxzdg" property="zxzdg"/>
|
|
|
+ <result column="fxzdg_xdzg" property="fxzdgXdzg"/>
|
|
|
+ <result column="fxzdg_xdqg" property="fxzdgXdqg"/>
|
|
|
+ <result column="cxzdg" property="cxzdg"/>
|
|
|
+ <result column="zxzxdzxdg" property="zxzxdzxdg"/>
|
|
|
+ <result column="zxzxdzxlcz" property="zxzxdzxlcz"/>
|
|
|
+ <result column="cxzxdzxdg" property="cxzxdzxdg"/>
|
|
|
+ <result column="cxzxdzxlcz" property="cxzxdzxlcz"/>
|
|
|
+ <result column="operator" property="operator"/>
|
|
|
+ <result column="remark" property="remark"/>
|
|
|
+ <result column="submit_state" property="submitState"/>
|
|
|
+ <result column="del_flag" property="delFlag"/>
|
|
|
+ <result column="create_by" property="createBy"/>
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
+ <result column="update_by" property="updateBy"/>
|
|
|
+ <result column="update_time" property="updateTime"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,
|
|
|
+ dept_station_id,
|
|
|
+ pillar_code,
|
|
|
+ xch,
|
|
|
+ xc_id,
|
|
|
+ operation_date,
|
|
|
+ zxzlcz,
|
|
|
+ fxzlcz_xdzg,
|
|
|
+ fxzlcz_xdqg,
|
|
|
+ cxzlcz,
|
|
|
+ zxzdg,
|
|
|
+ fxzdg_xdzg,
|
|
|
+ fxzdg_xdqg,
|
|
|
+ cxzdg,
|
|
|
+ zxzxdzxdg,
|
|
|
+ zxzxdzxlcz,
|
|
|
+ cxzxdzxdg,
|
|
|
+ cxzxdzxlcz,
|
|
|
+ operator,
|
|
|
+ remark,
|
|
|
+ submit_state,
|
|
|
+ del_flag,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcebFzswjfxc">
|
|
|
+ <selectKey keyProperty="id" order="BEFORE" resultType="String">
|
|
|
+ select replace(uuid(), '-', '') from dual
|
|
|
+ </selectKey>
|
|
|
+ INSERT INTO bus_jceb_fzswjfxc
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != deptStationId'>
|
|
|
+ dept_station_id,
|
|
|
+ </if>
|
|
|
+ <if test='null != pillarCode'>
|
|
|
+ pillar_code,
|
|
|
+ </if>
|
|
|
+ <if test='null != xch'>
|
|
|
+ xch,
|
|
|
+ </if>
|
|
|
+ <if test='null != xcId'>
|
|
|
+ xc_id,
|
|
|
+ </if>
|
|
|
+ <if test='null != operationDate'>
|
|
|
+ operation_date,
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzlcz'>
|
|
|
+ zxzlcz,
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzlczXdzg'>
|
|
|
+ fxzlcz_xdzg,
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzlczXdqg'>
|
|
|
+ fxzlcz_xdqg,
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzlcz'>
|
|
|
+ cxzlcz,
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzdg'>
|
|
|
+ zxzdg,
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzdgXdzg'>
|
|
|
+ fxzdg_xdzg,
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzdgXdqg'>
|
|
|
+ fxzdg_xdqg,
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzdg'>
|
|
|
+ cxzdg,
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzxdzxdg'>
|
|
|
+ zxzxdzxdg,
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzxdzxlcz'>
|
|
|
+ zxzxdzxlcz,
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzxdzxdg'>
|
|
|
+ cxzxdzxdg,
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzxdzxlcz'>
|
|
|
+ cxzxdzxlcz,
|
|
|
+ </if>
|
|
|
+ <if test='null != operator'>
|
|
|
+ operator,
|
|
|
+ </if>
|
|
|
+ <if test='null != remark'>
|
|
|
+ remark,
|
|
|
+ </if>
|
|
|
+ <if test='null != submitState'>
|
|
|
+ submit_state,
|
|
|
+ </if>
|
|
|
+ <if test='null != delFlag'>
|
|
|
+ del_flag,
|
|
|
+ </if>
|
|
|
+ <if test='null != createBy'>
|
|
|
+ create_by,
|
|
|
+ </if>
|
|
|
+ <if test='null != createTime'>
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test='null != updateBy'>
|
|
|
+ update_by,
|
|
|
+ </if>
|
|
|
+ <if test='null != updateTime'>
|
|
|
+ update_time
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test='null != deptStationId'>
|
|
|
+ #{deptStationId},
|
|
|
+ </if>
|
|
|
+ <if test='null != pillarCode'>
|
|
|
+ #{pillarCode},
|
|
|
+ </if>
|
|
|
+ <if test='null != xch'>
|
|
|
+ #{xch},
|
|
|
+ </if>
|
|
|
+ <if test='null != xcId'>
|
|
|
+ #{xcId},
|
|
|
+ </if>
|
|
|
+ <if test='null != operationDate'>
|
|
|
+ #{operationDate},
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzlcz'>
|
|
|
+ #{zxzlcz},
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzlczXdzg'>
|
|
|
+ #{fxzlczXdzg},
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzlczXdqg'>
|
|
|
+ #{fxzlczXdqg},
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzlcz'>
|
|
|
+ #{cxzlcz},
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzdg'>
|
|
|
+ #{zxzdg},
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzdgXdzg'>
|
|
|
+ #{fxzdgXdzg},
|
|
|
+ </if>
|
|
|
+ <if test='null != fxzdgXdqg'>
|
|
|
+ #{fxzdgXdqg},
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzdg'>
|
|
|
+ #{cxzdg},
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzxdzxdg'>
|
|
|
+ #{zxzxdzxdg},
|
|
|
+ </if>
|
|
|
+ <if test='null != zxzxdzxlcz'>
|
|
|
+ #{zxzxdzxlcz},
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzxdzxdg'>
|
|
|
+ #{cxzxdzxdg},
|
|
|
+ </if>
|
|
|
+ <if test='null != cxzxdzxlcz'>
|
|
|
+ #{cxzxdzxlcz},
|
|
|
+ </if>
|
|
|
+ <if test='null != operator'>
|
|
|
+ #{operator},
|
|
|
+ </if>
|
|
|
+ <if test='null != remark'>
|
|
|
+ #{remark},
|
|
|
+ </if>
|
|
|
+ <if test='null != submitState'>
|
|
|
+ #{submitState},
|
|
|
+ </if>
|
|
|
+ <if test='null != delFlag'>
|
|
|
+ #{delFlag},
|
|
|
+ </if>
|
|
|
+ <if test='null != createBy'>
|
|
|
+ #{createBy},
|
|
|
+ </if>
|
|
|
+ <if test='null != createTime'>
|
|
|
+ #{createTime},
|
|
|
+ </if>
|
|
|
+ <if test='null != updateBy'>
|
|
|
+ #{updateBy},
|
|
|
+ </if>
|
|
|
+ <if test='null != updateTime'>
|
|
|
+ #{updateTime}
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <delete id="delete">
|
|
|
+ UPDATE bus_jceb_fzswjfxc
|
|
|
+ set del_flag='1'
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.railway.business.catenary.domain.BusJcebFzswjfxc">
|
|
|
+ UPDATE bus_jceb_fzswjfxc
|
|
|
+ <set>
|
|
|
+ <if test='null != deptStationId'>dept_station_id = #{deptStationId},</if>
|
|
|
+ <if test='null != pillarCode'>pillar_code = #{pillarCode},</if>
|
|
|
+ <if test='null != xch'>xch = #{xch},</if>
|
|
|
+ <if test='null != xcId'>xc_id = #{xcId},</if>
|
|
|
+ <if test='null != operationDate'>operation_date = #{operationDate},</if>
|
|
|
+ <if test='null != zxzlcz'>zxzlcz = #{zxzlcz},</if>
|
|
|
+ <if test='null != fxzlczXdzg'>fxzlcz_xdzg = #{fxzlczXdzg},</if>
|
|
|
+ <if test='null != fxzlczXdqg'>fxzlcz_xdqg = #{fxzlczXdqg},</if>
|
|
|
+ <if test='null != cxzlcz'>cxzlcz = #{cxzlcz},</if>
|
|
|
+ <if test='null != zxzdg'>zxzdg = #{zxzdg},</if>
|
|
|
+ <if test='null != fxzdgXdzg'>fxzdg_xdzg = #{fxzdgXdzg},</if>
|
|
|
+ <if test='null != fxzdgXdqg'>fxzdg_xdqg = #{fxzdgXdqg},</if>
|
|
|
+ <if test='null != cxzdg'>cxzdg = #{cxzdg},</if>
|
|
|
+ <if test='null != zxzxdzxdg'>zxzxdzxdg = #{zxzxdzxdg},</if>
|
|
|
+ <if test='null != zxzxdzxlcz'>zxzxdzxlcz = #{zxzxdzxlcz},</if>
|
|
|
+ <if test='null != cxzxdzxdg'>cxzxdzxdg = #{cxzxdzxdg},</if>
|
|
|
+ <if test='null != cxzxdzxlcz'>cxzxdzxlcz = #{cxzxdzxlcz},</if>
|
|
|
+ <if test='null != operator'>operator = #{operator},</if>
|
|
|
+ <if test='null != remark'>remark = #{remark},</if>
|
|
|
+ <if test='null != submitState'>submit_state = #{submitState},</if>
|
|
|
+ <if test='null != delFlag'>del_flag = #{delFlag},</if>
|
|
|
+ <if test='null != createBy'>create_by = #{createBy},</if>
|
|
|
+ <if test='null != createTime'>create_time = #{createTime},</if>
|
|
|
+ <if test='null != updateBy'>update_by = #{updateBy},</if>
|
|
|
+ <if test='null != updateTime'>update_time = #{updateTime}</if>
|
|
|
+ </set>
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getInfo" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_fzswjfxc
|
|
|
+ WHERE del_flag='0' and id = #{id}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_fzswjfxc
|
|
|
+ <where>
|
|
|
+ del_flag='0'
|
|
|
+ <if test="deptStationId!=null and deptStationId!=''">
|
|
|
+ and dept_station_id=#{deptStationId}
|
|
|
+ </if>
|
|
|
+ <if test="pillarCode!=null and pillarCode!=''">
|
|
|
+ and pillar_code=#{pillarCode}
|
|
|
+ </if>
|
|
|
+ <if test="xch!=null and xch!=''">
|
|
|
+ and xch=#{xch}
|
|
|
+ </if>
|
|
|
+ <if test="xcId!=null and xcId!=''">
|
|
|
+ and xc_id=#{xcId}
|
|
|
+ </if>
|
|
|
+ <if test="operationDate!=null and operationDate!=''">
|
|
|
+ and operation_date=#{operationDate}
|
|
|
+ </if>
|
|
|
+ <if test="zxzlcz!=null and zxzlcz!=''">
|
|
|
+ and zxzlcz=#{zxzlcz}
|
|
|
+ </if>
|
|
|
+ <if test="fxzlczXdzg!=null and fxzlczXdzg!=''">
|
|
|
+ and fxzlcz_xdzg=#{fxzlczXdzg}
|
|
|
+ </if>
|
|
|
+ <if test="fxzlczXdqg!=null and fxzlczXdqg!=''">
|
|
|
+ and fxzlcz_xdqg=#{fxzlczXdqg}
|
|
|
+ </if>
|
|
|
+ <if test="cxzlcz!=null and cxzlcz!=''">
|
|
|
+ and cxzlcz=#{cxzlcz}
|
|
|
+ </if>
|
|
|
+ <if test="zxzdg!=null and zxzdg!=''">
|
|
|
+ and zxzdg=#{zxzdg}
|
|
|
+ </if>
|
|
|
+ <if test="fxzdgXdzg!=null and fxzdgXdzg!=''">
|
|
|
+ and fxzdg_xdzg=#{fxzdgXdzg}
|
|
|
+ </if>
|
|
|
+ <if test="fxzdgXdqg!=null and fxzdgXdqg!=''">
|
|
|
+ and fxzdg_xdqg=#{fxzdgXdqg}
|
|
|
+ </if>
|
|
|
+ <if test="cxzdg!=null and cxzdg!=''">
|
|
|
+ and cxzdg=#{cxzdg}
|
|
|
+ </if>
|
|
|
+ <if test="zxzxdzxdg!=null and zxzxdzxdg!=''">
|
|
|
+ and zxzxdzxdg=#{zxzxdzxdg}
|
|
|
+ </if>
|
|
|
+ <if test="zxzxdzxlcz!=null and zxzxdzxlcz!=''">
|
|
|
+ and zxzxdzxlcz=#{zxzxdzxlcz}
|
|
|
+ </if>
|
|
|
+ <if test="cxzxdzxdg!=null and cxzxdzxdg!=''">
|
|
|
+ and cxzxdzxdg=#{cxzxdzxdg}
|
|
|
+ </if>
|
|
|
+ <if test="cxzxdzxlcz!=null and cxzxdzxlcz!=''">
|
|
|
+ and cxzxdzxlcz=#{cxzxdzxlcz}
|
|
|
+ </if>
|
|
|
+ <if test="operator!=null and operator!=''">
|
|
|
+ and operator=#{operator}
|
|
|
+ </if>
|
|
|
+ <if test="remark!=null and remark!=''">
|
|
|
+ and remark=#{remark}
|
|
|
+ </if>
|
|
|
+ <if test="submitState!=null and submitState!=''">
|
|
|
+ and submit_state=#{submitState}
|
|
|
+ </if>
|
|
|
+ <if test="delFlag!=null and delFlag!=''">
|
|
|
+ and del_flag=#{delFlag}
|
|
|
+ </if>
|
|
|
+ <if test="createBy!=null and createBy!=''">
|
|
|
+ and create_by=#{createBy}
|
|
|
+ </if>
|
|
|
+ <if test="createTime!=null and createTime!=''">
|
|
|
+ and create_time=#{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateBy!=null and updateBy!=''">
|
|
|
+ and update_by=#{updateBy}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime!=null and updateTime!=''">
|
|
|
+ and update_time=#{updateTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|