Commit 6700b57e authored by 黎博's avatar 黎博

bug fix

parent af142d38
......@@ -168,6 +168,7 @@ public class MsgController {
paramsMap.put("contentArgs", contentArgs);
}
Map<String, Object> headers = new HashMap<>();
headers.put("Content-Type", "application/json");
log.info("开始发送行业短信,url:{}, 参数:{}", url, paramsMap);
try {
JSONObject response = HttpClientUtils.doPostJson(url, JSON.toJSONString(paramsMap), headers);
......@@ -235,6 +236,7 @@ public class MsgController {
Page<MsgTemplate> page = new Page<>(pageNum, pageSize);
QueryWrapper<MsgTemplate> msgTemplateQueryWrapper = new QueryWrapper<>();
msgTemplateQueryWrapper.eq("template_type", templateType);
msgTemplateQueryWrapper.orderByDesc("id");
IPage<MsgTemplate> msgTemplateIPage = msgService.page(page, msgTemplateQueryWrapper);
Map<String, Object> map = new HashMap<>();
map.put("total", msgTemplateIPage.getTotal());
......
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