49 lines
1.7 KiB
XML
49 lines
1.7 KiB
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="UnivPointLog">
|
||
|
|
|
||
|
|
<insert id="insertUnivPointLog" parameterType="UnivPointLog">
|
||
|
|
INSERT INTO UnivPointLog ( PointLogId, uid, pointCaseType, objectId, pointCaseId, point, created , areaid ) Values ( #{pointLogId}, #{uid}, #{pointCaseType}, #{objectId}, #{pointCaseId}, #{point},current_timestamp , #{areaId} )
|
||
|
|
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<update id="updateUnivPointLog" parameterType="UnivPointLog">
|
||
|
|
|
||
|
|
|
||
|
|
UPDATE UnivPointLog SET
|
||
|
|
|
||
|
|
pointLogId = #{pointLogId}, uid = #{uid}, pointCaseType = #{pointCaseType}, objectId = #{objectId}, pointCaseId = #{pointCaseId}, point = #{point}, created = #{created} , areaid = #{areaId}
|
||
|
|
where pointLogId=#{pointLogId}
|
||
|
|
|
||
|
|
</update>
|
||
|
|
|
||
|
|
<select id="getUnivPointLogByKey" parameterType="java.lang.Integer" resultType="UnivPointLog">
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
SELECT pointLogId , uid , pointCaseType , objectId , pointCaseId , point , created , areaid
|
||
|
|
FROM UnivPointLog WHERE pointLogId=#{pointLogId}
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
<select id="getSeqUnivPointLog" resultType="Integer" useCache="false" flushCache="true">
|
||
|
|
|
||
|
|
|
||
|
|
SELECT nextval('seq_univpointLogId') ;
|
||
|
|
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getUnivPointLogsByUid" parameterType="java.util.Map" resultType="UnivPointLog">
|
||
|
|
|
||
|
|
|
||
|
|
SELECT pointLogId , uid , pointCaseType , objectId , pointCaseId , point , created , areaid
|
||
|
|
FROM UnivPointLog
|
||
|
|
|
||
|
|
WHERE uid=#{uid} and areaid = #{areaid}
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|