Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
a801076f
Commit
a801076f
authored
Apr 26, 2021
by
hanghang.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
华莱士
parent
9e295cc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
19 deletions
+39
-19
order-application-service/src/main/java/cn/freemud/adapter/SpellGroupOrderAdapter.java
+2
-2
order-application-service/src/main/java/cn/freemud/entities/dto/promotion/QuerySpellGroupVo.java
+36
-16
order-application-service/src/main/java/cn/freemud/entities/vo/CreateSpellGroupOrderReq.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/SpellGroupOrderAdapter.java
View file @
a801076f
...
...
@@ -58,7 +58,7 @@ public class SpellGroupOrderAdapter {
createOrderRequest
.
setStoreNameEn
(
storeInfo
.
getStoreNameEn
());
createOrderRequest
.
setUserId
(
createSpellGroupOrderDto
.
getUserId
());
createOrderRequest
.
setUserName
(
createSpellGroupOrderDto
.
getNickName
());
createOrderRequest
.
setOrderType
(
OrderType
.
SPELL_GROUP
.
getCode
());
createOrderRequest
.
setOrderType
(
OrderType
.
MALL
.
getCode
());
createOrderRequest
.
setPayType
(
PayType
.
ONLINE_PAY
.
getCode
());
PayChannelType
payChannelType
=
PayChannelType
.
getByIndex
(
createSpellGroupOrderDto
.
getPayChannelType
());
if
(
payChannelType
!=
null
)
{
...
...
@@ -67,7 +67,7 @@ public class SpellGroupOrderAdapter {
createOrderRequest
.
setPayChannelType
(
payChannelType
.
getIndex
());
}
//运费
long
freight
=
100
0
;
long
freight
=
0
;
//判断是否包邮,包邮的话运费为0 todo
if
(!
createSpellGroupOrderDto
.
getDeliveryTemplateInfoVo
().
getIsDispatchFree
()
==
true
)
{
freight
=
createSpellGroupOrderDto
.
getDeliveryTemplateInfoVo
().
getFreight
();
...
...
order-application-service/src/main/java/cn/freemud/entities/dto/promotion/QuerySpellGroupVo.java
View file @
a801076f
...
...
@@ -45,22 +45,42 @@ public class QuerySpellGroupVo {
*/
@Data
public
static
class
Group
{
/**
* 团状态:0-组团中,1-已成团,2-成团失败
*/
private
Integer
groupStatus
;
/**
* 拼团结束时间:2021-04-21 23:59:59
*/
private
String
endTime
;
/**
* 差多少人成团
*/
private
Integer
lessPeople
;
/**
* 活动开始时间如:2021-04-15 00:00:00
*/
private
String
startTime
;
/**
* 团号
*/
private
String
groupId
;
/**
* 活动号
*/
private
String
activeId
;
/**
* 团状态:0-组团中,1-已成团,2-成团失败
*/
private
Integer
groupStatus
;
/**
* 开团开始时间
*/
private
String
startTime
;
/**
* 开团结束时间
*/
private
String
endTime
;
/**
* 差多少人成团
*/
private
Integer
lessPeople
;
/**
* 已参团人数
*/
private
Integer
count
;
/**
* 成团时间
*/
private
String
groupTime
;
/**
* 剩余时间戳毫秒
*/
private
Long
time
;
}
/**
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/CreateSpellGroupOrderReq.java
View file @
a801076f
...
...
@@ -54,7 +54,7 @@ public class CreateSpellGroupOrderReq {
* 订单类型 1 到店自取 2 外卖 枚举CreateOrderType
*/
@Builder
.
Default
private
Integer
orderType
=
6
;
private
Integer
orderType
=
3
;
@Builder
.
Default
@ApiModelProperty
(
value
=
"订单特殊类型 1:普通订单 2:拼团订单 3:秒杀订单 4:拼单订单"
)
...
...
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