Преглед изворни кода

feat: 积分包结算批量结算

lixuesong пре 3 година
родитељ
комит
edafe26da3

+ 21 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/WmPayOffController.java

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