Commit d1753bbc authored by hezhen's avatar hezhen

123

parent b62351bd
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<select id="getUserCouponsByType" resultMap="userCouponMap"> <select id="getUserCouponsByType" resultMap="userCouponMap">
SELECT SELECT
*,IF(expire_time=-1,'永久',FROM_UNIXTIME(expire_time/1000,'%Y-%m-%d')) as expireDate *,IF(expire_time=-1,'永久有效',CONCAT('有效期至',FROM_UNIXTIME(expire_time/1000,'%Y-%m-%d'))) as expireDate
FROM FROM
user_coupon u user_coupon u
LEFT JOIN coupon c ON u.coupon_id = c.id LEFT JOIN coupon c ON u.coupon_id = c.id
......
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