|
@@ -518,7 +518,7 @@ public class MaterialInfoController {
|
|
|
url = KuaishouInterfaceConstant.HTTPS_PREFIX + url;
|
|
|
}
|
|
|
materialInfo.setUrl(url);
|
|
|
- materialInfo.setCreateTime(new Date());
|
|
|
+ materialInfo.setUpdateTime(new Date());
|
|
|
MaterialCutFrame cutFrame = materialCutFrameService.getCutFrameByCode(materialInfo.getCode());
|
|
|
if (Check.isNull(cutFrame)) {
|
|
|
String videoUrl = URLDecoder.decode(url).replace("https://media-1301855440.cos.ap-chongqing.myqcloud.com/", "");
|
|
@@ -567,8 +567,6 @@ public class MaterialInfoController {
|
|
|
if (!Check.isNull(materialInfo.getSlogans())) {
|
|
|
JSONArray slogans = materialInfo.getSlogans();
|
|
|
if (null != slogans && !slogans.isEmpty()) {
|
|
|
-
|
|
|
-
|
|
|
for (int i = 0; i < slogans.size(); i++) {
|
|
|
JSONObject slogenInfo = slogans.getJSONObject(i);
|
|
|
String title = slogenInfo.getString("title");
|
|
@@ -625,14 +623,15 @@ public class MaterialInfoController {
|
|
|
}
|
|
|
|
|
|
//如果状态为1 审核通过,则更新审核时间
|
|
|
- materialInfo.setConfirmTime(DateUtils.getDate());
|
|
|
+ Integer status = materialInfo.getStatus();
|
|
|
+ if (status == 1) {
|
|
|
+ materialInfo.setConfirmTime(new Date());
|
|
|
+ }
|
|
|
+
|
|
|
boolean ok = materialInfoService.updateById(materialInfo);
|
|
|
if (ok) {
|
|
|
result.success("修改成功!");
|
|
|
}
|
|
|
-
|
|
|
- Integer status = materialInfo.getStatus();
|
|
|
-
|
|
|
// 如果状态为2 审核拒绝 给上传人发送消息
|
|
|
if (status == 2) {
|
|
|
Product product = productService.getById(materialInfoEntity.getProductId());
|
|
@@ -818,7 +817,7 @@ public class MaterialInfoController {
|
|
|
url = KuaishouInterfaceConstant.HTTPS_PREFIX + url;
|
|
|
}
|
|
|
materialInfo.setUrl(url);
|
|
|
- materialInfo.setCreateTime(new Date());
|
|
|
+ materialInfo.setUpdateTime(new Date());
|
|
|
MaterialCutFrame cutFrame = materialCutFrameService.getCutFrameByCode(materialInfo.getCode());
|
|
|
if (Check.isNull(cutFrame)) {
|
|
|
String videoUrl = URLDecoder.decode(url).replace("https://media-1301855440.cos.ap-chongqing.myqcloud.com/", "");
|
|
@@ -864,13 +863,14 @@ public class MaterialInfoController {
|
|
|
materialAscriptionService.update(updateMaterialAscription, ascriptionQueryWrapper);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ Integer status = materialInfo.getStatus();
|
|
|
+ if (status == 1) {
|
|
|
+ materialInfo.setConfirmTime(new Date());
|
|
|
+ }
|
|
|
boolean ok = materialInfoService.updateById(materialInfo);
|
|
|
if (ok) {
|
|
|
result.success("修改成功!");
|
|
|
}
|
|
|
-
|
|
|
- Integer status = materialInfo.getStatus();
|
|
|
// 如果状态为2 审核拒绝 给上传人发送消息
|
|
|
if (status == 2) {
|
|
|
Product product = productService.getById(materialInfoEntity.getProductId());
|