Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
15所TongWeb
aserver
Commits
bb65b2f1
Commit
bb65b2f1
authored
Mar 25, 2021
by
成亚卿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询
parent
d99b42ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
HelperService.java
src/main/java/com/archser/aserver/service/HelperService.java
+8
-1
No files found.
src/main/java/com/archser/aserver/service/HelperService.java
View file @
bb65b2f1
...
...
@@ -5,6 +5,7 @@ import com.archser.aserver.util.DownLoadFileUtil;
import
com.jfinal.kit.Kv
;
import
com.jfinal.kit.PathKit
;
import
com.jfinal.kit.Ret
;
import
com.jfinal.kit.StrKit
;
import
com.jfinal.plugin.activerecord.Db
;
import
com.jfinal.plugin.activerecord.Page
;
import
com.jfinal.plugin.activerecord.Record
;
...
...
@@ -27,8 +28,14 @@ public class HelperService {
type
=
"0"
;
}
else
if
(
"使用手册"
.
contains
(
searchText
))
{
type
=
"1"
;
}
else
if
(
"操作视频"
.
contains
(
searchText
))
{
type
=
"2"
;
}
//修改查询 ChengYaqing 20210325
searchText
=
"name like '%"
+
searchText
+
"%' or description like '%"
+
searchText
+
"%'"
;
if
(
StrKit
.
notBlank
(
type
))
{
searchText
=
searchText
+
"or type = '"
+
type
+
"'"
;
}
searchText
=
type
.
equals
(
""
)?
""
:
"name like '%"
+
searchText
+
"%' or type = '"
+
type
+
"' or description like '%"
+
searchText
+
"%'"
;
Page
<
Helper
>
page
=
Helper
.
dao
.
paginate
(
pageNumber
,
pageSize
,
Db
.
getSqlPara
(
"getHelperList"
,
Kv
.
by
(
"searchText"
,
searchText
)));
return
page
;
}
...
...
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