Commit 8436aa0c authored by 曹盼盼's avatar 曹盼盼

修改发短信smsCode

parent 7fe706bd
...@@ -921,7 +921,7 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc ...@@ -921,7 +921,7 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
} }
if(infoCode.indexOf("1") != -1 && StringUtils.isNotBlank(dispatchTaskDto.getResponseUserTel())) { // 下发了短信 if(infoCode.indexOf("1") != -1 && StringUtils.isNotBlank(dispatchTaskDto.getResponseUserTel())) { // 下发了短信
HashMap<String, String> params = new HashMap<>(); HashMap<String, String> params = new HashMap<>();
params.put("smsCode","SMS_JCS_0001"); params.put("smsCode","SMS_TZS_0001");
params.put("mobile",dispatchTaskDto.getResponseUserTel()); params.put("mobile",dispatchTaskDto.getResponseUserTel());
params.put("address","测试传参短信通知"); params.put("address","测试传参短信通知");
FeignClientResult<SmsRecordModel> result = Systemctl.smsClient.sendCommonSms(params); FeignClientResult<SmsRecordModel> result = Systemctl.smsClient.sendCommonSms(params);
......
...@@ -265,22 +265,26 @@ public class TzsAppService { ...@@ -265,22 +265,26 @@ public class TzsAppService {
List entityList = service.list(wrapper); List entityList = service.list(wrapper);
Iterator iterator = entityList.iterator(); Iterator iterator = entityList.iterator();
JSONObject result =new JSONObject();
if (!isOne) { if (!isOne) {
if (!ValidationUtil.isEmpty(entityList)) { if (!ValidationUtil.isEmpty(entityList)) {
while (iterator.hasNext()) { if (entityList.size()>0) {
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(iterator.next())); while (iterator.hasNext()) {
JSONObject result = getFieldList(dto, jsonObject, null); JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(iterator.next()));
list.add(result); result = getFieldList(dto, jsonObject, null);
list.add(result);
}
} }
} }
} else { } else {
if (entityList.size()>0) {
int count = entityList.size(); int count = entityList.size();
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(iterator.next())); JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(iterator.next()));
JSONObject result = getFieldList(dto, jsonObject, count); result = getFieldList(dto, jsonObject, count);
list.add(result); list.add(result);
}
} }
......
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