|
|
|
@@ -111,6 +111,27 @@ public class DataInitController extends BaseController { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 核销积分数据修复 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("/addInvestMsgModel") |
|
|
|
public ResultData addInvestMsgModel() { |
|
|
|
try { |
|
|
|
MallUserInfo userInfo = getUser(); |
|
|
|
if(userInfo.isFmSuperAdmin()) { |
|
|
|
addInvestRemind(); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("DataInitController::fixCredit error ", e); |
|
|
|
return new ResultData(ErrorCode.MSG_METHOD_REQUEST_ERROR, e.getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void doFixVerifyCredit() { |
|
|
|
// 1 获取券码 |
|
|
|
@@ -180,6 +201,15 @@ public class DataInitController extends BaseController { |
|
|
|
addBirthDayMsgModelToMall(EnumMsgModel.COUPON_BIRTHDAY_OPENED_NO, idWorker, "亲到的{userName},在您的生日到来之际,我们精心的为您准备了一份生日礼物,赶快打开{mallName}微信小程序领取您的专属生日礼物吧!"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 增加招商语音提醒短信模板 |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void addInvestRemind() { |
|
|
|
IdWorker idWorker = IdWorker.get(); |
|
|
|
addBirthDayMsgModelToMall(EnumMsgModel.INVEST_REMIND, idWorker, "{mallName}您于{beginDate}{negotiationType}{customerName},请知悉!"); |
|
|
|
} |
|
|
|
|
|
|
|
private void addBirthDayMsgModelToMall(EnumMsgModel type, IdWorker idWorker, String content) { |
|
|
|
//查找已经添加过的接口列表 |
|
|
|
WxMsgValidationcodeModel query = new WxMsgValidationcodeModel(); |
|
|
|
|