| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | |
| | | * @since 2026/03/02 14:40 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "临期售后管理") |
| | | @Tag(name = "临期售后管理") |
| | | @RequestMapping("/afterSalesNearExpiryService") |
| | | @AllArgsConstructor |
| | | public class AfterSalesNearExpiryController extends BaseController { |
| | | |
| | | @Autowired |
| | | private AfterSalesNearExpiryService afterSalesNearExpiryService; |
| | | |
| | | /** |
| | | * 新增临期售后 |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation("新增临期售后") |
| | | @Operation(summary = "新增临期售后") |
| | | @Log(title = "新增临期售后", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody AfterSalesNearExpiry entity) { |
| | | afterSalesNearExpiryService.add(entity); |
| | |
| | | * 更新临期售后 |
| | | */ |
| | | @PostMapping("/update") |
| | | @ApiOperation("更新临期售后") |
| | | @Operation(summary = "更新临期售后") |
| | | @Log(title = "更新临期售后", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody AfterSalesNearExpiry entity) { |
| | | afterSalesNearExpiryService.update(entity); |
| | |
| | | * 删除临期售后 |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("删除临期售后") |
| | | @Operation(summary = "删除临期售后") |
| | | @Log(title = "删除临期售后", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(Long[] ids) { |
| | | afterSalesNearExpiryService.delete(ids); |
| | |
| | | * 分页查询临期售后 |
| | | */ |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("分页查询临期售后") |
| | | @Operation(summary = "分页查询临期售后") |
| | | @Log(title = "分页查询临期售后", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page<AfterSalesNearExpiry> page, AfterSalesNearExpiry entity) { |
| | | IPage<AfterSalesNearExpiry> listPage = afterSalesNearExpiryService.listPage(page, entity); |