|
|
@@ -0,0 +1,320 @@
|
|
|
+<?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.BusJcbQmjcjlMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbQmjcjl">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="qj" property="qj"/>
|
|
|
+ <result column="zzh" property="zzh"/>
|
|
|
+ <result column="qxly" property="qxly"/>
|
|
|
+ <result column="wz" property="wz"/>
|
|
|
+ <result column="qxnr" property="qxnr"/>
|
|
|
+ <result column="qxdj" property="qxdj"/>
|
|
|
+ <result column="clcs" property="clcs"/>
|
|
|
+ <result column="xhzt" property="xhzt"/>
|
|
|
+ <result column="whby" property="whby"/>
|
|
|
+ <result column="jyqs" property="jyqs"/>
|
|
|
+ <result column="sbzt" property="sbzt"/>
|
|
|
+ <result column="czr" property="czr"/>
|
|
|
+ <result column="gzldr" property="gzldr"/>
|
|
|
+ <result column="ysr" property="ysr"/>
|
|
|
+ <result column="rq" property="rq"/>
|
|
|
+ <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,
|
|
|
+ zzh,
|
|
|
+ qxly,
|
|
|
+ wz,
|
|
|
+ qxnr,
|
|
|
+ qxdj,
|
|
|
+ clcs,
|
|
|
+ xhzt,
|
|
|
+ whby,
|
|
|
+ jyqs,
|
|
|
+ sbzt,
|
|
|
+ czr,
|
|
|
+ gzldr,
|
|
|
+ ysr,
|
|
|
+ rq,
|
|
|
+ remark,
|
|
|
+ submit_state,
|
|
|
+ del_flag,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbQmjcjl">
|
|
|
+ <selectKey keyProperty="id" order="BEFORE" resultType="String">
|
|
|
+ select replace(uuid(), '-', '') from dual
|
|
|
+ </selectKey>
|
|
|
+ INSERT INTO bus_jcb_qmjcjl
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != qj'>
|
|
|
+ qj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzh'>
|
|
|
+ zzh,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxly'>
|
|
|
+ qxly,
|
|
|
+ </if>
|
|
|
+ <if test ='null != wz'>
|
|
|
+ wz,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxnr'>
|
|
|
+ qxnr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdj'>
|
|
|
+ qxdj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != clcs'>
|
|
|
+ clcs,
|
|
|
+ </if>
|
|
|
+ <if test ='null != xhzt'>
|
|
|
+ xhzt,
|
|
|
+ </if>
|
|
|
+ <if test ='null != whby'>
|
|
|
+ whby,
|
|
|
+ </if>
|
|
|
+ <if test ='null != jyqs'>
|
|
|
+ jyqs,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sbzt'>
|
|
|
+ sbzt,
|
|
|
+ </if>
|
|
|
+ <if test ='null != czr'>
|
|
|
+ czr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != gzldr'>
|
|
|
+ gzldr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ysr'>
|
|
|
+ ysr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != rq'>
|
|
|
+ rq,
|
|
|
+ </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 != qj'>
|
|
|
+ #{qj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != zzh'>
|
|
|
+ #{zzh},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxly'>
|
|
|
+ #{qxly},
|
|
|
+ </if>
|
|
|
+ <if test ='null != wz'>
|
|
|
+ #{wz},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxnr'>
|
|
|
+ #{qxnr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdj'>
|
|
|
+ #{qxdj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != clcs'>
|
|
|
+ #{clcs},
|
|
|
+ </if>
|
|
|
+ <if test ='null != xhzt'>
|
|
|
+ #{xhzt},
|
|
|
+ </if>
|
|
|
+ <if test ='null != whby'>
|
|
|
+ #{whby},
|
|
|
+ </if>
|
|
|
+ <if test ='null != jyqs'>
|
|
|
+ #{jyqs},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sbzt'>
|
|
|
+ #{sbzt},
|
|
|
+ </if>
|
|
|
+ <if test ='null != czr'>
|
|
|
+ #{czr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != gzldr'>
|
|
|
+ #{gzldr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ysr'>
|
|
|
+ #{ysr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != rq'>
|
|
|
+ #{rq},
|
|
|
+ </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_jcb_qmjcjl
|
|
|
+ set del_flag='1'
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbQmjcjl">
|
|
|
+ UPDATE bus_jcb_qmjcjl
|
|
|
+ <set>
|
|
|
+ <if test ='null != qj'>qj = #{qj},</if>
|
|
|
+ <if test ='null != zzh'>zzh = #{zzh},</if>
|
|
|
+ <if test ='null != qxly'>qxly = #{qxly},</if>
|
|
|
+ <if test ='null != wz'>wz = #{wz},</if>
|
|
|
+ <if test ='null != qxnr'>qxnr = #{qxnr},</if>
|
|
|
+ <if test ='null != qxdj'>qxdj = #{qxdj},</if>
|
|
|
+ <if test ='null != clcs'>clcs = #{clcs},</if>
|
|
|
+ <if test ='null != xhzt'>xhzt = #{xhzt},</if>
|
|
|
+ <if test ='null != whby'>whby = #{whby},</if>
|
|
|
+ <if test ='null != jyqs'>jyqs = #{jyqs},</if>
|
|
|
+ <if test ='null != sbzt'>sbzt = #{sbzt},</if>
|
|
|
+ <if test ='null != czr'>czr = #{czr},</if>
|
|
|
+ <if test ='null != gzldr'>gzldr = #{gzldr},</if>
|
|
|
+ <if test ='null != ysr'>ysr = #{ysr},</if>
|
|
|
+ <if test ='null != rq'>rq = #{rq},</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_jcb_qmjcjl
|
|
|
+ WHERE del_flag='0' and id = #{id}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jcb_qmjcjl
|
|
|
+ <where>
|
|
|
+ del_flag='0'
|
|
|
+ <if test="qj!=null and qj!=''">
|
|
|
+ and qj=#{qj}
|
|
|
+ </if>
|
|
|
+ <if test="zzh!=null and zzh!=''">
|
|
|
+ and zzh=#{zzh}
|
|
|
+ </if>
|
|
|
+ <if test="qxly!=null and qxly!=''">
|
|
|
+ and qxly=#{qxly}
|
|
|
+ </if>
|
|
|
+ <if test="wz!=null and wz!=''">
|
|
|
+ and wz=#{wz}
|
|
|
+ </if>
|
|
|
+ <if test="qxnr!=null and qxnr!=''">
|
|
|
+ and qxnr=#{qxnr}
|
|
|
+ </if>
|
|
|
+ <if test="qxdj!=null and qxdj!=''">
|
|
|
+ and qxdj=#{qxdj}
|
|
|
+ </if>
|
|
|
+ <if test="clcs!=null and clcs!=''">
|
|
|
+ and clcs=#{clcs}
|
|
|
+ </if>
|
|
|
+ <if test="xhzt!=null and xhzt!=''">
|
|
|
+ and xhzt=#{xhzt}
|
|
|
+ </if>
|
|
|
+ <if test="whby!=null and whby!=''">
|
|
|
+ and whby=#{whby}
|
|
|
+ </if>
|
|
|
+ <if test="jyqs!=null and jyqs!=''">
|
|
|
+ and jyqs=#{jyqs}
|
|
|
+ </if>
|
|
|
+ <if test="sbzt!=null and sbzt!=''">
|
|
|
+ and sbzt=#{sbzt}
|
|
|
+ </if>
|
|
|
+ <if test="czr!=null and czr!=''">
|
|
|
+ and czr=#{czr}
|
|
|
+ </if>
|
|
|
+ <if test="gzldr!=null and gzldr!=''">
|
|
|
+ and gzldr=#{gzldr}
|
|
|
+ </if>
|
|
|
+ <if test="ysr!=null and ysr!=''">
|
|
|
+ and ysr=#{ysr}
|
|
|
+ </if>
|
|
|
+ <if test="rq!=null and rq!=''">
|
|
|
+ and rq=#{rq}
|
|
|
+ </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>
|