|
|
@ -57,10 +57,10 @@ |
|
|
|
<where> |
|
|
|
jwcode = #{jwcode} |
|
|
|
<!-- 判断 market 是否不为总部且 markets 不为空 --> |
|
|
|
<if test="markets != null and markets.size() > 0 and '1' not in markets"> |
|
|
|
<if test="markets != null and markets.size() > 0 and '9999' not in markets and '9' not in markets"> |
|
|
|
AND ( |
|
|
|
<foreach collection="markets" item="market" open="" close="" separator=" OR "> |
|
|
|
market LIKE CONCAT('%', #{market}, '%') |
|
|
|
u.market = #{market} |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|