Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
a4bb8202
提交
a4bb8202
authored
11月 05, 2023
作者:
huningning
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整支付回传数据格式
上级
10f7594e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
241 行增加
和
7 行删除
+241
-7
NotifyParam.java
.../main/java/com/clx/performance/param/pay/NotifyParam.java
+11
-7
NotifyString.java
...main/java/com/clx/performance/param/pay/NotifyString.java
+64
-0
PayResult.java
...rc/main/java/com/clx/performance/param/pay/PayResult.java
+166
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/param/pay/NotifyParam.java
浏览文件 @
a4bb8202
package
com
.
clx
.
performance
.
param
.
pay
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.msl.common.enums.ResultEnum
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
import
org.apache.poi.ss.formula.functions.T
;
@ApiModel
(
description
=
"货主绑卡"
)
//
@ApiModel(description = "货主绑卡")
@Getter
@Setter
@ToString
@NoArgsConstructor
public
class
NotifyParam
{
public
class
NotifyParam
{
/** 支付操作 参考<MessageTypeEnum> */
private
Integer
action
;
/** 交易单号 */
...
...
@@ -23,12 +21,18 @@ public class NotifyParam {
/** 出错时的交易单元编号 */
private
String
errorNo
;
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
private
Integer
code
;
// 返回结果代码,0为成功
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
private
Long
total
;
//总共记录数
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
private
Integer
pageNum
;
//总共页数
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
private
String
msg
;
private
T
data
;
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
private
String
data
;
}
performance-api/src/main/java/com/clx/performance/param/pay/NotifyString.java
0 → 100644
浏览文件 @
a4bb8202
package
com
.
clx
.
performance
.
param
.
pay
;
import
com.msl.common.enums.ResultEnum
;
/**
*
* @author xujianke
* @date 2017年6月01日
* @description
*/
public
class
NotifyString
extends
PayResult
<
String
>
{
/** 支付操作 参考<MessageTypeEnum> */
private
Integer
action
;
/** 交易单号 */
private
String
orderNo
;
/** 支付请求唯一ID */
private
String
uuid
;
/** 出错时的交易单元编号 */
private
String
errorNo
;
public
NotifyString
(){
super
();
}
public
NotifyString
(
PayResult
<
String
>
ret
){
this
.
setCode
(
ret
.
getCode
());
this
.
setMsg
(
ret
.
getMsg
());
this
.
setData
(
ret
.
getData
());
}
public
NotifyString
(
ResultEnum
e
)
{
super
(
e
);
}
public
String
getOrderNo
()
{
return
orderNo
;
}
public
void
setOrderNo
(
String
orderNo
)
{
this
.
orderNo
=
orderNo
;
}
public
String
getUuid
()
{
return
uuid
;
}
public
void
setUuid
(
String
uuid
)
{
this
.
uuid
=
uuid
;
}
public
Integer
getAction
()
{
return
action
;
}
public
void
setAction
(
Integer
action
)
{
this
.
action
=
action
;
}
public
String
getErrorNo
()
{
return
errorNo
;
}
public
void
setErrorNo
(
String
errorNo
)
{
this
.
errorNo
=
errorNo
;
}
@Override
public
String
toString
()
{
return
"NotifyString [action="
+
action
+
", orderNo="
+
orderNo
+
", uuid="
+
uuid
+
", errorNo="
+
errorNo
+
", toString()="
+
super
.
toString
()
+
"]"
;
}
}
performance-api/src/main/java/com/clx/performance/param/pay/PayResult.java
0 → 100644
浏览文件 @
a4bb8202
package
com
.
clx
.
performance
.
param
.
pay
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.msl.common.enums.ResultEnum
;
/**
*
* 类: Result
* 描述:接口返回结果类
* @author wangjf
* 时间:2017年3月23日下午3:46:50
* 版本:v1.0
* 修改人:wangjf
*/
public
class
PayResult
<
T
>
{
private
Integer
code
;
// 返回结果代码,0为成功
/**
* 返回结果代码
* 0为成功 ,其他代码请参照代码文档
* @return
*/
public
Integer
getCode
()
{
return
code
;
}
private
Long
total
;
//总共记录数
private
Integer
pageNum
;
//总共页数
/**
* 0代表成功,其他代码请参考《返回值说明文档》
* 请务必按规定填写!
* @param code 结果代码
*/
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
/**
* 错误消息,接口中的错误处理,请务必填写错误消息<br/>
* 当成功时消息应为“success”
* @param msg 错误消息
*/
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
T
getData
()
{
return
data
;
}
public
void
setData
(
T
data
)
{
this
.
data
=
data
;
}
private
String
msg
;
private
T
data
;
/**
* 默认code = 0,<br/>
* msg = "success"
*/
public
PayResult
()
{
this
.
code
=
0
;
this
.
msg
=
"success"
;
}
/**
* 默认code = 0,
* msg = "success",<br/>
* 当成功返回结果时,可使用此方法,直接将返回结果填写即可
* @param data ,返回结果
*/
public
PayResult
(
T
data
)
{
this
.
code
=
0
;
this
.
msg
=
"success"
;
this
.
data
=
data
;
}
/**
* 查询列表返回成功
* @param data
* @param pageNum
* @param total
*/
public
PayResult
(
T
data
,
Integer
pageNum
,
Long
total
)
{
this
.
code
=
0
;
this
.
msg
=
"success"
;
this
.
data
=
data
;
this
.
pageNum
=
pageNum
;
this
.
total
=
total
;
}
/**
* 产生错误时,需要在枚举中拼接自定义返回的内容
* @param e
* @param msg
*/
public
PayResult
(
ResultEnum
e
,
String
msg
)
{
this
.
code
=
e
.
getCode
();
this
.
msg
=
String
.
format
(
e
.
getMsg
(),
msg
);
}
/**
* 产生错误时,可以使用此构造方法,在new时直接填写错误代码及消息即可
* @param code
* @param msg
*/
public
PayResult
(
Integer
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
PayResult
(
Integer
code
,
String
msg
,
T
data
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
data
=
data
;
}
@JsonIgnore
public
void
setResultEnum
(
ResultEnum
e
){
this
.
code
=
e
.
getCode
();
this
.
msg
=
e
.
getMsg
();
}
public
PayResult
(
ResultEnum
e
)
{
this
.
code
=
e
.
getCode
();
this
.
msg
=
e
.
getMsg
();
}
public
PayResult
(
T
data
,
ResultEnum
e
)
{
this
.
code
=
e
.
getCode
();
this
.
msg
=
e
.
getMsg
();
this
.
data
=
data
;
}
public
Long
getTotal
()
{
return
total
;
}
public
void
setTotal
(
Long
total
)
{
this
.
total
=
total
;
}
public
Integer
getPageNum
()
{
return
pageNum
;
}
public
void
setPageNum
(
Integer
pageNum
)
{
this
.
pageNum
=
pageNum
;
}
@Override
public
String
toString
()
{
return
"Result [code="
+
code
+
", msg="
+
msg
+
", data="
+
data
+
"]"
;
}
/**
* 是否成功
* @return
*/
public
boolean
succeed
()
{
return
code
!=
null
&&
code
==
0
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论