Browse Source

移动端积分明细增加订单获取积分明细

wanxl 1 year ago
parent
commit
fcc9ad4ce5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/resources/mapper/integra/UserIntegralDetailsMapper.xml

+ 4 - 1
src/main/resources/mapper/integra/UserIntegralDetailsMapper.xml

@@ -9,7 +9,10 @@
 
     <select id="selectIntegraldetailsList" resultType="com.sqx.modules.integral.entity.UserIntegralDetails">
         select * from user_integral_details where user_id = #{userId}
-        <if test="classify!=null">
+        <if test="classify==1">
+            and classify in (1,4)
+        </if>
+        <if test="classify!=null and classify!= 1 ">
             and classify = #{classify}
         </if>
         order by create_time desc