diff --git a/interface-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/MaterialDataService.java b/interface-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/MaterialDataService.java index 15c0169..b1b2655 100644 --- a/interface-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/MaterialDataService.java +++ b/interface-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/MaterialDataService.java @@ -10,7 +10,7 @@ public interface MaterialDataService { * @param dataVO 素材对象 * @return */ - public void save(MaterialDataVO dataVO); + public void save(String token, MaterialDataVO dataVO); /** * 查询素材包素材 diff --git a/module-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/impl/MaterialDataServiceImpl.java b/module-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/impl/MaterialDataServiceImpl.java index af024d1..2450668 100644 --- a/module-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/impl/MaterialDataServiceImpl.java +++ b/module-material-store/src/main/java/cn/com/tenlion/materialstore/service/materialdata/impl/MaterialDataServiceImpl.java @@ -44,7 +44,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { private IMaterialLinkService materialLinkService; @Override - public void save(MaterialDataVO dataVO) { + public void save(String token, MaterialDataVO dataVO) { List textVOList = dataVO.getText(); List photoVOList = dataVO.getPhoto(); List audioVOList = dataVO.getAudio(); @@ -58,7 +58,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(textVOList != null && textVOList.size() > 0) { for (MaterialTextVO text : textVOList) { text.setMaterialId(dataVO.getMaterialId()); - String textId = materialTextService.saveReturnId(text); + String textId = materialTextService.saveReturnId(token, text); } } /** @@ -68,7 +68,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(photoVOList != null && photoVOList.size() > 0) { for (MaterialPhotoVO photo : photoVOList) { photo.setMaterialId(dataVO.getMaterialId()); - String photoId = materialPhotoService.saveReturnId(photo); + String photoId = materialPhotoService.saveReturnId(token, photo); } } /** @@ -78,7 +78,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(audioVOList != null && audioVOList.size() > 0) { for (MaterialAudioVO audio : audioVOList) { audio.setMaterialId(dataVO.getMaterialId()); - String audioId = materialAudioService.saveReturnId(audio); + String audioId = materialAudioService.saveReturnId(token, audio); } } /** @@ -88,7 +88,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(videoVOList != null && videoVOList.size() > 0) { for (MaterialVideoVO video : videoVOList) { video.setMaterialId(dataVO.getMaterialId()); - String videoId = materialVideoService.saveReturnId(video); + String videoId = materialVideoService.saveReturnId(token, video); } } /** @@ -98,7 +98,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(mapVOList != null && mapVOList.size() > 0) { for (MaterialMapVO map : mapVOList) { map.setMaterialId(dataVO.getMaterialId()); - String mapId = materialMapService.saveReturnId(map); + String mapId = materialMapService.saveReturnId(token, map); } } /** @@ -108,7 +108,7 @@ public class MaterialDataServiceImpl implements MaterialDataService { if(linkVOList != null && linkVOList.size() > 0) { for (MaterialLinkVO link : linkVOList) { link.setMaterialId(dataVO.getMaterialId()); - String linkId = materialLinkService.saveReturnId(link); + String linkId = materialLinkService.saveReturnId(token, link); } } }