|
@@ -48,7 +48,7 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
materials.forEach(material->{
|
|
|
executorService.submit(()->{
|
|
|
try {
|
|
|
- if(null == material.getVideoCode()||material.getVideoCode().trim().equals("")){
|
|
|
+ if(null == material.getVideoCode()|| "".equals(material.getVideoCode().trim())){
|
|
|
return;
|
|
|
}
|
|
|
String signature = material.getVideoCode();
|
|
@@ -64,33 +64,33 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
String planId = null;
|
|
|
if(null!=ascription){
|
|
|
planId = ascription.getString("planId");
|
|
|
- if(null!=planId&&!planId.trim().equals("")){
|
|
|
+ if(null!=planId&&!"".equals(planId.trim())){
|
|
|
etlInfo.setPlanId(planId);
|
|
|
}
|
|
|
String planName = ascription.getString("planName");
|
|
|
- if(null!=planName&&!planName.trim().equals("")){
|
|
|
+ if(null!=planName&&!"".equals(planName.trim())){
|
|
|
etlInfo.setPlanName(planName);
|
|
|
}
|
|
|
String clipId = ascription.getString("clipId");
|
|
|
- if(null!=clipId&&!clipId.trim().equals("")){
|
|
|
+ if(null!=clipId&&!"".equals(clipId.trim())){
|
|
|
etlInfo.setClipId(clipId);
|
|
|
}
|
|
|
String clipName = ascription.getString("clipName");
|
|
|
- if(null!=clipName&&!clipName.trim().equals("")){
|
|
|
+ if(null!=clipName&&!"".equals(clipName.trim())){
|
|
|
etlInfo.setClipName(clipName);
|
|
|
}
|
|
|
String shotId = ascription.getString("shotId");
|
|
|
- if(null!=shotId&&!shotId.trim().equals("")){
|
|
|
+ if(null!=shotId&&!"".equals(shotId.trim())){
|
|
|
etlInfo.setShotId(shotId);
|
|
|
}
|
|
|
String shotName = ascription.getString("shotName");
|
|
|
- if(null!=shotName&&!shotName.trim().equals("")){
|
|
|
+ if(null!=shotName&&!"".equals(shotName.trim())){
|
|
|
etlInfo.setShotName(shotName);
|
|
|
}
|
|
|
}
|
|
|
if(null!=planId){
|
|
|
String companyName = userAllocationMapper.getCompanyNameByUserId(planId);
|
|
|
- if (null!=companyName&&!companyName.trim().equals("")){
|
|
|
+ if (null!=companyName&&!"".equals(companyName.trim())){
|
|
|
etlInfo.setCompanyName(companyName);
|
|
|
}
|
|
|
}
|
|
@@ -123,33 +123,33 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
String planId = null;
|
|
|
if(null!=ascription){
|
|
|
planId = ascription.getString("planId");
|
|
|
- if(null!=planId&&!planId.trim().equals("")){
|
|
|
+ if(null!=planId&&!"".equals(planId.trim())){
|
|
|
etlInfo.setPlanId(planId);
|
|
|
}
|
|
|
String planName = ascription.getString("planName");
|
|
|
- if(null!=planName&&!planName.trim().equals("")){
|
|
|
+ if(null!=planName&&!"".equals(planName.trim())){
|
|
|
etlInfo.setPlanName(planName);
|
|
|
}
|
|
|
String clipId = ascription.getString("clipId");
|
|
|
- if(null!=clipId&&!clipId.trim().equals("")){
|
|
|
+ if(null!=clipId&&!"".equals(clipId.trim())){
|
|
|
etlInfo.setClipId(clipId);
|
|
|
}
|
|
|
String clipName = ascription.getString("clipName");
|
|
|
- if(null!=clipName&&!clipName.trim().equals("")){
|
|
|
+ if(null!=clipName&&!"".equals(clipName.trim())){
|
|
|
etlInfo.setClipName(clipName);
|
|
|
}
|
|
|
String shotId = ascription.getString("shotId");
|
|
|
- if(null!=shotId&&!shotId.trim().equals("")){
|
|
|
+ if(null!=shotId&&!"".equals(shotId.trim())){
|
|
|
etlInfo.setShotId(shotId);
|
|
|
}
|
|
|
String shotName = ascription.getString("shotName");
|
|
|
- if(null!=shotName&&!shotName.trim().equals("")){
|
|
|
+ if(null!=shotName&&!"".equals(shotName.trim())){
|
|
|
etlInfo.setShotName(shotName);
|
|
|
}
|
|
|
}
|
|
|
if(null!=planId){
|
|
|
String companyName = userAllocationMapper.getCompanyNameByUserId(planId);
|
|
|
- if (null!=companyName&&!companyName.trim().equals("")){
|
|
|
+ if (null!=companyName&&!"".equals(companyName.trim())){
|
|
|
etlInfo.setCompanyName(companyName);
|
|
|
}
|
|
|
}
|
|
@@ -220,7 +220,7 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
materials.forEach(material->{
|
|
|
executorService.submit(()->{
|
|
|
try {
|
|
|
- if(null == material.getVideoCode()||material.getVideoCode().trim().equals("")){
|
|
|
+ if(null == material.getVideoCode()|| "".equals(material.getVideoCode().trim())){
|
|
|
return;
|
|
|
}
|
|
|
String signature = material.getVideoCode();
|
|
@@ -236,33 +236,33 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
String planId = null;
|
|
|
if(null!=ascription){
|
|
|
planId = ascription.getString("planId");
|
|
|
- if(null!=planId&&!planId.trim().equals("")){
|
|
|
+ if(null!=planId&&!"".equals(planId.trim())){
|
|
|
etlInfo.setPlanId(planId);
|
|
|
}
|
|
|
String planName = ascription.getString("planName");
|
|
|
- if(null!=planName&&!planName.trim().equals("")){
|
|
|
+ if(null!=planName&&!"".equals(planName.trim())){
|
|
|
etlInfo.setPlanName(planName);
|
|
|
}
|
|
|
String clipId = ascription.getString("clipId");
|
|
|
- if(null!=clipId&&!clipId.trim().equals("")){
|
|
|
+ if(null!=clipId&&!"".equals(clipId.trim())){
|
|
|
etlInfo.setClipId(clipId);
|
|
|
}
|
|
|
String clipName = ascription.getString("clipName");
|
|
|
- if(null!=clipName&&!clipName.trim().equals("")){
|
|
|
+ if(null!=clipName&&!"".equals(clipName.trim())){
|
|
|
etlInfo.setClipName(clipName);
|
|
|
}
|
|
|
String shotId = ascription.getString("shotId");
|
|
|
- if(null!=shotId&&!shotId.trim().equals("")){
|
|
|
+ if(null!=shotId&&!"".equals(shotId.trim())){
|
|
|
etlInfo.setShotId(shotId);
|
|
|
}
|
|
|
String shotName = ascription.getString("shotName");
|
|
|
- if(null!=shotName&&!shotName.trim().equals("")){
|
|
|
+ if(null!=shotName&&!"".equals(shotName.trim())){
|
|
|
etlInfo.setShotName(shotName);
|
|
|
}
|
|
|
}
|
|
|
if(null!=planId){
|
|
|
String companyName = userAllocationMapper.getCompanyNameByUserId(planId);
|
|
|
- if (null!=companyName&&!companyName.trim().equals("")){
|
|
|
+ if (null!=companyName&&!"".equals(companyName.trim())){
|
|
|
etlInfo.setCompanyName(companyName);
|
|
|
}
|
|
|
}
|
|
@@ -295,33 +295,33 @@ public class BytedanceVideoEtlInfoServiceImpl extends ServiceImpl<BytedanceVideo
|
|
|
String planId = null;
|
|
|
if(null!=ascription){
|
|
|
planId = ascription.getString("planId");
|
|
|
- if(null!=planId&&!planId.trim().equals("")){
|
|
|
+ if(null!=planId&&!"".equals(planId.trim())){
|
|
|
etlInfo.setPlanId(planId);
|
|
|
}
|
|
|
String planName = ascription.getString("planName");
|
|
|
- if(null!=planName&&!planName.trim().equals("")){
|
|
|
+ if(null!=planName&&!"".equals(planName.trim())){
|
|
|
etlInfo.setPlanName(planName);
|
|
|
}
|
|
|
String clipId = ascription.getString("clipId");
|
|
|
- if(null!=clipId&&!clipId.trim().equals("")){
|
|
|
+ if(null!=clipId&&!"".equals(clipId.trim())){
|
|
|
etlInfo.setClipId(clipId);
|
|
|
}
|
|
|
String clipName = ascription.getString("clipName");
|
|
|
- if(null!=clipName&&!clipName.trim().equals("")){
|
|
|
+ if(null!=clipName&&!"".equals(clipName.trim())){
|
|
|
etlInfo.setClipName(clipName);
|
|
|
}
|
|
|
String shotId = ascription.getString("shotId");
|
|
|
- if(null!=shotId&&!shotId.trim().equals("")){
|
|
|
+ if(null!=shotId&&!"".equals(shotId.trim())){
|
|
|
etlInfo.setShotId(shotId);
|
|
|
}
|
|
|
String shotName = ascription.getString("shotName");
|
|
|
- if(null!=shotName&&!shotName.trim().equals("")){
|
|
|
+ if(null!=shotName&&!"".equals(shotName.trim())){
|
|
|
etlInfo.setShotName(shotName);
|
|
|
}
|
|
|
}
|
|
|
if(null!=planId){
|
|
|
String companyName = userAllocationMapper.getCompanyNameByUserId(planId);
|
|
|
- if (null!=companyName&&!companyName.trim().equals("")){
|
|
|
+ if (null!=companyName&&!"".equals(companyName.trim())){
|
|
|
etlInfo.setCompanyName(companyName);
|
|
|
}
|
|
|
}
|