44323
2023-11-21 b4c77c0839258280044cf65a15471fa3c20d465f
cloud-server-account/src/main/java/com/dsh/account/controller/CoachController.java
@@ -7,6 +7,7 @@
import com.dsh.account.model.vo.CoachChangeStateVO;
import com.dsh.account.model.vo.CoachSerchVO;
import com.dsh.account.service.CoachService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -30,6 +31,13 @@
    public List<Coach> queryCoachListByName(@RequestBody String name){
        return service.list(new QueryWrapper<Coach>().like("name",name));
    }
    /**根据运营商id查询教练
     */
    @PostMapping("/coach/queryCoachByOperatorId")
    @ResponseBody
    public List<Coach> queryCoachByOperatorId(@RequestBody Integer operatorId){
        return service.list(new QueryWrapper<Coach>().eq("cityManagerId",operatorId));
    }
    /**
     * 获取教练列表数据