22 lines
874 B
XML
22 lines
874 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.EmoneyLogDao">
|
|
<insert id="doRecordLog" parameterType="com._3e.entity.EmoneyLog" >
|
|
INSERT INTO emoneylog(
|
|
emoneylogid, uid, howmuch, description, created, areaid, source, sourceId)
|
|
VALUES (
|
|
<if test="emoneylogid == 0">
|
|
(SELECT NEXTVAL('seq_emoneylogid')),
|
|
</if>
|
|
<if test="emoneylogid != 0">
|
|
#{emoneylogid},
|
|
</if>
|
|
#{uid}, #{howmuch}, #{description}, #{created}, #{areaid},#{source},#{sourceId});
|
|
</insert>
|
|
<select id="findEmoneyLogBySourceId" resultType="com._3e.entity.EmoneyLog">
|
|
SELECT * FROM emoneylog WHERE uid = #{uid} and sourceId=#{sourceId} and source=#{source} and areaId = #{areaId} and created = #{created}
|
|
</select>
|
|
</mapper>
|