|
@@ -67,57 +67,72 @@ public class FSController extends BaseController {
|
67
|
67
|
@RequestMapping(value = "/car/apiThirdPartyMonthCardPay", method = RequestMethod.POST)
|
68
|
68
|
@ApiOperation(value = "月卡续费", notes = "月卡续费")
|
69
|
69
|
@ApiImplicitParams({
|
70
|
|
- @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Phone手机号;RenewDayType续费日期类型( 3:年 2:月 1:日, 选入对应的数字);" +
|
71
|
|
- "RenewDay续费日期数目;" +
|
72
|
|
- "PayStyle交易方式(中文描述),例如:微信、 支付宝、 银联;" +
|
73
|
|
- "CarNo车牌号;" +
|
74
|
|
- "CardNo停车卡号;" +
|
75
|
|
- "RechargeAmt充值续费金额;"),
|
|
70
|
+// @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Phone手机号;RenewDayType续费日期类型( 3:年 2:月 1:日, 选入对应的数字);" +
|
|
71
|
+// "RenewDay续费日期数目;" +
|
|
72
|
+// "PayStyle交易方式(中文描述),例如:微信、 支付宝、 银联;" +
|
|
73
|
+// "CarNo车牌号;" +
|
|
74
|
+// "CardNo停车卡号;" +
|
|
75
|
+// "RechargeAmt充值续费金额;"),
|
76
|
76
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
|
77
|
77
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
|
78
|
78
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
|
79
|
79
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
|
|
80
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Phone", value = "手机号"),
|
|
81
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDayType", value = "续费日期类型( 3:年 2:月 1:日, 选入对应的数字)"),
|
|
82
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RenewDay", value = "续费日期数目"),
|
|
83
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "PayStyle", value = "交易方式(中文描述),例如:微信、 支付宝、 银联"),
|
|
84
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
|
|
85
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
|
|
86
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "RechargeAmt", value = "充值续费金额"),
|
80
|
87
|
})
|
81
|
|
- public ResponseBean apiThirdPartyMonthCardPay(@RequestBody String parameter) {
|
|
88
|
+ public ResponseBean apiThirdPartyMonthCardPay(@RequestParam(value = "Phone") String Phone,
|
|
89
|
+ @RequestParam(value = "RenewDayType") String RenewDayType,
|
|
90
|
+ @RequestParam(value = "RenewDay") String RenewDay,
|
|
91
|
+ @RequestParam(value = "PayStyle") String PayStyle,
|
|
92
|
+ @RequestParam(value = "CarNo") String CarNo,
|
|
93
|
+ @RequestParam(value = "CardNo", required = false) String CardNo,
|
|
94
|
+ @RequestParam(value = "RechargeAmt") String RechargeAmt) {
|
82
|
95
|
ResponseBean responseBean = new ResponseBean();
|
83
|
|
- JSONObject jsonObject = JSONObject.parseObject(parameter);
|
84
|
|
- responseBean = iFuShiService.apiThirdPartyMonthCardPay(jsonObject.getString("Phone"),
|
85
|
|
- jsonObject.getString("RenewDayType"),
|
86
|
|
- jsonObject.getString("RenewDay"),
|
87
|
|
- jsonObject.getString("PayStyle"),
|
88
|
|
- jsonObject.getString("CarNo"),
|
89
|
|
- jsonObject.getString("CardNo"),
|
90
|
|
- jsonObject.getString("RechargeAmt"));
|
|
96
|
+ responseBean = iFuShiService.apiThirdPartyMonthCardPay(Phone, RenewDayType,
|
|
97
|
+ RenewDay, PayStyle, CarNo, CardNo, RechargeAmt);
|
91
|
98
|
return responseBean;
|
92
|
99
|
}
|
93
|
100
|
|
94
|
101
|
@RequestMapping(value = "/car/apiThirdPartyTemporaryCardPay", method = RequestMethod.POST)
|
95
|
102
|
@ApiOperation(value = "第三方临时卡上发缴费", notes = "第三方临时卡上发缴费")
|
96
|
103
|
@ApiImplicitParams({
|
97
|
|
- @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Amount应缴金额(单位元);" +
|
98
|
|
- "ActualAmount实缴金额(单位元);" +
|
99
|
|
- "DeductionAmount抵扣金额(单位元);" +
|
100
|
|
- "Reason抵扣原因;" +
|
101
|
|
- "PayStyle交易方式(汉字描述),例如:微信、支付宝、银联;" +
|
102
|
|
- "CarNo车牌号;" +
|
103
|
|
- "CardNo停车卡号;" +
|
104
|
|
- "CouponList使用的优惠券列表"),
|
|
104
|
+// @ApiImplicitParam(dataTypeClass = String.class, paramType = "body", name = "parameter", value = "Amount应缴金额(单位元);" +
|
|
105
|
+// "ActualAmount实缴金额(单位元);" +
|
|
106
|
+// "DeductionAmount抵扣金额(单位元);" +
|
|
107
|
+// "Reason抵扣原因;" +
|
|
108
|
+// "PayStyle交易方式(汉字描述),例如:微信、支付宝、银联;" +
|
|
109
|
+// "CarNo车牌号;" +
|
|
110
|
+// "CardNo停车卡号;" +
|
|
111
|
+// "CouponList使用的优惠券列表"),
|
105
|
112
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "appid", value = "appid"),
|
106
|
113
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "datetime", value = "时间戳"),
|
107
|
114
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "encrypt", value = "加密方式"),
|
108
|
115
|
@ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "sign", value = "签名"),
|
|
116
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Amount", value = "应缴金额(单位元)"),
|
|
117
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "ActualAmount", value = "实缴金额(单位元)"),
|
|
118
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "DeductionAmount", value = "抵扣金额(单位元)"),
|
|
119
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "Reason", value = "抵扣原因"),
|
|
120
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "PayStyle", value = "交易方式(汉字描述),例如:微信、支付宝、银联"),
|
|
121
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CarNo", value = "车牌号"),
|
|
122
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CardNo", value = "停车卡号"),
|
|
123
|
+ @ApiImplicitParam(dataTypeClass = String.class, paramType = "form", name = "CouponList", value = "使用的优惠券列表"),
|
109
|
124
|
})
|
110
|
|
- public ResponseBean apiThirdPartyTemporaryCardPay(@RequestBody String parameter) {
|
|
125
|
+ public ResponseBean apiThirdPartyTemporaryCardPay(@RequestParam(value = "Amount") String Amount,
|
|
126
|
+ @RequestParam(value = "ActualAmount") String ActualAmount,
|
|
127
|
+ @RequestParam(value = "DeductionAmount") String DeductionAmount,
|
|
128
|
+ @RequestParam(value = "Reason", required = false) String Reason,
|
|
129
|
+ @RequestParam(value = "PayStyle") String PayStyle,
|
|
130
|
+ @RequestParam(value = "CarNo") String CarNo,
|
|
131
|
+ @RequestParam(value = "CardNo", required = false) String CardNo,
|
|
132
|
+ @RequestParam(value = "CouponList", required = false) String CouponList) {
|
111
|
133
|
ResponseBean responseBean = new ResponseBean();
|
112
|
|
- JSONObject jsonObject = JSONObject.parseObject(parameter);
|
113
|
|
- responseBean = iFuShiService.apiThirdPartyTemporaryCardPay(jsonObject.getString("Amount"),
|
114
|
|
- jsonObject.getString("ActualAmount"),
|
115
|
|
- jsonObject.getString("DeductionAmount"),
|
116
|
|
- jsonObject.getString("Reason"),
|
117
|
|
- jsonObject.getString("PayStyle"),
|
118
|
|
- jsonObject.getString("CarNo"),
|
119
|
|
- jsonObject.getString("CardNo"),
|
120
|
|
- jsonObject.getString("CouponList"));
|
|
134
|
+ responseBean = iFuShiService.apiThirdPartyTemporaryCardPay(Amount, ActualAmount, DeductionAmount,
|
|
135
|
+ Reason, PayStyle, CarNo, CardNo, CouponList);
|
121
|
136
|
return responseBean;
|
122
|
137
|
}
|
123
|
138
|
|