Browse Source

dsp修改创意与资质状态

Signed-off-by: jiapeng.dong <jiapeng.dong@cloudcross.com>
jiapeng.dong 9 years ago
parent
commit
d6469717c3

+ 1 - 4
src/main/java/com/cloudcross/ssp/model/mapper/dspAdvertiser.sql.xml

@@ -20,7 +20,7 @@
 	
 	<update id="update" parameterType="java.util.List">
 	 	<foreach collection="dspAdvertiserList" item="item" index="index" open="" close="" separator=";">
-	        update t_dsp_advertiser set 
+	        update t_dsp_advertiser set state = 1,
             <trim suffix="" suffixOverrides=",">
 	            <if test="item.industryId != null and item.industryId != '' ">
 	                industry_id = #{item.industryId},
@@ -52,9 +52,6 @@
 	            <if test="item.cpiPath != null and item.cpiPath != '' ">
 	                cpi_path = #{item.cpiPath},
 	            </if>
-	            <if test="item.state != null and item.state != '' ">
-	                state = #{item.state},
-	            </if>
 	            <if test="item.memo != null and item.memo != '' ">
 	                memo = #{item.memo},
 	            </if>

+ 1 - 1
src/main/java/com/cloudcross/ssp/model/mapper/dspBanner.sql.xml

@@ -27,7 +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},state = 0,
+	        width = #{item.width},rheight = #{item.rheight}, rwidth = #{item.rwidth},state = 1,
 	        <if test="item.memo != null and item.memo != '' ">
 	        	memo = #{item.memo},
 	       	</if>