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
433c345c
Commit
433c345c
authored
Oct 29, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单接口
parent
169ad432
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
BannerBiz.java
...er/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
+2
-2
BannerMapper.java
.../main/java/com/xxfc/platform/app/mapper/BannerMapper.java
+1
-1
BannerController.java
...ain/java/com/xxfc/platform/app/rest/BannerController.java
+3
-2
OrderTemplateBiz.java
...in/java/com/xxfc/platform/order/biz/OrderTemplateBiz.java
+2
-1
No files found.
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/biz/BannerBiz.java
View file @
433c345c
...
...
@@ -22,9 +22,9 @@ import java.util.List;
@Service
public
class
BannerBiz
extends
BaseBiz
<
BannerMapper
,
Banner
>
{
public
List
<
BannerVo
>
findBannerList
(
Integer
type
,
Integer
location
,
String
multiLocation
,
Integer
platform
)
{
public
List
<
BannerVo
>
findBannerList
(
Integer
type
,
Integer
location
,
String
multiLocation
,
Integer
platform
,
Integer
status
)
{
List
<
BannerVo
>
bannerVos
=
new
ArrayList
<>();
List
<
Banner
>
banners
=
mapper
.
findBannerListByType
(
type
,
location
,
multiLocation
,
platform
);
List
<
Banner
>
banners
=
mapper
.
findBannerListByType
(
type
,
location
,
multiLocation
,
platform
,
status
);
banners
.
forEach
(
banner
->
{
BannerVo
bannerVo
=
new
BannerVo
();
BeanUtils
.
copyProperties
(
banner
,
bannerVo
);
...
...
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/mapper/BannerMapper.java
View file @
433c345c
...
...
@@ -27,5 +27,5 @@ public interface BannerMapper extends Mapper<Banner> {
List
<
Banner
>
findBannerListByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"location"
)
Integer
location
,
@Param
(
"multiLocation"
)
String
multiLocation
,
@Param
(
"platform"
)
Integer
platform
);
List
<
Banner
>
findBannerListByType
(
@Param
(
"type"
)
Integer
type
,
@Param
(
"location"
)
Integer
location
,
@Param
(
"multiLocation"
)
String
multiLocation
,
@Param
(
"platform"
)
Integer
platform
,
@Param
(
"status"
)
Integer
status
);
}
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/BannerController.java
View file @
433c345c
...
...
@@ -34,11 +34,12 @@ public class BannerController {
public
ObjectRestResponse
findBannerlist
(
@RequestParam
(
required
=
false
,
value
=
"type"
)
Integer
type
,
@RequestParam
(
required
=
false
,
value
=
"location"
)
Integer
location
,
@RequestParam
(
required
=
false
,
value
=
"multiLocation"
)
String
multiLocation
,
@RequestParam
(
value
=
"platform"
,
required
=
false
,
defaultValue
=
"0"
)
Integer
platform
)
{
@RequestParam
(
value
=
"platform"
,
required
=
false
,
defaultValue
=
"0"
)
Integer
platform
,
@RequestParam
(
value
=
"status"
,
required
=
false
,
defaultValue
=
"1"
)
Integer
status
)
{
if
(
null
==
location
&&
StrUtil
.
isBlank
(
multiLocation
))
{
return
ObjectRestResponse
.
createDefaultFail
();
}
List
<
BannerVo
>
bannerList
=
bannerBiz
.
findBannerList
(
type
,
location
,
multiLocation
,
platform
);
List
<
BannerVo
>
bannerList
=
bannerBiz
.
findBannerList
(
type
,
location
,
multiLocation
,
platform
,
status
);
return
ObjectRestResponse
.
succ
(
bannerList
);
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderTemplateBiz.java
View file @
433c345c
...
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
import
cn.hutool.core.lang.Dict
;
import
cn.hutool.extra.template.Template
;
import
cn.hutool.extra.template.TemplateConfig
;
import
cn.hutool.extra.template.TemplateEngine
;
import
cn.hutool.extra.template.TemplateUtil
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
...
...
@@ -59,7 +60,7 @@ public class OrderTemplateBiz extends BaseBiz<OrderTemplateMapper,OrderTemplate>
}
public
String
result
(
String
templateStr
,
Map
map
)
{
TemplateEngine
engine
=
TemplateUtil
.
createEngine
();
TemplateEngine
engine
=
TemplateUtil
.
createEngine
(
new
TemplateConfig
()
);
Template
template
=
engine
.
getTemplate
(
templateStr
);
return
template
.
render
(
map
);
}
...
...
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