Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
af7310ea
authored
Nov 14, 2018
by
chongli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分退款订单开票时要减去退款
parent
de764df5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/order/OrderListBean.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/order/OrderStatusBitEnum.java
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/order/OrderListBean.java
View file @
af7310ea
...
...
@@ -62,6 +62,11 @@ public class OrderListBean {
* 新加属性余额
*/
private
BigDecimal
prePayCardAmount
;
/**
* 退款金额
*/
private
BigDecimal
refundAmount
;
/**
* 新加属性兑换卷
*/
...
...
@@ -394,6 +399,13 @@ public class OrderListBean {
this
.
insuranceAmount
=
insuranceAmount
;
}
public
BigDecimal
getRefundAmount
()
{
return
refundAmount
;
}
public
void
setRefundAmount
(
BigDecimal
refundAmount
)
{
this
.
refundAmount
=
refundAmount
;
}
}
fun-common-vo/src/main/java/com/ctrip/fun/common/vo/order/OrderStatusBitEnum.java
View file @
af7310ea
...
...
@@ -179,6 +179,27 @@ public enum OrderStatusBitEnum {
return
value
;
}
public
static
String
getStatusDesc
(
int
processStatus
)
{
StringBuffer
sb
=
new
StringBuffer
(
""
);
for
(
OrderStatusBitEnum
orderStatusBitEnum
:
OrderStatusBitEnum
.
values
())
{
if
((
processStatus
&
orderStatusBitEnum
.
getValue
())==
orderStatusBitEnum
.
getValue
()){
sb
.
append
(
orderStatusBitEnum
.
getCname
());
sb
.
append
(
"-"
);
}
}
if
(
sb
.
length
()>
1
){
return
sb
.
substring
(
0
,
sb
.
length
()-
1
).
toString
();
}
else
{
return
sb
.
toString
();
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
getStatusDesc
(
7444
));
}
public
int
getValue
()
{
return
value
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment