Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
Details
Activity
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
huluobin
gogirl-miniapp-backend
Commits
ffb5e03b
Commit
ffb5e03b
authored
Mar 17, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
32b07209
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
OrderServe.java
src/main/java/com/gogirl/domain/order/serve/OrderServe.java
+12
-1
ScheduleServe.java
...ain/java/com/gogirl/domain/order/serve/ScheduleServe.java
+12
-1
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+4
-0
No files found.
src/main/java/com/gogirl/domain/order/serve/OrderServe.java
View file @
ffb5e03b
...
@@ -217,8 +217,17 @@ public class OrderServe implements Serializable {
...
@@ -217,8 +217,17 @@ public class OrderServe implements Serializable {
// leisureDiscountPrice = servePrice.multiply(discountRate);
// leisureDiscountPrice = servePrice.multiply(discountRate);
}
}
}
else
{
}
else
{
if
(
discountRate
==
null
)
{
//没有活动价格
if
(
promotionPrice
==
null
)
{
price
=
produceCurrentPrice
;
}
//有活动价
else
{
price
=
produceCurrentPrice
.
min
(
promotionPrice
);
}
}
else
{
leisurePrice
=
produceBargainPrice
.
multiply
(
BigDecimal
.
ONE
.
subtract
(
discountRate
));
leisurePrice
=
produceBargainPrice
.
multiply
(
BigDecimal
.
ONE
.
subtract
(
discountRate
));
// leisureDiscountPrice = produceBargainPrice.multiply(discountRate);
//没有活动价格
//没有活动价格
if
(
promotionPrice
==
null
)
{
if
(
promotionPrice
==
null
)
{
price
=
leisurePrice
.
min
(
produceCurrentPrice
);
price
=
leisurePrice
.
min
(
produceCurrentPrice
);
...
@@ -228,6 +237,8 @@ public class OrderServe implements Serializable {
...
@@ -228,6 +237,8 @@ public class OrderServe implements Serializable {
price
=
leisurePrice
.
min
(
produceCurrentPrice
).
min
(
promotionPrice
);
price
=
leisurePrice
.
min
(
produceCurrentPrice
).
min
(
promotionPrice
);
}
}
}
}
}
}
}
public
Boolean
isActivity
()
{
public
Boolean
isActivity
()
{
...
...
src/main/java/com/gogirl/domain/order/serve/ScheduleServe.java
View file @
ffb5e03b
...
@@ -194,8 +194,17 @@ public class ScheduleServe implements Serializable {
...
@@ -194,8 +194,17 @@ public class ScheduleServe implements Serializable {
// leisureDiscountPrice = servePrice.multiply(discountRate);
// leisureDiscountPrice = servePrice.multiply(discountRate);
}
}
}
else
{
}
else
{
if
(
discountRate
==
null
)
{
//没有活动价格
if
(
promotionPrice
==
null
)
{
price
=
produceCurrentPrice
;
}
//有活动价
else
{
price
=
produceCurrentPrice
.
min
(
promotionPrice
);
}
}
else
{
leisurePrice
=
produceBargainPrice
.
multiply
(
BigDecimal
.
ONE
.
subtract
(
discountRate
));
leisurePrice
=
produceBargainPrice
.
multiply
(
BigDecimal
.
ONE
.
subtract
(
discountRate
));
// leisureDiscountPrice = produceBargainPrice.multiply(discountRate);
//没有活动价格
//没有活动价格
if
(
promotionPrice
==
null
)
{
if
(
promotionPrice
==
null
)
{
price
=
leisurePrice
.
min
(
produceCurrentPrice
);
price
=
leisurePrice
.
min
(
produceCurrentPrice
);
...
@@ -205,6 +214,8 @@ public class ScheduleServe implements Serializable {
...
@@ -205,6 +214,8 @@ public class ScheduleServe implements Serializable {
price
=
leisurePrice
.
min
(
produceCurrentPrice
).
min
(
promotionPrice
);
price
=
leisurePrice
.
min
(
produceCurrentPrice
).
min
(
promotionPrice
);
}
}
}
}
}
}
}
public
Boolean
isActivity
()
{
public
Boolean
isActivity
()
{
...
...
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
ffb5e03b
...
@@ -216,7 +216,11 @@ public class Schedule {
...
@@ -216,7 +216,11 @@ public class Schedule {
Customer
customer
=
customerService
.
getById
(
scheduleManage
.
getScheduledUser
());
Customer
customer
=
customerService
.
getById
(
scheduleManage
.
getScheduledUser
());
StoreManage
storeManage
=
storeManageService
.
getById
(
scheduleManage
.
getDepartmentId
());
StoreManage
storeManage
=
storeManageService
.
getById
(
scheduleManage
.
getDepartmentId
());
if
(
customer
!=
null
)
{
if
(
customer
!=
null
)
{
try
{
subscribeService
.
sendOverScheduleMsg
(
customer
.
getOpenid1
(),
scheduleServeList
.
get
(
0
).
getServeName
(),
scheduleManage
.
getArriveTime
(),
storeManage
.
getName
(),
storeManage
.
getAddress
());
subscribeService
.
sendOverScheduleMsg
(
customer
.
getOpenid1
(),
scheduleServeList
.
get
(
0
).
getServeName
(),
scheduleManage
.
getArriveTime
(),
storeManage
.
getName
(),
storeManage
.
getAddress
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
}
});
});
...
...
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