完成zheng-pay模块架构

This commit is contained in:
shuzheng 2017-03-29 23:15:35 +08:00
parent b112cb93e4
commit e437035b3b
51 changed files with 765 additions and 87 deletions

View File

@ -19,8 +19,10 @@
</properties> </properties>
<modules> <modules>
<module>zheng-pay-common</module>
<module>zheng-pay-dao</module> <module>zheng-pay-dao</module>
<module>zheng-pay-service</module> <module>zheng-pay-rpc-api</module>
<module>zheng-pay-rpc-service</module>
<module>zheng-pay-sdk</module> <module>zheng-pay-sdk</module>
<module>zheng-pay-web</module> <module>zheng-pay-web</module>
<module>zheng-pay-admin</module> <module>zheng-pay-admin</module>

View File

@ -8,10 +8,10 @@
<version>1.0.0</version> <version>1.0.0</version>
</parent> </parent>
<artifactId>zheng-pay-service</artifactId> <artifactId>zheng-pay-common</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>zheng-pay-service</name> <name>zheng-pay-common</name>
<url>http://www.zhangshuzheng.cn</url> <url>http://www.zhangshuzheng.cn</url>
<properties> <properties>
@ -19,29 +19,16 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>com.zheng</groupId> <groupId>com.zheng</groupId>
<artifactId>zheng-pay-dao</artifactId> <artifactId>zheng-common</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<!-- servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>zheng-pay-service</finalName> <finalName>zheng-pay-common</finalName>
<resources> <resources>
<resource> <resource>
<directory>src/main/java</directory> <directory>src/main/java</directory>

View File

@ -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 {
}

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -21,7 +21,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.zheng</groupId> <groupId>com.zheng</groupId>
<artifactId>zheng-common</artifactId> <artifactId>zheng-pay-common</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>

View File

