|
|
@@ -0,0 +1,368 @@
|
|
|
+<?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.BusJcebGjsfxMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcebGjsfx">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="qj_id" property="qjId"/>
|
|
|
+ <result column="qj" property="qj"/>
|
|
|
+ <result column="zzh_start" property="zzhStart"/>
|
|
|
+ <result column="zzh_end" property="zzhEnd"/>
|
|
|
+ <result column="jcrq" property="jcrq"/>
|
|
|
+ <result column="lmdjcspjl_zhz1" property="lmdjcspjlZhz1"/>
|
|
|
+ <result column="lmdjcspjl_zhz2" property="lmdjcspjlZhz2"/>
|
|
|
+ <result column="lmdjcspjl_zxz2" property="lmdjcspjlZxz2"/>
|
|
|
+ <result column="lmdjcspjl_zhz3" property="lmdjcspjlZhz3"/>
|
|
|
+ <result column="lmdjcspjl_zhz4" property="lmdjcspjlZhz4"/>
|
|
|
+ <result column="lmdjcczjl_zhz1" property="lmdjcczjlZhz1"/>
|
|
|
+ <result column="lmdjcczjl_zhz2" property="lmdjcczjlZhz2"/>
|
|
|
+ <result column="lmdjcczjl_zxz2" property="lmdjcczjlZxz2"/>
|
|
|
+ <result column="lmdjcczjl_zhz3" property="lmdjcczjlZhz3"/>
|
|
|
+ <result column="lmdjcczjl_zhz4" property="lmdjcczjlZhz4"/>
|
|
|
+ <result column="kgyxdcljzt" property="kgyxdcljzt"/>
|
|
|
+ <result column="jyjsffhbz" property="jyjsffhbz"/>
|
|
|
+ <result column="xmzjcxcztyyggjcctg" property="xmzjcxcztyyggjcctg"/>
|
|
|
+ <result column="jcr" property="jcr"/>
|
|
|
+ <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,
|
|
|
+ qj_id,
|
|
|
+ qj,
|
|
|
+ zzh_start,
|
|
|
+ zzh_end,
|
|
|
+ jcrq,
|
|
|
+ lmdjcspjl_zhz1,
|
|
|
+ lmdjcspjl_zhz2,
|
|
|
+ lmdjcspjl_zxz2,
|
|
|
+ lmdjcspjl_zhz3,
|
|
|
+ lmdjcspjl_zhz4,
|
|
|
+ lmdjcczjl_zhz1,
|
|
|
+ lmdjcczjl_zhz2,
|
|
|
+ lmdjcczjl_zxz2,
|
|
|
+ lmdjcczjl_zhz3,
|
|
|
+ lmdjcczjl_zhz4,
|
|
|
+ kgyxdcljzt,
|
|
|
+ jyjsffhbz,
|
|
|
+ xmzjcxcztyyggjcctg,
|
|
|
+ jcr,
|
|
|
+ remark,
|
|
|
+ submit_state,
|
|
|
+ del_flag,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcebGjsfx">
|
|
|
+ <selectKey keyProperty="id" order="BEFORE" resultType="String">
|
|
|
+ select replace(uuid(), '-', '') from dual
|
|
|
+ </selectKey>
|
|
|
+ INSERT INTO bus_jceb_gjsfx
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != qjId'>
|
|
|
+ qj_id,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qj'>
|
|
|
+ qj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzhStart'>
|
|
|
+ zzh_start,
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzhEnd'>
|
|
|
+ zzh_end,
|
|
|
+ </if>
|
|
|
+ <if test ='null != jcrq'>
|
|
|
+ jcrq,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz1'>
|
|
|
+ lmdjcspjl_zhz1,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz2'>
|
|
|
+ lmdjcspjl_zhz2,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZxz2'>
|
|
|
+ lmdjcspjl_zxz2,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz3'>
|
|
|
+ lmdjcspjl_zhz3,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz4'>
|
|
|
+ lmdjcspjl_zhz4,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz1'>
|
|
|
+ lmdjcczjl_zhz1,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz2'>
|
|
|
+ lmdjcczjl_zhz2,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZxz2'>
|
|
|
+ lmdjcczjl_zxz2,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz3'>
|
|
|
+ lmdjcczjl_zhz3,
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz4'>
|
|
|
+ lmdjcczjl_zhz4,
|
|
|
+ </if>
|
|
|
+ <if test ='null != kgyxdcljzt'>
|
|
|
+ kgyxdcljzt,
|
|
|
+ </if>
|
|
|
+ <if test ='null != jyjsffhbz'>
|
|
|
+ jyjsffhbz,
|
|
|
+ </if>
|
|
|
+ <if test ='null != xmzjcxcztyyggjcctg'>
|
|
|
+ xmzjcxcztyyggjcctg,
|
|
|
+ </if>
|
|
|
+ <if test ='null != jcr'>
|
|
|
+ jcr,
|
|
|
+ </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 != qjId'>
|
|
|
+ #{qjId},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qj'>
|
|
|
+ #{qj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzhStart'>
|
|
|
+ #{zzhStart},
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzhEnd'>
|
|
|
+ #{zzhEnd},
|
|
|
+ </if>
|
|
|
+ <if test ='null != jcrq'>
|
|
|
+ #{jcrq},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz1'>
|
|
|
+ #{lmdjcspjlZhz1},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz2'>
|
|
|
+ #{lmdjcspjlZhz2},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZxz2'>
|
|
|
+ #{lmdjcspjlZxz2},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz3'>
|
|
|
+ #{lmdjcspjlZhz3},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcspjlZhz4'>
|
|
|
+ #{lmdjcspjlZhz4},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz1'>
|
|
|
+ #{lmdjcczjlZhz1},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz2'>
|
|
|
+ #{lmdjcczjlZhz2},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZxz2'>
|
|
|
+ #{lmdjcczjlZxz2},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz3'>
|
|
|
+ #{lmdjcczjlZhz3},
|
|
|
+ </if>
|
|
|
+ <if test ='null != lmdjcczjlZhz4'>
|
|
|
+ #{lmdjcczjlZhz4},
|
|
|
+ </if>
|
|
|
+ <if test ='null != kgyxdcljzt'>
|
|
|
+ #{kgyxdcljzt},
|
|
|
+ </if>
|
|
|
+ <if test ='null != jyjsffhbz'>
|
|
|
+ #{jyjsffhbz},
|
|
|
+ </if>
|
|
|
+ <if test ='null != xmzjcxcztyyggjcctg'>
|
|
|
+ #{xmzjcxcztyyggjcctg},
|
|
|
+ </if>
|
|
|
+ <if test ='null != jcr'>
|
|
|
+ #{jcr},
|
|
|
+ </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_gjsfx
|
|
|
+ set del_flag='1'
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.railway.business.catenary.domain.BusJcebGjsfx">
|
|
|
+ UPDATE bus_jceb_gjsfx
|
|
|
+ <set>
|
|
|
+ <if test ='null != qjId'>qj_id = #{qjId},</if>
|
|
|
+ <if test ='null != qj'>qj = #{qj},</if>
|
|
|
+ <if test ='null != zzhStart'>zzh_start = #{zzhStart},</if>
|
|
|
+ <if test ='null != zzhEnd'>zzh_end = #{zzhEnd},</if>
|
|
|
+ <if test ='null != jcrq'>jcrq = #{jcrq},</if>
|
|
|
+ <if test ='null != lmdjcspjlZhz1'>lmdjcspjl_zhz1 = #{lmdjcspjlZhz1},</if>
|
|
|
+ <if test ='null != lmdjcspjlZhz2'>lmdjcspjl_zhz2 = #{lmdjcspjlZhz2},</if>
|
|
|
+ <if test ='null != lmdjcspjlZxz2'>lmdjcspjl_zxz2 = #{lmdjcspjlZxz2},</if>
|
|
|
+ <if test ='null != lmdjcspjlZhz3'>lmdjcspjl_zhz3 = #{lmdjcspjlZhz3},</if>
|
|
|
+ <if test ='null != lmdjcspjlZhz4'>lmdjcspjl_zhz4 = #{lmdjcspjlZhz4},</if>
|
|
|
+ <if test ='null != lmdjcczjlZhz1'>lmdjcczjl_zhz1 = #{lmdjcczjlZhz1},</if>
|
|
|
+ <if test ='null != lmdjcczjlZhz2'>lmdjcczjl_zhz2 = #{lmdjcczjlZhz2},</if>
|
|
|
+ <if test ='null != lmdjcczjlZxz2'>lmdjcczjl_zxz2 = #{lmdjcczjlZxz2},</if>
|
|
|
+ <if test ='null != lmdjcczjlZhz3'>lmdjcczjl_zhz3 = #{lmdjcczjlZhz3},</if>
|
|
|
+ <if test ='null != lmdjcczjlZhz4'>lmdjcczjl_zhz4 = #{lmdjcczjlZhz4},</if>
|
|
|
+ <if test ='null != kgyxdcljzt'>kgyxdcljzt = #{kgyxdcljzt},</if>
|
|
|
+ <if test ='null != jyjsffhbz'>jyjsffhbz = #{jyjsffhbz},</if>
|
|
|
+ <if test ='null != xmzjcxcztyyggjcctg'>xmzjcxcztyyggjcctg = #{xmzjcxcztyyggjcctg},</if>
|
|
|
+ <if test ='null != jcr'>jcr = #{jcr},</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_gjsfx
|
|
|
+ WHERE del_flag='0' and id = #{id}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_gjsfx
|
|
|
+ <where>
|
|
|
+ del_flag='0'
|
|
|
+ <if test="qjId!=null and qjId!=''">
|
|
|
+ and qj_id=#{qjId}
|
|
|
+ </if>
|
|
|
+ <if test="qj!=null and qj!=''">
|
|
|
+ and qj=#{qj}
|
|
|
+ </if>
|
|
|
+ <if test="zzhStart!=null and zzhStart!=''">
|
|
|
+ and zzh_start=#{zzhStart}
|
|
|
+ </if>
|
|
|
+ <if test="zzhEnd!=null and zzhEnd!=''">
|
|
|
+ and zzh_end=#{zzhEnd}
|
|
|
+ </if>
|
|
|
+ <if test="jcrq!=null and jcrq!=''">
|
|
|
+ and jcrq=#{jcrq}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcspjlZhz1!=null and lmdjcspjlZhz1!=''">
|
|
|
+ and lmdjcspjl_zhz1=#{lmdjcspjlZhz1}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcspjlZhz2!=null and lmdjcspjlZhz2!=''">
|
|
|
+ and lmdjcspjl_zhz2=#{lmdjcspjlZhz2}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcspjlZxz2!=null and lmdjcspjlZxz2!=''">
|
|
|
+ and lmdjcspjl_zxz2=#{lmdjcspjlZxz2}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcspjlZhz3!=null and lmdjcspjlZhz3!=''">
|
|
|
+ and lmdjcspjl_zhz3=#{lmdjcspjlZhz3}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcspjlZhz4!=null and lmdjcspjlZhz4!=''">
|
|
|
+ and lmdjcspjl_zhz4=#{lmdjcspjlZhz4}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcczjlZhz1!=null and lmdjcczjlZhz1!=''">
|
|
|
+ and lmdjcczjl_zhz1=#{lmdjcczjlZhz1}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcczjlZhz2!=null and lmdjcczjlZhz2!=''">
|
|
|
+ and lmdjcczjl_zhz2=#{lmdjcczjlZhz2}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcczjlZxz2!=null and lmdjcczjlZxz2!=''">
|
|
|
+ and lmdjcczjl_zxz2=#{lmdjcczjlZxz2}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcczjlZhz3!=null and lmdjcczjlZhz3!=''">
|
|
|
+ and lmdjcczjl_zhz3=#{lmdjcczjlZhz3}
|
|
|
+ </if>
|
|
|
+ <if test="lmdjcczjlZhz4!=null and lmdjcczjlZhz4!=''">
|
|
|
+ and lmdjcczjl_zhz4=#{lmdjcczjlZhz4}
|
|
|
+ </if>
|
|
|
+ <if test="kgyxdcljzt!=null and kgyxdcljzt!=''">
|
|
|
+ and kgyxdcljzt=#{kgyxdcljzt}
|
|
|
+ </if>
|
|
|
+ <if test="jyjsffhbz!=null and jyjsffhbz!=''">
|
|
|
+ and jyjsffhbz=#{jyjsffhbz}
|
|
|
+ </if>
|
|
|
+ <if test="xmzjcxcztyyggjcctg!=null and xmzjcxcztyyggjcctg!=''">
|
|
|
+ and xmzjcxcztyyggjcctg=#{xmzjcxcztyyggjcctg}
|
|
|
+ </if>
|
|
|
+ <if test="jcr!=null and jcr!=''">
|
|
|
+ and jcr=#{jcr}
|
|
|
+ </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>
|