Browse Source

dsp广告主,创意清空审核成功时的原因

ying.rong 9 years ago
parent
commit
5dff052414

+ 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 state = 1,
+	        update t_dsp_advertiser set state = 1,memo = "",
             <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.memo != null and item.memo != '' ">
-	                memo = #{item.memo},
-	            </if>
 	            updated = NOW()
             	where dsp_id = #{item.dspId} and advertiser_id = #{item.advertiserId}
         	</trim>

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

@@ -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},state = 1,
-	        <if test="item.memo != null and item.memo != '' ">
-	        	memo = #{item.memo},
-	       	</if>
+	        width = #{item.width},rheight = #{item.rheight}, rwidth = #{item.rwidth}, state = 1, memo = "",
 	        updated = NOW()
            	where id=#{item.id} and dsp_id = #{item.dspId}
     	</foreach>

+ 1 - 1
src/main/webapp/assets/js/advertiser/operatoradAllGroup_dialog.js

@@ -11,7 +11,7 @@ $(document).ready(function(){
 			operatorIds.push(id);
 		});
 		parent.$("#input_selectOperator").val(operatorIds);//父层的元素
-		parent.$("#selectOperastor_span").text("已选择"+ checkboxs.length +"个媒体");
+		parent.$("#selectOperator_span").html("已选择"+ checkboxs.length +"个媒体");
 		var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
 		parent.layer.close(index);//再执行关闭
 	});