فهرست منبع

企业圈邀请注册功能

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@7853 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 سال پیش
والد
کامیت
feb0ac740b
1فایلهای تغییر یافته به همراه6 افزوده شده و 12 حذف شده
  1. 6 12
      src/main/java/com/uas/platform/b2b/service/impl/InvitationRecordServiceImpl.java

+ 6 - 12
src/main/java/com/uas/platform/b2b/service/impl/InvitationRecordServiceImpl.java

@@ -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 {