aiobcallback/target/classes/mapper/AIOBCallbackMapper.xml

34 lines
1.2 KiB
XML
Raw Normal View History

2025-12-24 14:56:35 +08:00
<?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.example.mapper.AIOBCallbackMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="org.example.entity.AIOBCallbackEntity">
<id column="id" property="id" />
<result column="callback_type" property="callbackType" />
<result column="callback_data" property="callbackData" />
<result column="read_state" property="readState" />
<result column="create_date" property="createDate" />
<result column="update_date" property="updateDate" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, callback_type, callback_data, read_state, create_date, update_date
</sql>
2026-04-29 10:28:34 +08:00
<select id="getList" resultType="org.example.entity.AIOBCallbackEntity">
select * from aiob_callback_data
<where>
<if test="readState != null">
and read_state = #{readState}
</if>
</where>
</select>
<update id="updateReadState">
update aiob_callback_data set read_state = #{readState}, update_date = sysdate()
where id = #{id}
</update>
2025-12-24 14:56:35 +08:00
</mapper>