| | |
| | | <select id="selectIntegralPage" resultMap="integralResultMap"> |
| | | select * |
| | | from sys_integral |
| | | where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="selectCount" resultType="java.lang.String"> |
| | | <select id="selectCount" resultType="java.util.HashMap"> |
| | | SELECT COALESCE(sum(integral), 0) as integral |
| | | FROM sys_integral where uid=#{uid} |
| | | FROM sys_integral |
| | | WHERE type = 1 AND uid=#{uid} |
| | | UNION ALL |
| | | SELECT COALESCE(sum(integral), 0) AS integral |
| | | FROM sys_integral |
| | | WHERE type = 2 AND uid=#{uid} |
| | | </select> |
| | | <select id="selectList" resultType="org.springblade.modules.integral.entity.Integral"> |
| | | SELECT * |
| | | FROM sys_integral |
| | | WHERE uid=#{uid} |
| | | <if test="type == 2 "> |
| | | and type =1 |
| | | </if> |
| | | <if test="type == 3 "> |
| | | |
| | | and type =2 |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |