From 00efd2e4db8157ece4116c956c314803ed073042 Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Sat, 03 Apr 2021 16:39:15 +0800
Subject: [PATCH] 会员中心手工调整积分

---
 zq-erp/src/main/resources/mybatis/mapper/score/ScoreVipDetailDao.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/score/ScoreVipDetailDao.xml b/zq-erp/src/main/resources/mybatis/mapper/score/ScoreVipDetailDao.xml
index df8f53f..7c7cfea 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/score/ScoreVipDetailDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/score/ScoreVipDetailDao.xml
@@ -18,7 +18,14 @@
 	</select>
 
 	<select id="selectEffectiveScore" resultType="com.matrix.system.score.entity.ScoreVipDetail">
-		select  *  from score_vip_detail where open_id=#{openId} and  state=1 order by create_time
+		select  *  from score_vip_detail where state=1
+			<if test="openId !=null">
+			and open_id=#{openId}
+		</if>
+			<if test="vipId !=null">
+				and vip_id=#{vipId}
+			</if>
+		order by create_time
 
 	</select>
 

--
Gitblit v1.9.1