洪城义警-正式版后台
zengh
2022-05-26 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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>