Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
06bf3691
Commit
06bf3691
authored
Nov 26, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加价格类型
parent
4007f95d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
247 additions
and
4 deletions
+247
-4
InProgressVO.java
.../com/xxfc/platform/order/pojo/calculate/InProgressVO.java
+5
-0
OrderCalculateBiz.java
.../com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
+240
-3
DictionaryKey.java
...a/com/xxfc/platform/universal/constant/DictionaryKey.java
+1
-0
CalculateInterface.java
...com/xxfc/platform/universal/inter/CalculateInterface.java
+1
-1
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/calculate/InProgressVO.java
View file @
06bf3691
...
@@ -45,6 +45,11 @@ public class InProgressVO {
...
@@ -45,6 +45,11 @@ public class InProgressVO {
*/
*/
Integer
usedDays
=
0
;
Integer
usedDays
=
0
;
/**
* 已使用小时数
*/
Integer
usedHours
=
0
;
/**
/**
* 已使用的金额
* 已使用的金额
*/
*/
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
View file @
06bf3691
This diff is collapsed.
Click to expand it.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/constant/DictionaryKey.java
View file @
06bf3691
...
@@ -62,6 +62,7 @@ public class DictionaryKey {
...
@@ -62,6 +62,7 @@ public class DictionaryKey {
public
static
final
String
DAMAGE_SAFE
=
"DAMAGE_SAFE"
;
public
static
final
String
DAMAGE_SAFE
=
"DAMAGE_SAFE"
;
public
static
final
String
ILLEGAL_RESERVE
=
"ILLEGAL_RESERVE"
;
public
static
final
String
ILLEGAL_RESERVE
=
"ILLEGAL_RESERVE"
;
public
static
final
String
RENT_TIME_BUFFER
=
"RENT_TIME_BUFFER"
;
public
static
final
String
RENT_TIME_BUFFER
=
"RENT_TIME_BUFFER"
;
public
static
final
String
RENT_TIME_HOUR_BUFFER
=
"RENT_TIME_HOUR_BUFFER"
;
/**
/**
* 旅游:保险费用
* 旅游:保险费用
...
...
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/inter/CalculateInterface.java
View file @
06bf3691
...
@@ -58,7 +58,7 @@ public interface CalculateInterface {
...
@@ -58,7 +58,7 @@ public interface CalculateInterface {
Map
<
String
,
Dictionary
>
dictionaryMap
=
getThirdFeign
().
dictionaryGetAll4Map
().
getData
();
Map
<
String
,
Dictionary
>
dictionaryMap
=
getThirdFeign
().
dictionaryGetAll4Map
().
getData
();
Long
hourLong
=
(
60L
*
60L
*
1000L
);
Long
hourLong
=
(
60L
*
60L
*
1000L
);
//Long dayLong = hourLong * 24;
//Long dayLong = hourLong * 24;
Long
bufferLong
=
0L
;
Long
bufferLong
=
Long
.
valueOf
(
dictionaryMap
.
get
(
APP_ORDER
+
"_"
+
DictionaryKey
.
RENT_TIME_HOUR_BUFFER
).
getDetail
())
*
hourLong
;
//计算:使用天数 当前时间 - 开始时间的0时0分0秒
//计算:使用天数 当前时间 - 开始时间的0时0分0秒
Long
bookTimeLag
=
endLong
-
startLong
;
Long
bookTimeLag
=
endLong
-
startLong
;
...
...
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