|
|
|
@@ -48,19 +48,14 @@ public class WxTemplateMsgServiceImpl implements WxTemplateMsgService { |
|
|
|
WxTemplateMsg wxTemplateMsg = new WxTemplateMsg(); |
|
|
|
wxTemplateMsg.setTenantId(tenantId); |
|
|
|
wxTemplateMsg.setTemplateId(""); |
|
|
|
wxTemplateMsg.setType(1); |
|
|
|
wxTemplateMsg.setCustomParam("{\"index\":[\"keyword1\",\"keyword2\",\"keyword3\",\"keyword4\",\"keyword5\",\"keyword6\",\"keyword7\"]," + |
|
|
|
"\"keyword1\":\"可抵{keyword1}元\",\"keyword2\":\"{keyword2}\",\"keyword3\":\"{keyword3}\",\"keyword4\":\"{keyword4}\"," + |
|
|
|
"\"keyword5\":\"{keyword5}元\",\"keyword6\":\"{keyword6}\",\"keyword7\":\"猜也猜不到的优惠,只有幸运的人才能看到,就是你," + |
|
|
|
"{keyword7}\\n☟☟☟☟☟☟☟\\n☞ 快看看 ☜\\n☝︎☝︎☝︎☝︎☝︎☝︎☝︎\\n\",\"emphasis\":\"keyword1.DATA\"}"); |
|
|
|
wxTemplateMsg.setType(EnumTemplateType.ACTIVITY_REMIND.getCode()); |
|
|
|
wxTemplateMsg.setCustomParam("{\"index\": [\"thing13\", \"date5\", \"thing12\", \"thing1\", \"thing11\"], \"emphasis\": \"\"}"); |
|
|
|
wxTemplateMsg.setCreateDate(new Date()); |
|
|
|
wxTemplateMsg.setUpdateDate(new Date()); |
|
|
|
wxTemplateMsgMapper.insert(wxTemplateMsg); |
|
|
|
wxTemplateMsg.setId(null); |
|
|
|
wxTemplateMsg.setType(2); |
|
|
|
wxTemplateMsg.setCustomParam("{\"index\":[\"keyword1\",\"keyword2\",\"keyword3\",\"keyword4\"],\"keyword1\":\"可抵{keyword1}元\"," + |
|
|
|
"\"keyword2\":\"{keyword2}\",\"keyword3\":\"{keyword3}\",\"keyword4\":\"猜也猜不到的优惠,只有幸运的人才能看到,就是你," + |
|
|
|
"{keyword4}\\n☟☟☟☟☟☟☟\\n☞ 快看看 ☜\\n☝︎☝︎☝︎☝︎☝︎☝︎☝︎\\n\",\"emphasis\":\"keyword1.DATA\"}"); |
|
|
|
wxTemplateMsg.setType(EnumTemplateType.LIVE_REMIND.getCode()); |
|
|
|
wxTemplateMsg.setCustomParam("{\"index\": [\"thing1\", \"date3\", \"thing4\", \"thing5\"], \"emphasis\": \"\"}"); |
|
|
|
wxTemplateMsgMapper.insert(wxTemplateMsg); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -146,5 +141,10 @@ public class WxTemplateMsgServiceImpl implements WxTemplateMsgService { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageInfo<WxTemplateMsg> listAsPageForMiniApp(WxTemplateMsg record, Integer pageIndex, Integer pageSize) { |
|
|
|
return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> wxTemplateMsgMapper.findListForMiniApp(record)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |