소스 검색

发票超期收款调整

sangwenwei 11 달 전
부모
커밋
9c82bc5640

+ 10 - 3
jeeplus-modules/jeeplus-xxl-job-executor-sample/src/main/java/com/xxl/job/executor/service/jobhandler/SampleXxlJob.java

@@ -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>();