洪城义警-正式版后台
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
<?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.option.mapper.OptionMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="optionResultMap" type="org.springblade.modules.option.entity.Option">
        <id column="id" property="id"/>
        <result column="voteid" property="voteid"/>
        <result column="optionname" property="optionname"/>
        <result column="optiontype" property="optiontype"/>
    </resultMap>
 
 
    <select id="selectOptionPage" resultMap="optionResultMap">
        select *
        from sys_option
        where is_deleted = 0
    </select>
 
    <update id="update">
        update sys_option set num=#{num} where voteid=#{voteid} and  optiontype=#{optiontype}
    </update>
</mapper>