<?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.mgcx.mapper.MgcxMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="mgcxResultMap" type="org.springblade.modules.mgcx.entity.Mgcx">
|
<id column="id" property="id"/>
|
<result column="uid" property="uid"/>
|
<result column="cardid" property="cardid"/>
|
<result column="phone" property="phone"/>
|
<result column="countx" property="countx"/>
|
<result column="counts" property="counts"/>
|
</resultMap>
|
|
|
<select id="selectMgcxPage" resultMap="mgcxResultMap">
|
select * from sys_mgcx where is_deleted = 0
|
</select>
|
|
<update id="update">
|
update sys_valmgcx set value=#{val} where id=1
|
</update>
|
|
<select id="sel" resultType="java.lang.Integer">
|
select value from sys_valmgcx where id=1
|
</select>
|
|
</mapper>
|