| | |
| | | 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; |
| | | |
| | |
| | | |
| | | @GetMapping("/getProductRecordById") |
| | | public AjaxResult getProductRecordById(Long id) { |
| | | if (id == null) { |
| | | return AjaxResult.error("参数错误"); |
| | | } |
| | | return AjaxResult.success(productRecordService.getProductRecordById(id)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除来票登记 |
| | | * 删除来票登记(来票台账) |
| | | */ |
| | | @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)); |
| | | } |