|
|
@@ -0,0 +1,305 @@
|
|
|
+<?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.BusJcebXsjcjlMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcebXsjcjl">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="zhanqujian" property="zhanqujian"/>
|
|
|
+ <result column="xsjcrq" property="xsjcrq"/>
|
|
|
+ <result column="xsjcfs" property="xsjcfs"/>
|
|
|
+ <result column="qxdd" property="qxdd"/>
|
|
|
+ <result column="qxnr" property="qxnr"/>
|
|
|
+ <result column="qxdj" property="qxdj"/>
|
|
|
+ <result column="yqwcsj" property="yqwcsj"/>
|
|
|
+ <result column="xsjcr" property="xsjcr"/>
|
|
|
+ <result column="clcs" property="clcs"/>
|
|
|
+ <result column="cljg" property="cljg"/>
|
|
|
+ <result column="clqxldr" property="clqxldr"/>
|
|
|
+ <result column="clqxczz" property="clqxczz"/>
|
|
|
+ <result column="clrq" property="clrq"/>
|
|
|
+ <result column="beizhu" property="beizhu"/>
|
|
|
+ <result column="submit_status" property="submitStatus"/>
|
|
|
+ <result column="create_by" property="createBy"/>
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
+ <result column="update_by" property="updateBy"/>
|
|
|
+ <result column="update_time" property="updateTime"/>
|
|
|
+ <result column="user_id" property="userId"/>
|
|
|
+ <result column="del_flag" property="delFlag"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,
|
|
|
+ zhanqujian,
|
|
|
+ xsjcrq,
|
|
|
+ xsjcfs,
|
|
|
+ qxdd,
|
|
|
+ qxnr,
|
|
|
+ qxdj,
|
|
|
+ yqwcsj,
|
|
|
+ xsjcr,
|
|
|
+ clcs,
|
|
|
+ cljg,
|
|
|
+ clqxldr,
|
|
|
+ clqxczz,
|
|
|
+ clrq,
|
|
|
+ beizhu,
|
|
|
+ submit_status,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time,
|
|
|
+ user_id,
|
|
|
+ del_flag
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcebXsjcjl">
|
|
|
+ INSERT INTO bus_jceb_xsjcjl
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != zhanqujian'>
|
|
|
+ zhanqujian,
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcrq'>
|
|
|
+ xsjcrq,
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcfs'>
|
|
|
+ xsjcfs,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdd'>
|
|
|
+ qxdd,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxnr'>
|
|
|
+ qxnr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdj'>
|
|
|
+ qxdj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != yqwcsj'>
|
|
|
+ yqwcsj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcr'>
|
|
|
+ xsjcr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != clcs'>
|
|
|
+ clcs,
|
|
|
+ </if>
|
|
|
+ <if test ='null != cljg'>
|
|
|
+ cljg,
|
|
|
+ </if>
|
|
|
+ <if test ='null != clqxldr'>
|
|
|
+ clqxldr,
|
|
|
+ </if>
|
|
|
+ <if test ='null != clqxczz'>
|
|
|
+ clqxczz,
|
|
|
+ </if>
|
|
|
+ <if test ='null != clrq'>
|
|
|
+ clrq,
|
|
|
+ </if>
|
|
|
+ <if test ='null != beizhu'>
|
|
|
+ beizhu,
|
|
|
+ </if>
|
|
|
+ <if test ='null != submitStatus'>
|
|
|
+ submit_status,
|
|
|
+ </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>
|
|
|
+ <if test ='null != userId'>
|
|
|
+ user_id,
|
|
|
+ </if>
|
|
|
+ <if test ='null != delFlag'>
|
|
|
+ del_flag
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != zhanqujian'>
|
|
|
+ #{zhanqujian},
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcrq'>
|
|
|
+ #{xsjcrq},
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcfs'>
|
|
|
+ #{xsjcfs},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdd'>
|
|
|
+ #{qxdd},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxnr'>
|
|
|
+ #{qxnr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != qxdj'>
|
|
|
+ #{qxdj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != yqwcsj'>
|
|
|
+ #{yqwcsj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != xsjcr'>
|
|
|
+ #{xsjcr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != clcs'>
|
|
|
+ #{clcs},
|
|
|
+ </if>
|
|
|
+ <if test ='null != cljg'>
|
|
|
+ #{cljg},
|
|
|
+ </if>
|
|
|
+ <if test ='null != clqxldr'>
|
|
|
+ #{clqxldr},
|
|
|
+ </if>
|
|
|
+ <if test ='null != clqxczz'>
|
|
|
+ #{clqxczz},
|
|
|
+ </if>
|
|
|
+ <if test ='null != clrq'>
|
|
|
+ #{clrq},
|
|
|
+ </if>
|
|
|
+ <if test ='null != beizhu'>
|
|
|
+ #{beizhu},
|
|
|
+ </if>
|
|
|
+ <if test ='null != submitStatus'>
|
|
|
+ #{submitStatus},
|
|
|
+ </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>
|
|
|
+ <if test ='null != userId'>
|
|
|
+ #{userId},
|
|
|
+ </if>
|
|
|
+ <if test ='null != delFlag'>
|
|
|
+ #{delFlag}
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <delete id="delete">
|
|
|
+ UPDATE bus_jceb_xsjcjl
|
|
|
+ set del_flag='1'
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.railway.business.catenary.domain.BusJcebXsjcjl">
|
|
|
+ UPDATE bus_jceb_xsjcjl
|
|
|
+ <set>
|
|
|
+ <if test ='null != zhanqujian'>zhanqujian = #{zhanqujian},</if>
|
|
|
+ <if test ='null != xsjcrq'>xsjcrq = #{xsjcrq},</if>
|
|
|
+ <if test ='null != xsjcfs'>xsjcfs = #{xsjcfs},</if>
|
|
|
+ <if test ='null != qxdd'>qxdd = #{qxdd},</if>
|
|
|
+ <if test ='null != qxnr'>qxnr = #{qxnr},</if>
|
|
|
+ <if test ='null != qxdj'>qxdj = #{qxdj},</if>
|
|
|
+ <if test ='null != yqwcsj'>yqwcsj = #{yqwcsj},</if>
|
|
|
+ <if test ='null != xsjcr'>xsjcr = #{xsjcr},</if>
|
|
|
+ <if test ='null != clcs'>clcs = #{clcs},</if>
|
|
|
+ <if test ='null != cljg'>cljg = #{cljg},</if>
|
|
|
+ <if test ='null != clqxldr'>clqxldr = #{clqxldr},</if>
|
|
|
+ <if test ='null != clqxczz'>clqxczz = #{clqxczz},</if>
|
|
|
+ <if test ='null != clrq'>clrq = #{clrq},</if>
|
|
|
+ <if test ='null != beizhu'>beizhu = #{beizhu},</if>
|
|
|
+ <if test ='null != submitStatus'>submit_status = #{submitStatus},</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>
|
|
|
+ <if test ='null != userId'>user_id = #{userId},</if>
|
|
|
+ <if test ='null != delFlag'>del_flag = #{delFlag}</if>
|
|
|
+ </set>
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getInfo" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_xsjcjl
|
|
|
+ WHERE del_flag='0' and id = #{id}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_xsjcjl
|
|
|
+ <where>
|
|
|
+ del_flag='0'
|
|
|
+ <if test="zhanqujian!=null and zhanqujian!=''">
|
|
|
+ and zhanqujian=#{zhanqujian}
|
|
|
+ </if>
|
|
|
+ <if test="xsjcrq!=null and xsjcrq!=''">
|
|
|
+ and xsjcrq=#{xsjcrq}
|
|
|
+ </if>
|
|
|
+ <if test="xsjcfs!=null and xsjcfs!=''">
|
|
|
+ and xsjcfs=#{xsjcfs}
|
|
|
+ </if>
|
|
|
+ <if test="qxdd!=null and qxdd!=''">
|
|
|
+ and qxdd=#{qxdd}
|
|
|
+ </if>
|
|
|
+ <if test="qxnr!=null and qxnr!=''">
|
|
|
+ and qxnr=#{qxnr}
|
|
|
+ </if>
|
|
|
+ <if test="qxdj!=null and qxdj!=''">
|
|
|
+ and qxdj=#{qxdj}
|
|
|
+ </if>
|
|
|
+ <if test="yqwcsj!=null and yqwcsj!=''">
|
|
|
+ and yqwcsj=#{yqwcsj}
|
|
|
+ </if>
|
|
|
+ <if test="xsjcr!=null and xsjcr!=''">
|
|
|
+ and xsjcr=#{xsjcr}
|
|
|
+ </if>
|
|
|
+ <if test="clcs!=null and clcs!=''">
|
|
|
+ and clcs=#{clcs}
|
|
|
+ </if>
|
|
|
+ <if test="cljg!=null and cljg!=''">
|
|
|
+ and cljg=#{cljg}
|
|
|
+ </if>
|
|
|
+ <if test="clqxldr!=null and clqxldr!=''">
|
|
|
+ and clqxldr=#{clqxldr}
|
|
|
+ </if>
|
|
|
+ <if test="clqxczz!=null and clqxczz!=''">
|
|
|
+ and clqxczz=#{clqxczz}
|
|
|
+ </if>
|
|
|
+ <if test="clrq!=null and clrq!=''">
|
|
|
+ and clrq=#{clrq}
|
|
|
+ </if>
|
|
|
+ <if test="beizhu!=null and beizhu!=''">
|
|
|
+ and beizhu=#{beizhu}
|
|
|
+ </if>
|
|
|
+ <if test="submitStatus!=null and submitStatus!=''">
|
|
|
+ and submit_status=#{submitStatus}
|
|
|
+ </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>
|
|
|
+ <if test="userId!=null and userId!=''">
|
|
|
+ and user_id=#{userId}
|
|
|
+ </if>
|
|
|
+ <if test="delFlag!=null and delFlag!=''">
|
|
|
+ and del_flag=#{delFlag}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|