master
wangning 7 years ago
parent 3b056b4092
commit e023b105e9

@ -169,7 +169,6 @@ public class ClientContractServiceImpl implements ClientContractService {
}
int waringDays = sysConfigManager.getSysConfig().getIntValue("rate_warning_days");
rateInfo.forEach((p) -> {
logger.debug("kirawang__now:"+now+"_____expiryTime+1:"+DateUtils.addDays(p.getDate("expiry_time"),1)+"______expiryTime:"+p.getDate("expiry_time")+"_____now+7:"+DateUtils.addDays(now, waringDays));
if (now.compareTo(DateUtils.addDays(p.getDate("expiry_time"),1)) > -1) {
result.put("rate_expire", true);
}
@ -180,6 +179,11 @@ public class ClientContractServiceImpl implements ClientContractService {
int expireDay = 0;
long expireSS = (DateUtils.addDays(rateInfo.get(0).getDate("expiry_time"),1).getTime()-now.getTime());
expireDay = (int)expireSS/(1000*60*60*24);
logger.debug("kirawang__expiryTime+1"+DateUtils.addDays(rateInfo.get(0).getDate("expiry_time"),1).getTime());
logger.debug("kirawang__当前时间"+now.getTime());
logger.debug("kirawang__时间差"+(DateUtils.addDays(rateInfo.get(0).getDate("expiry_time"),1).getTime()-now.getTime()));
logger.debug("kirawang__取整位"+(int)expireSS/(1000*60*60*24));
logger.debug("kirawang__取整位"+(int)expireSS/(1000*60*60*24));
if(expireSS%(1000*60*60*24)>1){
++expireDay;

Loading…
Cancel
Save