Commit 64133d3e authored by fanjr's avatar fanjr

修改

parent 8aa3fa45
......@@ -230,14 +230,15 @@
<select id="CheckCouponYSYList" resultType="map">
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=2
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status,c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=2
<if test="openId!=null">
and openid = #{openId}
and a.openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize}
</if>
......@@ -245,14 +246,15 @@
<select id="CheckCouponYGQList" resultType="map">
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=3
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status ,c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=3
<if test="openId!=null">
and openid = #{openId}
and a.openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize}
</if>
......@@ -260,14 +262,15 @@
<select id="CheckCouponDSYList" resultType="map">
SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d')
invalid_date,status
from t_aidea_coupon_record
where del_flag = 0 and status=1
a.id,a.number,DATE_FORMAT(a.take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(a.expire_Date,'%Y-%m-%d')
invalid_date,a.status, c.name
from t_aidea_coupon_record a
inner join t_aidea_Check_coupon c on a.coupon_Id = c.id
where a.del_flag = 0 and a.status=1
<if test="openId!=null">
and openid = #{openId}
and a.openid = #{openId}
</if>
ORDER BY create_time DESC
ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize}
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment