Commit 252adb44 by qwmqiuwenmin

fix

parent 5280410b
......@@ -31,4 +31,6 @@ public interface WxEnterpriseMapper {
List<TabHaobanWxEnterprise> listAll();
List<TabHaobanWxEnterprise> listByIds(@Param("enterpriseIds")Set<String> enterpriseIds);
List<TabHaobanWxEnterprise> getEnterpriseBycorpIdNoStatus(@Param("corpId")String corpId);
}
\ No newline at end of file
......@@ -26,4 +26,6 @@ public interface WxEnterpriseService {
void update(WxEnterpriseDTO enterpriseDTO);
int delete(String wxEnterpriseId);
TabHaobanWxEnterprise getEnterpriseBycorpIdNoStatus(String corpid);
}
......@@ -69,4 +69,13 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
return this.mapper.updateByPrimaryKeySelective(enterprise);
}
@Override
public TabHaobanWxEnterprise getEnterpriseBycorpIdNoStatus(String corpId) {
List<TabHaobanWxEnterprise> list = this.mapper.getEnterpriseBycorpIdNoStatus(corpId);
if(CollectionUtils.isNotEmpty(list)){
return list.get(0);
}
return null;
}
}
......@@ -88,7 +88,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
dto.setWxEnterpriseId(wxEnterprise.getWxEnterpriseId());
dto.setUnionid(unionId);
this.getExternalUserUnionid(dto);
//this.getExternalUserUnionid(dto);
return memberUnionRelatedService.addMemberUnionidRelated(dto);
}
@Override
......
......@@ -56,7 +56,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
public void callbackReviceEnterprise(QywxCorpInfoSimpleDTO dto) {
log.info("企业微信授权信息:{}", JSON.toJSONString(dto));
WxEnterpriseDTO wxDTO = EntityUtil.changeEntityByJSON(WxEnterpriseDTO.class, dto);
TabHaobanWxEnterprise enterprise = this.wxEnterpriseService.getDelEnterpriseBycorpId(dto.getCorpid());
TabHaobanWxEnterprise enterprise = this.wxEnterpriseService.getEnterpriseBycorpIdNoStatus(dto.getCorpid());
String wxEnterpriseId = "";
if(enterprise != null){
wxEnterpriseId = enterprise.getWxEnterpriseId();
......
......@@ -408,4 +408,10 @@
</if>
</select>
<select id="getEnterpriseBycorpIdNoStatus" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise
where corpid= #{corpId}
</select>
</mapper>
\ No newline at end of file
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