From 292867c80078476088d838a898dc8429e5bfd422 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 09 Apr 2021 14:42:30 +0800
Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop

---
 zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml b/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml
index d64c91f..9b584d0 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/activity/ActivitySignReceiveRecordDao.xml
@@ -78,4 +78,18 @@
 		</if>
 	</select>
 
+	<select id="getSignAwardReceiveCount" resultType="int">
+		SELECT
+			count(a.id)
+		FROM
+			activity_sign_receive_record a
+		LEFT JOIN activity_sign_award_set b ON a.award_id = b.id
+		where
+		      b.award_type = 1
+		  	and a.state = 1
+		  	and a.company_id = #{companyId}
+			and a.user_id = #{userId}
+
+	</select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1