Created
July 5, 2013 12:22
-
-
Save hinunbi/5934184 to your computer and use it in GitHub Desktop.
MailerMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="euckr"?> | |
<!DOCTYPE mapper | |
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
<mapper namespace="mailer"> | |
<select id="selectEmail" resultType="hashmap" parameterType="map"> | |
SELECT | |
MailID, | |
FromAddress, | |
ToAddress, | |
Subject, | |
Body, | |
RequestTime, | |
Send, | |
SendTime | |
FROM EMAIL | |
WHERE | |
Send = 'N' | |
limit 1000 | |
</select> | |
<update id="updateEmail" parameterType="map"> | |
UPDATE EMAIL | |
SET | |
Send = 'Y', | |
SendTime = NOW() | |
WHERE | |
MailID = #{MailID} | |
</update> | |
</mapper> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment