|
@@ -16,11 +16,18 @@
|
|
|
<!--全部积分记录-->
|
|
|
<select id="listIntegralInfo" resultType="UseIntegral" parameterType="UseIntegral">
|
|
|
SELECT
|
|
|
- <include refid="AllUseField"></include>,
|
|
|
- c.integral_config_name integralConfigName
|
|
|
+ i.integral_type integralType,
|
|
|
+ i.integral_number integralNumber,
|
|
|
+ i.integral_remarks integralRemarks,
|
|
|
+ i.integral_create_time integralCreateTime,
|
|
|
+ i.integral_before_number integralBeforeNumber,
|
|
|
+ i.integral_end_number integralEndNumber,
|
|
|
+ c.integral_config_name integralConfigName,
|
|
|
+ s.stay_recorded_time stayRecordedTime
|
|
|
FROM
|
|
|
tb_iamberry_use_integral i
|
|
|
LEFT JOIN tb_iamberry_integral_config c ON i.config_id = c.integral_config_id
|
|
|
+ LEFT JOIN tb_iamberry_stay_integral s ON i.stay_id=s.stay_id
|
|
|
WHERE i.user_openid=#{userOpenId}
|
|
|
<if test="integralType != null and integralType != ''">
|
|
|
AND i.integral_type = #{integralType}
|
|
@@ -33,7 +40,6 @@
|
|
|
limit ${page.pageSize}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
<!--获得的总积分数-->
|
|
|
<select id="getGainIntegralCount" parameterType="String" resultType="Integer">
|
|
|
SELECT SUM(integral_number)
|