Commit 83aa1397 by 田超

Merge branch 'feature/1004900' into 'master'

feat: [1004900] H5配置企业微信

See merge request rays/pcloud-book!1342
parents 3d2054a3 0644fbda
...@@ -87,4 +87,7 @@ public class GroupActivity4AppletDTO implements Serializable { ...@@ -87,4 +87,7 @@ public class GroupActivity4AppletDTO implements Serializable {
@ApiModelProperty("serveId") @ApiModelProperty("serveId")
private String serveId; private String serveId;
@ApiModelProperty("描述")
private String groupDesc;
} }
...@@ -5,6 +5,7 @@ import com.pcloud.common.dto.BaseDto; ...@@ -5,6 +5,7 @@ import com.pcloud.common.dto.BaseDto;
import java.util.List; import java.util.List;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
/** /**
...@@ -58,4 +59,15 @@ public class BookQrcodeWxworkResponseVO extends BaseDto { ...@@ -58,4 +59,15 @@ public class BookQrcodeWxworkResponseVO extends BaseDto {
* 群对话 * 群对话
*/ */
private List<AppletGroupStatementDTO> statementDTOList; private List<AppletGroupStatementDTO> statementDTOList;
@ApiModelProperty("群名称")
private String groupName;
@ApiModelProperty("群描述")
private String groupDesc;
/**
* 二维码原始链接
*/
private String url;
} }
...@@ -864,10 +864,13 @@ public class WechatGroupConsr { ...@@ -864,10 +864,13 @@ public class WechatGroupConsr {
@ParamLog("批量查企业微信群活码") @ParamLog("批量查企业微信群活码")
public Map<Long, WxworkGroupQrcodeBaseDTO> mapWxworkGroupQrcodeBase(List<Long> groupQrcodeIds){ public Map<Long, WxworkGroupQrcodeBaseDTO> mapWxworkGroupQrcodeBase(List<Long> groupQrcodeIds){
Map<Long, WxworkGroupQrcodeBaseDTO> map = new HashMap<>(); Map<Long, WxworkGroupQrcodeBaseDTO> map = new HashMap<>();
if (ListUtils.isEmpty(groupQrcodeIds)) {
return map;
}
try { try {
map = ResponseHandleUtil.parseMapResponse(wxWorkService.mapWxworkGroupQrcodeBase(groupQrcodeIds), Long.class, WxworkGroupQrcodeBaseDTO.class); map = ResponseHandleUtil.parseMapResponse(wxWorkService.mapWxworkGroupQrcodeBase(groupQrcodeIds), Long.class, WxworkGroupQrcodeBaseDTO.class);
} catch (Exception e) { } catch (Exception e) {
log.error("根据wxWorkService.mapWxworkQrcodeBase查企业微信群活码基本信息" + e.getMessage(), e); log.error("根据wxWorkService.mapWxworkGroupQrcodeBase查企业微信群活码基本信息" + e.getMessage(), e);
} }
return map; return map;
} }
...@@ -902,4 +905,18 @@ public class WechatGroupConsr { ...@@ -902,4 +905,18 @@ public class WechatGroupConsr {
} }
return null; return null;
} }
@ParamLog("批量查企业微信群活码-包含群二维码")
public Map<Long, WxworkGroupQrcodeBaseDTO> mapWxworkGroupQrcode(List<Long> groupQrcodeIds) {
Map<Long, WxworkGroupQrcodeBaseDTO> map = new HashMap<>();
if (ListUtils.isEmpty(groupQrcodeIds)) {
return map;
}
try {
map = ResponseHandleUtil.parseMapResponse(wxWorkService.mapWxworkGroupQrcode(groupQrcodeIds), Long.class, WxworkGroupQrcodeBaseDTO.class);
} catch (Exception e) {
log.error("根据wxWorkService.mapWxworkGroupQrcode查企业微信群活码信息" + e.getMessage(), e);
}
return map;
}
} }
...@@ -23,7 +23,7 @@ public class ResourcePageConstants { ...@@ -23,7 +23,7 @@ public class ResourcePageConstants {
APP_PRODUCT(1, "应用作品", new String[]{ServeTypeEnum.APP.getValue(), ServeTypeEnum.PRODUCT.getValue()}), APP_PRODUCT(1, "应用作品", new String[]{ServeTypeEnum.APP.getValue(), ServeTypeEnum.PRODUCT.getValue()}),
OFFICIAL_ACCOUNT(2, "公众号", new String[]{ServeTypeEnum.OFFICIAL_ACCOUNT.getValue()}), OFFICIAL_ACCOUNT(2, "公众号", new String[]{ServeTypeEnum.OFFICIAL_ACCOUNT.getValue()}),
BOOKLIST(3, "书单", new String[]{ServeTypeEnum.BOOKLIST.getValue(),ServeTypeEnum.ADVISER_BOOK.getValue()}), BOOKLIST(3, "书单", new String[]{ServeTypeEnum.BOOKLIST.getValue(),ServeTypeEnum.ADVISER_BOOK.getValue()}),
GROUP(4, "社群", new String[]{ServeTypeEnum.GROUP_ACTIVITY.getValue()}), GROUP(4, "社群", new String[]{ServeTypeEnum.GROUP_ACTIVITY.getValue(), ServeTypeEnum.WXWORK_GROUP.getValue()}),
THIRD_RESOURCE(5, "第三方资源", new String[]{ServeTypeEnum.THIRD_RESOURCE.getValue()}), THIRD_RESOURCE(5, "第三方资源", new String[]{ServeTypeEnum.THIRD_RESOURCE.getValue()}),
PICTURE(6, "图片位", new String[]{ServeTypeEnum.APP.getValue(), ServeTypeEnum.PRODUCT.getValue(), PICTURE(6, "图片位", new String[]{ServeTypeEnum.APP.getValue(), ServeTypeEnum.PRODUCT.getValue(),
ServeTypeEnum.GROUP_ACTIVITY.getValue(), ServeTypeEnum.THIRD_RESOURCE.getValue()}); ServeTypeEnum.GROUP_ACTIVITY.getValue(), ServeTypeEnum.THIRD_RESOURCE.getValue()});
...@@ -77,7 +77,8 @@ public class ResourcePageConstants { ...@@ -77,7 +77,8 @@ public class ResourcePageConstants {
BOOKLIST("BOOKLIST", "平台书单"), BOOKLIST("BOOKLIST", "平台书单"),
ADVISER_BOOK("ADVISER_BOOK", "书刊"), ADVISER_BOOK("ADVISER_BOOK", "书刊"),
GROUP_ACTIVITY("GROUP_ACTIVITY", "模板群"), GROUP_ACTIVITY("GROUP_ACTIVITY", "模板群"),
THIRD_RESOURCE("THIRD_RESOURCE", "第三方资源"); THIRD_RESOURCE("THIRD_RESOURCE", "第三方资源"),
WXWORK_GROUP("WXWORK_GROUP","企业微信群");
private String value; private String value;
......
...@@ -5,7 +5,9 @@ import com.pcloud.book.applet.dto.AppletOuterBooklistDTO; ...@@ -5,7 +5,9 @@ import com.pcloud.book.applet.dto.AppletOuterBooklistDTO;
import com.pcloud.book.applet.dto.GroupActivity4AppletDTO; import com.pcloud.book.applet.dto.GroupActivity4AppletDTO;
import com.pcloud.book.applet.entity.AppletThirdResources; import com.pcloud.book.applet.entity.AppletThirdResources;
import com.pcloud.book.book.vo.BookLinkVO; import com.pcloud.book.book.vo.BookLinkVO;
import com.pcloud.book.book.vo.response.BookQrcodeWxworkResponseVO;
import com.pcloud.common.dto.BaseDto; import com.pcloud.common.dto.BaseDto;
import com.pcloud.wechatgroup.wxwork.dto.WxworkGroupQrcodeBaseDTO;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -91,7 +93,8 @@ public class ResourcePageItemVO extends BaseDto{ ...@@ -91,7 +93,8 @@ public class ResourcePageItemVO extends BaseDto{
private GroupActivity4AppletDTO activity4AppletDTO; private GroupActivity4AppletDTO activity4AppletDTO;
@ApiModelProperty("第三方资源") @ApiModelProperty("第三方资源")
private AppletThirdResources appletThirdResources; private AppletThirdResources appletThirdResources;
@ApiModelProperty("企业微信群")
private BookQrcodeWxworkResponseVO bookQrcodeWxworkResponseVO;
private Long sceneId; private Long sceneId;
......
...@@ -363,6 +363,8 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -363,6 +363,8 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
String filterStr = StringUtilParent.replaceHtml(vo.getDesc()); String filterStr = StringUtilParent.replaceHtml(vo.getDesc());
String subStr = filterStr.length() > 60 ? filterStr.substring(0, 60) + "..." : filterStr; String subStr = filterStr.length() > 60 ? filterStr.substring(0, 60) + "..." : filterStr;
vo.setCutDesc(subStr); vo.setCutDesc(subStr);
vo.setGroupDesc(subStr);
vo.setGroupName(vo.getName());
} }
//设置城市名称 //设置城市名称
setCityNames(queryGroupActivity.getRecordList()); setCityNames(queryGroupActivity.getRecordList());
...@@ -830,7 +832,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz { ...@@ -830,7 +832,7 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
public Map<Long, GroupActivity4AppletDTO> getGroupActivityMap(List<Long> activityGroupIds) { public Map<Long, GroupActivity4AppletDTO> getGroupActivityMap(List<Long> activityGroupIds) {
Map<Long, GroupActivity4AppletDTO> localMap = new HashMap<>(); Map<Long, GroupActivity4AppletDTO> localMap = new HashMap<>();
if (!ListUtils.isEmpty(activityGroupIds)) { if (!ListUtils.isEmpty(activityGroupIds)) {
localMap = pcloudGroupActivityDao.getByIds(activityGroupIds, null); localMap = pcloudGroupActivityDao.getByIds(activityGroupIds, 1);
} }
for(GroupActivity4AppletDTO groupActivity4AppletDTO: localMap.values()){ for(GroupActivity4AppletDTO groupActivity4AppletDTO: localMap.values()){
String filterStr = StringUtilParent.replaceHtml(groupActivity4AppletDTO.getDesc()); String filterStr = StringUtilParent.replaceHtml(groupActivity4AppletDTO.getDesc());
......
...@@ -7,6 +7,7 @@ import java.util.List; ...@@ -7,6 +7,7 @@ import java.util.List;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
@Data @Data
public class QueryGroupActivityResponseVO { public class QueryGroupActivityResponseVO {
...@@ -124,4 +125,10 @@ public class QueryGroupActivityResponseVO { ...@@ -124,4 +125,10 @@ public class QueryGroupActivityResponseVO {
@ApiModelProperty("群人数") @ApiModelProperty("群人数")
private Integer userNumber; private Integer userNumber;
@ApiModelProperty("群名称")
private String groupName;
@ApiModelProperty("群描述")
private String groupDesc;
} }
...@@ -68,6 +68,12 @@ ...@@ -68,6 +68,12 @@
<if test="bookGroupId != null"> <if test="bookGroupId != null">
book_group_id = #{bookGroupId}, book_group_id = #{bookGroupId},
</if> </if>
<if test="bookId != null">
book_id = #{bookId},
</if>
<if test="channelId != null">
channel_id = #{channelId},
</if>
book_cover = #{bookCover}, book_cover = #{bookCover},
update_time = NOW(), update_time = NOW(),
background_img = #{backgroundImg}, background_img = #{backgroundImg},
......
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