You've already forked FrameTour-BE
逻辑
This commit is contained in:
@@ -21,6 +21,7 @@ import com.ycwl.basic.model.pc.scenic.req.ScenicReqQuery;
|
||||
import com.ycwl.basic.model.pc.scenic.resp.ScenicRespVO;
|
||||
import com.ycwl.basic.model.pc.source.req.SourceReqQuery;
|
||||
import com.ycwl.basic.model.pc.source.resp.SourceRespVO;
|
||||
import com.ycwl.basic.model.pc.video.entity.MemberVideoEntity;
|
||||
import com.ycwl.basic.model.pc.video.req.VideoReqQuery;
|
||||
import com.ycwl.basic.model.pc.video.resp.VideoRespVO;
|
||||
import com.ycwl.basic.service.mobile.AppScenicService;
|
||||
@@ -133,20 +134,15 @@ public class AppScenicServiceImpl implements AppScenicService {
|
||||
|
||||
FaceRespVO faceRespVO = faceMapper.getById(faceId);
|
||||
if (StringUtils.isBlank(faceRespVO.getMatchSampleIds())) {
|
||||
return ApiResponse.success(new ArrayList<>());
|
||||
// return ApiResponse.success(new ArrayList<>());
|
||||
}
|
||||
|
||||
List<ContentPageVO> contentList = templateMapper.listFor(faceRespVO.getScenicId(), faceId);
|
||||
List<ContentPageVO> contentList = templateMapper.listFor(faceRespVO.getScenicId());
|
||||
contentList.forEach(contentPageVO -> {
|
||||
if (contentPageVO.getContentType() == 1) {
|
||||
VideoReqQuery videoReqQuery = new VideoReqQuery();
|
||||
videoReqQuery.setScenicId(contentPageVO.getScenicId());
|
||||
videoReqQuery.setTemplateId(contentPageVO.getTemplateId());
|
||||
videoReqQuery.setMemberId(worker.getUserId());
|
||||
List<VideoRespVO> videoList = videoMapper.list(videoReqQuery);
|
||||
if (!videoList.isEmpty()) {
|
||||
contentPageVO.setContentId(videoList.get(0).getId());
|
||||
}
|
||||
List<MemberVideoEntity> memberVideoEntityList = videoMapper.userFaceTemplateVideo(worker.getUserId(), faceId, contentPageVO.getTemplateId());
|
||||
if (!memberVideoEntityList.isEmpty()) {
|
||||
contentPageVO.setIsBuy(memberVideoEntityList.get(0).getIsBuy());
|
||||
contentPageVO.setContentId(memberVideoEntityList.get(0).getId());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -180,17 +176,12 @@ public class AppScenicServiceImpl implements AppScenicService {
|
||||
if (StringUtils.isBlank(faceRespVO.getMatchSampleIds())) {
|
||||
return ApiResponse.success(new ArrayList<>());
|
||||
}
|
||||
List<ContentPageVO> contentList = templateMapper.listFor(faceRespVO.getScenicId(), faceId);
|
||||
List<ContentPageVO> contentList = templateMapper.listFor(faceRespVO.getScenicId());
|
||||
contentList.forEach(contentPageVO -> {
|
||||
if (contentPageVO.getContentType() == 1) {
|
||||
VideoReqQuery videoReqQuery = new VideoReqQuery();
|
||||
videoReqQuery.setScenicId(contentPageVO.getScenicId());
|
||||
videoReqQuery.setTemplateId(contentPageVO.getTemplateId());
|
||||
videoReqQuery.setMemberId(userId);
|
||||
List<VideoRespVO> videoList = videoMapper.list(videoReqQuery);
|
||||
if (!videoList.isEmpty()) {
|
||||
contentPageVO.setContentId(videoList.get(0).getId());
|
||||
}
|
||||
List<MemberVideoEntity> memberVideoEntityList = videoMapper.userFaceTemplateVideo(userId, faceId, contentPageVO.getTemplateId());
|
||||
if (!memberVideoEntityList.isEmpty()) {
|
||||
contentPageVO.setIsBuy(memberVideoEntityList.get(0).getIsBuy());
|
||||
contentPageVO.setContentId(memberVideoEntityList.get(0).getId());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -79,12 +79,12 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
GoodsPageVO goodsPageVO = new GoodsPageVO();
|
||||
if (type == 1) {
|
||||
goodsPageVO.setGoodsName("原片集");
|
||||
goodsPageVO.setGoodsType(2);
|
||||
} else {
|
||||
goodsPageVO.setGoodsName("照片集");
|
||||
goodsPageVO.setGoodsType(3);
|
||||
}
|
||||
goodsPageVO.setScenicId(query.getScenicId());
|
||||
goodsPageVO.setGoodsType(2);
|
||||
goodsPageVO.setSourceType(type);
|
||||
goodsList.add(goodsPageVO);
|
||||
});
|
||||
|
||||
@@ -99,6 +99,7 @@ public class GoodsServiceImpl implements GoodsService {
|
||||
sourceReqQuery.setIsBuy(query.getIsBuy());
|
||||
sourceReqQuery.setMemberId(query.getMemberId());
|
||||
sourceReqQuery.setType(sourceType);
|
||||
sourceReqQuery.setFaceId(query.getFaceId());
|
||||
List<SourceRespVO> list = sourceMapper.listUser(sourceReqQuery);
|
||||
List<GoodsDetailVO> goodsDetailVOList = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user