Browse Source

新投放广告位

jun.zhou 9 years ago
parent
commit
6b865baf32

+ 2 - 2
src/main/java/com/cloudcross/ssp/model/mapper/zone.sql.xml

@@ -238,10 +238,10 @@
      <select id="queryZone" parameterType="java.util.Map" resultType="com.cloudcross.ssp.model.Zone">
      	select tz.id id,tz.name name from t_zone tz where tz.status != -1 
      	<if test="operatorId != null and operatorId != ''">
-     	 	and tz.operator_id in (#{operatorId})
+     	 	and tz.operator_id in (${operatorId})
      	</if>
      	<if test="position != null and position != ''">
-     		 and tz.position in (#{position})
+     		 and tz.position in (${position})
      	</if> 
      </select>
      

+ 4 - 0
src/main/java/com/cloudcross/ssp/web/advertiser/main/ad/target/AdGroupAlloperatorController.java

@@ -126,6 +126,10 @@ public class AdGroupAlloperatorController extends SimpleController{
 		if(position != null && !"".equals(position)){
 			condition.put("position", position);
 		}
+		if(condition.size() == 0){
+			//没有条件是什么都不查
+			return new ArrayList<Zone>();
+		}
 		List<Zone> zoneList = this.zoneService.queryZone(condition);
 		return zoneList;
 	}