| | |
| | | import com.java110.core.context.SecureInvocation; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.basePrivilege.BasePrivilegeDto; |
| | | import com.java110.dto.store.StoreDto; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.intf.user.IUserInnerServiceSMO; |
| | |
| | | JSONObject paramIn = JSONObject.parseObject(pd.getReqData()); |
| | | |
| | | String communityId = ""; |
| | | if (paramIn.containsKey("communityId") && !StringUtil.isEmpty(paramIn.getString("communityId"))) { |
| | | if (paramIn.containsKey("communityId") |
| | | && !StringUtil.isEmpty(paramIn.getString("communityId")) |
| | | && !"-1".equals(paramIn.getString("communityId")) |
| | | && !StoreDto.STORE_TYPE_ADMIN.equals(storeTypeCd) |
| | | && !StoreDto.STORE_TYPE_DEV.equals(storeTypeCd) |
| | | ) { |
| | | communityId = paramIn.getString("communityId"); |
| | | checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | } |
| | |
| | | |
| | | ResponseEntity<String> responseEntity = callCenterService(restTemplate, pd, JSONObject.toJSONString(param), url, HttpMethod.POST); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | throw new SMOException("调用" + serviceCode + "失败," + responseEntity.getBody()); |
| | | } |
| | | |
| | | JSONObject resultVo = JSONObject.parseObject(responseEntity.getBody()); |
| | | |
| | | if (ResultVo.CODE_MACHINE_OK != resultVo.getInteger("code")) { |
| | | throw new SMOException(resultVo.getString("msg")); |
| | | } |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | throw new SMOException(resultVo.getString("msg")); |
| | | } |
| | | |
| | | Object bObj = resultVo.get("data"); |
| | | JSONArray datas = null; |
| | | if (bObj instanceof JSONObject) { |