推送修改

This commit is contained in:
尹吉欢
2018-06-09 13:10:30 +08:00
parent 61be1e324d
commit f2ad5cd5cc
@@ -165,13 +165,16 @@ public class HouseRentNoticeJob implements SimpleJob {
int days = DateUtilCustom.between(new Date(), nextDay);
if (days == 7) {
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日") + "是您的到期收租日,又要有现金到账咯,请注意查收。详情请点击查看。";
logger.info(pushMsg);
PushMessageParam param = new PushMessageParam();
param.setTitle("收租提醒");
param.setContent(pushMsg);
param.setOperation(1);
param.setOperationPage("");
param.setOperation(2);
param.setOperationPage("/views/house/detail.html?houseId="+houseInfo.getId());
param.setPushClientId(user.getPushClientId());
pushMessageService.push(param);
}
@@ -195,8 +198,8 @@ public class HouseRentNoticeJob implements SimpleJob {
PushMessageParam param = new PushMessageParam();
param.setTitle("收租提醒");
param.setContent(pushMsg);
param.setOperation(1);
param.setOperationPage("");
param.setOperation(2);
param.setOperationPage("/views/house/detail.html?houseId="+house.getId());
param.setPushClientId(user.getPushClientId());
pushMessageService.push(param);
}