瀏覽代碼

//card

release_toaliyun_real
xhxu 3 年之前
父節點
當前提交
4f4f44467b
共有 2 個檔案被更改,包括 8 行新增9 行删除
  1. +0
    -1
      mallinkAdmin/src/main/resources/db/migration/V2023031100001__upd_Template.sql
  2. +8
    -8
      mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java

+ 0
- 1
mallinkAdmin/src/main/resources/db/migration/V2023031100001__upd_Template.sql 查看文件

@@ -33,7 +33,6 @@ INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (102952, '1029', NULL, '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (103552, '1035', '1037', '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (103652, '1036', '1037', '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (101252, '1012', NULL, '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (103852, '1038', NULL, '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (103952, '1039', NULL, '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');
INSERT INTO `mallink`.`wx_template_msg`(`id`, `tenant_id`, `parent_tenant_id`, `template_id`, `type`, `custom_param`, `create_date`, `update_date`) VALUES (104052, '1040', NULL, '', 52, '{"index": ["thing7", "amount1", "amount2", "date4", "thing6"], "emphasis": ""}', '2023-03-12 00:00:00', '2023-03-12 00:00:00');


+ 8
- 8
mallinkService/src/main/java/com/iformall/service/impl/WxTemplateMsgServiceImpl.java 查看文件

@@ -58,10 +58,10 @@ public class WxTemplateMsgServiceImpl implements WxTemplateMsgService {
wxTemplateMsg.setCreateDate(new Date());
wxTemplateMsg.setUpdateDate(new Date());
wxTemplateMsgMapper.insert(wxTemplateMsg);
// wxTemplateMsg.setId(null);
// wxTemplateMsg.setType(EnumTemplateType.LIVE_REMIND.getCode());
// wxTemplateMsg.setCustomParam("{\"index\": [\"thing1\", \"date3\", \"thing4\", \"thing5\"], \"emphasis\": \"\"}");
// wxTemplateMsgMapper.insert(wxTemplateMsg);
wxTemplateMsg.setId(null);
wxTemplateMsg.setType(EnumTemplateType.LIVE_REMIND.getCode());
wxTemplateMsg.setCustomParam("{\"index\": [\"thing1\", \"date3\", \"thing4\", \"thing5\"], \"emphasis\": \"\"}");
wxTemplateMsgMapper.insert(wxTemplateMsg);
wxTemplateMsg.setId(null);
wxTemplateMsg.setType(EnumTemplateType.CREDIT_UPD_REMIND.getCode());
wxTemplateMsg.setCustomParam("{\"index\": [\"character_string1\", \"character_string2\", \"time4\", \"thing3\"], \"emphasis\": \"\"}");
@@ -71,10 +71,10 @@ public class WxTemplateMsgServiceImpl implements WxTemplateMsgService {
wxTemplateMsg.setCustomParam("{\"index\": [\"thing1\", \"time3\", \"time4\", \"thing5\"], \"emphasis\": \"\"}");
wxTemplateMsgMapper.insert(wxTemplateMsg);

// wxTemplateMsg.setId(null);
// wxTemplateMsg.setType(EnumTemplateType.CARD_BALANCE_CHANGE.getCode());
// wxTemplateMsg.setCustomParam("{\"index\": [\"thing7\", \"amount1\", \"amount2\", \"amount4\", \"thing6\"], \"emphasis\": \"\"}");
// wxTemplateMsgMapper.insert(wxTemplateMsg);
wxTemplateMsg.setId(null);
wxTemplateMsg.setType(EnumTemplateType.CARD_BALANCE_CHANGE.getCode());
wxTemplateMsg.setCustomParam("{\"index\": [\"thing7\", \"amount1\", \"amount2\", \"amount4\", \"thing6\"], \"emphasis\": \"\"}");
wxTemplateMsgMapper.insert(wxTemplateMsg);
}

@Override


Loading…
取消
儲存