|
@@ -6,8 +6,10 @@ import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import com.xy.collections.map.JHashMap;
|
|
|
import com.xy.collections.map.JMap;
|
|
|
+import com.xy.dto.MercMsgInfoDto;
|
|
|
import com.xy.entity.SysDictRedis;
|
|
|
import com.xy.mapper.DeviceChargingMapper;
|
|
|
+import com.xy.service.MercMsgInfoService;
|
|
|
import com.xy.sys.EnumMercCostMsgConfig;
|
|
|
import com.xy.utils.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -27,6 +29,8 @@ public class DeviceChargingJob {
|
|
|
|
|
|
private DeviceChargingMapper deviceChargingMapper;
|
|
|
|
|
|
+ private MercMsgInfoService mercMsgInfoService;
|
|
|
+
|
|
|
/**
|
|
|
* 设备管理费过期消息
|
|
|
*
|
|
@@ -89,6 +93,12 @@ public class DeviceChargingJob {
|
|
|
.official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), officialParams))
|
|
|
.mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), miniParams))
|
|
|
.builder();
|
|
|
+ //写入记录
|
|
|
+ mercMsgInfoService.save(new MercMsgInfoDto.Save()
|
|
|
+ .setMercId(mercIds)
|
|
|
+ .setType(1)
|
|
|
+ .setWorkType(1)
|
|
|
+ );
|
|
|
//下一页
|
|
|
current++;
|
|
|
deviceChargingTimeout1(map, current, size, tel);
|
|
@@ -123,6 +133,12 @@ public class DeviceChargingJob {
|
|
|
.official(userInfo -> new MsgUtils.MsgInfo(userInfo.getMpOpenid(), officialParams))
|
|
|
.mini(userInfo -> new MsgUtils.MsgInfo(userInfo.getWechatOpenid(), miniParams))
|
|
|
.builder();
|
|
|
+ //写入记录
|
|
|
+ mercMsgInfoService.save(new MercMsgInfoDto.Save()
|
|
|
+ .setMercId(mercIds)
|
|
|
+ .setType(1)
|
|
|
+ .setWorkType(2)
|
|
|
+ );
|
|
|
//下一页
|
|
|
current++;
|
|
|
deviceChargingTimeout2(map, thisTime, time1, current, size, tel);
|