| | |
| | | import com.ruoyi.admin.service.EvaluateService; |
| | | import com.ruoyi.admin.vo.EvaluatePageVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | * @param pageNum 页码 |
| | | * @param pageSize 每页显示条数 |
| | | */ |
| | | @RequiresPermissions("order_evaluate") |
| | | @ApiOperation(value = "订单评价分页查询列表", tags = {"后台-系统设置-订单评价管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(value = "评价用户", name = "userName", dataType = "String"), |
| | | @ApiImplicitParam(value = "评价用户", name = "userNo", dataType = "String"), |
| | | @ApiImplicitParam(value = "订单编号", name = "orderNumber", dataType = "String"), |
| | | @ApiImplicitParam(value = "师傅姓名", name = "workerName", dataType = "String"), |
| | | @ApiImplicitParam(value = "页码", name = "pageNum", dataType = "Integer", required = true), |
| | | @ApiImplicitParam(value = "每页条数", name = "pageSize", dataType = "Integer", required = true) |
| | | }) |
| | | public R<IPage<EvaluatePageVO>> queryPageList(String userName, String orderNumber, String workerName, |
| | | public R<IPage<EvaluatePageVO>> queryPageList(String userNo, String orderNumber, String workerName, |
| | | @RequestParam(name = "pageNum", defaultValue = "1") Integer pageNum, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { |
| | | return R.ok(evaluateService.queryPageList(userName, orderNumber, workerName, Page.of(pageNum, pageSize))); |
| | | return R.ok(evaluateService.queryPageList(userNo, orderNumber, workerName, Page.of(pageNum, pageSize))); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @param id 订单评价id |
| | | */ |
| | | @RequiresPermissions("order_evaluate") |
| | | @ApiOperation(value = "订单评价详情", tags = {"后台-系统设置-订单评价管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param ids 订单评价多条id拼接 |
| | | */ |
| | | @RequiresPermissions("order_evaluate") |
| | | @ApiOperation(value = "批量删除订单评价", tags = {"后台-系统设置-订单评价管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |