<?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="org.springblade.modules.useroption.mapper.UseroptionMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="useroptionResultMap" type="org.springblade.modules.useroption.entity.Useroption">
|
<id column="id" property="id"/>
|
<result column="userid" property="userid"/>
|
<result column="useroption" property="useroption"/>
|
</resultMap>
|
|
|
<select id="selectUseroptionPage" resultMap="useroptionResultMap">
|
select *
|
from sys_useroption
|
where is_deleted = 0
|
</select>
|
|
<select id="selectInfo" resultType="java.lang.Integer">
|
SELECT num
|
FROM sys_option
|
WHERE voteid = #{voteid}
|
AND optiontype = #{optiontype}
|
</select>
|
|
</mapper>
|