| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.core.domain.entity.Custom; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.system.service.CustomService; |
| | | import com.ruoyi.system.service.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | |
| | | private CustomService customService; |
| | | |
| | | @ApiOperation(value = "获取客户列表") |
| | | @PostMapping("/selectCustomPageList") |
| | | public Result selectCustomPageList(@RequestBody Map<String, Object> data) throws Exception { |
| | | return Result.success(customService.selectCustomPageList(null, null)); |
| | | @GetMapping("/selectCustomPageList") |
| | | public Result<IPage<Custom>> selectCustomPageList(Page page, Custom custom) throws Exception { |
| | | return Result.success(customService.selectCustomPageList(page, custom)); |
| | | } |
| | | @ApiOperation(value = "删除客户信息") |
| | | @PostMapping("/delCustomById") |
| | |
| | | return Result.success(customService.upCustom(custom)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取客户枚举") |
| | | @GetMapping ("/selectCustomEnum") |
| | | public Result<List<Custom>> selectCustomEnum(){ |
| | | return Result.success(customService.selectCustomEnum()); |
| | | } |
| | | |
| | | } |
| | | |