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
6dbf91d9
Commit
6dbf91d9
authored
Dec 09, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改banner接口
parent
f2b219f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
BannerBiz.java
...r/src/main/java/com/xxfc/platform/uccn/biz/BannerBiz.java
+3
-3
BannerWebController.java
...java/com/xxfc/platform/uccn/rest/BannerWebController.java
+20
-0
BannerController.java
...a/com/xxfc/platform/uccn/rest/admin/BannerController.java
+0
-4
No files found.
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/biz/BannerBiz.java
View file @
6dbf91d9
...
@@ -47,12 +47,12 @@ public class BannerBiz extends BaseBiz<BannerMapper, Banner> {
...
@@ -47,12 +47,12 @@ public class BannerBiz extends BaseBiz<BannerMapper, Banner> {
* @param indexShow 是否首页展示
* @param indexShow 是否首页展示
* @return
* @return
*/
*/
public
ObjectRestResponse
<
List
<
Banner
>>
getAll
(
Integer
indexShow
)
{
public
ObjectRestResponse
<
List
<
Banner
>>
getAll
(
Integer
indexShow
,
Integer
location
)
{
Example
example
=
new
Example
(
Banner
.
class
);
Example
example
=
new
Example
(
Banner
.
class
);
if
(
indexShow
!=
null
)
{
if
(
indexShow
!=
null
)
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
indexShow
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
indexShow
)
.
andEqualTo
(
"location"
,
location
)
;
}
else
{
}
else
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
)
.
andEqualTo
(
"location"
,
location
)
;
}
}
example
.
orderBy
(
"rank"
);
example
.
orderBy
(
"rank"
);
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
...
...
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/BannerWebController.java
0 → 100644
View file @
6dbf91d9
package
com
.
xxfc
.
platform
.
uccn
.
rest
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.uccn.biz.BannerBiz
;
import
com.xxfc.platform.uccn.entity.Banner
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"banner/web"
)
public
class
BannerWebController
extends
BaseController
<
BannerBiz
,
Banner
>
{
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
(
@RequestParam
(
value
=
"location"
,
defaultValue
=
"1"
)
Integer
location
)
{
return
baseBiz
.
getAll
(
1
,
location
);
}
}
\ No newline at end of file
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/admin/BannerController.java
View file @
6dbf91d9
...
@@ -21,8 +21,4 @@ public class BannerController extends BaseController<BannerBiz, Banner> {
...
@@ -21,8 +21,4 @@ public class BannerController extends BaseController<BannerBiz, Banner> {
return
baseBiz
.
selectList
(
bannerDto
);
return
baseBiz
.
selectList
(
bannerDto
);
}
}
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
()
{
return
baseBiz
.
getAll
(
1
);
}
}
}
\ No newline at end of file
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