|
@@ -348,16 +348,16 @@ public class MapServiceImpl extends SuperServiceImpl<MapMapper, Map> implements
|
|
|
/**
|
|
|
* 设置地图学习内容学习状态-PC端
|
|
|
*
|
|
|
- * @param pkId
|
|
|
+ * @param contentId
|
|
|
*/
|
|
|
- public void updateLearningStateV2(String pkId,String userId) {
|
|
|
- String mapId = mapContentMapper.selectById(pkId).getMapId();
|
|
|
- if (mapContentMapper.selectById(pkId) != null) {
|
|
|
+ public void updateLearningStateV2(String contentId,String userId) {
|
|
|
+ String mapId = mapContentMapper.selectById(contentId).getMapId();
|
|
|
+ if (mapContentMapper.selectById(contentId) != null) {
|
|
|
MapLearning mapLearning = new MapLearning();
|
|
|
mapLearning.setPkId(IdGenerator.getIdStr());
|
|
|
mapLearning.setMapId(mapId);
|
|
|
- mapLearning.setRouteId(mapContentMapper.selectById(pkId).getRouteId());
|
|
|
- mapLearning.setContentId(pkId);
|
|
|
+ mapLearning.setRouteId(mapContentMapper.selectById(contentId).getRouteId());
|
|
|
+ mapLearning.setContentId(contentId);
|
|
|
mapLearning.setUserId(userId);
|
|
|
mapLearningMapper.insert(mapLearning);
|
|
|
}
|