Commit 09adb3e6 by 郑江涛

feat:[1004152] 自有码进进h5引导关注公众号

parent 55d46ff5
......@@ -3059,7 +3059,8 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupServe.setServeName(productDto.getProductName());
bookGroupServe.setPicUrl(productDto.getCoverImg());
if (productDto.getProductTypeDto() != null) {
bookGroupServe.setFromType(productDto.getProductTypeDto().getTypeCode());
bookGroupServe.setTypeCode(productDto.getProductTypeDto().getTypeCode());
bookGroupServe.setFromType(productDto.getProductTypeDto().getTypeName());
}
bookGroupServe.setIsSuper(isSuperMap.get(bookGroupServe.getServeId()));
}
......@@ -3068,8 +3069,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
AppDto appDto = appDtoMap.get(bookGroupServe.getServeId());
if (appDto != null) {
bookGroupServe.setServeName(appDto.getTitle());
bookGroupServe.setFromType(appDto.getTypeCode());
bookGroupServe.setTypeCode(appDto.getTypeCode());
bookGroupServe.setPicUrl(appDto.getSquareImg());
bookGroupServe.setFromType(appDto.getTypeName());
}
}
}
......@@ -6185,6 +6187,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
bookGroupSceneDTO.setSceneId(bookGroupDTO.getSceneId());
QrcodeSceneDto qrcodeSceneDto = qrcodeSceneConsr.getById(bookGroupDTO.getSceneId());
bookGroupSceneDTO.setQrcodeUrl(null == qrcodeSceneDto?null:qrcodeSceneDto.getQrcodeUrl());
//原流程保留
List<BookServeDTO> bookServeDTOS = getBookAndBookGroupServeIds(bookGroupDTO.getCreateUser(), bookGroupDTO.getBookId(), bookGroupDTO.getChannelId());
if (CollUtil.isEmpty(bookServeDTOS)) {
return bookGroupSceneDTO;
......@@ -6209,6 +6212,16 @@ public class BookGroupBizImpl implements BookGroupBiz {
// 要求少于4个的时候要随机补成4个
fillMpServices(mpServices,0,6);
bookGroupSceneDTO.setMpServices(mpServices);
//新流程改编为返回书所配置的资源
List<BookGroupServe> serveList = bookGroupServeDao.getListByBookGroupId(bookGroupId);
if (ListUtils.isEmpty(serveList)) {
return bookGroupSceneDTO;
}
fillServeInfo(serveList);
for (BookGroupServe bookGroupServe : serveList) {
}
bookGroupSceneDTO.setBookServices(serveList);
return bookGroupSceneDTO;
}
......
package com.pcloud.book.group.dto;
import com.pcloud.book.group.entity.BookGroupServe;
import com.pcloud.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
......@@ -35,4 +36,6 @@ public class BookGroupSceneDTO extends BaseDto {
private String bookName;
@ApiModelProperty("公众号服务分类列表")
private List<Integer> mpServices;
@ApiModelProperty("公众号配置的资源")
private List<BookGroupServe> bookServices;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment