| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?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="cn.com.goldenwater.dcproj.dao.BisInspBaseExtDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspBaseExt" id="bisInspBaseExtResultMap">
- <result property="thrqId" column="THRQ_ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="emerPlanSameExta" column="EMER_PLAN_SAME_EXTA"/>
- <result property="emerPlanSameExtaNote" column="EMER_PLAN_SAME_EXTA_NOTE"/>
- <result property="emerPlanSameAppr" column="EMER_PLAN_SAME_APPR"/>
- <result property="emerPlanSameApprNote" column="EMER_PLAN_SAME_APPR_NOTE"/>
- <result property="emerPlanSamePert" column="EMER_PLAN_SAME_PERT"/>
- <result property="emerPlanSamePertNote" column="EMER_PLAN_SAME_PERT_NOTE"/>
- <result property="emerPlanSameEme" column="EMER_PLAN_SAME_EME"/>
- <result property="emerPlanSameEmeNote" column="EMER_PLAN_SAME_EME_NOTE"/>
- <result property="emerPlanSameSpeed" column="EMER_PLAN_SAME_SPEED"/>
- <result property="schPlanSameExta" column="SCH_PLAN_SAME_EXTA"/>
- <result property="schPlanSameExtaNote" column="SCH_PLAN_SAME_EXTA_NOTE"/>
- <result property="schPlanSameAppr" column="SCH_PLAN_SAME_APPR"/>
- <result property="schPlanSameApprNote" column="SCH_PLAN_SAME_APPR_NOTE"/>
- <result property="schPlanSameEme" column="SCH_PLAN_SAME_EME"/>
- <result property="schPlanSameEmeNote" column="SCH_PLAN_SAME_EME_NOTE"/>
- <result property="schPlanSameSpeed" column="SCH_PLAN_SAME_SPEED"/>
- <result property="schPlanSameSpeedNote" column="SCH_PLAN_SAME_SPEED_NOTE"/>
- <result property="rainForc" column="RAIN_FORC"/>
- <result property="rainForcNote" column="RAIN_FORC_NOTE"/>
- <result property="recPersId" column="REC_PERS_ID"/>
- <result property="recPers2" column="REC_PERS2"/>
- <result property="recPersTel" column="REC_PERS_TEL"/>
- <result property="createTime" column="CREATE_TIME"/>
- <result property="updateTime" column="UPDATE_TIME"/>
- <result property="status" column="STATUS"/>
- <result property="staSour" column="STA_SOUR"/>
- </resultMap>
- <sql id="table_columns">
- THRQ_ID,
- RGSTR_ID,
- STA_SOUR,
- EMER_PLAN_SAME_EXTA,
- EMER_PLAN_SAME_EXTA_NOTE,
- EMER_PLAN_SAME_APPR,
- EMER_PLAN_SAME_APPR_NOTE,
- EMER_PLAN_SAME_PERT,
- EMER_PLAN_SAME_PERT_NOTE,
- EMER_PLAN_SAME_EME,
- EMER_PLAN_SAME_EME_NOTE,
- EMER_PLAN_SAME_SPEED,
- SCH_PLAN_SAME_EXTA,
- SCH_PLAN_SAME_EXTA_NOTE,
- SCH_PLAN_SAME_APPR,
- SCH_PLAN_SAME_APPR_NOTE,
- SCH_PLAN_SAME_EME,
- SCH_PLAN_SAME_EME_NOTE,
- SCH_PLAN_SAME_SPEED,
- SCH_PLAN_SAME_SPEED_NOTE,
- RAIN_FORC,
- RAIN_FORC_NOTE,
- REC_PERS_ID,
- REC_PERS2,
- REC_PERS_TEL,
- CREATE_TIME,
- UPDATE_TIME,
- STATUS
- </sql>
- <sql id="entity_properties">
- #{thrqId},
- #{rgstrId},
- #{staSour},
- #{emerPlanSameExta},
- #{emerPlanSameExtaNote},
- #{emerPlanSameAppr},
- #{emerPlanSameApprNote},
- #{emerPlanSamePert},
- #{emerPlanSamePertNote},
- #{emerPlanSameEme},
- #{emerPlanSameEmeNote},
- #{emerPlanSameSpeed},
- #{schPlanSameExta},
- #{schPlanSameExtaNote},
- #{schPlanSameAppr},
- #{schPlanSameApprNote},
- #{schPlanSameEme},
- #{schPlanSameEmeNote},
- #{schPlanSameSpeed},
- #{schPlanSameSpeedNote},
- #{rainForc},
- #{rainForcNote},
- #{recPersId},
- #{recPers2},
- #{recPersTel},
- #{createTime},
- #{updateTime},
- #{status}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="staSour != null and staSour != ''">and STA_SOUR = #{staSour}</if>
- <if test="schPlanSameSpeedNote != null and schPlanSameSpeedNote != ''">and SCH_PLAN_SAME_SPEED_NOTE =
- #{schPlanSameSpeedNote}
- </if>
- <if test="emerPlanSameExta != null and emerPlanSameExta != ''">and EMER_PLAN_SAME_EXTA =
- #{emerPlanSameExta}
- </if>
- <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">and EMER_PLAN_SAME_EXTA_NOTE =
- #{emerPlanSameExtaNote}
- </if>
- <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">and EMER_PLAN_SAME_APPR =
- #{emerPlanSameAppr}
- </if>
- <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">and EMER_PLAN_SAME_APPR_NOTE =
- #{emerPlanSameApprNote}
- </if>
- <if test="emerPlanSamePert != null and emerPlanSamePert != ''">and EMER_PLAN_SAME_PERT =
- #{emerPlanSamePert}
- </if>
- <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">and EMER_PLAN_SAME_PERT_NOTE =
- #{emerPlanSamePertNote}
- </if>
- <if test="emerPlanSameEme != null and emerPlanSameEme != ''">and EMER_PLAN_SAME_EME = #{emerPlanSameEme}
- </if>
- <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">and EMER_PLAN_SAME_EME_NOTE =
- #{emerPlanSameEmeNote}
- </if>
- <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">and EMER_PLAN_SAME_SPEED =
- #{emerPlanSameSpeed}
- </if>
- <if test="schPlanSameExta != null and schPlanSameExta != ''">and SCH_PLAN_SAME_EXTA = #{schPlanSameExta}
- </if>
- <if test="schPlanSameExtaNote != null and schPlanSameExtaNote != ''">and SCH_PLAN_SAME_EXTA_NOTE =
- #{schPlanSameExtaNote}
- </if>
- <if test="schPlanSameAppr != null and schPlanSameAppr != ''">and SCH_PLAN_SAME_APPR = #{schPlanSameAppr}
- </if>
- <if test="schPlanSameApprNote != null and schPlanSameApprNote != ''">and SCH_PLAN_SAME_APPR_NOTE =
- #{schPlanSameApprNote}
- </if>
- <if test="schPlanSameEme != null and schPlanSameEme != ''">and SCH_PLAN_SAME_EME = #{schPlanSameEme}</if>
- <if test="schPlanSameEmeNote != null and schPlanSameEmeNote != ''">and SCH_PLAN_SAME_EME_NOTE =
- #{schPlanSameEmeNote}
- </if>
- <if test="schPlanSameSpeed != null and schPlanSameSpeed != ''">and SCH_PLAN_SAME_SPEED =
- #{schPlanSameSpeed}
- </if>
- <if test="rainForc != null and rainForc != ''">and RAIN_FORC = #{rainForc}</if>
- <if test="rainForcNote != null and rainForcNote != ''">and RAIN_FORC_NOTE = #{rainForcNote}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="recPers2 != null and recPers2 != ''">and REC_PERS2 = #{recPers2}</if>
- <if test="recPersTel != null and recPersTel != ''">and REC_PERS_TEL = #{recPersTel}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspBaseExtResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from bis_insp_base_ext where THRQ_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspBaseExtResultMap">
- select
- <include refid="table_columns"/>
- from bis_insp_base_ext
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspBaseExtResultMap">
- select
- <include refid="table_columns"/>
- from bis_insp_base_ext
- </select>
- <select id="findList" resultMap="bisInspBaseExtResultMap">
- select
- <include refid="table_columns"/>
- from bis_insp_base_ext
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(THRQ_ID) from bis_insp_base_ext
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- insert into bis_insp_base_ext(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from bis_insp_base_ext where THRQ_ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- delete from bis_insp_base_ext
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update bis_insp_base_ext set flag_valid = 0 where THRQ_ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- update bis_insp_base_ext
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="staSour != null and staSour != ''">STA_SOUR = #{staSour},</if>
- <if test="emerPlanSameExta != null and emerPlanSameExta != ''">EMER_PLAN_SAME_EXTA = #{emerPlanSameExta},
- </if>
- <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">EMER_PLAN_SAME_EXTA_NOTE =
- #{emerPlanSameExtaNote},
- </if>
- <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">EMER_PLAN_SAME_APPR = #{emerPlanSameAppr},
- </if>
- <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">EMER_PLAN_SAME_APPR_NOTE =
- #{emerPlanSameApprNote},
- </if>
- <if test="emerPlanSamePert != null and emerPlanSamePert != ''">EMER_PLAN_SAME_PERT = #{emerPlanSamePert},
- </if>
- <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">EMER_PLAN_SAME_PERT_NOTE =
- #{emerPlanSamePertNote},
- </if>
- <if test="emerPlanSameEme != null and emerPlanSameEme != ''">EMER_PLAN_SAME_EME = #{emerPlanSameEme},</if>
- <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">EMER_PLAN_SAME_EME_NOTE =
- #{emerPlanSameEmeNote},
- </if>
- <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">EMER_PLAN_SAME_SPEED =
- #{emerPlanSameSpeed},
- </if>
- <if test="schPlanSameExta != null and schPlanSameExta != ''">SCH_PLAN_SAME_EXTA = #{schPlanSameExta},</if>
- <if test="schPlanSameExtaNote != null and schPlanSameExtaNote != ''">SCH_PLAN_SAME_EXTA_NOTE =
- #{schPlanSameExtaNote},
- </if>
- <if test="schPlanSameAppr != null and schPlanSameAppr != ''">SCH_PLAN_SAME_APPR = #{schPlanSameAppr},</if>
- <if test="schPlanSameApprNote != null and schPlanSameApprNote != ''">SCH_PLAN_SAME_APPR_NOTE =
- #{schPlanSameApprNote},
- </if>
- <if test="schPlanSameEme != null and schPlanSameEme != ''">SCH_PLAN_SAME_EME = #{schPlanSameEme},</if>
- <if test="schPlanSameEmeNote != null and schPlanSameEmeNote != ''">SCH_PLAN_SAME_EME_NOTE =
- #{schPlanSameEmeNote},
- </if>
- <if test="schPlanSameSpeed != null and schPlanSameSpeed != ''">SCH_PLAN_SAME_SPEED = #{schPlanSameSpeed},
- </if>
- <if test="rainForc != null and rainForc != ''">RAIN_FORC = #{rainForc},</if>
- <if test="rainForcNote != null and rainForcNote != ''">RAIN_FORC_NOTE = #{rainForcNote},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="createTime != null">CREATE_TIME = #{createTime},</if>
- <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="schPlanSameSpeedNote != null and schPlanSameSpeedNote != ''">SCH_PLAN_SAME_SPEED_NOTE =
- #{schPlanSameSpeedNote},
- </if>
- </trim>
- <where>THRQ_ID = #{thrqId}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- update bis_insp_base_ext
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="staSour != null and staSour != ''">STA_SOUR = #{staSour},</if>
- <if test="emerPlanSameExta != null and emerPlanSameExta != ''">EMER_PLAN_SAME_EXTA = #{emerPlanSameExta},
- </if>
- <if test="emerPlanSameExtaNote != null and emerPlanSameExtaNote != ''">EMER_PLAN_SAME_EXTA_NOTE =
- #{emerPlanSameExtaNote},
- </if>
- <if test="emerPlanSameAppr != null and emerPlanSameAppr != ''">EMER_PLAN_SAME_APPR = #{emerPlanSameAppr},
- </if>
- <if test="emerPlanSameApprNote != null and emerPlanSameApprNote != ''">EMER_PLAN_SAME_APPR_NOTE =
- #{emerPlanSameApprNote},
- </if>
- <if test="emerPlanSamePert != null and emerPlanSamePert != ''">EMER_PLAN_SAME_PERT = #{emerPlanSamePert},
- </if>
- <if test="emerPlanSamePertNote != null and emerPlanSamePertNote != ''">EMER_PLAN_SAME_PERT_NOTE =
- #{emerPlanSamePertNote},
- </if>
- <if test="emerPlanSameEme != null and emerPlanSameEme != ''">EMER_PLAN_SAME_EME = #{emerPlanSameEme},</if>
- <if test="emerPlanSameEmeNote != null and emerPlanSameEmeNote != ''">EMER_PLAN_SAME_EME_NOTE =
- #{emerPlanSameEmeNote},
- </if>
- <if test="emerPlanSameSpeed != null and emerPlanSameSpeed != ''">EMER_PLAN_SAME_SPEED =
- #{emerPlanSameSpeed},
- </if>
- <if test="schPlanSameExta != null and schPlanSameExta != ''">SCH_PLAN_SAME_EXTA = #{schPlanSameExta},</if>
- <if test="schPlanSameExtaNote != null and schPlanSameExtaNote != ''">SCH_PLAN_SAME_EXTA_NOTE =
- #{schPlanSameExtaNote},
- </if>
- <if test="schPlanSameAppr != null and schPlanSameAppr != ''">SCH_PLAN_SAME_APPR = #{schPlanSameAppr},</if>
- <if test="schPlanSameApprNote != null and schPlanSameApprNote != ''">SCH_PLAN_SAME_APPR_NOTE =
- #{schPlanSameApprNote},
- </if>
- <if test="schPlanSameEme != null and schPlanSameEme != ''">SCH_PLAN_SAME_EME = #{schPlanSameEme},</if>
- <if test="schPlanSameEmeNote != null and schPlanSameEmeNote != ''">SCH_PLAN_SAME_EME_NOTE =
- #{schPlanSameEmeNote},
- </if>
- <if test="schPlanSameSpeed != null and schPlanSameSpeed != ''">SCH_PLAN_SAME_SPEED = #{schPlanSameSpeed},
- </if>
- <if test="rainForc != null and rainForc != ''">RAIN_FORC = #{rainForc},</if>
- <if test="rainForcNote != null and rainForcNote != ''">RAIN_FORC_NOTE = #{rainForcNote},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="recPers2 != null and recPers2 != ''">REC_PERS2 = #{recPers2},</if>
- <if test="recPersTel != null and recPersTel != ''">REC_PERS_TEL = #{recPersTel},</if>
- <if test="createTime != null">CREATE_TIME = #{createTime},</if>
- <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="schPlanSameSpeedNote != null and schPlanSameSpeedNote != ''">SCH_PLAN_SAME_SPEED_NOTE =
- #{schPlanSameSpeedNote},
- </if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|