|
@@ -80,12 +80,14 @@ public class DeviceChargingJob {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//发送消息
|
|
//发送消息
|
|
- JMap<String, Object> params = new JHashMap<String, Object>()
|
|
|
|
- .set("value", "您有设备管理费即将到期")
|
|
|
|
|
|
+ JMap<String, Object> officialParams = new JHashMap<String, Object>()
|
|
|
|
+ .set("content", String.format("尊敬的客户,您有设备管理费即将到期,为避免设备停机,请及时续费,客服电话%d", tel));
|
|
|
|
+ JMap<String, Object> miniParams = new JHashMap<String, Object>()
|
|
|
|
+ .set("content", "您有设备管理费即将到期")
|
|
.set("phone", tel);
|
|
.set("phone", tel);
|
|
- MsgUtils.sendMsg(15L, mercIds)
|
|
|
|
- .official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), params))
|
|
|
|
- .mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), params))
|
|
|
|
|
|
+ MsgUtils.sendMsg(17L, mercIds)
|
|
|
|
+ .official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), officialParams))
|
|
|
|
+ .mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), miniParams))
|
|
.builder();
|
|
.builder();
|
|
//下一页
|
|
//下一页
|
|
current++;
|
|
current++;
|
|
@@ -110,14 +112,16 @@ public class DeviceChargingJob {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//发送消息
|
|
//发送消息
|
|
- JMap<String, Object> params = new JHashMap<String, Object>()
|
|
|
|
|
|
+ JMap<String, Object> officialParams = new JHashMap<String, Object>()
|
|
|
|
+ .set("content", String.format("尊敬的客户,截止%d您的%d已欠费,如您在%d前未完成续费,您的设备将停止交易,客服电话%d", thisTime, "设备管理费", time1, tel));
|
|
|
|
+ JMap<String, Object> miniParams = new JHashMap<String, Object>()
|
|
.set("time0", thisTime)
|
|
.set("time0", thisTime)
|
|
.set("type", "设备管理费")
|
|
.set("type", "设备管理费")
|
|
.set("time1", time1)
|
|
.set("time1", time1)
|
|
.set("phone", tel);
|
|
.set("phone", tel);
|
|
- MsgUtils.sendMsg(15L, mercIds)
|
|
|
|
- .official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), params))
|
|
|
|
- .mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), params))
|
|
|
|
|
|
+ MsgUtils.sendMsg(17L, mercIds)
|
|
|
|
+ .official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), officialParams))
|
|
|
|
+ .mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), miniParams))
|
|
.builder();
|
|
.builder();
|
|
//下一页
|
|
//下一页
|
|
current++;
|
|
current++;
|