|
@@ -103,6 +103,8 @@ public class EduPracticeGroupServiceImpl implements EduPracticeGroupService{
|
|
|
private ContractService contractService;
|
|
|
@Autowired
|
|
|
private StudentDao studentDao;
|
|
|
+ @Autowired
|
|
|
+ private TeacherCourseRewardService teacherCourseRewardService;
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory
|
|
|
.getLogger(EduPracticeGroupService.class);
|
|
@@ -568,6 +570,12 @@ public class EduPracticeGroupServiceImpl implements EduPracticeGroupService{
|
|
|
LOGGER.error("网管课[{}]购买协议错误:{}",order.getMusicGroupId(),e.getMessage(),e.getMessage());
|
|
|
}
|
|
|
|
|
|
+ try {
|
|
|
+ teacherCourseRewardService.addConvertReward(practiceGroup.getStudentId(), practiceGroup.getUserId());
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
Teacher teacher = teacherService.getDetail(practiceGroup.getUserId());
|
|
|
|
|
|
String groupStartTime=DateUtil.dateToString(practiceGroup.getCoursesStartDate(),"yyyy年MM月dd日");
|