Commit a04e4931 by danmo

1、修复新客拉群欢迎语bug

2、修复回调生成客户轨迹bug
1 parent 0585bcfd
...@@ -27,7 +27,6 @@ import lombok.Data; ...@@ -27,7 +27,6 @@ import lombok.Data;
*/ */
@ApiModel @ApiModel
@Data @Data
@Builder
@SuppressWarnings("serial") @SuppressWarnings("serial")
@TableName("we_qr_attachments") @TableName("we_qr_attachments")
public class WeQrAttachments extends BaseEntity implements Serializable { public class WeQrAttachments extends BaseEntity implements Serializable {
......
...@@ -595,7 +595,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto ...@@ -595,7 +595,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
//生成轨迹 //生成轨迹
iWeCustomerTrajectoryService.createTrajectory(ListUtil.toList( iWeCustomerTrajectoryService.createTrajectory(ListUtil.toList(
WeCustomerTrajectory.TrajectRel.builder() WeCustomerTrajectory.TrajectRel.builder()
.userId(externalUserid) .userId(userId)
.customerId(externalUserid) .customerId(externalUserid)
.build() .build()
),TrajectoryType.TRAJECTORY_TYPE_XXDT.getType(),TrajectorySceneType.TRAJECTORY_TITLE_TJYG.getType(), ),TrajectoryType.TRAJECTORY_TYPE_XXDT.getType(),TrajectorySceneType.TRAJECTORY_TITLE_TJYG.getType(),
......
...@@ -76,11 +76,13 @@ public class WelcomeService implements ApplicationListener<WeCustomerWelcomeQuer ...@@ -76,11 +76,13 @@ public class WelcomeService implements ApplicationListener<WeCustomerWelcomeQuer
}else if(query.getState().startsWith(WeConstans.WE_QR_XKLQ_PREFIX)){ }else if(query.getState().startsWith(WeConstans.WE_QR_XKLQ_PREFIX)){
WeCommunityWeComeMsgVo welcomeMsgByState = weCommunityNewGroupService.getWelcomeMsgByState(query.getState()); WeCommunityWeComeMsgVo welcomeMsgByState = weCommunityNewGroupService.getWelcomeMsgByState(query.getState());
if(welcomeMsgByState != null){ if(welcomeMsgByState != null){
WeQrAttachments textAtt = WeQrAttachments.builder().msgType(MessageType.TEXT.getMessageType()) WeQrAttachments textAtt = new WeQrAttachments();
.content(welcomeMsgByState.getWelcomeMsg()).build(); textAtt.setMsgType(MessageType.TEXT.getMessageType());
WeQrAttachments imageAtt = WeQrAttachments.builder().msgType(MessageType.IMAGE.getMessageType()) textAtt.setContent(welcomeMsgByState.getWelcomeMsg());
.mediaId(welcomeMsgByState.getCodeUrl()).build();
qrAttachments.add(textAtt); qrAttachments.add(textAtt);
WeQrAttachments imageAtt = new WeQrAttachments();
imageAtt.setMsgType(MessageType.IMAGE.getMessageType());
imageAtt.setMediaId(welcomeMsgByState.getCodeUrl());
qrAttachments.add(imageAtt); qrAttachments.add(imageAtt);
makeCustomerTag(query.getExternalUserId(), query.getUserId(), welcomeMsgByState.getTagList()); makeCustomerTag(query.getExternalUserId(), query.getUserId(), welcomeMsgByState.getTagList());
} }
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<resultMap type="WeCommunityWeComeMsgVo" id="WelcomeMsgResult"> <resultMap type="WeCommunityWeComeMsgVo" id="WelcomeMsgResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="welcomeMsg" column="qr_code"/> <result property="codeUrl" column="code_url"/>
<result property="welcomeMsg" column="welcome_msg"/> <result property="welcomeMsg" column="welcome_msg"/>
<collection property="tagList" ofType="com.linkwechat.wecom.domain.vo.tag.WeTagVo"> <collection property="tagList" ofType="com.linkwechat.wecom.domain.vo.tag.WeTagVo">
<result property="tagId" column="tag_id"/> <result property="tagId" column="tag_id"/>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!