<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.matrix.system.score.dao.ScoreVipDetailDao">
|
|
<select id="selectUserTotalScore" resultType="java.lang.Integer">
|
select IFNULL(sum(IFNULL( remain_score, 0 )),0) from score_vip_detail
|
where state=1 and vip_id=#{vipId}
|
|
|
</select>
|
|
<select id="selectEffectiveScore" resultType="com.matrix.system.score.entity.ScoreVipDetail">
|
select *
|
from score_vip_detail
|
where state = 1 and vip_id = #{vipId}
|
order by create_time
|
|
</select>
|
|
</mapper>
|