From 5901b38cfc28123c97e78b51a08e60e351631f2e Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期四, 21 十一月 2024 18:52:06 +0800 Subject: [PATCH] 1.完成个人中心-门店管理部分接口的定义 2.完成个人中心-我的钱包部分接口的定义 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java index 6044121..359acf3 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java @@ -1,8 +1,16 @@ package com.ruoyi.other.controller; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.other.api.domain.Technician; +import com.ruoyi.other.service.TechnicianService; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; /** * <p> @@ -14,7 +22,23 @@ */ @RestController @RequestMapping("/shop") -public class ShopController { +public class ShopController extends BaseController { + @Resource + private TechnicianService technicianService; + + + + + /** + * 指定门店技师列表 + */ + @RequestMapping("/technicianList") + public AjaxResult technicianList(@RequestParam String shopId){ + return success(technicianService.list(new LambdaQueryWrapper<Technician>() + .eq(Technician::getShopId,shopId) + .eq(Technician::getStatus,2) + .eq(Technician::getSubscribeStatus,1))); + } } -- Gitblit v1.7.1