提交 6e01184e authored 作者: xc's avatar xc

xc

上级 3637d556
...@@ -39,10 +39,10 @@ public class Job { ...@@ -39,10 +39,10 @@ public class Job {
// updateAtt(notice, days, 1); // updateAtt(notice, days, 1);
if (days <= 3.001 && days > 2.998 && notice.getLabel() != 1){ if (days <= 3.001 && days > 2.998 && notice.getLabel() != 1){
updateAtt(notice, days, 1); updateAtt(notice, 3, 1);
} }
if(days <= 1.001 && days > 0.998 && notice.getLabel() != 2){ if(days <= 1.001 && days > 0.998 && notice.getLabel() != 2){
updateAtt(notice, days, 2); updateAtt(notice, 1, 2);
} }
} }
...@@ -100,8 +100,8 @@ public class Job { ...@@ -100,8 +100,8 @@ public class Job {
* @param label 该通知提醒过几次 * @param label 该通知提醒过几次
*/ */
private void add(double days, Attention attention, String data, Notice notice, int label){ private void add(double days, Attention attention, String data, Notice notice, int label){
int d = (int)Math.ceil(days); // int d = (int)Math.ceil(days);
data = data + ",还有" + d + "天失效。请尽快下载。"; data = data + ",还有" + days + "天失效。请尽快下载。";
attention.setData(data); attention.setData(data);
attention.setNoticeId(notice.getId()); attention.setNoticeId(notice.getId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论