|
@@ -264,5 +264,26 @@ public class WmPayOffController {
|
|
|
return wmPayOffService.settleIssueBySubType(input);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量财务结算
|
|
|
+ *
|
|
|
+ * @param inputList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @SysLog("批量财务结算" )
|
|
|
+ @PostMapping("/batch-financial-settle")
|
|
|
+ public R<?> batchFinancialSettle(@RequestBody List<WmScorePackageSettleInput> inputList) {
|
|
|
+ if (CollectionUtil.isEmpty(inputList)) {
|
|
|
+ return R.failed("数据异常");
|
|
|
+ }
|
|
|
+ for (WmScorePackageSettleInput input : inputList) {
|
|
|
+ if(StringUtils.isEmpty(input.getId()) || StringUtils.isEmpty(input.getSubType()) || CollectionUtils.isEmpty(input.getNotes())
|
|
|
+ || null == input.getInvoiceCategory() || StringUtils.isEmpty(input.getScorePackageName())) {
|
|
|
+ return R.failed("数据异常");
|
|
|
+ }
|
|
|
+ wmPayOffService.settleIssueBySubType(input);
|
|
|
+ }
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
|
|
|
}
|