Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-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
周健威
rs-cloud-platform
Commits
2a2634ac
Commit
2a2634ac
authored
Jan 25, 2021
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pid
parent
cda41e2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
IndustryApplicationTypeBiz.java
...s/platform/rs/website/biz/IndustryApplicationTypeBiz.java
+18
-4
IndustryApplicationTypeController.java
...website/controller/IndustryApplicationTypeController.java
+2
-2
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/IndustryApplicationTypeBiz.java
View file @
2a2634ac
...
@@ -69,13 +69,27 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
...
@@ -69,13 +69,27 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
* @param indexShow 是否首页展示
* @param indexShow 是否首页展示
* @return
* @return
*/
*/
public
ObjectRestResponse
<
List
<
IndustryApplicationType
>>
getAll
(
Integer
indexShow
)
{
public
ObjectRestResponse
<
List
<
IndustryApplicationType
>>
getAll
(
Integer
indexShow
){
return
getAll
(
indexShow
,
null
);
}
/**
* 查询所有首页展示
* @param indexShow 是否首页展示
* @return
*/
public
ObjectRestResponse
<
List
<
IndustryApplicationType
>>
getAll
(
Integer
indexShow
,
Integer
pid
)
{
Example
example
=
new
Example
(
IndustryApplicationType
.
class
);
Example
example
=
new
Example
(
IndustryApplicationType
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
);
if
(
indexShow
!=
null
)
{
if
(
indexShow
!=
null
)
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
indexShow
);
criteria
.
andEqualTo
(
"indexShow"
,
indexShow
);
}
else
{
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
);
}
}
if
(
null
!=
pid
)
{
criteria
.
andEqualTo
(
"pid"
,
pid
);
}
example
.
orderBy
(
"rank"
);
example
.
orderBy
(
"rank"
);
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
}
}
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/IndustryApplicationTypeController.java
View file @
2a2634ac
...
@@ -24,8 +24,8 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp
...
@@ -24,8 +24,8 @@ public class IndustryApplicationTypeController extends BaseController<IndustryAp
@GetMapping
(
value
=
"/app/unauth/getAll"
)
@GetMapping
(
value
=
"/app/unauth/getAll"
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
getAll
(
Integer
indexShow
)
{
public
ObjectRestResponse
getAll
(
Integer
indexShow
,
Integer
pid
)
{
return
baseBiz
.
getAll
(
indexShow
);
return
baseBiz
.
getAll
(
indexShow
,
pid
);
}
}
...
...
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