|
@@ -27,10 +27,7 @@
|
|
|
<update id="update" parameterType="java.util.List">
|
|
|
<foreach collection="dspBannerList" item="item" index="index" open="" close="" separator=";">
|
|
|
update t_dsp_banner set advertiser_id = #{item.advertiserId}, path = #{item.path}, height = #{item.height},
|
|
|
- width = #{item.width},rheight = #{item.rheight}, rwidth = #{item.rwidth},
|
|
|
- <if test="item.state != null and item.state != '' ">
|
|
|
- state = #{item.state},
|
|
|
- </if>
|
|
|
+ width = #{item.width},rheight = #{item.rheight}, rwidth = #{item.rwidth},state = 0,
|
|
|
<if test="item.memo != null and item.memo != '' ">
|
|
|
memo = #{item.memo},
|
|
|
</if>
|
|
@@ -109,10 +106,10 @@
|
|
|
</select>
|
|
|
|
|
|
<update id="updateBackPass" parameterType="HashMap">
|
|
|
- update t_dsp_banner a ,t_dsp_banner_operator b
|
|
|
- set a.state=#{state},a.updated=#{updated},
|
|
|
+ update t_dsp_banner a left join t_dsp_banner_operator b on a.id = b.banner_id
|
|
|
+ set a.state=#{state},a.updated=#{updated},a.memo="",
|
|
|
b.checked=0,b.supdated=#{supdated}
|
|
|
- where a.id = b.banner_id and a.id in
|
|
|
+ where a.id in
|
|
|
<foreach item="id" collection="auditIdList" open="(" separator=","
|
|
|
close=")">
|
|
|
#{id}
|
|
@@ -120,10 +117,10 @@
|
|
|
</update>
|
|
|
|
|
|
<update id="updateBackNoPass" parameterType="HashMap">
|
|
|
- update t_dsp_banner a ,t_dsp_banner_operator b
|
|
|
+ update t_dsp_banner a left join t_dsp_banner_operator b on a.id = b.banner_id
|
|
|
set a.state=#{state},a.updated=#{updated},a.memo=#{memo},
|
|
|
b.checked=3,b.supdated=#{supdated}
|
|
|
- where a.id = b.banner_id and a.id in
|
|
|
+ where a.id in
|
|
|
<foreach item="id" collection="auditIdList" open="(" separator=","
|
|
|
close=")">
|
|
|
#{id}
|