|
|
@@ -1,15 +1,27 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.iformall.common.CommonConstants; |
|
|
|
import com.iformall.domain.dto.sm.SaveServiceVideoRecordDTO; |
|
|
|
import com.iformall.domain.po.sm.PersonMould; |
|
|
|
import com.iformall.domain.po.sm.ServiceInfo; |
|
|
|
import com.iformall.domain.po.sm.ServiceVideoRecord; |
|
|
|
import com.iformall.dto.GenerateVideoDTO; |
|
|
|
import com.iformall.dto.PagePersonMouldDTO; |
|
|
|
import com.iformall.dto.PageServiceVideoRecordDTO; |
|
|
|
import com.iformall.enums.sm.EnumThirdPartyType; |
|
|
|
import com.iformall.service.AiVideoService; |
|
|
|
import com.iformall.service.sm.ServiceInfoService; |
|
|
|
import com.iformall.service.sm.ServiceVideoRecordService; |
|
|
|
import com.iformall.sm.*; |
|
|
|
import com.iformall.utils.Base64Util; |
|
|
|
import com.iformall.vo.PagePersonMouldVO; |
|
|
|
import com.iformall.vo.PageServiceVedioRecordVO; |
|
|
|
import com.iformall.vo.PageVO; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@@ -56,4 +68,11 @@ public class AiVideoServiceImpl implements AiVideoService { |
|
|
|
} |
|
|
|
return video; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageVO<PageServiceVedioRecordVO> serviceVideoRecords(PageServiceVideoRecordDTO dto) { |
|
|
|
PageInfo<ServiceVideoRecord> personMouldPage = serviceVideoRecordService.listAsPage(PageServiceVideoRecordDTO.mappingPO(dto), dto.getPageNum(), dto.getPageSize()); |
|
|
|
List<PageServiceVedioRecordVO> result = personMouldPage.getList().stream().map(PageServiceVedioRecordVO::mapping).collect(Collectors.toList()); |
|
|
|
return PageVO.build(personMouldPage.getTotal(), result); |
|
|
|
} |
|
|
|
} |