maven
23 小时以前 01c28e0b62f5cea71dd9378fefa28b7177ffedba
src/main/java/com/ruoyi/purchase/controller/TicketRegistrationController.java
@@ -20,6 +20,7 @@
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.security.core.parameters.P;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -86,6 +87,9 @@
    @GetMapping("/getProductRecordById")
    public AjaxResult getProductRecordById(Long id) {
        if (id == null) {
            return AjaxResult.error("参数错误");
        }
        return AjaxResult.success(productRecordService.getProductRecordById(id));
    }
@@ -97,10 +101,11 @@
    }
    /**
     * 删除来票登记
     * 删除来票登记(来票台账)
     */
    @Log(title = "来票登记", businessType = BusinessType.DELETE)
    @Log(title = "删除来票登记(来票台账)", businessType = BusinessType.DELETE)
    @DeleteMapping("/delRegistration")
    @Transactional(rollbackFor = Exception.class)
    public AjaxResult delRegistration(@RequestBody Long[] ids) {
        return toAjax(ticketRegistrationService.delRegistration(ids));
    }