|
@@ -127,6 +127,40 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
etlInfo.setUpdateTime(new Date());
|
|
|
this.save(etlInfo);
|
|
|
} else {
|
|
|
+ JSONObject ascription = materialAscriptionService.getDetailByCode(signature);
|
|
|
+ String planId = null;
|
|
|
+ if (null != ascription) {
|
|
|
+ planId = ascription.getString("planId");
|
|
|
+ if (null != planId && !planId.trim().equals("")) {
|
|
|
+ etlInfo.setPlanId(planId);
|
|
|
+ }
|
|
|
+ String planName = ascription.getString("planName");
|
|
|
+ if (null != planName && !planName.trim().equals("")) {
|
|
|
+ etlInfo.setPlanName(planName);
|
|
|
+ }
|
|
|
+ String clipId = ascription.getString("clipId");
|
|
|
+ if (null != clipId && !clipId.trim().equals("")) {
|
|
|
+ etlInfo.setClipId(clipId);
|
|
|
+ }
|
|
|
+ String clipName = ascription.getString("clipName");
|
|
|
+ if (null != clipName && !clipName.trim().equals("")) {
|
|
|
+ etlInfo.setClipName(clipName);
|
|
|
+ }
|
|
|
+ String shotId = ascription.getString("shotId");
|
|
|
+ if (null != shotId && !shotId.trim().equals("")) {
|
|
|
+ etlInfo.setShotId(shotId);
|
|
|
+ }
|
|
|
+ String shotName = ascription.getString("shotName");
|
|
|
+ if (null != shotName && !shotName.trim().equals("")) {
|
|
|
+ etlInfo.setShotName(shotName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (null != planId) {
|
|
|
+ String companyName = kuaishouVideoEtlInfoMapper.getCompanyNameByUserId(planId);
|
|
|
+ if (null != companyName && !companyName.trim().equals("")) {
|
|
|
+ etlInfo.setCompanyName(companyName);
|
|
|
+ }
|
|
|
+ }
|
|
|
//只需要更新汇总数据
|
|
|
etlInfo.setTotalCost(nowData.getCharge());
|
|
|
etlInfo.setAclick(nowData.getAclick());
|
|
@@ -255,6 +289,40 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
etlInfo.setUpdateTime(new Date());
|
|
|
kuaishouProjectVideoEtlInfoService.save(etlInfo);
|
|
|
} else {
|
|
|
+ JSONObject ascription = materialAscriptionService.getDetailByCode(signature);
|
|
|
+ String planId = null;
|
|
|
+ if (null != ascription) {
|
|
|
+ planId = ascription.getString("planId");
|
|
|
+ if (null != planId && !planId.trim().equals("")) {
|
|
|
+ etlInfo.setPlanId(planId);
|
|
|
+ }
|
|
|
+ String planName = ascription.getString("planName");
|
|
|
+ if (null != planName && !planName.trim().equals("")) {
|
|
|
+ etlInfo.setPlanName(planName);
|
|
|
+ }
|
|
|
+ String clipId = ascription.getString("clipId");
|
|
|
+ if (null != clipId && !clipId.trim().equals("")) {
|
|
|
+ etlInfo.setClipId(clipId);
|
|
|
+ }
|
|
|
+ String clipName = ascription.getString("clipName");
|
|
|
+ if (null != clipName && !clipName.trim().equals("")) {
|
|
|
+ etlInfo.setClipName(clipName);
|
|
|
+ }
|
|
|
+ String shotId = ascription.getString("shotId");
|
|
|
+ if (null != shotId && !shotId.trim().equals("")) {
|
|
|
+ etlInfo.setShotId(shotId);
|
|
|
+ }
|
|
|
+ String shotName = ascription.getString("shotName");
|
|
|
+ if (null != shotName && !shotName.trim().equals("")) {
|
|
|
+ etlInfo.setShotName(shotName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (null != planId) {
|
|
|
+ String companyName = kuaishouVideoEtlInfoMapper.getCompanyNameByUserId(planId);
|
|
|
+ if (null != companyName && !companyName.trim().equals("")) {
|
|
|
+ etlInfo.setCompanyName(companyName);
|
|
|
+ }
|
|
|
+ }
|
|
|
//只需要更新汇总数据
|
|
|
etlInfo.setTotalCost(nowData.getCharge());
|
|
|
etlInfo.setAclick(nowData.getAclick());
|