|
|
@@ -543,6 +543,10 @@ public class BgServiceImpl implements BgService {
|
|
|
videoInfoGenres.setName(parentName);
|
|
|
videoInfoGenres.setType(type);
|
|
|
videoInfoGenresMapper.insert(videoInfoGenres);
|
|
|
+
|
|
|
+ VideoGenres videoGenres = new VideoGenres();
|
|
|
+ videoGenres.setName(parentName);
|
|
|
+ videoGenresMapper.insertOrUpdate(videoGenres);
|
|
|
} else if (parentType == 2) {
|
|
|
parentFullName = "(男优)" + parentName;
|
|
|
|
|
|
@@ -551,6 +555,11 @@ public class BgServiceImpl implements BgService {
|
|
|
videoInfoCast.setName(parentName);
|
|
|
videoInfoCast.setType(type);
|
|
|
videoInfoCastMapper.insert(videoInfoCast);
|
|
|
+
|
|
|
+ VideoCast videoCast = new VideoCast();
|
|
|
+ videoCast.setName(parentName);
|
|
|
+ videoCast.setType(1);
|
|
|
+ videoCastMapper.insertOrUpdate(videoCast);
|
|
|
} else if (parentType == 3) {
|
|
|
parentFullName = "(女优)" + parentName;
|
|
|
|
|
|
@@ -559,6 +568,11 @@ public class BgServiceImpl implements BgService {
|
|
|
videoInfoCast.setName(parentName);
|
|
|
videoInfoCast.setType(type);
|
|
|
videoInfoCastMapper.insert(videoInfoCast);
|
|
|
+
|
|
|
+ VideoCast videoCast = new VideoCast();
|
|
|
+ videoCast.setName(parentName);
|
|
|
+ videoCast.setType(2);
|
|
|
+ videoCastMapper.insertOrUpdate(videoCast);
|
|
|
} else {
|
|
|
throw new RuntimeException("parentType类型错误");
|
|
|
}
|
|
|
@@ -575,7 +589,7 @@ public class BgServiceImpl implements BgService {
|
|
|
// 主体是谁
|
|
|
videoInfo.setMainWho(parentFullName);
|
|
|
|
|
|
- videoInfoMapper.insert(videoInfo);
|
|
|
+ videoInfoMapper.insertOrUpdate(videoInfo);
|
|
|
}
|
|
|
}
|
|
|
|