Commit 506ece91 by 墨竹

fix:插入staffid

parent 50174698
......@@ -126,6 +126,7 @@ public class AddMemberUnionRelateConsumerProcessor extends AbstractConsumerProce
dto.setMemberId(memberId);
dto.setEnterpriseId(enterpriseId);
dto.setExternalUserid(externalUserid);
dto.setStaffId(staffId);
// 创建memberUnion 临时表关联
memberUnionIdRelatedId = memberUnionRelatedService.addMemberUnionidRelated(dto);
} else {
......@@ -136,6 +137,7 @@ public class AddMemberUnionRelateConsumerProcessor extends AbstractConsumerProce
exsitDTO.setEnterpriseId(enterpriseId);
exsitDTO.setExternalUserid(externalUserid);
exsitDTO.setSelfExternalUserid(selfExternalUserid);
exsitDTO.setStaffId(staffId);
memberUnionRelatedService.update(exsitDTO);
memberUnionIdRelatedId = exsitDTO.getMemberUnionidRelatedId();
}
......
......@@ -7,7 +7,6 @@ import com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO;
import com.gic.haoban.manage.service.dao.mapper.MemberUnionidRelatedMapper;
import com.gic.haoban.manage.service.entity.MemberUnionidRelated;
import com.gic.haoban.manage.service.service.MemberUnionRelatedService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -7,7 +7,6 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.JSONResponse;
import com.gic.api.base.commons.Page;
import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService;
import com.gic.clerk.api.service.PowerService;
......@@ -26,10 +25,8 @@ import com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO;
import com.gic.haoban.app.customer.enums.GicQywxSyncTypeEnum;
import com.gic.haoban.app.customer.enums.QywxSyncTaskTypeEnum;
import com.gic.haoban.app.customer.service.api.service.CustomerApiService;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.base.api.common.errCode.HaoBanErrCodeCommon;
import com.gic.haoban.common.utils.PageUtil;
import com.gic.haoban.manage.api.constants.Manage3Constants;
import com.gic.haoban.manage.api.dto.*;
import com.gic.haoban.manage.api.dto.hm.HmClerkRelationDTO;
......@@ -77,7 +74,6 @@ import com.gic.wechat.api.dto.qywx.welcome.*;
import com.gic.wechat.api.enums.QywxMediaTypeEnum;
import com.gic.wechat.api.service.qywx.QywxSuiteApiService;
import com.gic.wechat.api.service.qywx.QywxUserApiService;
import com.github.pagehelper.PageHelper;
import com.google.common.collect.Sets;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
......@@ -1467,6 +1463,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
exsitDTO.setSelfExternalUserid(dto.getSelfExternalUserId());
exsitDTO.setMemberId(memberId);
exsitDTO.setEnterpriseId(enterpriseId);
exsitDTO.setStaffId(staffId);
memberUnionRelatedService.update(exsitDTO);
}
String relationKey = SecureUtil.md5(staffId + externalUserId);
......@@ -1500,7 +1497,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
external.setEnterpriseId(enterpriseId);
external.setClerkId(clerkId);
external.setStaffId(staffId);
external.setMemberId(memberId);
external.setHeadUrl(dto.getAvatar());
external.setStatusFlag(1);
externalClerkRelatedService.update(external);
......@@ -1586,6 +1582,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
exsitDTO.setAddCreateTime(createTime);
exsitDTO.setSelfExternalUserid(dto.getSelfExternalUserId());
exsitDTO.setExternalName(name);
exsitDTO.setEnterpriseId(enterpriseId);
exsitDTO.setStaffId(staffId);
memberUnionRelatedService.update(exsitDTO);
}
......
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