fixbug mail bug

master
wangning 7 years ago
parent ff5494efc3
commit 1399fb38a5

@ -21,6 +21,9 @@ public interface MailSendMapper {
@AutoSql(type = SqlType.UPDATE)
void update(JSONObject record);
@AutoSql(type = SqlType.UPDATE)
void updateStatus(JSONObject record);
@AutoSql(type = SqlType.SELECT)
JSONObject find(@Param("id") String id, @Param("mail_address")String mail_address);
}

@ -59,7 +59,7 @@ public class MailGunServiceImpl implements MailGunService {
record.put("id", tmpJSONObject.getString("id"));
record.put("mail_address", mailAddress);
record.put("status", 1);
mailSendMapper.update(record);
mailSendMapper.updateStatus(record);
}
}
}
@ -78,7 +78,7 @@ public class MailGunServiceImpl implements MailGunService {
record.put("id", tmpJSONObject.getString("id"));
record.put("mail_address", mailAddress);
record.put("status", 2);
mailSendMapper.update(record);
mailSendMapper.updateStatus(record);
}
}
}

@ -0,0 +1,10 @@
<?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="au.com.royalpay.payment.manage.mappers.system.MailSendMapper">
<update id="updateStatus">
update sys_mail_send
set status = #{status}
where id = #{id}
and mail_address = #{mail_address}
</update>
</mapper>
Loading…
Cancel
Save