From ce64e667815b39efdc2f8bd52be0d43d49db8d84 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 17 七月 2022 00:06:29 +0800
Subject: [PATCH] 优化小区位置

---
 /dev/null |   48 ------------------------------------------------
 1 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/service-api/src/main/java/com/java110/api/listener/communityLocation/DeleteCommunityLocationAttrListener.java b/service-api/src/main/java/com/java110/api/listener/communityLocation/DeleteCommunityLocationAttrListener.java
deleted file mode 100755
index 0863fed..0000000
--- a/service-api/src/main/java/com/java110/api/listener/communityLocation/DeleteCommunityLocationAttrListener.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package com.java110.api.listener.communityLocation;
-
-import com.alibaba.fastjson.JSONObject;
-import com.java110.api.bmo.communityLocationAttr.ICommunityLocationAttrBMO;
-import com.java110.api.listener.AbstractServiceApiPlusListener;
-import com.java110.core.annotation.Java110Listener;
-import com.java110.core.context.DataFlowContext;
-import com.java110.core.event.service.api.ServiceDataFlowEvent;
-import com.java110.utils.constant.ServiceCodeCommunityLocationAttrConstant;
-import com.java110.utils.util.Assert;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpMethod;
-
-
-/**
- * 淇濆瓨灏忓尯渚﹀惉
- * add by wuxw 2019-06-30
- */
-@Java110Listener("deleteCommunityLocationAttrListener")
-public class DeleteCommunityLocationAttrListener extends AbstractServiceApiPlusListener {
-
-    @Autowired
-    private ICommunityLocationAttrBMO communityLocationAttrBMOImpl;
-
-    @Override
-    protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
-        //Assert.hasKeyAndValue(reqJson, "xxx", "xxx");
-
-        Assert.hasKeyAndValue(reqJson, "attrId", "attrId涓嶈兘涓虹┖");
-
-    }
-
-    @Override
-    protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
-
-        communityLocationAttrBMOImpl.deleteCommunityLocationAttr(reqJson, context);
-    }
-
-    @Override
-    public String getServiceCode() {
-        return ServiceCodeCommunityLocationAttrConstant.DELETE_COMMUNITYLOCATIONATTR;
-    }
-
-    @Override
-    public HttpMethod getHttpMethod() {
-        return HttpMethod.POST;
-    }
-
-}
diff --git a/service-api/src/main/java/com/java110/api/listener/communityLocation/ListCommunityLocationAttrsListener.java b/service-api/src/main/java/com/java110/api/listener/communityLocation/ListCommunityLocationAttrsListener.java
deleted file mode 100755
index 4937cdf..0000000
--- a/service-api/src/main/java/com/java110/api/listener/communityLocation/ListCommunityLocationAttrsListener.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.java110.api.listener.communityLocation;
-
-import com.alibaba.fastjson.JSONObject;
-import com.java110.api.listener.AbstractServiceApiListener;
-import com.java110.core.annotation.Java110Listener;
-import com.java110.core.context.DataFlowContext;
-import com.java110.core.event.service.api.ServiceDataFlowEvent;
-import com.java110.dto.communityLocationAttr.CommunityLocationAttrDto;
-import com.java110.intf.community.ICommunityLocationAttrInnerServiceSMO;
-import com.java110.utils.constant.ServiceCodeCommunityLocationAttrConstant;
-import com.java110.utils.util.BeanConvertUtil;
-import com.java110.vo.ResultVo;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * 鏌ヨ灏忓尯渚﹀惉绫�
- */
-@Java110Listener("listCommunityLocationAttrsListener")
-public class ListCommunityLocationAttrsListener extends AbstractServiceApiListener {
-
-    @Autowired
-    private ICommunityLocationAttrInnerServiceSMO communityLocationAttrInnerServiceSMOImpl;
-
-    @Override
-    public String getServiceCode() {
-        return ServiceCodeCommunityLocationAttrConstant.LIST_COMMUNITYLOCATIONATTRS;
-    }
-
-    @Override
-    public HttpMethod getHttpMethod() {
-        return HttpMethod.GET;
-    }
-
-
-    @Override
-    public int getOrder() {
-        return DEFAULT_ORDER;
-    }
-
-
-    public ICommunityLocationAttrInnerServiceSMO getCommunityLocationAttrInnerServiceSMOImpl() {
-        return communityLocationAttrInnerServiceSMOImpl;
-    }
-
-    public void setCommunityLocationAttrInnerServiceSMOImpl(ICommunityLocationAttrInnerServiceSMO communityLocationAttrInnerServiceSMOImpl) {
-        this.communityLocationAttrInnerServiceSMOImpl = communityLocationAttrInnerServiceSMOImpl;
-    }
-
-    @Override
-    protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
-        super.validatePageInfo(reqJson);
-    }
-
-    @Override
-    protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
-
-        CommunityLocationAttrDto communityLocationAttrDto = BeanConvertUtil.covertBean(reqJson, CommunityLocationAttrDto.class);
-
-        int count = communityLocationAttrInnerServiceSMOImpl.queryCommunityLocationAttrsCount(communityLocationAttrDto);
-
-        List<CommunityLocationAttrDto> communityLocationAttrDtos = null;
-
-        if (count > 0) {
-            communityLocationAttrDtos = communityLocationAttrInnerServiceSMOImpl.queryCommunityLocationAttrs(communityLocationAttrDto);
-        } else {
-            communityLocationAttrDtos = new ArrayList<>();
-        }
-
-        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, communityLocationAttrDtos);
-
-        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
-
-        context.setResponseEntity(responseEntity);
-
-    }
-}
diff --git a/service-api/src/main/java/com/java110/api/listener/communityLocation/SaveCommunityLocationAttrListener.java b/service-api/src/main/java/com/java110/api/listener/communityLocation/SaveCommunityLocationAttrListener.java
deleted file mode 100755
index 8b2ecc6..0000000
--- a/service-api/src/main/java/com/java110/api/listener/communityLocation/SaveCommunityLocationAttrListener.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.java110.api.listener.communityLocation;
-
-import com.alibaba.fastjson.JSONObject;
-import com.java110.api.bmo.communityLocationAttr.ICommunityLocationAttrBMO;
-import com.java110.api.listener.AbstractServiceApiPlusListener;
-import com.java110.core.annotation.Java110Listener;
-import com.java110.core.context.DataFlowContext;
-import com.java110.core.event.service.api.ServiceDataFlowEvent;
-import com.java110.utils.constant.ServiceCodeCommunityLocationAttrConstant;
-import com.java110.utils.util.Assert;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpMethod;
-
-/**
- * 淇濆瓨鍟嗘埛渚﹀惉
- * add by wuxw 2019-06-30
- */
-@Java110Listener("saveCommunityLocationAttrListener")
-public class SaveCommunityLocationAttrListener extends AbstractServiceApiPlusListener {
-
-    @Autowired
-    private ICommunityLocationAttrBMO communityLocationAttrBMOImpl;
-
-    @Override
-    protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
-        //Assert.hasKeyAndValue(reqJson, "xxx", "xxx");
-
-        Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
-
-    }
-
-    @Override
-    protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
-        communityLocationAttrBMOImpl.addCommunityLocationAttr(reqJson, context);
-    }
-
-    @Override
-    public String getServiceCode() {
-        return ServiceCodeCommunityLocationAttrConstant.ADD_COMMUNITYLOCATIONATTR;
-    }
-
-    @Override
-    public HttpMethod getHttpMethod() {
-        return HttpMethod.POST;
-    }
-
-}
diff --git a/service-api/src/main/java/com/java110/api/listener/communityLocation/UpdateCommunityLocationAttrListener.java b/service-api/src/main/java/com/java110/api/listener/communityLocation/UpdateCommunityLocationAttrListener.java
deleted file mode 100755
index f7c059b..0000000
--- a/service-api/src/main/java/com/java110/api/listener/communityLocation/UpdateCommunityLocationAttrListener.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.java110.api.listener.communityLocation;
-
-
-import com.alibaba.fastjson.JSONObject;
-import com.java110.api.bmo.communityLocationAttr.ICommunityLocationAttrBMO;
-import com.java110.api.listener.AbstractServiceApiPlusListener;
-import com.java110.core.annotation.Java110Listener;
-import com.java110.core.context.DataFlowContext;
-import com.java110.core.event.service.api.ServiceDataFlowEvent;
-import com.java110.utils.constant.ServiceCodeCommunityLocationAttrConstant;
-import com.java110.utils.util.Assert;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpMethod;
-
-/**
- * 淇濆瓨浣嶇疆灞炴�т睛鍚�
- * add by wuxw 2019-06-30
- */
-@Java110Listener("updateCommunityLocationAttrListener")
-public class UpdateCommunityLocationAttrListener extends AbstractServiceApiPlusListener {
-
-    @Autowired
-    private ICommunityLocationAttrBMO communityLocationAttrBMOImpl;
-
-    @Override
-    protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
-
-        Assert.hasKeyAndValue(reqJson, "attrId", "attrId涓嶈兘涓虹┖");
-        Assert.hasKeyAndValue(reqJson, "specCd", "璇锋眰鎶ユ枃涓湭鍖呭惈specCd");
-
-    }
-
-    @Override
-    protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
-
-        communityLocationAttrBMOImpl.updateCommunityLocationAttr(reqJson, context);
-    }
-
-    @Override
-    public String getServiceCode() {
-        return ServiceCodeCommunityLocationAttrConstant.UPDATE_COMMUNITYLOCATIONATTR;
-    }
-
-    @Override
-    public HttpMethod getHttpMethod() {
-        return HttpMethod.POST;
-    }
-}

--
Gitblit v1.8.0