maven
2026-01-20 eba011c9c3a25e73763eb420e9c3275cc1112bab
src/main/java/com/ruoyi/purchase/controller/PaymentRegistrationController.java
@@ -14,6 +14,7 @@
import com.ruoyi.purchase.pojo.PaymentRegistration;
import com.ruoyi.purchase.service.IPaymentRegistrationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
@@ -69,8 +70,12 @@
     */
    @Log(title = "付款登记", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody PaymentRegistration paymentRegistration) {
        return toAjax(paymentRegistrationService.insertPaymentRegistration(paymentRegistration));
    public AjaxResult add(@RequestBody List<PaymentRegistration> paymentRegistration) {
        if(CollectionUtils.isEmpty(paymentRegistration)) return error("请选择付款登记");
        for (PaymentRegistration registration : paymentRegistration) {
            paymentRegistrationService.insertPaymentRegistration(registration);
        }
        return toAjax(1);
    }
    /**