|
@@ -478,6 +478,9 @@
|
|
|
<if test="storeId != null and !"".equals(storeId)">
|
|
<if test="storeId != null and !"".equals(storeId)">
|
|
|
and store_id = #{storeId}
|
|
and store_id = #{storeId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="checkTime != null and !"".equals(checkTime)">
|
|
|
|
|
+ <![CDATA[ AND begin_time < NOW() AND end_time > NOW() ]]>
|
|
|
|
|
+ </if>
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
OR name LIKE concat('%',#{searchKey},'%')
|
|
OR name LIKE concat('%',#{searchKey},'%')
|
|
@@ -540,6 +543,10 @@
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
id desc
|
|
id desc
|
|
|
|
|
+
|
|
|
|
|
+ <if test="limitNum != null and !"".equals(limitNum)">
|
|
|
|
|
+ LIMIT #{limitNum}
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="queryCouponInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CouponInfo">
|
|
<select id="queryCouponInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CouponInfo">
|
|
|
select
|
|
select
|