|
@@ -54,9 +54,11 @@
|
|
|
FROM
|
|
|
`bl_brand_zone_distribution`
|
|
|
<where>
|
|
|
- <foreach collection="addrCodes" item="addrCode" open="addr_code IN (" separator="," close=")">
|
|
|
- #{addrCode,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
+ <if test="addrCodes != null">
|
|
|
+ <foreach collection="addrCodes" item="addrCode" open="addr_code IN (" separator="," close=")">
|
|
|
+ #{addrCode,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
GROUP BY
|
|
|
addr_code;
|