推送修改
This commit is contained in:
+7
-4
@@ -165,13 +165,16 @@ public class HouseRentNoticeJob implements SimpleJob {
|
|||||||
int days = DateUtilCustom.between(new Date(), nextDay);
|
int days = DateUtilCustom.between(new Date(), nextDay);
|
||||||
if (days == 7) {
|
if (days == 7) {
|
||||||
EnterpriseProductUser user = enterpriseProductUserService.getById(Long.parseLong(houseInfo.getUid()), new String[] { "push_client_id" });
|
EnterpriseProductUser user = enterpriseProductUserService.getById(Long.parseLong(houseInfo.getUid()), new String[] { "push_client_id" });
|
||||||
|
if (user == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String pushMsg = DateUtils.date2Str(nextDay, "yyyy年MM月dd日") + "是您的到期收租日,又要有现金到账咯,请注意查收。详情请点击查看。";
|
String pushMsg = DateUtils.date2Str(nextDay, "yyyy年MM月dd日") + "是您的到期收租日,又要有现金到账咯,请注意查收。详情请点击查看。";
|
||||||
logger.info(pushMsg);
|
logger.info(pushMsg);
|
||||||
PushMessageParam param = new PushMessageParam();
|
PushMessageParam param = new PushMessageParam();
|
||||||
param.setTitle("收租提醒");
|
param.setTitle("收租提醒");
|
||||||
param.setContent(pushMsg);
|
param.setContent(pushMsg);
|
||||||
param.setOperation(1);
|
param.setOperation(2);
|
||||||
param.setOperationPage("");
|
param.setOperationPage("/views/house/detail.html?houseId="+houseInfo.getId());
|
||||||
param.setPushClientId(user.getPushClientId());
|
param.setPushClientId(user.getPushClientId());
|
||||||
pushMessageService.push(param);
|
pushMessageService.push(param);
|
||||||
}
|
}
|
||||||
@@ -195,8 +198,8 @@ public class HouseRentNoticeJob implements SimpleJob {
|
|||||||
PushMessageParam param = new PushMessageParam();
|
PushMessageParam param = new PushMessageParam();
|
||||||
param.setTitle("收租提醒");
|
param.setTitle("收租提醒");
|
||||||
param.setContent(pushMsg);
|
param.setContent(pushMsg);
|
||||||
param.setOperation(1);
|
param.setOperation(2);
|
||||||
param.setOperationPage("");
|
param.setOperationPage("/views/house/detail.html?houseId="+house.getId());
|
||||||
param.setPushClientId(user.getPushClientId());
|
param.setPushClientId(user.getPushClientId());
|
||||||
pushMessageService.push(param);
|
pushMessageService.push(param);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user