<?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>
|