Commit 64133d3e authored by fanjr's avatar fanjr

修改

parent 8aa3fa45
...@@ -230,14 +230,15 @@ ...@@ -230,14 +230,15 @@
<select id="CheckCouponYSYList" resultType="map"> <select id="CheckCouponYSYList" resultType="map">
SELECT SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d') 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,status invalid_date,a.status,c.name
from t_aidea_coupon_record from t_aidea_coupon_record a
where del_flag = 0 and status=2 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"> <if test="openId!=null">
and openid = #{openId} and a.openid = #{openId}
</if> </if>
ORDER BY create_time DESC ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''"> <if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize} limit #{page}, #{pageSize}
</if> </if>
...@@ -245,14 +246,15 @@ ...@@ -245,14 +246,15 @@
<select id="CheckCouponYGQList" resultType="map"> <select id="CheckCouponYGQList" resultType="map">
SELECT SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d') 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,status invalid_date,a.status ,c.name
from t_aidea_coupon_record from t_aidea_coupon_record a
where del_flag = 0 and status=3 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"> <if test="openId!=null">
and openid = #{openId} and a.openid = #{openId}
</if> </if>
ORDER BY create_time DESC ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''"> <if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize} limit #{page}, #{pageSize}
</if> </if>
...@@ -260,14 +262,15 @@ ...@@ -260,14 +262,15 @@
<select id="CheckCouponDSYList" resultType="map"> <select id="CheckCouponDSYList" resultType="map">
SELECT SELECT
id,number,DATE_FORMAT(take_Effect_Date,'%Y-%m-%d') create_time,DATE_FORMAT(expire_Date,'%Y-%m-%d') 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,status invalid_date,a.status, c.name
from t_aidea_coupon_record from t_aidea_coupon_record a
where del_flag = 0 and status=1 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"> <if test="openId!=null">
and openid = #{openId} and a.openid = #{openId}
</if> </if>
ORDER BY create_time DESC ORDER BY a.create_time DESC
<if test="page!=null and pageSize !='' and pageSize!=null and page !=''"> <if test="page!=null and pageSize !='' and pageSize!=null and page !=''">
limit #{page}, #{pageSize} limit #{page}, #{pageSize}
</if> </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