|
|
|
@@ -9,7 +9,7 @@ |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title" /> |
|
|
|
<result column="target_ad" jdbcType="INTEGER" property="targetAd" /> |
|
|
|
<result column="business" jdbcType="VARCHAR" property="business" /> |
|
|
|
<result column="business" jdbcType="INTEGER" property="business" /> |
|
|
|
<result column="begin_time" jdbcType="TIMESTAMP" property="beginTime" /> |
|
|
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> |
|
|
|
<result column="status" jdbcType="INTEGER" property="status" /> |
|
|
|
@@ -53,11 +53,8 @@ |
|
|
|
and `target_ad` = #{targetAd} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != business and '0' == business"> |
|
|
|
and JSON_CONTAINS(`business`->'$',JSON_ARRAY('0')) |
|
|
|
</if> |
|
|
|
<if test=" null != business and '0' != business"> |
|
|
|
and (JSON_CONTAINS(`business`->'$',JSON_ARRAY('0')) or (JSON_CONTAINS(`business`->'$',JSON_ARRAY(#{business})))) |
|
|
|
<if test=" null != business "> |
|
|
|
and `business` = #{business} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != beginTime "> |
|
|
|
@@ -164,11 +161,8 @@ |
|
|
|
and `target_ad` = #{targetAd} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != business and '0' == business"> |
|
|
|
and JSON_CONTAINS(`business`->'$',JSON_ARRAY('0')) |
|
|
|
</if> |
|
|
|
<if test=" null != business and '0' != business"> |
|
|
|
and (JSON_CONTAINS(`business`->'$',JSON_ARRAY('0')) or (JSON_CONTAINS(`business`->'$',JSON_ARRAY(#{business})))) |
|
|
|
<if test=" null != business "> |
|
|
|
and `business` = #{business} |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test=" null != beginTime "> |
|
|
|
|