|
|
@@ -1,5 +1,7 @@
|
|
|
package com.cyksj.service.station.impl;
|
|
|
|
|
|
+import com.cyksj.common.constant.Constant;
|
|
|
+import com.cyksj.mapper.GroupsRelationMapper;
|
|
|
import com.cyksj.mapper.station.CollegeStudentStationClickRecordMapper;
|
|
|
import com.cyksj.model.entity.CollegeStudentStationClickRecord;
|
|
|
import com.cyksj.service.station.CollegeStudentStationFService;
|
|
|
@@ -17,6 +19,8 @@ import org.springframework.stereotype.Service;
|
|
|
public class CollegeStudentStationFServiceImpl implements CollegeStudentStationFService {
|
|
|
private final CollegeStudentStationClickRecordMapper collegeStudentStationClickRecordMapper;
|
|
|
|
|
|
+ private final GroupsRelationMapper groupsRelationMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public void saveCollegeStudent(long userId, Integer type) {
|
|
|
CollegeStudentStationClickRecord collegeStudentStationClickRecord = new CollegeStudentStationClickRecord();
|
|
|
@@ -24,4 +28,10 @@ public class CollegeStudentStationFServiceImpl implements CollegeStudentStationF
|
|
|
collegeStudentStationClickRecord.setType(type);
|
|
|
collegeStudentStationClickRecordMapper.insert(collegeStudentStationClickRecord);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Long getExperienceTicket(Long userId) {
|
|
|
+ Long relationId = groupsRelationMapper.getExperienceTicket(userId, Constant.GPT_MIRROR_SKU_ID);
|
|
|
+ return relationId;
|
|
|
+ }
|
|
|
}
|