2026-03-10 16:40:19 +08:00

21 lines
886 B
XML

<?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="com._3e.dao.PointLogDao">
<insert id= "doRecordLog" parameterType="com._3e.entity.PointLog" >
INSERT INTO pointlog(pointlogid,uid,pointcasetype,objectid,pointcaseid,point,created,areaid,source,sourceId)
VALUES (
<if test="pointlogid == 0">
(SELECT NEXTVAL('seq_pointlogid')),
</if>
<if test="pointlogid != 0">
#{pointlogid},
</if>
#{uid},#{pointcasetype},#{objectid},#{pointcaseid},#{point},#{created},#{areaid},#{source},#{sourceId})
</insert>
<select id="findPointLogBySourceId" resultType="com._3e.entity.PointLog">
SELECT * FROM pointlog WHERE uid = #{uid} and sourceId=#{sourceId} and source=#{source} and areaId = #{areaId} and created = #{created}
</select>
</mapper>