|
@@ -47,6 +47,9 @@ public class CoachServiceImpl implements ICoachService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private AppOrderProInfoMapper appOrderProInfoMapper;
|
|
private AppOrderProInfoMapper appOrderProInfoMapper;
|
|
|
|
+ @Autowired
|
|
|
|
+ EvaluateMapper evaluateMapper;
|
|
|
|
+
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Result<List<AppCoachVO>> findCoachList() {
|
|
public Result<List<AppCoachVO>> findCoachList() {
|
|
@@ -96,8 +99,8 @@ public class CoachServiceImpl implements ICoachService {
|
|
double km = PositionUtil.calculateDistance(appCoachDetailsRequestVO.getLatitude(), appCoachDetailsRequestVO.getLongitude(), courseResponseVo.getLatitude().doubleValue(), courseResponseVo.getLongitude().doubleValue());
|
|
double km = PositionUtil.calculateDistance(appCoachDetailsRequestVO.getLatitude(), appCoachDetailsRequestVO.getLongitude(), courseResponseVo.getLatitude().doubleValue(), courseResponseVo.getLongitude().doubleValue());
|
|
courseResponseVo.setKm(km);
|
|
courseResponseVo.setKm(km);
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ String positiveRating = evaluateMapper.findPositiveRating(courseResponseVo.getId());
|
|
|
|
+ courseResponseVo.setGoodRate(positiveRating);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
appCoachDetailsVO.setClassesNumber((long) getInstructorTeachingNum(appCoachDetailsVO.getUserId()));
|
|
appCoachDetailsVO.setClassesNumber((long) getInstructorTeachingNum(appCoachDetailsVO.getUserId()));
|