吴学文
2019-07-05 f62851a52a44958bea193171f6037edae1449ec9
前段 代码生成器开发测试完成 小区管理通过 代码生成器生成测试完成
4个文件已修改
14 ■■■■ 已修改文件
Api/src/main/java/com/java110/api/listener/community/DeleteCommunityListener.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/resources/components/community-manage/communityManage.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-common/src/main/java/com/java110/common/constant/ServiceCodeConstant.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-core/src/main/java/com/java110/core/base/smo/BaseServiceSMO.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Api/src/main/java/com/java110/api/listener/community/DeleteCommunityListener.java
@@ -104,7 +104,7 @@
         communityMemberDtoList = communityInnerServiceSMOImpl.getCommunityMembers(communityMemberDto);
        if (communityMemberDtoList == null || communityMemberDtoList.size() != 1) {
            throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和代理商存在关系存在异常,请检查");
            throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和开发者存在关系存在异常,请检查");
        }
@@ -125,7 +125,7 @@
         communityMemberDtoList = communityInnerServiceSMOImpl.getCommunityMembers(communityMemberDto);
        if (communityMemberDtoList == null || communityMemberDtoList.size() != 1) {
            throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和代理商存在关系存在异常,请检查");
            throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "小区和运维团队存在关系存在异常,请检查");
        }
WebService/src/main/resources/components/community-manage/communityManage.html
@@ -40,9 +40,9 @@
                            <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>
java110-common/src/main/java/com/java110/common/constant/ServiceCodeConstant.java
@@ -497,7 +497,7 @@
     */
    public static final String SERVICE_CODE_UPDATE_COMMUNITY = "community.updateCommunity";
/**
     * 删除小区
     * 删除小区community.deleteCommunity
     */
    public static final String SERVICE_CODE_DELETE_COMMUNITY = "community.deleteCommunity";
java110-core/src/main/java/com/java110/core/base/smo/BaseServiceSMO.java
@@ -72,7 +72,7 @@
        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 异常,需要重新封装一下
@@ -80,7 +80,7 @@
        } catch (Exception e) {
            responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
        } finally {
            logger.debug("中心服务返回信息,{}", responseEntity);
            logger.debug("请求地址为,{} 请求中心服务信息,{},中心服务返回信息,{}", url, httpEntity, responseEntity);
            return responseEntity;
        }