|
@@ -11,14 +11,20 @@
|
|
|
<result property="supWiunCode" column="sup_wiun_code"/>
|
|
<result property="supWiunCode" column="sup_wiun_code"/>
|
|
|
<result property="supLegPers" column="sup_leg_pers"/>
|
|
<result property="supLegPers" column="sup_leg_pers"/>
|
|
|
<result property="supOpin" column="sup_opin"/>
|
|
<result property="supOpin" column="sup_opin"/>
|
|
|
|
|
+ <result property="supStat" column="sup_stat"/>
|
|
|
|
|
+ <result property="hiddName" column="hidd_name"/>
|
|
|
|
|
+ <result property="hiddGrad" column="hidd_grad"/>
|
|
|
|
|
+ <result property="hiddStat" column="hidd_stat"/>
|
|
|
<result property="note" column="note"/>
|
|
<result property="note" column="note"/>
|
|
|
<result property="collTime" column="coll_time"/>
|
|
<result property="collTime" column="coll_time"/>
|
|
|
<result property="updTime" column="upd_time"/>
|
|
<result property="updTime" column="upd_time"/>
|
|
|
<result property="recPers" column="rec_pers"/>
|
|
<result property="recPers" column="rec_pers"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="selectBisMajHiddSupVo">
|
|
<sql id="selectBisMajHiddSupVo">
|
|
|
- select guid, hidd_guid, is_list, rect_peri, sup_lare_id, sup_date, sup_wiun_code, sup_leg_pers, sup_opin, note, coll_time, upd_time, rec_pers
|
|
|
|
|
- from bis_maj_hidd_sup
|
|
|
|
|
|
|
+ select s.guid, s.hidd_guid, s.is_list, s.rect_peri, s.sup_lare_id, s.sup_date, s.sup_wiun_code, s.sup_leg_pers, s.sup_opin, s.sup_stat, s.note, s.coll_time, s.upd_time, s.rec_pers,
|
|
|
|
|
+ h.hidd_name, h.hidd_grad, h.hidd_stat
|
|
|
|
|
+ from bis_maj_hidd_sup s
|
|
|
|
|
+ left join obj_hidd h on h.guid = s.hidd_guid
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectBisMajHiddSupByGuid" parameterType="String" resultMap="BisMajHiddSupResult">
|
|
<select id="selectBisMajHiddSupByGuid" parameterType="String" resultMap="BisMajHiddSupResult">
|
|
|
<include refid="selectBisMajHiddSupVo"/>
|
|
<include refid="selectBisMajHiddSupVo"/>
|
|
@@ -28,12 +34,13 @@
|
|
|
<include refid="selectBisMajHiddSupVo"/>
|
|
<include refid="selectBisMajHiddSupVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
<if test="hiddGuid != null and hiddGuid != ''">AND hidd_guid = #{hiddGuid}</if>
|
|
<if test="hiddGuid != null and hiddGuid != ''">AND hidd_guid = #{hiddGuid}</if>
|
|
|
|
|
+ <if test="supStat != null and supStat != ''">AND sup_stat = #{supStat}</if>
|
|
|
<if test="guid != null and guid != ''">AND guid = #{guid}</if>
|
|
<if test="guid != null and guid != ''">AND guid = #{guid}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
<insert id="insertBisMajHiddSup" parameterType="com.goldenwater.slaj.hidd.domain.BisMajHiddSup">
|
|
<insert id="insertBisMajHiddSup" parameterType="com.goldenwater.slaj.hidd.domain.BisMajHiddSup">
|
|
|
- insert into bis_maj_hidd_sup (guid, hidd_guid, is_list, rect_peri, sup_lare_id, sup_date, sup_wiun_code, sup_leg_pers, sup_opin, note, coll_time, upd_time, rec_pers)
|
|
|
|
|
- values (#{guid}, #{hiddGuid}, #{isList}, #{rectPeri}, #{supLareId}, #{supDate}, #{supWiunCode}, #{supLegPers}, #{supOpin}, #{note}, #{collTime}, #{updTime}, #{recPers})
|
|
|
|
|
|
|
+ insert into bis_maj_hidd_sup (guid, hidd_guid, is_list, rect_peri, sup_lare_id, sup_date, sup_wiun_code, sup_leg_pers, sup_opin, sup_stat, note, coll_time, upd_time, rec_pers)
|
|
|
|
|
+ values (#{guid}, #{hiddGuid}, #{isList}, #{rectPeri}, #{supLareId}, #{supDate}, #{supWiunCode}, #{supLegPers}, #{supOpin}, #{supStat}, #{note}, #{collTime}, #{updTime}, #{recPers})
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateBisMajHiddSup" parameterType="com.goldenwater.slaj.hidd.domain.BisMajHiddSup">
|
|
<update id="updateBisMajHiddSup" parameterType="com.goldenwater.slaj.hidd.domain.BisMajHiddSup">
|
|
|
update bis_maj_hidd_sup
|
|
update bis_maj_hidd_sup
|
|
@@ -46,6 +53,7 @@
|
|
|
<if test="supWiunCode != null">sup_wiun_code = #{supWiunCode},</if>
|
|
<if test="supWiunCode != null">sup_wiun_code = #{supWiunCode},</if>
|
|
|
<if test="supLegPers != null">sup_leg_pers = #{supLegPers},</if>
|
|
<if test="supLegPers != null">sup_leg_pers = #{supLegPers},</if>
|
|
|
<if test="supOpin != null">sup_opin = #{supOpin},</if>
|
|
<if test="supOpin != null">sup_opin = #{supOpin},</if>
|
|
|
|
|
+ <if test="supStat != null">sup_stat = #{supStat},</if>
|
|
|
<if test="note != null">note = #{note},</if>
|
|
<if test="note != null">note = #{note},</if>
|
|
|
<if test="collTime != null">coll_time = #{collTime},</if>
|
|
<if test="collTime != null">coll_time = #{collTime},</if>
|
|
|
<if test="updTime != null">upd_time = #{updTime},</if>
|
|
<if test="updTime != null">upd_time = #{updTime},</if>
|