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
7db9d5ad
Commit
7db9d5ad
authored
Feb 11, 2022
by
程飞祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[新增] 添加获取餐盒费接口
parent
3ae06873
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
35 deletions
+3
-35
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
+1
-1
order-application-service/src/main/java/cn/freemud/entities/vo/order/GetOrderConfigResponseVo.java
+0
-31
order-application-service/src/main/java/cn/freemud/service/impl/OrderAdapterServiceImpl.java
+2
-3
No files found.
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
View file @
7db9d5ad
...
@@ -552,7 +552,7 @@ public class OrderController {
...
@@ -552,7 +552,7 @@ public class OrderController {
*/
*/
@PostMapping
(
"/orderConfig/get"
)
@PostMapping
(
"/orderConfig/get"
)
@ApiAnnotation
(
logMessage
=
"/orderConfig/get"
)
@ApiAnnotation
(
logMessage
=
"/orderConfig/get"
)
public
BaseResponse
<
GetOrderConfigResponseVo
>
getOrderConfig
(
@Validated
@LogParams
@RequestBody
GetOrderConfigRequestVo
request
){
public
BaseResponse
<
String
>
getOrderConfig
(
@Validated
@LogParams
@RequestBody
GetOrderConfigRequestVo
request
){
return
ResponseUtil
.
success
(
orderAdapterService
.
getOrderConfig
(
request
));
return
ResponseUtil
.
success
(
orderAdapterService
.
getOrderConfig
(
request
));
}
}
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/order/GetOrderConfigResponseVo.java
deleted
100644 → 0
View file @
3ae06873
package
cn
.
freemud
.
entities
.
vo
.
order
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @description:
* @author: chengfeixiang<feixiang.cheng @ freemud.cn>
* @date: 2022/1/25 15:08
* @version: v1.0
* @copyright: 2022 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目的
*/
@Data
public
class
GetOrderConfigResponseVo
{
private
List
<
Detail
>
collectType
;
@Data
private
static
class
Detail
{
@ApiModelProperty
(
"订单价格,单位:分"
)
private
Integer
orderAmount
;
@ApiModelProperty
(
"餐盒费,单位:分"
)
private
Integer
fee
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/OrderAdapterServiceImpl.java
View file @
7db9d5ad
...
@@ -417,7 +417,7 @@ public class OrderAdapterServiceImpl {
...
@@ -417,7 +417,7 @@ public class OrderAdapterServiceImpl {
/**
/**
* 获取餐盒费配置
* 获取餐盒费配置
*/
*/
public
GetOrderConfigResponseVo
getOrderConfig
(
GetOrderConfigRequestVo
request
)
{
public
String
getOrderConfig
(
GetOrderConfigRequestVo
request
)
{
OrderConfigEnum
configType
=
OrderConfigEnum
.
getOrderConfigType
(
request
.
getType
());
OrderConfigEnum
configType
=
OrderConfigEnum
.
getOrderConfigType
(
request
.
getType
());
if
(
null
==
configType
)
if
(
null
==
configType
)
throw
new
ServiceException
(
ResponseResult
.
PARAMETER_MISSING
);
throw
new
ServiceException
(
ResponseResult
.
PARAMETER_MISSING
);
...
@@ -430,8 +430,7 @@ public class OrderAdapterServiceImpl {
...
@@ -430,8 +430,7 @@ public class OrderAdapterServiceImpl {
configStr
=
openPlatformOrderConfig
.
getTypeValue
();
configStr
=
openPlatformOrderConfig
.
getTypeValue
();
}
}
}
}
GetOrderConfigResponseVo
response
=
JSON
.
parseObject
(
configStr
,
GetOrderConfigResponseVo
.
class
);
return
response
;
return
configStr
;
}
}
}
}
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