|
@@ -371,10 +371,12 @@ public class WmPayOffController {
|
|
|
export.setSubType(subjectLocation.getDescription());
|
|
|
// 获取当前税源地的发票类目
|
|
|
Map<String, String> subInvoice = collect.get(subjectLocation.getInvoiceType());
|
|
|
- // 根据发票类目value获取发票类目名称
|
|
|
- String cate = String.valueOf(settleOutput.getInvoiceCategory());
|
|
|
- String invoice = subInvoice.getOrDefault(cate, "") ;
|
|
|
- export.setInvoiceCategory(invoice);
|
|
|
+ if (subInvoice != null) {
|
|
|
+ // 根据发票类目value获取发票类目名称
|
|
|
+ String cate = String.valueOf(settleOutput.getInvoiceCategory());
|
|
|
+ String invoice = subInvoice.getOrDefault(cate, "");
|
|
|
+ export.setInvoiceCategory(invoice);
|
|
|
+ }
|
|
|
}
|
|
|
export.setUserNames(settleOutput.getUserNames());
|
|
|
export.setSettleAmount(settleOutput.getSettleAmount());
|
|
@@ -432,10 +434,12 @@ public class WmPayOffController {
|
|
|
export.setSubType(subjectLocation.getDescription());
|
|
|
// 获取当前税源地的发票类目
|
|
|
Map<String, String> subInvoice = collect.get(subjectLocation.getInvoiceType());
|
|
|
- // 根据发票类目value获取发票类目名称
|
|
|
- String cate = String.valueOf(settleOutput.getInvoiceCategory());
|
|
|
- String invoice = subInvoice.getOrDefault(cate, "") ;
|
|
|
- export.setInvoiceCategory(invoice);
|
|
|
+ if (subInvoice != null) {
|
|
|
+ // 根据发票类目value获取发票类目名称
|
|
|
+ String cate = String.valueOf(settleOutput.getInvoiceCategory());
|
|
|
+ String invoice = subInvoice.getOrDefault(cate, "");
|
|
|
+ export.setInvoiceCategory(invoice);
|
|
|
+ }
|
|
|
}
|
|
|
export.setUserNames(settleOutput.getUserNames());
|
|
|
export.setSettleAmount(settleOutput.getSettleAmount());
|