master
wangning 7 years ago
parent c971f2005c
commit 50afd1207d

@ -13,7 +13,7 @@ import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
/** /**
* Create by yixian at 2017-12-13 19:10 * Create by yixian at 2017-12-13 19:10
*/ */
@AutoMapper(tablename = "sys_mail_send", pkName = "id") @AutoMapper(tablename = "sys_mail_send", pkName = {"id", "mail_address"})
public interface MailSendMapper { public interface MailSendMapper {
@AutoSql(type = SqlType.INSERT) @AutoSql(type = SqlType.INSERT)
void save(JSONObject record); void save(JSONObject record);

@ -172,8 +172,8 @@ public class NoticeManageImpl implements NoticeManage {
} }
} }
}else { }else {
// mailto.add("merchants@mail.royalpay.com.au"); mailto.add("merchants@mail.royalpay.com.au");
mailto.add("test@mail.royalpay.com.au"); // mailto.add("test@mail.royalpay.com.au");
} }
if(info.isIs_tomail()){ if(info.isIs_tomail()){
//同时发送给股东 //同时发送给股东

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

Loading…
Cancel
Save