Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
4299c2f7
Commit
4299c2f7
authored
Dec 09, 2020
by
machengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
64b65468
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
0 deletions
+136
-0
OrderMethodEnum.java
...on/src/main/java/com/jz/common/enums/OrderMethodEnum.java
+68
-0
PaymentMethodEnum.java
.../src/main/java/com/jz/common/enums/PaymentMethodEnum.java
+68
-0
No files found.
jz-dm-common/src/main/java/com/jz/common/enums/OrderMethodEnum.java
0 → 100644
View file @
4299c2f7
package
com
.
jz
.
common
.
enums
;
/**
* 订单方式
*
* @author Bellamy
* @since 2020-12-09 14:30:23
*/
public
enum
OrderMethodEnum
{
/**
* 年
*/
YEAR
(
"YEAR"
,
"01"
),
/**
* 季
*/
SEASON
(
"SEASON"
,
"02"
),
/**
* 月
*/
MONTH
(
"MONTH"
,
"03"
),
/**
* 月
*/
SECOND
(
"SECOND"
,
"04"
),
;
private
String
code
;
private
String
value
;
OrderMethodEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
OrderMethodEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
OrderMethodEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/enums/PaymentMethodEnum.java
0 → 100644
View file @
4299c2f7
package
com
.
jz
.
common
.
enums
;
/**
* 支付方式
*
* @author Bellamy
* @since 2020-12-09 14:30:23
*/
public
enum
PaymentMethodEnum
{
/**
* 余额
*/
YE
(
"YE"
,
"01"
),
/**
* 支付宝
*/
ZFB
(
"ZFB"
,
"02"
),
/**
* 微信
*/
WX
(
"WX"
,
"03"
),
/**
* 其他
*/
OTHER
(
"OTHER"
,
"04"
),
;
private
String
code
;
private
String
value
;
PaymentMethodEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
PaymentMethodEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
PaymentMethodEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
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