xhxu 5 лет назад
Родитель
Сommit
9bcc375433
2 измененных файлов: 6 добавлений и 3 удалений
  1. +4
    -1
      mallinkService/src/main/resources/mapper/TtCouponMapper.xml
  2. +2
    -2
      mallinkTTAdmin/src/main/java/com/iformall/controller/tt/TtCouponController.java

+ 4
- 1
mallinkService/src/main/resources/mapper/TtCouponMapper.xml Просмотреть файл

@@ -57,7 +57,10 @@
</sql> </sql>


<sql id="dynamicWhereConditions"> <sql id="dynamicWhereConditions">
where c.`is_del` = 0 and c.`type` != 3
where c.`is_del` = 0
<if test=" null == type or type != 3">
and c.`type` != 3
</if>


<if test=" null != id "> <if test=" null != id ">
and c.`id` = #{id} and c.`id` = #{id}


+ 2
- 2
mallinkTTAdmin/src/main/java/com/iformall/controller/tt/TtCouponController.java Просмотреть файл

@@ -124,7 +124,7 @@ public class TtCouponController extends BaseController {
VideUploadResult result = videoFactory.getExcutor(videoType).getVideoDetail(record.getVideoId()); VideUploadResult result = videoFactory.getExcutor(videoType).getVideoDetail(record.getVideoId());
if(result.isSuccess()){ if(result.isSuccess()){
record.setVideoTime(result.getDuration()); record.setVideoTime(result.getDuration());
record.setVideoUrl(result.getVideoUrl());
// record.setVideoUrl(result.getVideoUrl());
TtVideoLibrary video = new TtVideoLibrary(); TtVideoLibrary video = new TtVideoLibrary();
video.updateTenantInfo(tenantEntity); video.updateTenantInfo(tenantEntity);
video.setVideoId(record.getVideoId()); video.setVideoId(record.getVideoId());
@@ -145,7 +145,7 @@ public class TtCouponController extends BaseController {
VideUploadResult result = videoFactory.getExcutor(videoType).getVideoDetail(ttc.getVideoId()); VideUploadResult result = videoFactory.getExcutor(videoType).getVideoDetail(ttc.getVideoId());
if(result.isSuccess()){ if(result.isSuccess()){
ttc.setVideoTime(result.getDuration()); ttc.setVideoTime(result.getDuration());
ttc.setVideoUrl(result.getVideoUrl());
// ttc.setVideoUrl(result.getVideoUrl());
TtVideoLibrary video = new TtVideoLibrary(); TtVideoLibrary video = new TtVideoLibrary();
video.updateTenantInfo(tenantEntity); video.updateTenantInfo(tenantEntity);
video.setVideoId(record.getVideoId()); video.setVideoId(record.getVideoId());


Загрузка…
Отмена
Сохранить