@ -14,10 +14,10 @@ public class Generator {
private static String DATABASE = "zheng"; private static String DATABASE = "zheng";
private static String TABLE_PREFIX = "pay_"; private static String TABLE_PREFIX = "pay_";
private static String PACKAGE_NAME = "com.zheng.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_DRIVER = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.driver");
private static String JDBC_URL = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.url"); private static String JDBC_URL = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.url");
private static String JDBC_USERNAME = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.username"); private static String JDBC_USERNAME = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.username");
private static String JDBC_PASSWORD = PropertiesFileUtil.getInstance("jdbc").get("master.jdbc.password"); private static String JDBC_PASSWORD = PropertiesFileUtil.getInstance("generator").get("generator.jdbc.password");
/** /**
* 自动代码生成 * 自动代码生成

View File

@ -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==

View File

@ -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==

View File

@ -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

View File

@ -0,0 +1,45 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zheng</groupId>
<artifactId>zheng-pay</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>zheng-pay-rpc-api</artifactId>
<packaging>jar</packaging>
<name>zheng-pay-rpc-api</name>
<url>http://www.zhangshuzheng.cn</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.zheng</groupId>
<artifactId>zheng-pay-dao</artifactId>
<version>1.0.0</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<finalName>zheng-pay-rpc-api</finalName>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -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<PayInOrderDetail, PayInOrderDetailExample> {
}

View File

@ -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<PayInOrderDetailMapper, PayInOrderDetail, PayInOrderDetailExample> implements PayInOrderDetailService {
}

View File

@ -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<PayInOrder, PayInOrderExample> {
}

View File

@ -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<PayInOrderMapper, PayInOrder, PayInOrderExample> implements PayInOrderService {
}

View File

@ -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<PayMch, PayMchExample> {
}

View File

@ -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<PayMchMapper, PayMch, PayMchExample> implements PayMchService {
}

View File

@ -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<PayOutOrderDetail, PayOutOrderDetailExample> {
}

View File

@ -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<PayOutOrderDetailMapper, PayOutOrderDetail, PayOutOrderDetailExample> implements PayOutOrderDetailService {
}

View File

@ -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<PayOutOrder, PayOutOrderExample> {
}

View File

@ -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<PayOutOrderMapper, PayOutOrder, PayOutOrderExample> implements PayOutOrderService {
}

View File

@ -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<PayPay, PayPayExample> {
}

View File

@ -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<PayPayMapper, PayPay, PayPayExample> implements PayPayService {
}

View File

@ -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<PayType, PayTypeExample> {
}

View File

@ -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<PayTypeMapper, PayType, PayTypeExample> implements PayTypeService {
}

View File

@ -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<PayVendor, PayVendorExample> {
}

View File

@ -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<PayVendorMapper, PayVendor, PayVendorExample> implements PayVendorService {
}

View File

@ -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<PayVest, PayVestExample> {
}

View File

@ -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<PayVestMapper, PayVest, PayVestExample> implements PayVestService {
}

View File

@ -0,0 +1,116 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zheng</groupId>
<artifactId>zheng-pay</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>zheng-pay-rpc-service</artifactId>
<packaging>jar</packaging>
<name>zheng-pay-rpc-service</name>
<url>http://www.zhangshuzheng.cn</url>
<dependencies>
<dependency>
<groupId>com.zheng</groupId>
<artifactId>zheng-pay-rpc-api</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>dev</id>
<properties>
<env>dev</env>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>test</id>
<properties>
<env>test</env>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<env>prod</env>
</properties>
</profile>
</profiles>
<build>
<finalName>zheng-pay-rpc-service</finalName>
<filters>
<filter>src/main/resources/profiles/${env}.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.zheng.pay.rpc.ZhengPayRpcServiceApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -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 启动完成 <<<<<");
}
}

View File

@ -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<PayInOrderDetailMapper, PayInOrderDetail, PayInOrderDetailExample> implements PayInOrderDetailService {
private static Logger _log = LoggerFactory.getLogger(PayInOrderDetailServiceImpl.class);
@Autowired
PayInOrderDetailMapper payInOrderDetailMapper;
}

View File

@ -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<PayInOrderMapper, PayInOrder, PayInOrderExample> implements PayInOrderService {
private static Logger _log = LoggerFactory.getLogger(PayInOrderServiceImpl.class);
@Autowired
PayInOrderMapper payInOrderMapper;
}

View File

@ -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<PayMchMapper, PayMch, PayMchExample> implements PayMchService {
private static Logger _log = LoggerFactory.getLogger(PayMchServiceImpl.class);
@Autowired
PayMchMapper payMchMapper;
}

View File

@ -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<PayOutOrderDetailMapper, PayOutOrderDetail, PayOutOrderDetailExample> implements PayOutOrderDetailService {
private static Logger _log = LoggerFactory.getLogger(PayOutOrderDetailServiceImpl.class);
@Autowired
PayOutOrderDetailMapper payOutOrderDetailMapper;
}

View File

@ -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<PayOutOrderMapper, PayOutOrder, PayOutOrderExample> implements PayOutOrderService {
private static Logger _log = LoggerFactory.getLogger(PayOutOrderServiceImpl.class);
@Autowired
PayOutOrderMapper payOutOrderMapper;
}

View File

@ -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<PayPayMapper, PayPay, PayPayExample> implements PayPayService {
private static Logger _log = LoggerFactory.getLogger(PayPayServiceImpl.class);
@Autowired
PayPayMapper payPayMapper;
}

View File

@ -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<PayTypeMapper, PayType, PayTypeExample> implements PayTypeService {
private static Logger _log = LoggerFactory.getLogger(PayTypeServiceImpl.class);
@Autowired
PayTypeMapper payTypeMapper;
}

View File

@ -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<PayVendorMapper, PayVendor, PayVendorExample> implements PayVendorService {
private static Logger _log = LoggerFactory.getLogger(PayVendorServiceImpl.class);
@Autowired
PayVendorMapper payVendorMapper;
}

View File

@ -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<PayVestMapper, PayVest, PayVestExample> implements PayVestService {
private static Logger _log = LoggerFactory.getLogger(PayVestServiceImpl.class);
@Autowired
PayVestMapper payVestMapper;
}

View File

@ -1,10 +0,0 @@
package com.zheng.pay.service;
/**
* Hello world!
*/
public class App {
public static void main(String[] args) {
}
}

View File

@ -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 );
}
}