|
@@ -762,8 +762,11 @@ public class SampleXxlJob {
|
|
|
int interval = Integer.parseInt(this.getInterval(invoice.getBillingDate(), new Date()));
|
|
|
|
|
|
taskName = "超期收款发票";
|
|
|
- titleStr = "发票编号为"+ invoice.getNo()+"的项目["+invoice.getProgramName()+"],已超期"+interval+"天,请尽快收款";
|
|
|
-
|
|
|
+ if (StringUtils.isNotBlank(invoice.getProgramName())){
|
|
|
+ titleStr = "发票编号为"+ invoice.getNo()+"的项目["+invoice.getProgramName()+"],已超期"+interval+"天,请尽快收款";
|
|
|
+ }else {
|
|
|
+ titleStr = "发票编号为"+ invoice.getNo()+",已超期"+interval+"天,请尽快收款";
|
|
|
+ }
|
|
|
Set<String> noticeUserSet = new HashSet<String>();
|
|
|
|
|
|
//获取人员信息
|
|
@@ -839,7 +842,11 @@ public class SampleXxlJob {
|
|
|
int interval = Integer.parseInt(this.getInterval(invoice.getBillingDate(), new Date()));
|
|
|
|
|
|
taskName = "评估发票超期收款";
|
|
|
- titleStr = "发票编号为"+ invoice.getNo()+"的项目["+invoice.getProgramName()+"],已超期"+interval+"天,请尽快收款";
|
|
|
+ if (StringUtils.isNotBlank(invoice.getProgramName())){
|
|
|
+ titleStr = "发票编号为"+ invoice.getNo()+"的项目["+invoice.getProgramName()+"],已超期"+interval+"天,请尽快收款";
|
|
|
+ }else {
|
|
|
+ titleStr = "发票编号为"+ invoice.getNo()+",已超期"+interval+"天,请尽快收款";
|
|
|
+ }
|
|
|
|
|
|
Set<String> noticeUserSet = new HashSet<String>();
|
|
|
|