| | |
| | | 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.*; |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * 根据名称模糊搜索数据 |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @PostMapping("/coach/queryCoachListByName") |
| | | @ResponseBody |
| | | 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)); |
| | | } |
| | | |
| | | /** |
| | | * 获取教练列表数据 |
| | | */ |
| | | @ResponseBody |