Commit 9999e5fd authored by tangwei's avatar tangwei

增加短信通知

parent 185c63bd
......@@ -234,11 +234,14 @@ public class UserEmpowerInterceptor implements Interceptor {
}
}else{
List<String> data= stdUserEmpower.getAmosOrgCode();
List<String> notdata= stdUserEmpower.getEliminateAmosOrgCode();
List<String> wnotdata= stdUserEmpower.getNOeliminateAmosOrgCode();
if( filed!=null&&filed.length>0){
for (int i = 0; i < filed.length; i++) {
String sq=" ";
sq= getCondition(filed[i],fileCondition[i],data);
sq= getConditiontd(filed[i],fileCondition[i],data,notdata,wnotdata);
sql.add(sq);
}
}
......
......@@ -654,7 +654,7 @@ public class JpStationController extends BaseController {
map.put("id", jpStation.getSequenceNbr());
map.put("name", jpStation.getName());
map.put("address", jpStation.getAddress());
map.put("fullhour", format2.format(dayGenerate.getFullhour()));
map.put("fullhour", dayGenerate.getFullhour()!=null?format2.format(dayGenerate.getFullhour()):0);
li.add(map);
break;
}
......
package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
......@@ -578,6 +579,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
params.put("smsCode", SMSTEMPCODENO);
approvalStatue="任务明细:"+DealerReviewEnum.经销商管理员审核.getName()+"审核不通过";
FeignClientResult<SmsRecordModel> date= Systemctl.smsClient.sendCommonSms(params);
System.out.println("短信通知============================"+JSON.toJSONString(date));
}else{
// 1. 更新经销商状态
unitInfo.setAuditStatus(2);
......@@ -623,6 +625,12 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
// Privilege.agencyUserClient.unlockUsers(unitInfo.getAdminUserId());
approvalStatue="任务明细:"+DealerReviewEnum.经销商管理员审核.getName()+"审核通过";
HashMap<String, String> params = new HashMap<>(3);
params.put("code","通过");
params.put("mobile",unitInfo.getAdminPhone());
params.put("smsCode", SMSTEMPCODEYES);
FeignClientResult<SmsRecordModel> date= Systemctl.smsClient.sendCommonSms(params);
System.out.println("短信通知============================"+JSON.toJSONString(date));
}
}
......@@ -649,11 +657,6 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto,UnitInfo,UnitIn
this.saveOrUpdate(unitInfo);
HashMap<String, String> params = new HashMap<>(3);
params.put("code","通过");
params.put("mobile",unitInfo.getAdminPhone());
params.put("smsCode", SMSTEMPCODEYES);
FeignClientResult<SmsRecordModel> date= Systemctl.smsClient.sendCommonSms(params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment