Commit fef7bddf by 杨培锋

Merge branch 'feature/yangpeifeng' into 'master'

<新功能> 乐动电子化合同

See merge request !1
parents 072d62ef 4be40f50
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.jiejing.fitness</groupId> <groupId>com.jiejing.fitness</groupId>
<artifactId>fit-finance</artifactId> <artifactId>fit-finance</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>finance-api</artifactId> <artifactId>finance-api</artifactId>
<name>finance-api</name> <name>finance-api</name>
......
package com.jiejing.fitness.finance.api.pay.request; package com.jiejing.fitness.finance.api.pay.request;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.jiejing.common.swagger.EnumMapping;
import com.jiejing.fitness.enums.finance.PayOrderTypeEnum; import com.jiejing.fitness.enums.finance.PayOrderTypeEnum;
import com.jiejing.paycenter.common.enums.common.PayChannelEnums; import com.jiejing.paycenter.common.enums.common.PayChannelEnums;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -35,7 +37,8 @@ public class AppPayRequest { ...@@ -35,7 +37,8 @@ public class AppPayRequest {
@ApiModelProperty(name = "业务订单类型", required = true) @ApiModelProperty(name = "业务订单类型", required = true)
@NotNull(message = "业务订单类型不能为空") @NotNull(message = "业务订单类型不能为空")
private PayOrderTypeEnum orderType; @EnumMapping(enumClass = PayOrderTypeEnum.class)
private String orderType;
@ApiModelProperty(name = "商品名称", required = true) @ApiModelProperty(name = "商品名称", required = true)
@NotBlank(message = "商品名称不能为空") @NotBlank(message = "商品名称不能为空")
......
package com.jiejing.fitness.finance.api.pay.request; package com.jiejing.fitness.finance.api.pay.request;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jiejing.common.swagger.EnumMapping;
import com.jiejing.fitness.enums.finance.PayOrderTypeEnum; import com.jiejing.fitness.enums.finance.PayOrderTypeEnum;
import com.jiejing.paycenter.common.enums.common.PayChannelEnums; import com.jiejing.paycenter.common.enums.common.PayChannelEnums;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -35,7 +36,8 @@ public class NativePayRequest { ...@@ -35,7 +36,8 @@ public class NativePayRequest {
@ApiModelProperty(name = "业务订单类型", required = true) @ApiModelProperty(name = "业务订单类型", required = true)
@NotNull(message = "业务订单类型不能为空") @NotNull(message = "业务订单类型不能为空")
private PayOrderTypeEnum orderType; @EnumMapping(enumClass = PayOrderTypeEnum.class)
private String orderType;
@ApiModelProperty(name = "商品名称", required = true) @ApiModelProperty(name = "商品名称", required = true)
@NotBlank(message = "商品名称不能为空") @NotBlank(message = "商品名称不能为空")
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.jiejing.fitness</groupId> <groupId>com.jiejing.fitness</groupId>
<artifactId>fit-finance</artifactId> <artifactId>fit-finance</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>app</artifactId> <artifactId>app</artifactId>
<name>app</name> <name>app</name>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.jiejing.fitness</groupId> <groupId>com.jiejing.fitness</groupId>
<artifactId>fit-finance</artifactId> <artifactId>fit-finance</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>fit-finance</name> <name>fit-finance</name>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.jiejing.fitness</groupId> <groupId>com.jiejing.fitness</groupId>
<artifactId>fit-finance</artifactId> <artifactId>fit-finance</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>repository</artifactId> <artifactId>repository</artifactId>
<name>repository</name> <name>repository</name>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.jiejing.fitness</groupId> <groupId>com.jiejing.fitness</groupId>
<artifactId>fit-finance</artifactId> <artifactId>fit-finance</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>service</artifactId> <artifactId>service</artifactId>
<name>service</name> <name>service</name>
......
...@@ -227,7 +227,7 @@ public class PayConvert { ...@@ -227,7 +227,7 @@ public class PayConvert {
req.setPayType(PayTypeEnums.NATIVE); req.setPayType(PayTypeEnums.NATIVE);
req.setGoods(params.getGoods()); req.setGoods(params.getGoods());
req.setOrderNo(params.getOrderNo()); req.setOrderNo(params.getOrderNo());
req.setOrderType(params.getOrderType().getCode()); req.setOrderType(params.getOrderType());
req.setTimeExpire(params.getTimeExpire()); req.setTimeExpire(params.getTimeExpire());
req.setTradingTime(new Date()); req.setTradingTime(new Date());
req.setExtra(params.getExtra()); req.setExtra(params.getExtra());
...@@ -242,7 +242,7 @@ public class PayConvert { ...@@ -242,7 +242,7 @@ public class PayConvert {
req.setPayType(PayTypeEnums.APP); req.setPayType(PayTypeEnums.APP);
req.setGoods(params.getGoods()); req.setGoods(params.getGoods());
req.setOrderNo(params.getOrderNo()); req.setOrderNo(params.getOrderNo());
req.setOrderType(params.getOrderType().getCode()); req.setOrderType(params.getOrderType());
req.setTimeExpire(params.getTimeExpire()); req.setTimeExpire(params.getTimeExpire());
req.setTradingTime(new Date()); req.setTradingTime(new Date());
req.setExtra(params.getExtra()); req.setExtra(params.getExtra());
......
...@@ -35,7 +35,7 @@ public class AppPayParams { ...@@ -35,7 +35,7 @@ public class AppPayParams {
@ApiModelProperty(name = "业务订单类型", required = true) @ApiModelProperty(name = "业务订单类型", required = true)
@NotNull(message = "业务订单类型不能为空") @NotNull(message = "业务订单类型不能为空")
private PayOrderTypeEnum orderType; private String orderType;
@ApiModelProperty(name = "商品名称", required = true) @ApiModelProperty(name = "商品名称", required = true)
@NotBlank(message = "商品名称不能为空") @NotBlank(message = "商品名称不能为空")
......
package com.jiejing.fitness.finance.service.pay.params; package com.jiejing.fitness.finance.service.pay.params;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jiejing.common.swagger.EnumMapping;
import com.jiejing.fitness.enums.finance.PayOrderTypeEnum; import com.jiejing.fitness.enums.finance.PayOrderTypeEnum;
import com.jiejing.paycenter.common.enums.common.PayChannelEnums; import com.jiejing.paycenter.common.enums.common.PayChannelEnums;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -35,7 +36,8 @@ public class NativePayParams { ...@@ -35,7 +36,8 @@ public class NativePayParams {
@ApiModelProperty(name = "业务订单类型", required = true) @ApiModelProperty(name = "业务订单类型", required = true)
@NotNull(message = "业务订单类型不能为空") @NotNull(message = "业务订单类型不能为空")
private PayOrderTypeEnum orderType; @EnumMapping(enumClass = PayOrderTypeEnum.class)
private String orderType;
@ApiModelProperty(name = "商品名称", required = true) @ApiModelProperty(name = "商品名称", required = true)
@NotBlank(message = "商品名称不能为空") @NotBlank(message = "商品名称不能为空")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment