Commit a04e4931 by danmo

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

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