Commit e840d148 by zhanghj

V1.2.0--订货单相关短信source

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22068 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 198d25a5
......@@ -65,13 +65,9 @@ public class Constants {
*/
public static final String SMS_SEND_DEVICE_SOURCE ="sms.send.device.source" ;
/**
* 技工给服务商发送订货单短信source
* 订货单相关短信source
*/
public static final String SMS_SEND_INDENT_SOURCE = "sms.send.indnet.source";
/**
* 取消订货单短信source
*/
public static final String SMS_CANCEL_INDENT_SOURCE = "sms.cancel.indnet.source";
public static final String SMS_INDENT_SOURCE = "sms.indnet.source";
/**
* 验证码短信source
......
......@@ -193,7 +193,7 @@ public class CommonController {
SmsUtil smsUtil = new SmsUtil();
try {
String msgContent = MessageFormat.format(Constants.SEND_INDENT_TO_SERVICE_SMS_CONTENT, mechanicName, indentNo );
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_SEND_INDENT_SOURCE));
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_INDENT_SOURCE));
} catch (Exception e) {
logger.error(phone + "发送技工订货短信失败" + e.getMessage(), e);
return new ResultObject(ResultCodeEnum.SMS_SEND_FAIL.getCode(), ResultCodeEnum.SMS_SEND_FAIL.getMsg());
......@@ -210,7 +210,7 @@ public class CommonController {
SmsUtil smsUtil = new SmsUtil();
try {
String msgContent = MessageFormat.format(Constants.CANCEL_INDENT_SMS_CONTENT, operator, indentNo );
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_CANCEL_INDENT_SOURCE));
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_INDENT_SOURCE));
} catch (Exception e) {
logger.error(phone + "发送取消订货短信失败" + e.getMessage(), e);
return new ResultObject(ResultCodeEnum.SMS_SEND_FAIL.getCode(), ResultCodeEnum.SMS_SEND_FAIL.getMsg());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!