From e437035b3baba389b05deed5f10e41cacd7c37b6 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Wed, 29 Mar 2017 23:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90zheng-pay=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zheng-pay/pom.xml | 4 +- .../pom.xml | 21 +--- .../pay/common/constant/PayConstant.java | 11 ++ .../zheng/pay/common/constant/PayResult.java | 15 +++ .../common/constant/PayResultConstant.java | 37 ++++++ zheng-pay/zheng-pay-dao/pom.xml | 2 +- .../java/com/zheng/pay/dao/Generator.java | 8 +- .../src/main/resources/generator.properties | 4 + .../src/main/resources/jdbc.properties | 9 -- .../src/main/resources/redis.properties | 7 -- zheng-pay/zheng-pay-rpc-api/pom.xml | 45 +++++++ .../pay/rpc/api/PayInOrderDetailService.java | 13 ++ .../rpc/api/PayInOrderDetailServiceMock.java | 14 +++ .../zheng/pay/rpc/api/PayInOrderService.java | 13 ++ .../pay/rpc/api/PayInOrderServiceMock.java | 14 +++ .../com/zheng/pay/rpc/api/PayMchService.java | 13 ++ .../zheng/pay/rpc/api/PayMchServiceMock.java | 14 +++ .../pay/rpc/api/PayOutOrderDetailService.java | 13 ++ .../rpc/api/PayOutOrderDetailServiceMock.java | 14 +++ .../zheng/pay/rpc/api/PayOutOrderService.java | 13 ++ .../pay/rpc/api/PayOutOrderServiceMock.java | 14 +++ .../com/zheng/pay/rpc/api/PayPayService.java | 13 ++ .../zheng/pay/rpc/api/PayPayServiceMock.java | 14 +++ .../com/zheng/pay/rpc/api/PayTypeService.java | 13 ++ .../zheng/pay/rpc/api/PayTypeServiceMock.java | 14 +++ .../zheng/pay/rpc/api/PayVendorService.java | 13 ++ .../pay/rpc/api/PayVendorServiceMock.java | 14 +++ .../com/zheng/pay/rpc/api/PayVestService.java | 13 ++ .../zheng/pay/rpc/api/PayVestServiceMock.java | 14 +++ zheng-pay/zheng-pay-rpc-service/pom.xml | 116 ++++++++++++++++++ .../pay/dao/mapper/PayInOrderDetailMapper.xml | 0 .../zheng/pay/dao/mapper/PayInOrderMapper.xml | 0 .../com/zheng/pay/dao/mapper/PayMchMapper.xml | 0 .../dao/mapper/PayOutOrderDetailMapper.xml | 0 .../pay/dao/mapper/PayOutOrderMapper.xml | 0 .../com/zheng/pay/dao/mapper/PayPayMapper.xml | 0 .../zheng/pay/dao/mapper/PayTypeMapper.xml | 0 .../zheng/pay/dao/mapper/PayVendorMapper.xml | 0 .../zheng/pay/dao/mapper/PayVestMapper.xml | 0 .../rpc/ZhengPayRpcServiceApplication.java | 21 ++++ .../impl/PayInOrderDetailServiceImpl.java | 29 +++++ .../service/impl/PayInOrderServiceImpl.java | 29 +++++ .../rpc/service/impl/PayMchServiceImpl.java | 29 +++++ .../impl/PayOutOrderDetailServiceImpl.java | 29 +++++ .../service/impl/PayOutOrderServiceImpl.java | 29 +++++ .../rpc/service/impl/PayPayServiceImpl.java | 29 +++++ .../rpc/service/impl/PayTypeServiceImpl.java | 29 +++++ .../service/impl/PayVendorServiceImpl.java | 29 +++++ .../rpc/service/impl/PayVestServiceImpl.java | 29 +++++ .../main/java/com/zheng/pay/service/App.java | 10 -- .../java/com/zheng/pay/service/AppTest.java | 38 ------ 51 files changed, 765 insertions(+), 87 deletions(-) rename zheng-pay/{zheng-pay-service => zheng-pay-common}/pom.xml (72%) create mode 100644 zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayConstant.java create mode 100644 zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResult.java create mode 100644 zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResultConstant.java create mode 100644 zheng-pay/zheng-pay-dao/src/main/resources/generator.properties delete mode 100644 zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties delete mode 100644 zheng-pay/zheng-pay-dao/src/main/resources/redis.properties create mode 100644 zheng-pay/zheng-pay-rpc-api/pom.xml create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestService.java create mode 100644 zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestServiceMock.java create mode 100644 zheng-pay/zheng-pay-rpc-service/pom.xml rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml (100%) rename zheng-pay/{zheng-pay-dao => zheng-pay-rpc-service}/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml (100%) create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/ZhengPayRpcServiceApplication.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderDetailServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayMchServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderDetailServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayPayServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayTypeServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVendorServiceImpl.java create mode 100644 zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVestServiceImpl.java delete mode 100644 zheng-pay/zheng-pay-service/src/main/java/com/zheng/pay/service/App.java delete mode 100644 zheng-pay/zheng-pay-service/src/test/java/com/zheng/pay/service/AppTest.java diff --git a/zheng-pay/pom.xml b/zheng-pay/pom.xml index 31c475f7..0b3789d9 100644 --- a/zheng-pay/pom.xml +++ b/zheng-pay/pom.xml @@ -19,8 +19,10 @@ + zheng-pay-common zheng-pay-dao - zheng-pay-service + zheng-pay-rpc-api + zheng-pay-rpc-service zheng-pay-sdk zheng-pay-web zheng-pay-admin diff --git a/zheng-pay/zheng-pay-service/pom.xml b/zheng-pay/zheng-pay-common/pom.xml similarity index 72% rename from zheng-pay/zheng-pay-service/pom.xml rename to zheng-pay/zheng-pay-common/pom.xml index 7d3d26f2..5ea5127b 100644 --- a/zheng-pay/zheng-pay-service/pom.xml +++ b/zheng-pay/zheng-pay-common/pom.xml @@ -8,10 +8,10 @@ 1.0.0 - zheng-pay-service + zheng-pay-common jar - zheng-pay-service + zheng-pay-common http://www.zhangshuzheng.cn @@ -19,29 +19,16 @@ - - junit - junit - 4.12 - test - com.zheng - zheng-pay-dao + zheng-common 1.0.0 jar - - - javax.servlet - servlet-api - 2.5 - provided - - zheng-pay-service + zheng-pay-common src/main/java diff --git a/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayConstant.java b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayConstant.java new file mode 100644 index 00000000..e620cb01 --- /dev/null +++ b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayConstant.java @@ -0,0 +1,11 @@ +package com.zheng.pay.common.constant; + +import com.zheng.common.base.BaseConstants; + +/** + * pay系统常量类 + * Created by shuzheng on 2017/3/29. + */ +public class PayConstant extends BaseConstants { + +} diff --git a/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResult.java b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResult.java new file mode 100644 index 00000000..be73f81e --- /dev/null +++ b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResult.java @@ -0,0 +1,15 @@ +package com.zheng.pay.common.constant; + +import com.zheng.common.base.BaseResult; + +/** + * pay系统常量枚举类 + * Created by shuzheng on 2017/3/29. + */ +public class PayResult extends BaseResult { + + public PayResult(PayResultConstant payResultConstant, Object data) { + super(payResultConstant.getCode(), payResultConstant.getMessage(), data); + } + +} diff --git a/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResultConstant.java b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResultConstant.java new file mode 100644 index 00000000..ee5be8a3 --- /dev/null +++ b/zheng-pay/zheng-pay-common/src/main/java/com/zheng/pay/common/constant/PayResultConstant.java @@ -0,0 +1,37 @@ +package com.zheng.pay.common.constant; + +/** + * pay系统接口结果常量枚举类 + * Created by shuzheng on 2017/3/29. + */ +public enum PayResultConstant { + + FAILED(0, "failed"), + SUCCESS(1, "success"); + + public int code; + + public String message; + + PayResultConstant(int code, String message) { + this.code = code; + this.message = message; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + +} diff --git a/zheng-pay/zheng-pay-dao/pom.xml b/zheng-pay/zheng-pay-dao/pom.xml index faea1d63..25dafa0f 100644 --- a/zheng-pay/zheng-pay-dao/pom.xml +++ b/zheng-pay/zheng-pay-dao/pom.xml @@ -21,7 +21,7 @@ com.zheng - zheng-common + zheng-pay-common 1.0.0 jar diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java b/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java index bfa7130b..377d4fb0 100644 --- a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java +++ b/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/Generator.java @@ -14,10 +14,10 @@ public class Generator { private static String DATABASE = "zheng"; private static String TABLE_PREFIX = "pay_"; private static String PACKAGE_NAME = "com.zheng.pay"; - private static String JDBC_DRIVER = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.driver"); - private static String JDBC_URL = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.url"); - private static String JDBC_USERNAME = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.username"); - private static String JDBC_PASSWORD = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.password"); + private static String JDBC_DRIVER = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.driver"); + private static String JDBC_URL = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.url"); + private static String JDBC_USERNAME = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.username"); + private static String JDBC_PASSWORD = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.password"); /** * 自动代码生成 diff --git a/zheng-pay/zheng-pay-dao/src/main/resources/generator.properties b/zheng-pay/zheng-pay-dao/src/main/resources/generator.properties new file mode 100644 index 00000000..2f171bc4 --- /dev/null +++ b/zheng-pay/zheng-pay-dao/src/main/resources/generator.properties @@ -0,0 +1,4 @@ +generator.jdbc.driver=com.mysql.jdbc.Driver +generator.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true +generator.jdbc.username=root +generator.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g== \ No newline at end of file diff --git a/zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties b/zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties deleted file mode 100644 index 1f750b32..00000000 --- a/zheng-pay/zheng-pay-dao/src/main/resources/jdbc.properties +++ /dev/null @@ -1,9 +0,0 @@ -master.jdbc.driver=com.mysql.jdbc.Driver -master.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true -master.jdbc.username=root -master.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g== - -slave.jdbc.driver=com.mysql.jdbc.Driver -slave.jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true -slave.jdbc.username=root -slave.jdbc.password=rWd3Hb+AzNg3IXF1b5vD+g== \ No newline at end of file diff --git a/zheng-pay/zheng-pay-dao/src/main/resources/redis.properties b/zheng-pay/zheng-pay-dao/src/main/resources/redis.properties deleted file mode 100644 index 2dad97d0..00000000 --- a/zheng-pay/zheng-pay-dao/src/main/resources/redis.properties +++ /dev/null @@ -1,7 +0,0 @@ -master.redis.ip=127.0.0.1 -master.redis.port=6379 -master.redis.password=FNFl9F2O2Skb8yoKM0jhHA== -master.redis.max_active=500 -master.redis.max_idle=5 -master.redis.max_wait=10000 -master.redis.timeout=10000 \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/pom.xml b/zheng-pay/zheng-pay-rpc-api/pom.xml new file mode 100644 index 00000000..531d83d7 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + + + com.zheng + zheng-pay + 1.0.0 + + + zheng-pay-rpc-api + jar + + zheng-pay-rpc-api + http://www.zhangshuzheng.cn + + + UTF-8 + + + + + com.zheng + zheng-pay-dao + 1.0.0 + jar + + + + + zheng-pay-rpc-api + + + src/main/java + + **/*.xml + + true + + + src/main/resources + + + + diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailService.java new file mode 100644 index 00000000..58530319 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayInOrderDetail; +import com.zheng.pay.dao.model.PayInOrderDetailExample; + +/** +* PayInOrderDetailService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayInOrderDetailService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailServiceMock.java new file mode 100644 index 00000000..17195c56 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderDetailServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayInOrderDetailMapper; +import com.zheng.pay.dao.model.PayInOrderDetail; +import com.zheng.pay.dao.model.PayInOrderDetailExample; + +/** +* 降级实现PayInOrderDetailService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayInOrderDetailServiceMock extends BaseServiceMock implements PayInOrderDetailService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderService.java new file mode 100644 index 00000000..4b555ee5 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayInOrder; +import com.zheng.pay.dao.model.PayInOrderExample; + +/** +* PayInOrderService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayInOrderService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderServiceMock.java new file mode 100644 index 00000000..a03409be --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayInOrderServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayInOrderMapper; +import com.zheng.pay.dao.model.PayInOrder; +import com.zheng.pay.dao.model.PayInOrderExample; + +/** +* 降级实现PayInOrderService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayInOrderServiceMock extends BaseServiceMock implements PayInOrderService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchService.java new file mode 100644 index 00000000..b39509f8 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayMch; +import com.zheng.pay.dao.model.PayMchExample; + +/** +* PayMchService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayMchService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchServiceMock.java new file mode 100644 index 00000000..b6276dbe --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayMchServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayMchMapper; +import com.zheng.pay.dao.model.PayMch; +import com.zheng.pay.dao.model.PayMchExample; + +/** +* 降级实现PayMchService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayMchServiceMock extends BaseServiceMock implements PayMchService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailService.java new file mode 100644 index 00000000..25ce67e1 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayOutOrderDetail; +import com.zheng.pay.dao.model.PayOutOrderDetailExample; + +/** +* PayOutOrderDetailService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayOutOrderDetailService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailServiceMock.java new file mode 100644 index 00000000..c0c94f82 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderDetailServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayOutOrderDetailMapper; +import com.zheng.pay.dao.model.PayOutOrderDetail; +import com.zheng.pay.dao.model.PayOutOrderDetailExample; + +/** +* 降级实现PayOutOrderDetailService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayOutOrderDetailServiceMock extends BaseServiceMock implements PayOutOrderDetailService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderService.java new file mode 100644 index 00000000..f0997631 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayOutOrder; +import com.zheng.pay.dao.model.PayOutOrderExample; + +/** +* PayOutOrderService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayOutOrderService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderServiceMock.java new file mode 100644 index 00000000..875ef91d --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayOutOrderServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayOutOrderMapper; +import com.zheng.pay.dao.model.PayOutOrder; +import com.zheng.pay.dao.model.PayOutOrderExample; + +/** +* 降级实现PayOutOrderService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayOutOrderServiceMock extends BaseServiceMock implements PayOutOrderService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayService.java new file mode 100644 index 00000000..964a5554 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayPay; +import com.zheng.pay.dao.model.PayPayExample; + +/** +* PayPayService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayPayService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayServiceMock.java new file mode 100644 index 00000000..ae26d8e3 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayPayServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayPayMapper; +import com.zheng.pay.dao.model.PayPay; +import com.zheng.pay.dao.model.PayPayExample; + +/** +* 降级实现PayPayService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayPayServiceMock extends BaseServiceMock implements PayPayService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeService.java new file mode 100644 index 00000000..85f99989 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayType; +import com.zheng.pay.dao.model.PayTypeExample; + +/** +* PayTypeService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayTypeService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeServiceMock.java new file mode 100644 index 00000000..56a7cd74 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayTypeServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayTypeMapper; +import com.zheng.pay.dao.model.PayType; +import com.zheng.pay.dao.model.PayTypeExample; + +/** +* 降级实现PayTypeService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayTypeServiceMock extends BaseServiceMock implements PayTypeService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorService.java new file mode 100644 index 00000000..2c82b63a --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayVendor; +import com.zheng.pay.dao.model.PayVendorExample; + +/** +* PayVendorService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayVendorService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorServiceMock.java new file mode 100644 index 00000000..966efe95 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVendorServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayVendorMapper; +import com.zheng.pay.dao.model.PayVendor; +import com.zheng.pay.dao.model.PayVendorExample; + +/** +* 降级实现PayVendorService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayVendorServiceMock extends BaseServiceMock implements PayVendorService { + +} diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestService.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestService.java new file mode 100644 index 00000000..1ce8e2ca --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestService.java @@ -0,0 +1,13 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseService; +import com.zheng.pay.dao.model.PayVest; +import com.zheng.pay.dao.model.PayVestExample; + +/** +* PayVestService接口 +* Created by shuzheng on 2017/3/29. +*/ +public interface PayVestService extends BaseService { + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestServiceMock.java b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestServiceMock.java new file mode 100644 index 00000000..d0a23dc1 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-api/src/main/java/com/zheng/pay/rpc/api/PayVestServiceMock.java @@ -0,0 +1,14 @@ +package com.zheng.pay.rpc.api; + +import com.zheng.common.base.BaseServiceMock; +import com.zheng.pay.dao.mapper.PayVestMapper; +import com.zheng.pay.dao.model.PayVest; +import com.zheng.pay.dao.model.PayVestExample; + +/** +* 降级实现PayVestService接口 +* Created by shuzheng on 2017/3/29. +*/ +public class PayVestServiceMock extends BaseServiceMock implements PayVestService { + +} diff --git a/zheng-pay/zheng-pay-rpc-service/pom.xml b/zheng-pay/zheng-pay-rpc-service/pom.xml new file mode 100644 index 00000000..3499041a --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/pom.xml @@ -0,0 +1,116 @@ + + 4.0.0 + + + com.zheng + zheng-pay + 1.0.0 + + + zheng-pay-rpc-service + jar + + zheng-pay-rpc-service + http://www.zhangshuzheng.cn + + + + com.zheng + zheng-pay-rpc-api + 1.0.0 + + + junit + junit + 4.12 + test + + + + + + dev + + dev + + + true + + + + test + + test + + + + prod + + prod + + + + + + zheng-pay-rpc-service + + src/main/resources/profiles/${env}.properties + + + + src/main/java + + **/*.xml + + true + + + src/main/resources + true + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + true + true + + + + org.apache.maven.plugins + maven-jar-plugin + 2.6 + + + + true + lib/ + com.zheng.pay.rpc.ZhengPayRpcServiceApplication + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayInOrderDetailMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayInOrderMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayMchMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderDetailMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayOutOrderMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayPayMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayTypeMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayVendorMapper.xml diff --git a/zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml similarity index 100% rename from zheng-pay/zheng-pay-dao/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml rename to zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/dao/mapper/PayVestMapper.xml diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/ZhengPayRpcServiceApplication.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/ZhengPayRpcServiceApplication.java new file mode 100644 index 00000000..61159d44 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/ZhengPayRpcServiceApplication.java @@ -0,0 +1,21 @@ +package com.zheng.pay.rpc; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +/** + * 服务启动类 + * Created by ZhangShuzheng on 2017/3/29. + */ +public class ZhengPayRpcServiceApplication { + + private static Logger _log = LoggerFactory.getLogger(ZhengPayRpcServiceApplication.class); + + public static void main(String[] args) { + _log.info(">>>>> zheng-pay-rpc-service 正在启动 <<<<<"); + new ClassPathXmlApplicationContext("classpath*:applicationContext*.xml"); + _log.info(">>>>> zheng-pay-rpc-service 启动完成 <<<<<"); + } + +} diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderDetailServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderDetailServiceImpl.java new file mode 100644 index 00000000..d936a912 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderDetailServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayInOrderDetailMapper; +import com.zheng.pay.dao.model.PayInOrderDetail; +import com.zheng.pay.dao.model.PayInOrderDetailExample; +import com.zheng.pay.rpc.api.PayInOrderDetailService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayInOrderDetailService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayInOrderDetailServiceImpl extends BaseServiceImpl implements PayInOrderDetailService { + + private static Logger _log = LoggerFactory.getLogger(PayInOrderDetailServiceImpl.class); + + @Autowired + PayInOrderDetailMapper payInOrderDetailMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderServiceImpl.java new file mode 100644 index 00000000..2dc248f2 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayInOrderServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayInOrderMapper; +import com.zheng.pay.dao.model.PayInOrder; +import com.zheng.pay.dao.model.PayInOrderExample; +import com.zheng.pay.rpc.api.PayInOrderService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayInOrderService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayInOrderServiceImpl extends BaseServiceImpl implements PayInOrderService { + + private static Logger _log = LoggerFactory.getLogger(PayInOrderServiceImpl.class); + + @Autowired + PayInOrderMapper payInOrderMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayMchServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayMchServiceImpl.java new file mode 100644 index 00000000..b258be40 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayMchServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayMchMapper; +import com.zheng.pay.dao.model.PayMch; +import com.zheng.pay.dao.model.PayMchExample; +import com.zheng.pay.rpc.api.PayMchService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayMchService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayMchServiceImpl extends BaseServiceImpl implements PayMchService { + + private static Logger _log = LoggerFactory.getLogger(PayMchServiceImpl.class); + + @Autowired + PayMchMapper payMchMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderDetailServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderDetailServiceImpl.java new file mode 100644 index 00000000..5592e644 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderDetailServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayOutOrderDetailMapper; +import com.zheng.pay.dao.model.PayOutOrderDetail; +import com.zheng.pay.dao.model.PayOutOrderDetailExample; +import com.zheng.pay.rpc.api.PayOutOrderDetailService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayOutOrderDetailService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayOutOrderDetailServiceImpl extends BaseServiceImpl implements PayOutOrderDetailService { + + private static Logger _log = LoggerFactory.getLogger(PayOutOrderDetailServiceImpl.class); + + @Autowired + PayOutOrderDetailMapper payOutOrderDetailMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderServiceImpl.java new file mode 100644 index 00000000..f63e4edb --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayOutOrderServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayOutOrderMapper; +import com.zheng.pay.dao.model.PayOutOrder; +import com.zheng.pay.dao.model.PayOutOrderExample; +import com.zheng.pay.rpc.api.PayOutOrderService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayOutOrderService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayOutOrderServiceImpl extends BaseServiceImpl implements PayOutOrderService { + + private static Logger _log = LoggerFactory.getLogger(PayOutOrderServiceImpl.class); + + @Autowired + PayOutOrderMapper payOutOrderMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayPayServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayPayServiceImpl.java new file mode 100644 index 00000000..fd26d470 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayPayServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayPayMapper; +import com.zheng.pay.dao.model.PayPay; +import com.zheng.pay.dao.model.PayPayExample; +import com.zheng.pay.rpc.api.PayPayService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayPayService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayPayServiceImpl extends BaseServiceImpl implements PayPayService { + + private static Logger _log = LoggerFactory.getLogger(PayPayServiceImpl.class); + + @Autowired + PayPayMapper payPayMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayTypeServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayTypeServiceImpl.java new file mode 100644 index 00000000..372a87d2 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayTypeServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayTypeMapper; +import com.zheng.pay.dao.model.PayType; +import com.zheng.pay.dao.model.PayTypeExample; +import com.zheng.pay.rpc.api.PayTypeService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayTypeService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayTypeServiceImpl extends BaseServiceImpl implements PayTypeService { + + private static Logger _log = LoggerFactory.getLogger(PayTypeServiceImpl.class); + + @Autowired + PayTypeMapper payTypeMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVendorServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVendorServiceImpl.java new file mode 100644 index 00000000..3d822051 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVendorServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayVendorMapper; +import com.zheng.pay.dao.model.PayVendor; +import com.zheng.pay.dao.model.PayVendorExample; +import com.zheng.pay.rpc.api.PayVendorService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayVendorService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayVendorServiceImpl extends BaseServiceImpl implements PayVendorService { + + private static Logger _log = LoggerFactory.getLogger(PayVendorServiceImpl.class); + + @Autowired + PayVendorMapper payVendorMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVestServiceImpl.java b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVestServiceImpl.java new file mode 100644 index 00000000..7452a726 --- /dev/null +++ b/zheng-pay/zheng-pay-rpc-service/src/main/java/com/zheng/pay/rpc/service/impl/PayVestServiceImpl.java @@ -0,0 +1,29 @@ +package com.zheng.pay.rpc.service.impl; + +import com.zheng.common.annotation.BaseService; +import com.zheng.common.base.BaseServiceImpl; +import com.zheng.pay.dao.mapper.PayVestMapper; +import com.zheng.pay.dao.model.PayVest; +import com.zheng.pay.dao.model.PayVestExample; +import com.zheng.pay.rpc.api.PayVestService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** +* PayVestService实现 +* Created by shuzheng on 2017/3/29. +*/ +@Service +@Transactional +@BaseService +public class PayVestServiceImpl extends BaseServiceImpl implements PayVestService { + + private static Logger _log = LoggerFactory.getLogger(PayVestServiceImpl.class); + + @Autowired + PayVestMapper payVestMapper; + +} \ No newline at end of file diff --git a/zheng-pay/zheng-pay-service/src/main/java/com/zheng/pay/service/App.java b/zheng-pay/zheng-pay-service/src/main/java/com/zheng/pay/service/App.java deleted file mode 100644 index c800f4e0..00000000 --- a/zheng-pay/zheng-pay-service/src/main/java/com/zheng/pay/service/App.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.zheng.pay.service; - -/** - * Hello world! - */ -public class App { - public static void main(String[] args) { - - } -} diff --git a/zheng-pay/zheng-pay-service/src/test/java/com/zheng/pay/service/AppTest.java b/zheng-pay/zheng-pay-service/src/test/java/com/zheng/pay/service/AppTest.java deleted file mode 100644 index 6720f07f..00000000 --- a/zheng-pay/zheng-pay-service/src/test/java/com/zheng/pay/service/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.zheng.pay.service; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -}