Commit 19513d9f by qwmqiuwenmin

fix

parent 9697c052
......@@ -22,7 +22,7 @@ public interface MemberUnionidRelatedMapper {
MemberUnionidRelated getByUnionId(@Param("wxUserId")String wxUserId, @Param("unionid")String unionid);
void deleteByUnionidAndUserId(@Param("unionid")String unionid,@Param("wxUserId") String wxUserId);
void deleteByUnionidAndUserId(@Param("externalUserid")String externalUserid,@Param("wxUserId") String wxUserId);
List<MemberUnionidRelated> getByWxUserIdAndWxEnterpriseId(@Param("wxUserId")String wxUserId, @Param("wxEnterpriseId")String wxEnterpriseId);
......
......@@ -37,7 +37,7 @@ public class MemberUnionRelatedServiceImpl implements MemberUnionRelatedService
@Override
public void delMemberUnionidRelated(MemberUnionidRelatedDTO dto) {
mapper.deleteByUnionidAndUserId(dto.getUnionid(),dto.getWxUserId());
mapper.deleteByUnionidAndUserId(dto.getExternalUserid(),dto.getWxUserId());
}
@Override
......
......@@ -68,13 +68,16 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return "";
}
List<TabHaobanWxEnterpriseRelated> list = wxEnterpriseRelatedService.getByWxEnterpriseId(wxEnterprise.getWxEnterpriseId());
String unionIdJson = qywxUserApiService.getCorpSelfExternalUseridInfo(dto.getCorpid(), wxEnterprise.getWxSecretKey(), dto.getExternalUserid());
String suiteid = dto.getSuiteid();
String unionIdJson = "";
if("SELF_APP".equals(suiteid)){
unionIdJson = qywxUserApiService.getCorpSelfExternalUseridInfo(dto.getCorpid(), wxEnterprise.getWxSecretKey(), dto.getExternalUserid());
}else{
unionIdJson = qywxUserApiService.getExternalUseridInfo(dto.getCorpid(), dto.getSuiteid(), dto.getExternalUserid());
}
log.info("【新增外部联系人回调】unionIdJson={}",JSON.toJSONString(unionIdJson));
String unionId = "";
String suiteid = "";
String name = "";
String follow_user = "";
String createTime = "";
......@@ -139,7 +142,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
@Override
public void delMemberUnionidRelated(MemberUnionidRelatedDTO dto) {
this.getExternalUserUnionid(dto);
memberUnionRelatedService.delMemberUnionidRelated(dto);
}
......
......@@ -185,7 +185,7 @@
<update id="deleteByUnionidAndUserId" parameterType="com.gic.haoban.manage.service.entity.MemberUnionidRelated" >
update tab_haoban_member_unionid_related
set status_flag = 0
where unionid = #{unionid,jdbcType=VARCHAR}
where external_userid = #{externalUserid,jdbcType=VARCHAR}
and wx_user_id = #{wxUserId}
</update>
......
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