| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516 |
- <?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.BusJcbBlqMapper">
- <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcbBlq">
- <result column="id" property="id"/>
- <result column="blq_id" property="blqId"/>
- <result column="qj" property="qj"/>
- <result column="dept_id" property="deptId"/>
- <result column="zzh" property="zzh"/>
- <result column="wd" property="wd"/>
- <result column="jcrq" property="jcrq"/>
- <result column="pic_url" property="picUrl"/>
- <result column="tjwz_blqtjazsp" property="tjwzBlqtjazsp"/>
- <result column="tjwz_blqtjazsp_desc" property="tjwzBlqtjazspDesc"/>
- <result column="tjwz_wxs" property="tjwzWxs"/>
- <result column="tjwz_wxs_desc" property="tjwzWxsDesc"/>
- <result column="tjwz_gblsljjg" property="tjwzGblsljjg"/>
- <result column="tjwz_gblsljjg_desc" property="tjwzGblsljjgDesc"/>
- <result column="blqjyz_blqjzcjyzcszzt" property="blqjyzBlqjzcjyzcszzt"/>
- <result column="blqjyz_blqjzcjyzcszzt_desc" property="blqjyzBlqjzcjyzcszztDesc"/>
- <result column="blqjyz_bmqjazlg" property="blqjyzBmqjazlg"/>
- <result column="blqjyz_bmqjazlg_desc" property="blqjyzBmqjazlgDesc"/>
- <result column="blqjyz_wlhpsjfdhj" property="blqjyzWlhpsjfdhj"/>
- <result column="blqjyz_wlhpsjfdhj_desc" property="blqjyzWlhpsjfdhjDesc"/>
- <result column="blqyx_blqyxwssdg" property="blqyxBlqyxwssdg"/>
- <result column="blqyx_blqyxwssdg_desc" property="blqyxBlqyxwssdgDesc"/>
- <result column="blqyx_gycyxdjdtdtzxjl" property="blqyxGycyxdjdtdtzxjl"/>
- <result column="tlq_ztlhwpslh" property="tlqZtlhwpslh"/>
- <result column="tlq_ztlhwpslh_desc" property="tlqZtlhwpslhDesc"/>
- <result column="jsq_dzjs" property="jsqDzjs"/>
- <result column="blqjdzt_jddz" property="blqjdztJddz"/>
- <result column="sbzt" property="sbzt"/>
- <result column="sbzt_desc" property="sbztDesc"/>
- <result column="jcr" property="jcr"/>
- <result column="czwt" property="czwt"/>
- <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="submit_state" property="submitState"/>
- <result column="del_flag" property="delFlag"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,
- blq_id,
- qj,
- dept_id,
- zzh,
- wd,
- jcrq,
- pic_url,
- tjwz_blqtjazsp,
- tjwz_blqtjazsp_desc,
- tjwz_wxs,
- tjwz_wxs_desc,
- tjwz_gblsljjg,
- tjwz_gblsljjg_desc,
- blqjyz_blqjzcjyzcszzt,
- blqjyz_blqjzcjyzcszzt_desc,
- blqjyz_bmqjazlg,
- blqjyz_bmqjazlg_desc,
- blqjyz_wlhpsjfdhj,
- blqjyz_wlhpsjfdhj_desc,
- blqyx_blqyxwssdg,
- blqyx_blqyxwssdg_desc,
- blqyx_gycyxdjdtdtzxjl,
- tlq_ztlhwpslh,
- tlq_ztlhwpslh_desc,
- jsq_dzjs,
- blqjdzt_jddz,
- sbzt,
- sbzt_desc,
- jcr,
- czwt,
- create_by,
- create_time,
- update_by,
- update_time,
- submit_state,
- del_flag
- </sql>
- <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcbBlq">
- <selectKey keyProperty="id" order="BEFORE" resultType="String">
- select replace(uuid(), '-', '') from dual
- </selectKey>
- INSERT INTO bus_jcb_blq
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test ='null != blqId'>
- blq_id,
- </if>
- <if test ='null != qj'>
- qj,
- </if>
- <if test ='null != deptId'>
- dept_id,
- </if>
- <if test ='null != zzh'>
- zzh,
- </if>
- <if test ='null != wd'>
- wd,
- </if>
- <if test ='null != jcrq'>
- jcrq,
- </if>
- <if test ='null != picUrl'>
- pic_url,
- </if>
- <if test ='null != tjwzBlqtjazsp'>
- tjwz_blqtjazsp,
- </if>
- <if test ='null != tjwzBlqtjazspDesc'>
- tjwz_blqtjazsp_desc,
- </if>
- <if test ='null != tjwzWxs'>
- tjwz_wxs,
- </if>
- <if test ='null != tjwzWxsDesc'>
- tjwz_wxs_desc,
- </if>
- <if test ='null != tjwzGblsljjg'>
- tjwz_gblsljjg,
- </if>
- <if test ='null != tjwzGblsljjgDesc'>
- tjwz_gblsljjg_desc,
- </if>
- <if test ='null != blqjyzBlqjzcjyzcszzt'>
- blqjyz_blqjzcjyzcszzt,
- </if>
- <if test ='null != blqjyzBlqjzcjyzcszztDesc'>
- blqjyz_blqjzcjyzcszzt_desc,
- </if>
- <if test ='null != blqjyzBmqjazlg'>
- blqjyz_bmqjazlg,
- </if>
- <if test ='null != blqjyzBmqjazlgDesc'>
- blqjyz_bmqjazlg_desc,
- </if>
- <if test ='null != blqjyzWlhpsjfdhj'>
- blqjyz_wlhpsjfdhj,
- </if>
- <if test ='null != blqjyzWlhpsjfdhjDesc'>
- blqjyz_wlhpsjfdhj_desc,
- </if>
- <if test ='null != blqyxBlqyxwssdg'>
- blqyx_blqyxwssdg,
- </if>
- <if test ='null != blqyxBlqyxwssdgDesc'>
- blqyx_blqyxwssdg_desc,
- </if>
- <if test ='null != blqyxGycyxdjdtdtzxjl'>
- blqyx_gycyxdjdtdtzxjl,
- </if>
- <if test ='null != tlqZtlhwpslh'>
- tlq_ztlhwpslh,
- </if>
- <if test ='null != tlqZtlhwpslhDesc'>
- tlq_ztlhwpslh_desc,
- </if>
- <if test ='null != jsqDzjs'>
- jsq_dzjs,
- </if>
- <if test ='null != blqjdztJddz'>
- blqjdzt_jddz,
- </if>
- <if test ='null != sbzt'>
- sbzt,
- </if>
- <if test ='null != sbztDesc'>
- sbzt_desc,
- </if>
- <if test ='null != jcr'>
- jcr,
- </if>
- <if test ='null != czwt'>
- czwt,
- </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 != submitState'>
- submit_state,
- </if>
- <if test ='null != delFlag'>
- del_flag
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test ='null != blqId'>
- #{blqId},
- </if>
- <if test ='null != qj'>
- #{qj},
- </if>
- <if test ='null != deptId'>
- #{deptId},
- </if>
- <if test ='null != zzh'>
- #{zzh},
- </if>
- <if test ='null != wd'>
- #{wd},
- </if>
- <if test ='null != jcrq'>
- #{jcrq},
- </if>
- <if test ='null != picUrl'>
- #{picUrl},
- </if>
- <if test ='null != tjwzBlqtjazsp'>
- #{tjwzBlqtjazsp},
- </if>
- <if test ='null != tjwzBlqtjazspDesc'>
- #{tjwzBlqtjazspDesc},
- </if>
- <if test ='null != tjwzWxs'>
- #{tjwzWxs},
- </if>
- <if test ='null != tjwzWxsDesc'>
- #{tjwzWxsDesc},
- </if>
- <if test ='null != tjwzGblsljjg'>
- #{tjwzGblsljjg},
- </if>
- <if test ='null != tjwzGblsljjgDesc'>
- #{tjwzGblsljjgDesc},
- </if>
- <if test ='null != blqjyzBlqjzcjyzcszzt'>
- #{blqjyzBlqjzcjyzcszzt},
- </if>
- <if test ='null != blqjyzBlqjzcjyzcszztDesc'>
- #{blqjyzBlqjzcjyzcszztDesc},
- </if>
- <if test ='null != blqjyzBmqjazlg'>
- #{blqjyzBmqjazlg},
- </if>
- <if test ='null != blqjyzBmqjazlgDesc'>
- #{blqjyzBmqjazlgDesc},
- </if>
- <if test ='null != blqjyzWlhpsjfdhj'>
- #{blqjyzWlhpsjfdhj},
- </if>
- <if test ='null != blqjyzWlhpsjfdhjDesc'>
- #{blqjyzWlhpsjfdhjDesc},
- </if>
- <if test ='null != blqyxBlqyxwssdg'>
- #{blqyxBlqyxwssdg},
- </if>
- <if test ='null != blqyxBlqyxwssdgDesc'>
- #{blqyxBlqyxwssdgDesc},
- </if>
- <if test ='null != blqyxGycyxdjdtdtzxjl'>
- #{blqyxGycyxdjdtdtzxjl},
- </if>
- <if test ='null != tlqZtlhwpslh'>
- #{tlqZtlhwpslh},
- </if>
- <if test ='null != tlqZtlhwpslhDesc'>
- #{tlqZtlhwpslhDesc},
- </if>
- <if test ='null != jsqDzjs'>
- #{jsqDzjs},
- </if>
- <if test ='null != blqjdztJddz'>
- #{blqjdztJddz},
- </if>
- <if test ='null != sbzt'>
- #{sbzt},
- </if>
- <if test ='null != sbztDesc'>
- #{sbztDesc},
- </if>
- <if test ='null != jcr'>
- #{jcr},
- </if>
- <if test ='null != czwt'>
- #{czwt},
- </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 != submitState'>
- #{submitState},
- </if>
- <if test ='null != delFlag'>
- #{delFlag}
- </if>
- </trim>
- </insert>
- <delete id="delete">
- UPDATE bus_jcb_blq
- set del_flag='1'
- WHERE id = #{id}
- </delete>
- <update id="update" parameterType="com.railway.business.catenary.domain.BusJcbBlq">
- UPDATE bus_jcb_blq
- <set>
- <if test ='null != blqId'>blq_id = #{blqId},</if>
- <if test ='null != qj'>qj = #{qj},</if>
- <if test ='null != deptId'>dept_id = #{deptId},</if>
- <if test ='null != zzh'>zzh = #{zzh},</if>
- <if test ='null != wd'>wd = #{wd},</if>
- <if test ='null != jcrq'>jcrq = #{jcrq},</if>
- <if test ='null != picUrl'>pic_url = #{picUrl},</if>
- <if test ='null != tjwzBlqtjazsp'>tjwz_blqtjazsp = #{tjwzBlqtjazsp},</if>
- <if test ='null != tjwzBlqtjazspDesc'>tjwz_blqtjazsp_desc = #{tjwzBlqtjazspDesc},</if>
- <if test ='null != tjwzWxs'>tjwz_wxs = #{tjwzWxs},</if>
- <if test ='null != tjwzWxsDesc'>tjwz_wxs_desc = #{tjwzWxsDesc},</if>
- <if test ='null != tjwzGblsljjg'>tjwz_gblsljjg = #{tjwzGblsljjg},</if>
- <if test ='null != tjwzGblsljjgDesc'>tjwz_gblsljjg_desc = #{tjwzGblsljjgDesc},</if>
- <if test ='null != blqjyzBlqjzcjyzcszzt'>blqjyz_blqjzcjyzcszzt = #{blqjyzBlqjzcjyzcszzt},</if>
- <if test ='null != blqjyzBlqjzcjyzcszztDesc'>blqjyz_blqjzcjyzcszzt_desc = #{blqjyzBlqjzcjyzcszztDesc},</if>
- <if test ='null != blqjyzBmqjazlg'>blqjyz_bmqjazlg = #{blqjyzBmqjazlg},</if>
- <if test ='null != blqjyzBmqjazlgDesc'>blqjyz_bmqjazlg_desc = #{blqjyzBmqjazlgDesc},</if>
- <if test ='null != blqjyzWlhpsjfdhj'>blqjyz_wlhpsjfdhj = #{blqjyzWlhpsjfdhj},</if>
- <if test ='null != blqjyzWlhpsjfdhjDesc'>blqjyz_wlhpsjfdhj_desc = #{blqjyzWlhpsjfdhjDesc},</if>
- <if test ='null != blqyxBlqyxwssdg'>blqyx_blqyxwssdg = #{blqyxBlqyxwssdg},</if>
- <if test ='null != blqyxBlqyxwssdgDesc'>blqyx_blqyxwssdg_desc = #{blqyxBlqyxwssdgDesc},</if>
- <if test ='null != blqyxGycyxdjdtdtzxjl'>blqyx_gycyxdjdtdtzxjl = #{blqyxGycyxdjdtdtzxjl},</if>
- <if test ='null != tlqZtlhwpslh'>tlq_ztlhwpslh = #{tlqZtlhwpslh},</if>
- <if test ='null != tlqZtlhwpslhDesc'>tlq_ztlhwpslh_desc = #{tlqZtlhwpslhDesc},</if>
- <if test ='null != jsqDzjs'>jsq_dzjs = #{jsqDzjs},</if>
- <if test ='null != blqjdztJddz'>blqjdzt_jddz = #{blqjdztJddz},</if>
- <if test ='null != sbzt'>sbzt = #{sbzt},</if>
- <if test ='null != sbztDesc'>sbzt_desc = #{sbztDesc},</if>
- <if test ='null != jcr'>jcr = #{jcr},</if>
- <if test ='null != czwt'>czwt = #{czwt},</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 != submitState'>submit_state = #{submitState},</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_jcb_blq
- WHERE del_flag='0' and id = #{id}
- </select>
- <select id="getList" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>
- FROM bus_jcb_blq
- <where>
- del_flag='0'
- <if test="blqId!=null and blqId!=''">
- and blq_id=#{blqId}
- </if>
- <if test="qj!=null and qj!=''">
- and qj=#{qj}
- </if>
- <if test="deptId!=null and deptId!=''">
- and dept_id=#{deptId}
- </if>
- <if test="zzh!=null and zzh!=''">
- and zzh=#{zzh}
- </if>
- <if test="wd!=null and wd!=''">
- and wd=#{wd}
- </if>
- <if test="jcrq!=null and jcrq!=''">
- and jcrq=#{jcrq}
- </if>
- <if test="picUrl!=null and picUrl!=''">
- and pic_url=#{picUrl}
- </if>
- <if test="tjwzBlqtjazsp!=null and tjwzBlqtjazsp!=''">
- and tjwz_blqtjazsp=#{tjwzBlqtjazsp}
- </if>
- <if test="tjwzBlqtjazspDesc!=null and tjwzBlqtjazspDesc!=''">
- and tjwz_blqtjazsp_desc=#{tjwzBlqtjazspDesc}
- </if>
- <if test="tjwzWxs!=null and tjwzWxs!=''">
- and tjwz_wxs=#{tjwzWxs}
- </if>
- <if test="tjwzWxsDesc!=null and tjwzWxsDesc!=''">
- and tjwz_wxs_desc=#{tjwzWxsDesc}
- </if>
- <if test="tjwzGblsljjg!=null and tjwzGblsljjg!=''">
- and tjwz_gblsljjg=#{tjwzGblsljjg}
- </if>
- <if test="tjwzGblsljjgDesc!=null and tjwzGblsljjgDesc!=''">
- and tjwz_gblsljjg_desc=#{tjwzGblsljjgDesc}
- </if>
- <if test="blqjyzBlqjzcjyzcszzt!=null and blqjyzBlqjzcjyzcszzt!=''">
- and blqjyz_blqjzcjyzcszzt=#{blqjyzBlqjzcjyzcszzt}
- </if>
- <if test="blqjyzBlqjzcjyzcszztDesc!=null and blqjyzBlqjzcjyzcszztDesc!=''">
- and blqjyz_blqjzcjyzcszzt_desc=#{blqjyzBlqjzcjyzcszztDesc}
- </if>
- <if test="blqjyzBmqjazlg!=null and blqjyzBmqjazlg!=''">
- and blqjyz_bmqjazlg=#{blqjyzBmqjazlg}
- </if>
- <if test="blqjyzBmqjazlgDesc!=null and blqjyzBmqjazlgDesc!=''">
- and blqjyz_bmqjazlg_desc=#{blqjyzBmqjazlgDesc}
- </if>
- <if test="blqjyzWlhpsjfdhj!=null and blqjyzWlhpsjfdhj!=''">
- and blqjyz_wlhpsjfdhj=#{blqjyzWlhpsjfdhj}
- </if>
- <if test="blqjyzWlhpsjfdhjDesc!=null and blqjyzWlhpsjfdhjDesc!=''">
- and blqjyz_wlhpsjfdhj_desc=#{blqjyzWlhpsjfdhjDesc}
- </if>
- <if test="blqyxBlqyxwssdg!=null and blqyxBlqyxwssdg!=''">
- and blqyx_blqyxwssdg=#{blqyxBlqyxwssdg}
- </if>
- <if test="blqyxBlqyxwssdgDesc!=null and blqyxBlqyxwssdgDesc!=''">
- and blqyx_blqyxwssdg_desc=#{blqyxBlqyxwssdgDesc}
- </if>
- <if test="blqyxGycyxdjdtdtzxjl!=null and blqyxGycyxdjdtdtzxjl!=''">
- and blqyx_gycyxdjdtdtzxjl=#{blqyxGycyxdjdtdtzxjl}
- </if>
- <if test="tlqZtlhwpslh!=null and tlqZtlhwpslh!=''">
- and tlq_ztlhwpslh=#{tlqZtlhwpslh}
- </if>
- <if test="tlqZtlhwpslhDesc!=null and tlqZtlhwpslhDesc!=''">
- and tlq_ztlhwpslh_desc=#{tlqZtlhwpslhDesc}
- </if>
- <if test="jsqDzjs!=null and jsqDzjs!=''">
- and jsq_dzjs=#{jsqDzjs}
- </if>
- <if test="blqjdztJddz!=null and blqjdztJddz!=''">
- and blqjdzt_jddz=#{blqjdztJddz}
- </if>
- <if test="sbzt!=null and sbzt!=''">
- and sbzt=#{sbzt}
- </if>
- <if test="sbztDesc!=null and sbztDesc!=''">
- and sbzt_desc=#{sbztDesc}
- </if>
- <if test="jcr!=null and jcr!=''">
- and jcr=#{jcr}
- </if>
- <if test="czwt!=null and czwt!=''">
- and czwt=#{czwt}
- </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="submitState!=null and submitState!=''">
- and submit_state=#{submitState}
- </if>
- <if test="delFlag!=null and delFlag!=''">
- and del_flag=#{delFlag}
- </if>
- </where>
- </select>
- <select id="getLastOne" resultMap="BaseResultMap">
- SELECT
- <include refid="Base_Column_List"/>
- FROM
- bus_jcb_blq
- WHERE
- submit_state = '1'and del_flag = '0'
- <if test="qj!=null and qj!=''">
- and qj=#{qj}
- </if>
- <if test="deptId!=null and deptId!=''">
- and dept_id=#{deptId}
- </if>
- <if test="zzh!=null and zzh!=''">
- and zzh=#{zzh}
- </if>
- <if test="fdh!=null and fdh!=''">
- and fdh=#{fdh}
- </if>
- <if test="blqId!=null and blqId!=''">
- and blq_id=#{blqId}
- </if>
- ORDER BY
- update_time DESC
- LIMIT 1
- </select>
- </mapper>
|