|
@@ -2,11 +2,13 @@ package com.fjhx.supplier.controller;
|
|
|
|
|
|
import com.fjhx.entity.supplier.Supplier;
|
|
|
import com.fjhx.supplier.service.SupplierService;
|
|
|
+import com.fjhx.utils.BigDecimalUtil;
|
|
|
import org.springblade.common.utils.ListPageMap;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -261,5 +263,12 @@ public class SupplierController {
|
|
|
return R.success(result);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/paymentGetBackAmount")
|
|
|
+ public R paymentGetBackAmount(@RequestBody Map<String, String> condition) {
|
|
|
+ String purchaseBillNo = condition.get("purchaseBillNo");
|
|
|
+ BigDecimal amount = supplierService.paymentGetBackAmount(purchaseBillNo);
|
|
|
+ return R.data(BigDecimalUtil.keepDecimals(amount, 2));
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|