</sql> | </sql> | ||||
<select id="selectTotalPointsByToDay" resultType="java.lang.Integer"> | <select id="selectTotalPointsByToDay" resultType="java.lang.Integer"> | ||||
select sum(id) | |||||
select sum(points_change) | |||||
from th_user_points_detail | from th_user_points_detail | ||||
<where> | <where> | ||||
<if test="1 == 1"> and mark = 1 and type = 1 </if> | <if test="1 == 1"> and mark = 1 and type = 1 </if> |