|
@@ -301,6 +301,10 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
// 发送短信通知给第一维修人,省钱,其他人不发短信
|
|
|
if(StringUtils.isNotBlank(receiver)){
|
|
|
// String templateParas_repair = "[\"C-001\",\"1号车间\",\"熊超\"]";
|
|
|
+ String no = sb.getNo();
|
|
|
+ if(StringUtils.isNotBlank(no)){
|
|
|
+ no = no.replace("_", "").replace("-", "");
|
|
|
+ }
|
|
|
String sbCph = model.getSbCph();
|
|
|
String actualUser = model.getActualUser();
|
|
|
if(StringUtils.isBlank(sbCph)){
|
|
@@ -309,9 +313,9 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
if(StringUtils.isBlank(actualUser)){
|
|
|
actualUser = "未知";
|
|
|
}
|
|
|
- String templateParas_repair = "[\"" + sb.getNo() + "\",\"" + sbCph + "\",\""+ actualUser + "\"]";
|
|
|
+ String templateParas_repair = "[\"" + no + "\",\"" + sbCph + "\",\""+ actualUser + "\"]";
|
|
|
try {
|
|
|
- String numStr = RedisUtils.getString(RedisKeyConstants.HW_SMS);
|
|
|
+ String numStr = RedisUtils.getString(RedisKeyConstants.HW_SMS+ receiver);
|
|
|
boolean isSend = false;
|
|
|
if(StringUtils.isBlank(numStr)){
|
|
|
isSend =true;
|
|
@@ -324,7 +328,7 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
System.out.println("templateParas_repair: " + templateParas_repair);
|
|
|
String template = "[\"369751\"]";
|
|
|
//SendSms.sendCodeSms(receiver, template);
|
|
|
- // SendSms.sendRepairSms(receiver, templateParas);
|
|
|
+ SendSms.sendRepairSms(receiver, templateParas_repair);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|