提交 e8d8f12c authored 作者: xc's avatar xc

xc

上级 c3779833
...@@ -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, 3, 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, 1, 2); updateAtt(notice, "1", 2);
} }
} }
...@@ -57,7 +57,7 @@ public class Job { ...@@ -57,7 +57,7 @@ public class Job {
* @param days 失效天数 * @param days 失效天数
* @param label 修改通知label 1为提醒过一次,2为提醒过两次 * @param label 修改通知label 1为提醒过一次,2为提醒过两次
*/ */
private void updateAtt(Notice notice, double days, int label){ private void updateAtt(Notice notice, String days, int label){
String data = ""; String data = "";
Attention attention = new Attention(); Attention attention = new Attention();
// data = "您收到来自["+ notice.getUnit() + "][" + notice.getName() +"]标题为[" + notice.getTitle() + "]的通知,没有查看"; // data = "您收到来自["+ notice.getUnit() + "][" + notice.getName() +"]标题为[" + notice.getTitle() + "]的通知,没有查看";
...@@ -78,7 +78,7 @@ public class Job { ...@@ -78,7 +78,7 @@ public class Job {
// System.out.println(downLoadCounts); // System.out.println(downLoadCounts);
for(DownLoadCount downLoadCount:downLoadCounts){ for(DownLoadCount downLoadCount:downLoadCounts){
if(downLoadCount.getCount() == 0){ if(downLoadCount.getCount() == 0){
data = "您收到["+ notice.getUnit() + "][" + notice.getName() +"]的《" + notice.getTitle() + "》,有文件没有下载"; data = "您收到["+ notice.getUnit() + "_" + notice.getName() +"]的《" + notice.getTitle() + "》,有文件没有下载";
add(days, attention, data, notice, label); add(days, attention, data, notice, label);
} }
} }
...@@ -99,7 +99,7 @@ public class Job { ...@@ -99,7 +99,7 @@ public class Job {
* @param notice 通知实体 * @param notice 通知实体
* @param label 该通知提醒过几次 * @param label 该通知提醒过几次
*/ */
private void add(double days, Attention attention, String data, Notice notice, int label){ private void add(String days, Attention attention, String data, Notice notice, int label){
// int d = (int)Math.ceil(days); // int d = (int)Math.ceil(days);
data = data + ",还有" + days + "天失效。请尽快下载。"; data = data + ",还有" + days + "天失效。请尽快下载。";
attention.setData(data); attention.setData(data);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论