|
|
@@ -51,12 +51,9 @@ public class InvitationRecordServiceImpl implements InvitationRecordService {
|
|
|
oldrecord.setVenduseremail(record.getVenduseremail());
|
|
|
invitationRecordDao.save(oldrecord);
|
|
|
mailService.send(messageConf.getTplInvitationForB2B(), record.getVenduseremail(), model);
|
|
|
- // smsService.send(messageConf.getMsgInvitationForB2B(),
|
|
|
- // record.getVendusertel(),
|
|
|
- // new Object[] { record.getVendusername(), record.getVendname(),
|
|
|
- // SystemSession.getUser().getUserName()
|
|
|
- // + "(" + SystemSession.getUser().getEnterprise().getEnName() + ")"
|
|
|
- // });
|
|
|
+ smsService.send(messageConf.getMsgInvitationForB2B(), record.getVendusertel(),
|
|
|
+ new Object[] { record.getVendusername(), record.getVendname(), SystemSession.getUser().getUserName()
|
|
|
+ + "(" + SystemSession.getUser().getEnterprise().getEnName() + ")" });
|
|
|
map.put("success", "邀请已发送");
|
|
|
} else {
|
|
|
record.setCount(1);
|
|
|
@@ -65,12 +62,9 @@ public class InvitationRecordServiceImpl implements InvitationRecordService {
|
|
|
record.setDate(new Date());
|
|
|
record = invitationRecordDao.save(record);
|
|
|
mailService.send(messageConf.getTplInvitationForB2B(), record.getVenduseremail(), model);
|
|
|
- // smsService.send(messageConf.getMsgInvitationForB2B(),
|
|
|
- // record.getVendusertel(),
|
|
|
- // new Object[] { record.getVendusername(), record.getVendname(),
|
|
|
- // SystemSession.getUser().getUserName()
|
|
|
- // + "(" + SystemSession.getUser().getEnterprise().getEnName() + ")"
|
|
|
- // });
|
|
|
+ smsService.send(messageConf.getMsgInvitationForB2B(), record.getVendusertel(),
|
|
|
+ new Object[] { record.getVendusername(), record.getVendname(), SystemSession.getUser().getUserName()
|
|
|
+ + "(" + SystemSession.getUser().getEnterprise().getEnName() + ")" });
|
|
|
if (record.getId() != null) {
|
|
|
map.put("success", "邀请已发送");
|
|
|
} else {
|