| | |
| | | a.CREATED_TIME createTime |
| | | FROM |
| | | xzx_score_details a |
| | | left join xzx_user_info b on b.user_id = a.user_id |
| | | inner join xzx_user_info b on b.user_id = a.user_id |
| | | WHERE 1 = 1 |
| | | <if test="record.orderNo != null and record.orderNo != ''"> |
| | | and a.order_no like concat('%',#{record.orderNo},'%') |
| | |
| | | where user_id=#{record.userId} |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="selectTotalScoreByUserId" resultType="java.math.BigDecimal"> |
| | | select sum(change_score) |
| | | from xzx_score_details |
| | | where user_id=#{userId} and type=#{type} |
| | | </select> |
| | | </mapper> |