From 4fb3f5e033c38afda6e7db013c53389732591efd Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 20 八月 2019 17:19:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div

---
 fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponRecordMapper.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponRecordMapper.xml
index 2fdf0eb..0f88cb0 100644
--- a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponRecordMapper.xml
+++ b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponRecordMapper.xml
@@ -94,4 +94,12 @@
 		  AND (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(cp.`usc_use_time`)) <![CDATA[>]]> #{number}; 
   </select>
   
+  
+  <select id="getNearByUserCouponId" resultMap="BaseResultMap">
+	SELECT * FROM  `yeshi_ec_user_system_coupon_record`
+	WHERE ucr_user_coupon_id = #{userCouponId}
+	ORDER BY ucr_create_time DESC
+	LIMIT 1
+  </select>
+  
 </mapper>

--
Gitblit v1.8.0