| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?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.BisInspBaseExtReaptDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspBaseExt" id="bisInspBaseExtReaptResultMap">
- <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="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="schPlanSameSpeedNote" column="SCH_PLAN_SAME_SPEED_NOTE"/>
- </resultMap>
-
- <sql id="table_columns">
- THRQ_ID,
- RGSTR_ID,
- 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,
- RAIN_FORC,
- RAIN_FORC_NOTE,
- REC_PERS_ID,
- REC_PERS2,
- REC_PERS_TEL,
- CREATE_TIME,
- UPDATE_TIME,
- STATUS,
- SCH_PLAN_SAME_SPEED_NOTE
- </sql>
- <sql id="entity_properties">
- #{thrqId},
- #{rgstrId},
- #{emerPlanSameExta},
- #{emerPlanSameExtaNote},
- #{emerPlanSameAppr},
- #{emerPlanSameApprNote},
- #{emerPlanSamePert},
- #{emerPlanSamePertNote},
- #{emerPlanSameEme},
- #{emerPlanSameEmeNote},
- #{emerPlanSameSpeed},
- #{schPlanSameExta},
- #{schPlanSameExtaNote},
- #{schPlanSameAppr},
- #{schPlanSameApprNote},
- #{schPlanSameEme},
- #{schPlanSameEmeNote},
- #{schPlanSameSpeed},
- #{rainForc},
- #{rainForcNote},
- #{recPersId},
- #{recPers2},
- #{recPersTel},
- #{createTime},
- #{updateTime},
- #{status},
- #{schPlanSameSpeedNote}
- </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="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>
- <if test="createTime != null">and CREATE_TIME = #{createTime}</if>
- <if test="updateTime != null">and UPDATE_TIME = #{updateTime}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="schPlanSameSpeedNote != null and schPlanSameSpeedNote != ''">and SCH_PLAN_SAME_SPEED_NOTE = #{schPlanSameSpeedNote}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspBaseExtReaptResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_BASE_EXT_REAPT where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspBaseExtReaptResultMap">
- select <include refid="table_columns" /> from BIS_INSP_BASE_EXT_REAPT <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspBaseExtReaptResultMap">
- select <include refid="table_columns" /> from BIS_INSP_BASE_EXT_REAPT
- </select>
- <select id="findList" resultMap="bisInspBaseExtReaptResultMap">
- select <include refid="table_columns" /> from BIS_INSP_BASE_EXT_REAPT <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_BASE_EXT_REAPT <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- insert into BIS_INSP_BASE_EXT_REAPT( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_BASE_EXT_REAPT where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- delete from BIS_INSP_BASE_EXT_REAPT <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_BASE_EXT_REAPT set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- update BIS_INSP_BASE_EXT_REAPT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspBaseExt">
- update BIS_INSP_BASE_EXT_REAPT
- <trim prefix="set" suffixOverrides=",">
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</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>
|