|
|
@@ -0,0 +1,272 @@
|
|
|
+<?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.BusJcebLbjghjlMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcebLbjghjl">
|
|
|
+ <result column="id" property="id"/>
|
|
|
+ <result column="qj" property="qj"/>
|
|
|
+ <result column="dd" property="dd"/>
|
|
|
+ <result column="ghq_mc" property="ghqMc"/>
|
|
|
+ <result column="ghq_ggxh" property="ghqGgxh"/>
|
|
|
+ <result column="ghq_sccj" property="ghqSccj"/>
|
|
|
+ <result column="ghh_mc" property="ghhMc"/>
|
|
|
+ <result column="ghh_ggxh" property="ghhGgxh"/>
|
|
|
+ <result column="ghh_sccj" property="ghhSccj"/>
|
|
|
+ <result column="ghyy" property="ghyy"/>
|
|
|
+ <result column="ghsj" property="ghsj"/>
|
|
|
+ <result column="czr" property="czr"/>
|
|
|
+ <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,
|
|
|
+ dd,
|
|
|
+ ghq_mc,
|
|
|
+ ghq_ggxh,
|
|
|
+ ghq_sccj,
|
|
|
+ ghh_mc,
|
|
|
+ ghh_ggxh,
|
|
|
+ ghh_sccj,
|
|
|
+ ghyy,
|
|
|
+ ghsj,
|
|
|
+ czr,
|
|
|
+ remark,
|
|
|
+ submit_state,
|
|
|
+ del_flag,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcebLbjghjl">
|
|
|
+ <selectKey keyProperty="id" order="BEFORE" resultType="String">
|
|
|
+ select replace(uuid(), '-', '') from dual
|
|
|
+ </selectKey>
|
|
|
+ INSERT INTO bus_jceb_lbjghjl
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != qj'>
|
|
|
+ qj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != dd'>
|
|
|
+ dd,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqMc'>
|
|
|
+ ghq_mc,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqGgxh'>
|
|
|
+ ghq_ggxh,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqSccj'>
|
|
|
+ ghq_sccj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhMc'>
|
|
|
+ ghh_mc,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhGgxh'>
|
|
|
+ ghh_ggxh,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhSccj'>
|
|
|
+ ghh_sccj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghyy'>
|
|
|
+ ghyy,
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghsj'>
|
|
|
+ ghsj,
|
|
|
+ </if>
|
|
|
+ <if test ='null != czr'>
|
|
|
+ czr,
|
|
|
+ </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 != dd'>
|
|
|
+ #{dd},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqMc'>
|
|
|
+ #{ghqMc},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqGgxh'>
|
|
|
+ #{ghqGgxh},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghqSccj'>
|
|
|
+ #{ghqSccj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhMc'>
|
|
|
+ #{ghhMc},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhGgxh'>
|
|
|
+ #{ghhGgxh},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghhSccj'>
|
|
|
+ #{ghhSccj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghyy'>
|
|
|
+ #{ghyy},
|
|
|
+ </if>
|
|
|
+ <if test ='null != ghsj'>
|
|
|
+ #{ghsj},
|
|
|
+ </if>
|
|
|
+ <if test ='null != czr'>
|
|
|
+ #{czr},
|
|
|
+ </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_lbjghjl
|
|
|
+ set del_flag='1'
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.railway.business.catenary.domain.BusJcebLbjghjl">
|
|
|
+ UPDATE bus_jceb_lbjghjl
|
|
|
+ <set>
|
|
|
+ <if test ='null != qj'>qj = #{qj},</if>
|
|
|
+ <if test ='null != dd'>dd = #{dd},</if>
|
|
|
+ <if test ='null != ghqMc'>ghq_mc = #{ghqMc},</if>
|
|
|
+ <if test ='null != ghqGgxh'>ghq_ggxh = #{ghqGgxh},</if>
|
|
|
+ <if test ='null != ghqSccj'>ghq_sccj = #{ghqSccj},</if>
|
|
|
+ <if test ='null != ghhMc'>ghh_mc = #{ghhMc},</if>
|
|
|
+ <if test ='null != ghhGgxh'>ghh_ggxh = #{ghhGgxh},</if>
|
|
|
+ <if test ='null != ghhSccj'>ghh_sccj = #{ghhSccj},</if>
|
|
|
+ <if test ='null != ghyy'>ghyy = #{ghyy},</if>
|
|
|
+ <if test ='null != ghsj'>ghsj = #{ghsj},</if>
|
|
|
+ <if test ='null != czr'>czr = #{czr},</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_lbjghjl
|
|
|
+ WHERE del_flag='0' and id = #{id}
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getList" resultMap="BaseResultMap">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM bus_jceb_lbjghjl
|
|
|
+ <where>
|
|
|
+ del_flag='0'
|
|
|
+ <if test="qj!=null and qj!=''">
|
|
|
+ and qj=#{qj}
|
|
|
+ </if>
|
|
|
+ <if test="dd!=null and dd!=''">
|
|
|
+ and dd=#{dd}
|
|
|
+ </if>
|
|
|
+ <if test="ghqMc!=null and ghqMc!=''">
|
|
|
+ and ghq_mc=#{ghqMc}
|
|
|
+ </if>
|
|
|
+ <if test="ghqGgxh!=null and ghqGgxh!=''">
|
|
|
+ and ghq_ggxh=#{ghqGgxh}
|
|
|
+ </if>
|
|
|
+ <if test="ghqSccj!=null and ghqSccj!=''">
|
|
|
+ and ghq_sccj=#{ghqSccj}
|
|
|
+ </if>
|
|
|
+ <if test="ghhMc!=null and ghhMc!=''">
|
|
|
+ and ghh_mc=#{ghhMc}
|
|
|
+ </if>
|
|
|
+ <if test="ghhGgxh!=null and ghhGgxh!=''">
|
|
|
+ and ghh_ggxh=#{ghhGgxh}
|
|
|
+ </if>
|
|
|
+ <if test="ghhSccj!=null and ghhSccj!=''">
|
|
|
+ and ghh_sccj=#{ghhSccj}
|
|
|
+ </if>
|
|
|
+ <if test="ghyy!=null and ghyy!=''">
|
|
|
+ and ghyy=#{ghyy}
|
|
|
+ </if>
|
|
|
+ <if test="ghsj!=null and ghsj!=''">
|
|
|
+ and ghsj=#{ghsj}
|
|
|
+ </if>
|
|
|
+ <if test="czr!=null and czr!=''">
|
|
|
+ and czr=#{czr}
|
|
|
+ </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>
|