| | |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | paramIn.put("memberTypeCd", MappingCache.getValue(MappingConstant.DOMAIN_STORE_TYPE_2_COMMUNITY_MEMBER_TYPE, storeTypeCd)); |
| | | paramIn.putAll(_paramObj); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/communitys/queryStoreCommunitys" + mapToUrlParam(paramIn), |
| | | "/communitys/queryStoreCommunitys" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | |
| | | //修改用户信息 |
| | | if (StringUtil.isEmpty(communityName)) { |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/query.noEnterCommunity.byMember?" |
| | | "query.noEnterCommunity.byMember?" |
| | | + "memberTypeCd=" + MappingCache.getValue(MappingConstant.DOMAIN_STORE_TYPE_2_COMMUNITY_MEMBER_TYPE, storeTypeCd), |
| | | HttpMethod.GET); |
| | | } else { |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/query.noEnterCommunity.byMemberAndName?" |
| | | "query.noEnterCommunity.byMemberAndName?" |
| | | + "memberTypeCd=" + MappingCache.getValue(MappingConstant.DOMAIN_STORE_TYPE_2_COMMUNITY_MEMBER_TYPE, storeTypeCd) |
| | | + "&name=" + communityName, |
| | | HttpMethod.GET); |
| | |
| | | _paramObj.put("memberTypeCd", MappingCache.getValue(MappingConstant.DOMAIN_STORE_TYPE_2_COMMUNITY_MEMBER_TYPE, storeTypeCd)); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, _paramObj.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/member.join.community", |
| | | "member.join.community", |
| | | HttpMethod.POST); |
| | | |
| | | return responseEntity; |
| | |
| | | paramInObj.put("memberTypeCd", MappingCache.getValue(MappingConstant.DOMAIN_STORE_TYPE_2_COMMUNITY_MEMBER_TYPE, storeTypeCd)); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramInObj.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/member.quit.community", |
| | | "member.quit.community", |
| | | HttpMethod.POST); |
| | | |
| | | return responseEntity; |