├── version.md ├── jeepay-core └── src │ ├── test │ ├── java │ │ └── com │ │ │ └── .gitkeep │ └── resources │ │ └── .gitkeep │ └── main │ └── java │ └── com │ └── jeequan │ └── jeepay │ └── core │ ├── service │ ├── ICodeSysTypeManager.java │ ├── IMchQrcodeManager.java │ └── ISysConfigService.java │ ├── model │ ├── QRCodeParams.java │ ├── params │ │ ├── ysf │ │ │ ├── YsfpayIsvsubMchParams.java │ │ │ └── YsfpayConfig.java │ │ ├── alipay │ │ │ └── AlipayIsvsubMchParams.java │ │ ├── wxpay │ │ │ └── WxpayIsvsubMchParams.java │ │ ├── pppay │ │ │ └── PppayNormalMchParams.java │ │ └── IsvsubMchParams.java │ └── OriginalRes.java │ ├── aop │ └── MethodLog.java │ └── utils │ ├── JsonKit.java │ └── RegKit.java ├── jeepay-manager ├── src │ ├── test │ │ ├── java │ │ │ └── .gitkeep │ │ └── resources │ │ │ └── .gitkeep │ └── main │ │ ├── resources │ │ ├── static │ │ │ └── index.html │ │ ├── banner.txt │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── mgr │ │ ├── service │ │ └── CodeSysTypeManager.java │ │ ├── config │ │ ├── SwaggerConfig.java │ │ └── SystemYmlConfig.java │ │ ├── bootstrap │ │ └── FastJsonHttpMessageConverterEx.java │ │ └── web │ │ └── WebmvcConfig.java └── Dockerfile ├── jeepay-merchant ├── src │ ├── test │ │ ├── java │ │ │ └── .gitkeep │ │ └── resources │ │ │ └── .gitkeep │ └── main │ │ ├── resources │ │ ├── static │ │ │ └── index.html │ │ ├── banner.txt │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── mch │ │ ├── service │ │ └── CodeSysTypeManager.java │ │ ├── config │ │ ├── SwaggerConfig.java │ │ └── SystemYmlConfig.java │ │ ├── bootstrap │ │ └── FastJsonHttpMessageConverterEx.java │ │ ├── websocket │ │ └── config │ │ │ └── WebSocketConfig.java │ │ └── web │ │ └── WebmvcConfig.java └── Dockerfile ├── jeepay-payment ├── src │ ├── test │ │ ├── java │ │ │ └── .gitkeep │ │ └── resources │ │ │ └── .gitkeep │ └── main │ │ ├── resources │ │ ├── static │ │ │ └── cashier │ │ │ │ ├── readme.txt │ │ │ │ ├── favicon.ico │ │ │ │ ├── css │ │ │ │ ├── chunk-93b06108.d5ba12fa.css │ │ │ │ ├── chunk-0a8a1f2c.8266418e.css │ │ │ │ └── app.b0d6b471.css │ │ │ │ ├── img │ │ │ │ ├── ysf.dbdf047a.jpg │ │ │ │ ├── zfb.f9f04ed3.jpeg │ │ │ │ ├── S.1db749bc.svg │ │ │ │ ├── error.5bc34a8a.svg │ │ │ │ └── wx.ec067f2f.svg │ │ │ │ ├── fonts │ │ │ │ └── WeChatSansSS-Bold.245dd277.ttf │ │ │ │ ├── js │ │ │ │ ├── chunk-2d20f936.1ce40f42.js │ │ │ │ ├── chunk-0a8a1f2c.9bd81b70.js │ │ │ │ └── chunk-2d22c085.ef49138c.js │ │ │ │ └── index.html │ │ ├── templates │ │ │ └── common │ │ │ │ └── toPay.ftl │ │ ├── banner.txt │ │ └── application.yml │ │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── pay │ │ ├── rqrs │ │ ├── payorder │ │ │ ├── payway │ │ │ │ ├── PPPcOrderRS.java │ │ │ │ ├── WxH5OrderRQ.java │ │ │ │ ├── PPPcOrderRQ.java │ │ │ │ ├── AliOcOrderRS.java │ │ │ │ ├── AliQrOrderRS.java │ │ │ │ ├── UpPcOrderRS.java │ │ │ │ ├── UpQrOrderRS.java │ │ │ │ ├── WxH5OrderRS.java │ │ │ │ ├── AliWapOrderRS.java │ │ │ │ ├── UpB2bOrderRS.java │ │ │ │ ├── UpBarOrderRS.java │ │ │ │ ├── UpWapOrderRS.java │ │ │ │ ├── QrCashierOrderRS.java │ │ │ │ ├── WxNativeOrderRS.java │ │ │ │ ├── AliPcOrderRS.java │ │ │ │ ├── AliOcOrderRQ.java │ │ │ │ ├── AliQrOrderRQ.java │ │ │ │ ├── UpPcOrderRQ.java │ │ │ │ ├── UpQrOrderRQ.java │ │ │ │ ├── UpAppOrderRQ.java │ │ │ │ ├── UpB2bOrderRQ.java │ │ │ │ ├── UpWapOrderRQ.java │ │ │ │ ├── WxNativeOrderRQ.java │ │ │ │ ├── YsfJsapiOrderRQ.java │ │ │ │ ├── QrCashierOrderRQ.java │ │ │ │ ├── AliWapOrderRQ.java │ │ │ │ ├── AliPcOrderRQ.java │ │ │ │ ├── AutoBarOrderRQ.java │ │ │ │ ├── AliBarOrderRS.java │ │ │ │ ├── WxBarOrderRS.java │ │ │ │ ├── AutoBarOrderRS.java │ │ │ │ ├── YsfBarOrderRS.java │ │ │ │ ├── AliAppOrderRS.java │ │ │ │ ├── UpAppOrderRS.java │ │ │ │ ├── WxAppOrderRS.java │ │ │ │ ├── WxLiteOrderRS.java │ │ │ │ ├── UpBarOrderRQ.java │ │ │ │ ├── WxJsapiOrderRS.java │ │ │ │ ├── YsfBarOrderRQ.java │ │ │ │ ├── WxBarOrderRQ.java │ │ │ │ ├── AliBarOrderRQ.java │ │ │ │ ├── UpJsapiOrderRS.java │ │ │ │ ├── AliLiteOrderRS.java │ │ │ │ ├── UpJsapiOrderRQ.java │ │ │ │ ├── YsfJsapiOrderRS.java │ │ │ │ ├── AliJsapiOrderRS.java │ │ │ │ ├── AliLiteOrderRQ.java │ │ │ │ └── AliJsapiOrderRQ.java │ │ │ ├── CommonPayDataRQ.java │ │ │ ├── ClosePayOrderRQ.java │ │ │ ├── QueryPayOrderRQ.java │ │ │ └── ClosePayOrderRS.java │ │ ├── AbstractRS.java │ │ ├── refund │ │ │ └── QueryRefundOrderRQ.java │ │ ├── transfer │ │ │ └── QueryTransferOrderRQ.java │ │ ├── AbstractMchAppRQ.java │ │ ├── msg │ │ │ └── DivisionChannelNotifyModel.java │ │ ├── ChannelUserIdRQ.java │ │ ├── division │ │ │ └── PayOrderDivisionExecRS.java │ │ └── AbstractRQ.java │ │ ├── service │ │ └── CodeSysTypeManager.java │ │ ├── config │ │ ├── SwaggerConfig.java │ │ └── SystemYmlConfig.java │ │ ├── bootstrap │ │ └── FastJsonHttpMessageConverterEx.java │ │ ├── channel │ │ ├── pppay │ │ │ └── PppayPayOrderQueryService.java │ │ ├── IPayOrderQueryService.java │ │ ├── IPayOrderCloseService.java │ │ ├── IChannelUserService.java │ │ └── plspay │ │ │ └── PlspayPaymentService.java │ │ ├── util │ │ └── ApiResBuilder.java │ │ └── task │ │ └── PayOrderExpiredTask.java └── Dockerfile ├── jeepay-service └── src │ ├── test │ ├── java │ │ └── com │ │ │ └── .gitkeep │ └── resources │ │ └── .gitkeep │ └── main │ └── java │ └── com │ └── jeequan │ └── jeepay │ └── service │ ├── mapper │ ├── MchAppMapper.java │ ├── MchDivisionReceiverMapper.java │ ├── MchDivisionReceiverGroupMapper.java │ ├── SysUserRoleRelaMapper.xml │ ├── PayWayMapper.xml │ ├── SysRoleMapper.xml │ ├── PayOrderDivisionRecordMapper.java │ ├── SysConfigMapper.xml │ ├── SysRoleEntRelaMapper.xml │ ├── MchAppMapper.xml │ ├── MchDivisionReceiverGroupMapper.xml │ ├── SysLogMapper.xml │ ├── PayWayMapper.java │ ├── IsvInfoMapper.java │ ├── MchInfoMapper.java │ ├── SysLogMapper.java │ ├── SysRoleMapper.java │ ├── SysUserMapper.java │ ├── SysConfigMapper.java │ ├── SysUserMapper.xml │ ├── TransferOrderMapper.java │ ├── SysUserRoleRelaMapper.java │ ├── IsvInfoMapper.xml │ ├── PayInterfaceDefineMapper.java │ ├── PayInterfaceConfigMapper.java │ ├── SysUserAuthMapper.xml │ ├── RefundOrderMapper.java │ ├── PayInterfaceConfigMapper.xml │ ├── SysEntitlementMapper.java │ ├── MchInfoMapper.xml │ ├── SysRoleEntRelaMapper.java │ ├── MchPayPassageMapper.java │ ├── SysUserAuthMapper.java │ ├── PayInterfaceDefineMapper.xml │ └── PayOrderMapper.java │ └── impl │ ├── MchDivisionReceiverService.java │ ├── MchDivisionReceiverGroupService.java │ ├── PayWayService.java │ ├── SysLogService.java │ ├── SysUserRoleRelaService.java │ ├── SysEntitlementService.java │ └── PayInterfaceDefineService.java ├── jeepay-z-codegen └── src │ ├── test │ ├── java │ │ └── .gitkeep │ └── resources │ │ └── .gitkeep │ └── main │ └── resources │ └── .gitkeep ├── jeepay-components ├── jeepay-components-mq │ └── src │ │ ├── test │ │ ├── java │ │ │ └── com │ │ │ │ └── .gitkeep │ │ └── resources │ │ │ └── .gitkeep │ │ └── main │ │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── components │ │ └── mq │ │ ├── vender │ │ ├── IMQMsgReceiver.java │ │ └── IMQSender.java │ │ ├── constant │ │ ├── MQSendTypeEnum.java │ │ └── MQVenderCS.java │ │ └── model │ │ └── AbstractMQ.java ├── jeepay-components-oss │ └── src │ │ ├── test │ │ ├── java │ │ │ └── com │ │ │ │ └── .gitkeep │ │ └── resources │ │ │ └── .gitkeep │ │ └── main │ │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── components │ │ └── oss │ │ ├── constant │ │ ├── OssSavePlaceEnum.java │ │ └── OssServiceTypeEnum.java │ │ ├── config │ │ └── AliyunOssYmlConfig.java │ │ └── service │ │ └── IOssService.java └── pom.xml ├── .env ├── libs └── jeepay-sdk-java-pls-1.2.0.jar ├── docker ├── rocketmq │ └── broker │ │ └── conf │ │ └── broker.conf ├── rabbitmq │ └── Dockerfile ├── activemq │ └── Dockerfile ├── push-to-docker.md └── nginx.sh ├── docs └── install │ ├── config.sh │ └── uninstall.sh ├── conf └── readme.txt └── .gitignore /version.md: -------------------------------------------------------------------------------- 1 | v3.1.0_20240314 2 | -------------------------------------------------------------------------------- /jeepay-core/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-manager/src/test/java/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-merchant/src/test/java/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-payment/src/test/java/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-core/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-manager/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-merchant/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-payment/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-service/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-service/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-z-codegen/src/test/java/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-z-codegen/src/main/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-z-codegen/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | # ui项目的根路径 2 | UI_BASE_DIR=/Users/dingzhiwei/work/idea_wk/gitee_wk -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/readme.txt: -------------------------------------------------------------------------------- 1 | 放置打包好的html文件。 -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/templates/common/toPay.ftl: -------------------------------------------------------------------------------- 1 | ${payHtml!''} -------------------------------------------------------------------------------- /jeepay-manager/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /libs/jeepay-sdk-java-pls-1.2.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/HEAD/libs/jeepay-sdk-java-pls-1.2.0.jar -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/HEAD/jeepay-payment/src/main/resources/static/cashier/favicon.ico -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/css/chunk-93b06108.d5ba12fa.css: -------------------------------------------------------------------------------- 1 | .jump[data-v-55ffd872]{height:100vh;width:100vw;display:flex;justify-content:center;align-items:center} -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/img/ysf.dbdf047a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/HEAD/jeepay-payment/src/main/resources/static/cashier/img/ysf.dbdf047a.jpg -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/img/zfb.f9f04ed3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/HEAD/jeepay-payment/src/main/resources/static/cashier/img/zfb.f9f04ed3.jpeg -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/fonts/WeChatSansSS-Bold.245dd277.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/HEAD/jeepay-payment/src/main/resources/static/cashier/fonts/WeChatSansSS-Bold.245dd277.ttf -------------------------------------------------------------------------------- /docker/rocketmq/broker/conf/broker.conf: -------------------------------------------------------------------------------- 1 | brokerClusterName = DefaultCluster 2 | brokerName = broker-a 3 | brokerId = 0 4 | deleteWhen = 04 5 | fileReservedTime = 48 6 | brokerRole = ASYNC_MASTER 7 | flushDiskType = ASYNC_FLUSH 8 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/css/chunk-0a8a1f2c.8266418e.css: -------------------------------------------------------------------------------- 1 | .center[data-v-7374fd65]{margin-top:30%;display:flex;align-items:center;flex-direction:column}p[data-v-7374fd65]{font-size:.48rem;margin-top:.666667rem} -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/service/ICodeSysTypeManager.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.core.service; 2 | 3 | /** 当前项目类型管理 **/ 4 | public interface ICodeSysTypeManager { 5 | 6 | /** 获取当前项目名称(全大写形式) **/ 7 | String getCodeSysName(); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/css/app.b0d6b471.css: -------------------------------------------------------------------------------- 1 | #app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50}#nav{padding:.4rem}#nav a{font-weight:700;color:#2c3e50}#nav a.router-link-exact-active{color:#42b983} -------------------------------------------------------------------------------- /jeepay-manager/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | __ 2 | / /___ ___ ____ ____ ___ __ 3 | __ / // _ \/ _ \/ __ \/ __ `/ / / / 4 | / /_/ // __/ __/ /_/ / /_/ / /_/ / 5 | \____/ \___/\___/ .___/\__,_/\__, / 6 | /_/ /____/ 7 | :: Jeepay :: (v3.1.0.RELEASE) 8 | 让支付接入更简单 : https://www.jeequan.com 9 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | __ 2 | / /___ ___ ____ ____ ___ __ 3 | __ / // _ \/ _ \/ __ \/ __ `/ / / / 4 | / /_/ // __/ __/ /_/ / /_/ / /_/ / 5 | \____/ \___/\___/ .___/\__,_/\__, / 6 | /_/ /____/ 7 | :: Jeepay :: (v3.1.0.RELEASE) 8 | 让支付接入更简单 : https://www.jeequan.com 9 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | __ 2 | / /___ ___ ____ ____ ___ __ 3 | __ / // _ \/ _ \/ __ \/ __ `/ / / / 4 | / /_/ // __/ __/ /_/ / /_/ / /_/ / 5 | \____/ \___/\___/ .___/\__,_/\__, / 6 | /_/ /____/ 7 | :: Jeepay :: (v3.1.0.RELEASE) 8 | 让支付接入更简单 : https://www.jeequan.com 9 | -------------------------------------------------------------------------------- /docs/install/config.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | #exec 2>>build.log ##编译过程打印到日志文件中 3 | ## 配置文件 .Power by terrfly 4 | 5 | # 【项目根目录的地址】 该地址下会包含: nginx/mysql/mq/redis等文件 6 | rootDir="/jeepayhomes" 7 | 8 | # 【mysql密码】建议更改 9 | mysql_pwd="jeepaydb123456" 10 | 11 | 12 | #当前路径, 不要更改参数。 13 | currentPath=`pwd` 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/img/S.1db749bc.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/resources/static/cashier/js/chunk-2d20f936.1ce40f42.js: -------------------------------------------------------------------------------- 1 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20f936"],{b3e4:function(n,e,o){"use strict";o.r(e);var t=function(){var n=this,e=n._self._c;return e("router-view")},u=[],c={components:{},mounted(){console.log("进入cashier页面")}},s=c,l=o("2877"),r=Object(l["a"])(s,t,u,!1,null,null,null);e["default"]=r.exports}}]); 2 | //# sourceMappingURL=chunk-2d20f936.1ce40f42.js.map -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/MchAppMapper.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.service.mapper; 2 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 4 | import com.jeequan.jeepay.core.entity.MchApp; 5 | 6 | /** 7 | *8 | * 商户应用表 Mapper 接口 9 | *
10 | * 11 | * @author [mybatis plus generator] 12 | * @since 2021-06-15 13 | */ 14 | public interface MchAppMapper extends BaseMapper8 | * 商户分账接收者账号绑定关系表 Mapper 接口 9 | *
10 | * 11 | * @author [mybatis plus generator] 12 | * @since 2021-08-19 13 | */ 14 | public interface MchDivisionReceiverMapper extends BaseMapper8 | * 分账账号组 Mapper 接口 9 | *
10 | * 11 | * @author [mybatis plus generator] 12 | * @since 2021-08-23 13 | */ 14 | public interface MchDivisionReceiverGroupMapper extends BaseMapper10 | * 商户分账接收者账号绑定关系表 服务实现类 11 | *
12 | * 13 | * @author [mybatis plus generator] 14 | * @since 2021-08-19 15 | */ 16 | @Service 17 | public class MchDivisionReceiverService extends ServiceImpl11 | * 分账记录表 Mapper 接口 12 | *
13 | * 14 | * @author [mybatis plus generator] 15 | * @since 2021-08-19 16 | */ 17 | public interface PayOrderDivisionRecordMapper extends BaseMapper10 | * 分账账号组 服务实现类 11 | *
12 | * 13 | * @author [mybatis plus generator] 14 | * @since 2021-08-23 15 | */ 16 | @Service 17 | public class MchDivisionReceiverGroupService extends ServiceImpl4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.core.service;
17 |
18 | import com.jeequan.jeepay.core.model.DBApplicationConfig;
19 |
20 | public interface ISysConfigService {
21 |
22 | /** 获取应用的配置参数 **/
23 | DBApplicationConfig getDBApplicationConfig();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/MchAppMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.oss.constant; 17 | 18 | /* 19 | * oss 存储位置 20 | * @author terrfly 21 | * @site https://www.jeequan.com 22 | * @date 2021/7/12 10:48 23 | */ 24 | public enum OssSavePlaceEnum { 25 | 26 | PUBLIC, //公共读取 27 | 28 | PRIVATE; //私有存储 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/IMQMsgReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.vender; 17 | 18 | /** 19 | * MQ 消息接收器 接口定义 20 | * 21 | * @author terrfly 22 | * @site https://www.jeequan.com 23 | * @date 2021/7/21 16:09 24 | */ 25 | public interface IMQMsgReceiver { 26 | 27 | /** 接收消息 **/ 28 | void receiveMsg(String msg); 29 | } 30 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/QRCodeParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.core.model;
17 |
18 | import lombok.Data;
19 |
20 | @Data
21 | public class QRCodeParams {
22 |
23 | // 二维码扫码类型: 1 - 统一下单的聚合二维码
24 | public static final byte TYPE_PAY_ORDER = 1;
25 | public static final byte TYPE_QRC = 2;
26 |
27 | private String id;
28 |
29 | private Byte type;
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/docker/push-to-docker.md:
--------------------------------------------------------------------------------
1 | 1. 编译
2 | ```
3 | mvn install
4 | ```
5 | 2. 构建镜像及推送镜像(不需要docker环境)
6 | ```
7 | export DOCKER_REGISTRY=registry.cn-beijing.aliyuncs.com
8 | export DOCKER_NAMESPACE=jeequan
9 | export DOCKER_IMAGE_TAG=v1.14.0-alpha
10 | export DOCKER_REGISTRY_USERNAME=username1
11 | export DOCKER_REGISTRY_PASSWORD=password1
12 |
13 | cd jeepay-payment
14 | mvn jib:build \
15 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-payment:$DOCKER_IMAGE_TAG \
16 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \
17 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD
18 |
19 | cd ../jeepay-merchant
20 | mvn jib:build \
21 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-merchant:$DOCKER_IMAGE_TAG \
22 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \
23 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD
24 |
25 | cd ../jeepay-manager
26 | mvn jib:build \
27 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-manager:$DOCKER_IMAGE_TAG \
28 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \
29 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD
30 | ```
31 |
32 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysLogMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder; 17 | 18 | import lombok.Data; 19 | 20 | /* 21 | * 通用支付数据RQ 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 17:31 26 | */ 27 | @Data 28 | public class CommonPayDataRQ extends UnifiedOrderRQ { 29 | 30 | /** 请求参数: 支付数据包类型 **/ 31 | private String payDataType; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliOcOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /** 22 | * 支付方式 ALI_OC 23 | * 24 | * @author zhangheming 25 | * @site https://www.jeequan.com 26 | * @date 2024/6/12 17:20 27 | */ 28 | @Data 29 | public class AliOcOrderRS extends CommonPayDataRS { 30 | } 31 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: ALI_QR 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 17:34 27 | */ 28 | @Data 29 | public class AliQrOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpPcOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: UPACP_PC 23 | * 24 | * @author jmdhappy 25 | * @site https://www.jeequan.com 26 | * @date 2021/12/1 19:57 27 | */ 28 | @Data 29 | public class UpPcOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpQrOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: UPACP_QR 23 | * 24 | * @author jmdhappy 25 | * @site https://www.jeequan.com 26 | * @date 2021/12/1 19:57 27 | */ 28 | @Data 29 | public class UpQrOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxH5OrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: WX_H5 23 | * 24 | * @author zhuxiao 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 17:34 27 | */ 28 | @Data 29 | public class WxH5OrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayWayMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.PayWay; 20 | 21 | /** 22 | *
23 | * 支付方式表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface PayWayMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: ALI_WAP 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 17:34 27 | */ 28 | @Data 29 | public class AliWapOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpB2bOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: UPACP_B2B 23 | * 24 | * @author jmdhappy 25 | * @site https://www.jeequan.com 26 | * @date 2021/12/1 19:57 27 | */ 28 | @Data 29 | public class UpB2bOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpBarOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: UPACP_BAR 23 | * 24 | * @author jmdhappy 25 | * @site https://www.jeequan.com 26 | * @date 2021/12/1 19:57 27 | */ 28 | @Data 29 | public class UpBarOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpWapOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: UPACP_WAP 23 | * 24 | * @author jmdhappy 25 | * @site https://www.jeequan.com 26 | * @date 2021/12/1 19:57 27 | */ 28 | @Data 29 | public class UpWapOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/IsvInfoMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.IsvInfo; 20 | 21 | /** 22 | *
23 | * 服务商信息表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface IsvInfoMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.MchInfo; 20 | 21 | /** 22 | *
23 | * 商户信息表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface MchInfoMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysLog; 20 | 21 | /** 22 | *
23 | * 系统操作日志表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface SysLogMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysRole; 20 | 21 | /** 22 | *
23 | * 系统角色表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2020-06-13 28 | */ 29 | public interface SysRoleMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysUser; 20 | 21 | /** 22 | *
23 | * 系统操作员表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2020-06-13 28 | */ 29 | public interface SysUserMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.aop; 17 | 18 | import java.lang.annotation.*; 19 | 20 | /* 21 | * 方法级日志切面注解 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 18:00 26 | */ 27 | @Target({ ElementType.METHOD, ElementType.TYPE }) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | @Documented 30 | public @interface MethodLog { 31 | String remark() default ""; 32 | } 33 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: QR_CASHIER 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 17:34 27 | */ 28 | @Data 29 | public class QrCashierOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxNativeOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付方式: WX_NATIVE 23 | * 24 | * @author zhuxiao 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 17:34 27 | */ 28 | @Data 29 | public class WxNativeOrderRS extends CommonPayDataRS { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysConfigMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysConfig; 20 | 21 | /** 22 | *
23 | * 系统配置表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2020-07-29 28 | */ 29 | public interface SysConfigMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.TransferOrder; 20 | 21 | /** 22 | *
23 | * 转账订单表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-08-11 28 | */ 29 | public interface TransferOrderMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysUserRoleRela; 20 | 21 | /** 22 | *
23 | * 操作员<->角色 关联表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2020-06-13 28 | */ 29 | public interface SysUserRoleRelaMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.PayInterfaceDefine; 20 | 21 | /** 22 | *
23 | * 支付接口定义表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface PayInterfaceDefineMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.ysf; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 云闪付 配置信息 23 | * 24 | * @author pangxiaoyu 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 18:02 27 | */ 28 | @Data 29 | public class YsfpayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | private String merId; // 商户编号 32 | 33 | } 34 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JsonKit.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.utils; 17 | 18 | import com.alibaba.fastjson.JSONObject; 19 | 20 | /* 21 | * json工具类 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 16:51 26 | */ 27 | public class JsonKit { 28 | 29 | public static JSONObject newJson(String key, Object val){ 30 | 31 | JSONObject result = new JSONObject(); 32 | result.put(key, val); 33 | return result; 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayInterfaceConfigMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.PayInterfaceConfig; 20 | 21 | /** 22 | *
23 | * 支付接口配置参数表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface PayInterfaceConfigMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.alipay; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付宝 特约商户参数定义 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 16:33 27 | */ 28 | @Data 29 | public class AlipayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | private String appAuthToken; 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mgr.bootstrap; 17 | 18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; 19 | 20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter { 21 | 22 | public FastJsonHttpMessageConverterEx() { 23 | super(); 24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mch.bootstrap; 17 | 18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; 19 | 20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter { 21 | 22 | public FastJsonHttpMessageConverterEx() { 23 | super(); 24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.bootstrap;
17 |
18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
19 |
20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter {
21 |
22 | public FastJsonHttpMessageConverterEx() {
23 | super();
24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance);
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysUserAuthMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.constant; 17 | 18 | /** 19 | * 定义MQ消息类型 20 | * @author terrfly 21 | * @site https://www.jeequan.com 22 | * @date 2021/7/23 16:49 23 | */ 24 | public enum MQSendTypeEnum { 25 | /** QUEUE - 点对点 (只有1个消费者可消费。 ActiveMQ的queue模式 ) **/ 26 | QUEUE, 27 | /** BROADCAST - 订阅模式 (所有接收者都可接收到。 ActiveMQ的topic模式, RabbitMQ的fanout类型的交换机, RocketMQ的广播模式 ) **/ 28 | BROADCAST 29 | } 30 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/AbstractRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import com.alibaba.fastjson.JSON; 19 | import lombok.Data; 20 | 21 | import java.io.Serializable; 22 | 23 | /* 24 | * 接口抽象RS对象, 本身无需实例化 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/8 17:39 29 | */ 30 | @Data 31 | public abstract class AbstractRS implements Serializable { 32 | 33 | public String toJSONString(){ 34 | return JSON.toJSONString(this); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/ysf/YsfpayConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.ysf; 17 | 18 | import lombok.Data; 19 | 20 | /* 21 | * 云闪付 通用配置信息 22 | * 23 | * @author pangxiaoyu 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 18:02 26 | */ 27 | @Data 28 | public class YsfpayConfig { 29 | 30 | 31 | /** 网关地址 */ 32 | public static String PROD_SERVER_URL = "https://partner.95516.com"; 33 | public static String SANDBOX_SERVER_URL = "http://ysf.bcbip.cn:10240"; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/OriginalRes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model; 17 | 18 | import lombok.AllArgsConstructor; 19 | import lombok.Data; 20 | 21 | /* 22 | * 返回原始数据 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 16:37 27 | */ 28 | @Data 29 | @AllArgsConstructor 30 | public class OriginalRes { 31 | 32 | /** 返回数据 **/ 33 | private Object data; 34 | 35 | public static OriginalRes ok(Object data){ 36 | return new OriginalRes(data); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/RefundOrderMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.RefundOrder; 20 | 21 | /** 22 | *
23 | * 退款订单表 Mapper 接口 24 | *
25 | * 26 | * @author [mybatis plus generator] 27 | * @since 2021-04-27 28 | */ 29 | public interface RefundOrderMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.vender; 17 | 18 | import com.jeequan.jeepay.components.mq.model.AbstractMQ; 19 | 20 | /** 21 | * MQ 消息发送器 接口定义 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/7/21 16:09 26 | */ 27 | public interface IMQSender { 28 | 29 | /** 推送MQ消息, 实时 **/ 30 | void send(AbstractMQ mqModel); 31 | 32 | /** 推送MQ消息, 延迟接收,单位:s **/ 33 | void send(AbstractMQ mqModel, int delay); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/ClosePayOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ; 19 | import lombok.Data; 20 | 21 | /* 22 | * 关闭订单 请求参数对象 23 | * 24 | * @author xiaoyu 25 | * @site https://www.jeequan.com 26 | * @date 2022/1/25 9:16 27 | */ 28 | @Data 29 | public class ClosePayOrderRQ extends AbstractMchAppRQ { 30 | 31 | /** 商户订单号 **/ 32 | private String mchOrderNo; 33 | 34 | /** 支付系统订单号 **/ 35 | private String payOrderId; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/QueryPayOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ; 19 | import lombok.Data; 20 | 21 | 22 | /* 23 | * 查询订单请求参数对象 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:40 28 | */ 29 | @Data 30 | public class QueryPayOrderRQ extends AbstractMchAppRQ { 31 | 32 | /** 商户订单号 **/ 33 | private String mchOrderNo; 34 | 35 | /** 支付系统订单号 **/ 36 | private String payOrderId; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliPcOrderRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS; 20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS; 21 | import lombok.Data; 22 | 23 | /* 24 | * 支付方式: ALI_PC 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/8 17:34 29 | */ 30 | @Data 31 | public class AliPcOrderRS extends CommonPayDataRS { 32 | 33 | } 34 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/refund/QueryRefundOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.refund; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ; 19 | import lombok.Data; 20 | 21 | /* 22 | * 查询退款单请求参数对象 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/17 14:07 27 | */ 28 | @Data 29 | public class QueryRefundOrderRQ extends AbstractMchAppRQ { 30 | 31 | /** 商户退款单号 **/ 32 | private String mchRefundNo; 33 | 34 | /** 支付系统退款订单号 **/ 35 | private String refundOrderId; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/transfer/QueryTransferOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.transfer; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ; 19 | import lombok.Data; 20 | 21 | /* 22 | * 查询转账单请求参数对象 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/17 14:07 27 | */ 28 | @Data 29 | public class QueryTransferOrderRQ extends AbstractMchAppRQ { 30 | 31 | /** 商户转账单号 **/ 32 | private String mchOrderNo; 33 | 34 | /** 支付系统转账单号 **/ 35 | private String transferId; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/impl/PayWayService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.impl; 17 | 18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 19 | import com.jeequan.jeepay.core.entity.PayWay; 20 | import com.jeequan.jeepay.service.mapper.PayWayMapper; 21 | import org.springframework.stereotype.Service; 22 | 23 | /** 24 | *
25 | * 支付方式表 服务实现类 26 | *
27 | * 28 | * @author [mybatis plus generator] 29 | * @since 2021-04-27 30 | */ 31 | @Service 32 | public class PayWayService extends ServiceImpl4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.impl; 17 | 18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 19 | import com.jeequan.jeepay.core.entity.SysLog; 20 | import com.jeequan.jeepay.service.mapper.SysLogMapper; 21 | import org.springframework.stereotype.Service; 22 | 23 | /** 24 | *
25 | * 系统操作日志表 服务实现类 26 | *
27 | * 28 | * @author [mybatis plus generator] 29 | * @since 2021-04-27 30 | */ 31 | @Service 32 | public class SysLogService extends ServiceImpl4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.wxpay; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 微信官方支付 配置参数 23 | * 24 | * @author zhuxiao 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 18:02 27 | */ 28 | @Data 29 | public class WxpayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | /** 子商户ID **/ 32 | private String subMchId; 33 | 34 | /** 子账户appID **/ 35 | private String subMchAppId; 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliOcOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /** 23 | * 支付方式 订单码 24 | * 25 | * @author zhangheming 26 | * @site https://www.jeequan.com 27 | * @date 2024/6/12 17:20 28 | */ 29 | @Data 30 | public class AliOcOrderRQ extends CommonPayDataRQ { 31 | 32 | public AliOcOrderRQ() { 33 | this.setWayCode(CS.PAY_WAY_CODE.ALI_OC); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/pppay/PppayPayOrderQueryService.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.pay.channel.pppay; 2 | 3 | import com.jeequan.jeepay.core.constants.CS; 4 | import com.jeequan.jeepay.core.entity.PayOrder; 5 | import com.jeequan.jeepay.pay.channel.IPayOrderQueryService; 6 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 7 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg; 8 | import com.jeequan.jeepay.pay.service.ConfigContextQueryService; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | /** 13 | * none. 14 | * 15 | * @author 陈泉 16 | * @package com.jeequan.jeepay.pay.channel.pppay 17 | * @create 2021/11/15 21:02 18 | */ 19 | @Service 20 | public class PppayPayOrderQueryService implements IPayOrderQueryService { 21 | 22 | @Override 23 | public String getIfCode() { 24 | return CS.IF_CODE.PPPAY; 25 | } 26 | 27 | @Autowired 28 | private ConfigContextQueryService configContextQueryService; 29 | 30 | @Override 31 | public ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception { 32 | return configContextQueryService.getPaypalWrapper(mchAppConfigContext).processOrder(null, payOrder); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: ALI_QR 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:34 28 | */ 29 | @Data 30 | public class AliQrOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public AliQrOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.ALI_QR); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpPcOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: UPACP_PC 24 | * 25 | * @author jmdhappy 26 | * @site https://www.jeequan.com 27 | * @date 2021/12/1 19:57 28 | */ 29 | @Data 30 | public class UpPcOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public UpPcOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.UP_PC); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpQrOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_QR
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpQrOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpQrOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_QR);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayInterfaceConfigMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import lombok.Data; 19 | 20 | import jakarta.validation.constraints.NotBlank; 21 | 22 | /* 23 | * 24 | * 通用RQ, 包含mchNo和appId 必填项 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/16 10:30 29 | */ 30 | @Data 31 | public class AbstractMchAppRQ extends AbstractRQ { 32 | 33 | /** 商户号 **/ 34 | @NotBlank(message="商户号不能为空") 35 | private String mchNo; 36 | 37 | /** 商户应用ID **/ 38 | @NotBlank(message="商户应用ID不能为空") 39 | private String appId; 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpAppOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: UPACP_APP 24 | * 25 | * @author jmdhappy 26 | * @site https://www.jeequan.com 27 | * @date 2021/12/1 19:57 28 | */ 29 | @Data 30 | public class UpAppOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public UpAppOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.UP_APP); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpB2bOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: UPACP_B2B 24 | * 25 | * @author jmdhappy 26 | * @site https://www.jeequan.com 27 | * @date 2021/12/1 19:57 28 | */ 29 | @Data 30 | public class UpB2bOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public UpB2bOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.UP_B2B); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpWapOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: UPACP_WAP 24 | * 25 | * @author jmdhappy 26 | * @site https://www.jeequan.com 27 | * @date 2021/12/1 19:57 28 | */ 29 | @Data 30 | public class UpWapOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public UpWapOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.UP_WAP); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysEntitlementMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.service.mapper; 17 | 18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 19 | import com.jeequan.jeepay.core.entity.SysEntitlement; 20 | import org.apache.ibatis.annotations.Param; 21 | 22 | /** 23 | *
24 | * 系统权限表 Mapper 接口 25 | *
26 | * 27 | * @author [mybatis plus generator] 28 | * @since 2020-06-13 29 | */ 30 | public interface SysEntitlementMapper extends BaseMapper4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.oss.constant; 17 | 18 | import lombok.Getter; 19 | 20 | /* 21 | * oss 服务枚举值 22 | * @author terrfly 23 | * @site https://www.jeequan.com 24 | * @date 2021/7/12 10:48 25 | */ 26 | @Getter 27 | public enum OssServiceTypeEnum { 28 | 29 | LOCAL("local"), //本地存储 30 | 31 | ALIYUN_OSS("aliyun-oss"); //阿里云oss 32 | 33 | /** 名称 **/ 34 | private String serviceName; 35 | 36 | OssServiceTypeEnum(String serviceName){ 37 | this.serviceName = serviceName; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxNativeOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: WX_NATIVE 24 | * 25 | * @author zhuxiao 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:34 28 | */ 29 | @Data 30 | public class WxNativeOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public WxNativeOrderRQ() { 34 | this.setWayCode(CS.PAY_WAY_CODE.WX_NATIVE); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfJsapiOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: YSF_JSAPI 24 | * 25 | * @author pangxiaoyu 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:34 28 | */ 29 | @Data 30 | public class YsfJsapiOrderRQ extends UnifiedOrderRQ { 31 | 32 | /** 构造函数 **/ 33 | public YsfJsapiOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.YSF_JSAPI); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/model/AbstractMQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.model; 17 | 18 | import com.jeequan.jeepay.components.mq.constant.MQSendTypeEnum; 19 | 20 | /** 21 | * 定义MQ消息格式 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/7/22 15:33 26 | */ 27 | public abstract class AbstractMQ { 28 | 29 | /** MQ名称 **/ 30 | public abstract String getMQName(); 31 | 32 | /** MQ 类型 **/ 33 | public abstract MQSendTypeEnum getMQType(); 34 | 35 | /** 构造MQ消息体 String类型 **/ 36 | public abstract String toMessage(); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway; 17 | 18 | import com.jeequan.jeepay.core.constants.CS; 19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ; 20 | import lombok.Data; 21 | 22 | /* 23 | * 支付方式: QR_CASHIER 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:34 28 | */ 29 | @Data 30 | public class QrCashierOrderRQ extends CommonPayDataRQ { 31 | 32 | /** 构造函数 **/ 33 | public QrCashierOrderRQ(){ 34 | this.setWayCode(CS.PAY_WAY_CODE.QR_CASHIER); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ApiResBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.util;
17 |
18 |
19 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
20 |
21 | /*
22 | * api响应结果构造器
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:45
27 | */
28 | public class ApiResBuilder {
29 |
30 | /** 构建自定义响应对象, 默认响应成功 **/
31 | public static
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.SysUserRoleRela;
20 | import com.jeequan.jeepay.service.mapper.SysUserRoleRelaMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 操作员<->角色 关联表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.components.mq.constant;
17 |
18 | /**
19 | * MQ 厂商定义类
20 | *
21 | * @author terrfly
22 | * @site https://www.jeequan.com
23 | * @date 2021/7/23 16:50
24 | */
25 | public class MQVenderCS {
26 |
27 | public static final String YML_VENDER_KEY = "isys.mq.vender";
28 |
29 | public static final String ACTIVE_MQ = "activeMQ";
30 | public static final String RABBIT_MQ = "rabbitMQ";
31 | public static final String ROCKET_MQ = "rocketMQ";
32 | public static final String ALIYUN_ROCKET_MQ = "aliYunRocketMQ";
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliWapOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_WAP
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliWapOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public AliWapOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.ALI_WAP); //默认 ALI_WAP, 避免validate出现问题
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/impl/SysEntitlementService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.SysEntitlement;
20 | import org.springframework.stereotype.Service;
21 | import com.jeequan.jeepay.service.mapper.SysEntitlementMapper;
22 |
23 | /**
24 | *
25 | * 系统权限表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder;
17 |
18 | import com.alibaba.fastjson.annotation.JSONField;
19 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
20 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg;
21 | import lombok.Data;
22 |
23 | /*
24 | * 关闭订单 响应参数
25 | *
26 | * @author xiaoyu
27 | * @site https://www.jeequan.com
28 | * @date 2022/1/25 9:17
29 | */
30 | @Data
31 | public class ClosePayOrderRS extends AbstractRS {
32 |
33 | /** 上游渠道返回数据包 (无需JSON序列化) **/
34 | @JSONField(serialize = false)
35 | private ChannelRetMsg channelRetMsg;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/impl/PayInterfaceDefineService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.PayInterfaceDefine;
20 | import com.jeequan.jeepay.service.mapper.PayInterfaceDefineMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 支付接口定义表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.mch.websocket.config;
17 |
18 | import org.springframework.context.annotation.Bean;
19 | import org.springframework.context.annotation.Configuration;
20 | import org.springframework.web.socket.server.standard.ServerEndpointExporter;
21 |
22 | /*
23 | * 开启WebSocket支持
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/22 12:57
28 | */
29 | @Configuration
30 | public class WebSocketConfig {
31 |
32 | @Bean
33 | public ServerEndpointExporter serverEndpointExporter() {
34 | return new ServerEndpointExporter();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IPayOrderQueryService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.channel;
17 |
18 | import com.jeequan.jeepay.core.entity.PayOrder;
19 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg;
20 | import com.jeequan.jeepay.pay.model.MchAppConfigContext;
21 |
22 | /**
23 | * 查单(渠道侧)接口定义
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/5/19 15:16
28 | */
29 | public interface IPayOrderQueryService {
30 |
31 | /** 获取到接口code **/
32 | String getIfCode();
33 |
34 | /** 查询订单 **/
35 | ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysRoleEntRelaMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.SysRoleEntRela;
20 | import org.apache.ibatis.annotations.Param;
21 |
22 | import java.util.List;
23 |
24 | /**
25 | *
26 | * 系统角色权限关联表 Mapper 接口
27 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: ALI_PC
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class AliPcOrderRQ extends CommonPayDataRQ {
32 |
33 | /** 构造函数 **/
34 | public AliPcOrderRQ(){
35 | this.setWayCode(CS.PAY_WAY_CODE.ALI_PC);
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IPayOrderCloseService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.channel;
17 |
18 | import com.jeequan.jeepay.core.entity.PayOrder;
19 | import com.jeequan.jeepay.pay.model.MchAppConfigContext;
20 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg;
21 |
22 | /**
23 | * 关闭订单(渠道侧)接口定义
24 | *
25 | * @author xiaoyu
26 | * @site https://www.jeequan.com
27 | * @date 2022/1/24 17:23
28 | */
29 | public interface IPayOrderCloseService {
30 |
31 | /** 获取到接口code **/
32 | String getIfCode();
33 |
34 | /** 查询订单 **/
35 | ChannelRetMsg close(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/msg/DivisionChannelNotifyModel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.msg;
17 |
18 | import lombok.Data;
19 | import org.springframework.http.ResponseEntity;
20 |
21 | import java.util.Map;
22 |
23 | /***
24 | * 封装响应结果的数据
25 | * 直接写: MutablePair
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: AUTO_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AutoBarOrderRQ extends UnifiedOrderRQ {
31 |
32 | /** 条码值 **/
33 | private String authCode;
34 |
35 | /** 构造函数 **/
36 | public AutoBarOrderRQ(){
37 | this.setWayCode(CS.PAY_WAY_CODE.AUTO_BAR);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/MchPayPassageMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.alibaba.fastjson.JSONObject;
19 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
20 | import com.jeequan.jeepay.core.entity.MchPayPassage;
21 |
22 | import java.util.List;
23 | import java.util.Map;
24 |
25 | /**
26 | *
27 | * 商户支付通道表 Mapper 接口
28 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs;
17 |
18 | import lombok.Data;
19 |
20 | import jakarta.validation.constraints.NotBlank;
21 |
22 | /*
23 | * 商户获取渠道用户ID 请求参数对象
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:40
28 | */
29 | @Data
30 | public class ChannelUserIdRQ extends AbstractMchAppRQ{
31 |
32 | /** 接口代码, AUTO表示:自动获取 **/
33 | @NotBlank(message="接口代码不能为空")
34 | private String ifCode;
35 |
36 | /** 商户扩展参数,将原样返回 **/
37 | private String extParam;
38 |
39 | /** 回调地址 **/
40 | @NotBlank(message="回调地址不能为空")
41 | private String redirectUrl;
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/SysUserAuthMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import org.apache.ibatis.annotations.Param;
20 | import com.jeequan.jeepay.core.entity.SysUserAuth;
21 |
22 | /**
23 | *
24 | * 操作员认证表 Mapper 接口
25 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_BAR
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AutoBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: AUTO_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AutoBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: YSF_BAR
24 | *
25 | * @author pangxiaoyu
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class YsfBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IChannelUserService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.channel;
17 |
18 | import com.alibaba.fastjson.JSONObject;
19 | import com.jeequan.jeepay.pay.model.MchAppConfigContext;
20 |
21 | /*
22 | * @Description: 301方式获取渠道侧用户ID, 如微信openId 支付宝的userId等
23 | * @author terrfly
24 | * @date 2021/5/2 15:10
25 | */
26 | public interface IChannelUserService {
27 |
28 | /** 获取到接口code **/
29 | String getIfCode();
30 |
31 | /** 获取重定向地址 **/
32 | String buildUserRedirectUrl(String callbackUrlEncode, MchAppConfigContext mchAppConfigContext);
33 |
34 | /** 获取渠道用户ID **/
35 | String getChannelUserId(JSONObject reqParams, MchAppConfigContext mchAppConfigContext);
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/pppay/PppayNormalMchParams.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.core.model.params.pppay;
2 |
3 | import com.alibaba.fastjson.JSON;
4 | import com.alibaba.fastjson.JSONObject;
5 | import com.jeequan.jeepay.core.model.params.NormalMchParams;
6 | import com.jeequan.jeepay.core.utils.StringKit;
7 | import lombok.Data;
8 | import org.apache.commons.lang3.StringUtils;
9 |
10 | /**
11 | * none.
12 | *
13 | * @author 陈泉
14 | * @package com.jeequan.jeepay.core.model.params.pppay
15 | * @create 2021/11/15 18:10
16 | */
17 | @Data
18 | public class PppayNormalMchParams extends NormalMchParams {
19 | /**
20 | * 是否沙箱环境
21 | */
22 | private Byte sandbox;
23 |
24 | /**
25 | * clientId
26 | * 客户端 ID
27 | */
28 | private String clientId;
29 |
30 | /**
31 | * secret
32 | * 密钥
33 | */
34 | private String secret;
35 |
36 | /**
37 | * 支付 Webhook 通知 ID
38 | */
39 | private String notifyWebhook;
40 |
41 | /**
42 | * 退款 Webhook 通知 ID
43 | */
44 | private String refundWebhook;
45 |
46 | @Override
47 | public String deSenData() {
48 | PppayNormalMchParams mchParams = this;
49 | if (StringUtils.isNotBlank(this.secret)) {
50 | mchParams.setSecret(StringKit.str2Star(this.secret, 6, 6, 6));
51 | }
52 | return ((JSONObject) JSON.toJSON(mchParams)).toJSONString();
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_APP
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliAppOrderRS extends UnifiedOrderRS {
31 |
32 | private String payData;
33 |
34 | @Override
35 | public String buildPayDataType(){
36 | return CS.PAY_DATA_TYPE.ALI_APP;
37 | }
38 |
39 | @Override
40 | public String buildPayData(){
41 | return payData;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_APP
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpAppOrderRS extends CommonPayDataRS {
31 |
32 | private String payData;
33 |
34 | @Override
35 | public String buildPayDataType(){
36 | return CS.PAY_DATA_TYPE.YSF_APP;
37 | }
38 |
39 | @Override
40 | public String buildPayData(){
41 | return payData;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/config/SystemYmlConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.config;
17 |
18 | import lombok.Data;
19 | import org.springframework.boot.context.properties.ConfigurationProperties;
20 | import org.springframework.stereotype.Component;
21 |
22 | /**
23 | * 系统Yml配置参数定义Bean
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021-04-27 15:50
28 | */
29 | @Component
30 | @ConfigurationProperties(prefix="isys")
31 | @Data
32 | public class SystemYmlConfig {
33 |
34 | /** 是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时,应开启此配置或在nginx统一配置允许跨域] **/
35 | private Boolean allowCors;
36 |
37 | /** 是否内存缓存配置信息: true表示开启如支付网关地址/商户应用配置/服务商配置等, 开启后需检查MQ的广播模式是否正常; false表示直接查询DB. **/
38 | private Boolean cacheConfig;
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_APP
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxAppOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxLiteOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_LITE
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxLiteOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: UPACP_BAR
26 | *
27 | * @author jmdhappy
28 | * @site https://www.jeequan.com
29 | * @date 2021/12/1 19:57
30 | */
31 | @Data
32 | public class UpBarOrderRQ extends CommonPayDataRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public UpBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.UP_BAR);
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxJsapiOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_JSAPI
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxJsapiOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: YSF_BAR
26 | *
27 | * @author pangxiaoyu
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class YsfBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public YsfBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.YSF_BAR);
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/division/PayOrderDivisionExecRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.division;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
19 | import lombok.Data;
20 |
21 | /**
22 | * 发起订单分账 响应参数
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/8/26 17:20
27 | */
28 | @Data
29 | public class PayOrderDivisionExecRS extends AbstractRS {
30 |
31 | /**
32 | * 分账状态 1-分账成功, 2-分账失败
33 | */
34 | private Byte state;
35 |
36 | /**
37 | * 上游分账批次号
38 | */
39 | private String channelBatchOrderId;
40 |
41 | /**
42 | * 支付渠道错误码
43 | */
44 | private String errCode;
45 |
46 | /**
47 | * 支付渠道错误信息
48 | */
49 | private String errMsg;
50 |
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/config/AliyunOssYmlConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.components.oss.config;
17 |
18 | import lombok.Data;
19 | import org.springframework.boot.context.properties.ConfigurationProperties;
20 | import org.springframework.stereotype.Component;
21 |
22 | /**
23 | * aliyun oss 的yml配置参数
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/7/12 18:18
28 | */
29 | @Data
30 | @Component
31 | @ConfigurationProperties(prefix="isys.oss.aliyun-oss")
32 | public class AliyunOssYmlConfig {
33 |
34 | private String endpoint;
35 | private String publicBucketName;
36 | private String privateBucketName;
37 | private String accessKeyId;
38 | private String accessKeySecret;
39 | }
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayInterfaceDefineMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: WX_BAR
26 | *
27 | * @author zhuxiao
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class WxBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public WxBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.WX_BAR); //默认 wx_bar, 避免validate出现问题
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: ALI_BAR
26 | *
27 | * @author terrfly
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class AliBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public AliBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.ALI_BAR); //默认 ali_bar, 避免validate出现问题
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/plspay/PlspayPaymentService.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.pay.channel.plspay;
2 |
3 | import com.jeequan.jeepay.core.constants.CS;
4 | import com.jeequan.jeepay.core.entity.PayOrder;
5 | import com.jeequan.jeepay.pay.channel.AbstractPaymentService;
6 | import com.jeequan.jeepay.pay.model.MchAppConfigContext;
7 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
8 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
9 | import com.jeequan.jeepay.pay.util.PaywayUtil;
10 | import org.springframework.stereotype.Service;
11 |
12 | /**
13 | * 计全支付plus
14 | *
15 | * @author yurong
16 | * @site https://www.jeequan.com
17 | * @date 2022/8/11 15:37
18 | */
19 | @Service
20 | public class PlspayPaymentService extends AbstractPaymentService {
21 |
22 | @Override
23 | public String getIfCode() {
24 | return CS.IF_CODE.PLSPAY;
25 | }
26 |
27 | @Override
28 | public boolean isSupport(String wayCode) {
29 | return true;
30 | }
31 |
32 | @Override
33 | public String preCheck(UnifiedOrderRQ bizRQ, PayOrder payOrder) {
34 | return PaywayUtil.getRealPaywayService(this, payOrder.getWayCode()).preCheck(bizRQ, payOrder);
35 | }
36 |
37 | @Override
38 | public AbstractRS pay(UnifiedOrderRQ bizRQ, PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception {
39 | return PaywayUtil.getRealPaywayService(this, payOrder.getWayCode()).pay(bizRQ, payOrder, mchAppConfigContext);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/AbstractRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs;
17 |
18 | import lombok.Data;
19 |
20 | import jakarta.validation.constraints.NotBlank;
21 | import java.io.Serializable;
22 |
23 | /*
24 | * 基础请求参数
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:39
29 | */
30 | @Data
31 | public abstract class AbstractRQ implements Serializable {
32 |
33 | /** 版本号 **/
34 | @NotBlank(message="版本号不能为空")
35 | protected String version;
36 |
37 | /** 签名类型 **/
38 | @NotBlank(message="签名类型不能为空")
39 | protected String signType;
40 |
41 | /** 签名值 **/
42 | @NotBlank(message="签名值不能为空")
43 | protected String sign;
44 |
45 | /** 接口请求时间 **/
46 | @NotBlank(message="时间戳不能为空")
47 | protected String reqTime;
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/service/IOssService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.components.oss.service;
17 |
18 | import com.jeequan.jeepay.components.oss.constant.OssSavePlaceEnum;
19 | import org.springframework.web.multipart.MultipartFile;
20 |
21 | /**
22 | * OSSService 接口
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/7/12 18:18
27 | */
28 | public interface IOssService {
29 |
30 | /** 上传文件 & 生成下载/预览URL **/
31 | String upload2PreviewUrl(OssSavePlaceEnum ossSavePlaceEnum, MultipartFile multipartFile, String saveDirAndFileName);
32 |
33 | /** 将文件下载到本地
34 | * 返回是否 写入成功
35 | * false: 写入失败, 或者文件不存在
36 | * **/
37 | boolean downloadFile(OssSavePlaceEnum ossSavePlaceEnum, String source, String target);
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/IsvsubMchParams.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.core.model.params;
17 |
18 | import cn.hutool.core.util.StrUtil;
19 | import com.alibaba.fastjson.JSONObject;
20 |
21 | /*
22 | * 抽象类 特约商户参数定义
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 16:33
27 | */
28 | public abstract class IsvsubMchParams {
29 |
30 | public static IsvsubMchParams factory(String ifCode, String paramsStr){
31 |
32 | try {
33 | return (IsvsubMchParams)JSONObject.parseObject(paramsStr, Class.forName(IsvsubMchParams.class.getPackage().getName() +"."+ ifCode +"."+ StrUtil.upperFirst(ifCode) +"IsvsubMchParams"));
34 | } catch (ClassNotFoundException e) {
35 | e.printStackTrace();
36 | }
37 | return null;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/WebmvcConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.mgr.web;
17 |
18 | import org.springframework.beans.factory.annotation.Autowired;
19 | import org.springframework.context.annotation.Configuration;
20 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
21 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
22 |
23 | /*
24 | * webmvc配置
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:12
29 | */
30 | @Configuration
31 | public class WebmvcConfig implements WebMvcConfigurer {
32 |
33 | @Autowired
34 | private ApiResInterceptor apiResInterceptor;
35 |
36 | @Override
37 | public void addInterceptors(InterceptorRegistry registry) {
38 | registry.addInterceptor(apiResInterceptor);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/config/SystemYmlConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.mch.config;
17 |
18 | import lombok.Data;
19 | import org.springframework.boot.context.properties.ConfigurationProperties;
20 | import org.springframework.stereotype.Component;
21 |
22 | /**
23 | * 系统Yml配置参数定义Bean
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021-04-27 15:50
28 | */
29 | @Component
30 | @ConfigurationProperties(prefix="isys")
31 | @Data
32 | public class SystemYmlConfig {
33 |
34 | /** 是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时,应开启此配置或在nginx统一配置允许跨域] **/
35 | private Boolean allowCors;
36 |
37 | /** 生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。 **/
38 | private String jwtSecret;
39 |
40 | /** 是否内存缓存配置信息: true表示开启如支付网关地址/商户应用配置/服务商配置等, 开启后需检查MQ的广播模式是否正常; false表示直接查询DB. **/
41 | private Boolean cacheConfig;
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/RegKit.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.core.utils;
17 |
18 | /*
19 | *
20 | * 正则验证kit
21 | * @author terrfly
22 | * @site https://www.jeequan.com
23 | * @date 2021/6/8 16:56
24 | */
25 | public class RegKit {
26 |
27 | public static final String REG_MOBILE = "^1\\d{10}$"; //判断是否是手机号
28 | public static final String REG_ALIPAY_USER_ID = "^2088\\d{12}$"; //判断是支付宝用户Id 以2088开头的纯16位数字
29 |
30 | public static boolean isMobile(String str){
31 | return match(str, REG_MOBILE);
32 | }
33 |
34 | public static boolean isAlipayUserId(String str){
35 | return match(str, REG_ALIPAY_USER_ID);
36 | }
37 |
38 |
39 | /** 正则验证 */
40 | public static boolean match(String text, String reg){
41 | if(text == null) {
42 | return false;
43 | }
44 | return text.matches(reg);
45 | }
46 |
47 |
48 |
49 | }
50 |
--------------------------------------------------------------------------------
/jeepay-service/src/main/java/com/jeequan/jeepay/service/mapper/PayOrderMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.PayOrder;
20 | import org.apache.ibatis.annotations.Param;
21 |
22 | import java.util.List;
23 | import java.util.Map;
24 |
25 | /**
26 | *
27 | * 支付订单表 Mapper 接口
28 | *