前段 代码生成器开发测试完成 小区管理通过 代码生成器生成测试完成
| | |
| | | communityMemberDtoList = communityInnerServiceSMOImpl.getCommunityMembers(communityMemberDto); |
| | | |
| | | if (communityMemberDtoList == null || communityMemberDtoList.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和代理商存在关系存在异常,请检查"); |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和开发者存在关系存在异常,请检查"); |
| | | } |
| | | |
| | | |
| | |
| | | communityMemberDtoList = communityInnerServiceSMOImpl.getCommunityMembers(communityMemberDto); |
| | | |
| | | if (communityMemberDtoList == null || communityMemberDtoList.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和代理商存在关系存在异常,请检查"); |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和运维团队存在关系存在异常,请检查"); |
| | | } |
| | | |
| | | |
| | |
| | | <td><div class="btn-group"> |
| | | <button class="btn-white btn btn-xs" v-on:click="_openEditCommunityModel(community)">修改</button> |
| | | </div> |
| | | <div class="btn-group"> |
| | | <!-- <div class="btn-group"> |
| | | <button class="btn-white btn btn-xs" v-on:click="_openDeleteCommunityModel(community)">删除</button> |
| | | </div></td> |
| | | </div></td>--> |
| | | |
| | | </tr> |
| | | </tbody> |
| | |
| | | */ |
| | | public static final String SERVICE_CODE_UPDATE_COMMUNITY = "community.updateCommunity"; |
| | | /** |
| | | * 删除小区 |
| | | * 删除小区community.deleteCommunity |
| | | */ |
| | | public static final String SERVICE_CODE_DELETE_COMMUNITY = "community.deleteCommunity"; |
| | | |
| | |
| | | header.add(CommonConstant.HTTP_REQ_TIME.toLowerCase(), pd.getRequestTime()); |
| | | header.add(CommonConstant.HTTP_SIGN.toLowerCase(), ""); |
| | | HttpEntity<String> httpEntity = new HttpEntity<String>(param, header); |
| | | logger.debug("请求中心服务信息,{}", httpEntity); |
| | | //logger.debug("请求中心服务信息,{}", httpEntity); |
| | | try { |
| | | responseEntity = restTemplate.exchange(url, httpMethod, httpEntity, String.class); |
| | | } catch (HttpStatusCodeException e) { //这里spring 框架 在4XX 或 5XX 时抛出 HttpServerErrorException 异常,需要重新封装一下 |
| | |
| | | } catch (Exception e) { |
| | | responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); |
| | | } finally { |
| | | logger.debug("中心服务返回信息,{}", responseEntity); |
| | | logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity); |
| | | return responseEntity; |
| | | } |
| | | |