0720
This commit is contained in:
parent
e7fb211566
commit
8be11ed50c
@ -209,6 +209,14 @@ public class DlDriveSchoolCoachController {
|
||||
return success(dlDriveSchoolCoachService.edit(coachStaffSaveVo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据type查询教练列表
|
||||
*/
|
||||
@GetMapping("/coachListByType")
|
||||
public CommonResult<?> coachListByType(String type) {
|
||||
return success(dlDriveSchoolCoachService.coachListByType(type));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增驾校员工
|
||||
*
|
||||
|
@ -123,6 +123,11 @@ public interface DlDriveSchoolCoachService extends IService<DlDriveSchoolCoach>
|
||||
*/
|
||||
boolean edit(CoachStaffSaveVo coachStaffSaveVo);
|
||||
|
||||
/**
|
||||
* 根据type查询教练列表
|
||||
*/
|
||||
List<DlDriveSchoolCoach> coachListByType(String type);
|
||||
|
||||
/**
|
||||
* 保存驾校员工
|
||||
*
|
||||
|
@ -815,6 +815,17 @@ public class DlDriveSchoolCoachServiceImpl extends ServiceImpl<DlDriveSchoolCoac
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据type查询教练列表
|
||||
*/
|
||||
@Override
|
||||
public List<DlDriveSchoolCoach> coachListByType(String type) {
|
||||
LambdaQueryWrapper<DlDriveSchoolCoach> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(DlDriveSchoolCoach::getType, type)
|
||||
.eq(DlDriveSchoolCoach::getDeleted, 0);
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
|
Loading…
Reference in New Issue
Block a user