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
2c19d543
Commit
2c19d543
authored
Jan 13, 2020
by
zuoyh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'app-version-mark' into dev
parents
1bc03fe0
8bc56db7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AppVersionMarkController.java
.../com/xxfc/platform/app/rest/AppVersionMarkController.java
+2
-1
AppVersionMarkMapper.xml
...server/src/main/resources/mapper/AppVersionMarkMapper.xml
+2
-2
No files found.
xx-app/xx-app-server/src/main/java/com/xxfc/platform/app/rest/AppVersionMarkController.java
View file @
2c19d543
...
...
@@ -79,11 +79,12 @@ public class AppVersionMarkController extends BaseController<AppVersionMarkBiz,
@GetMapping
(
"/findAllByQuery"
)
public
ObjectRestResponse
findAllByQuery
(
@RequestParam
(
value
=
"page"
,
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
value
=
"limit"
,
defaultValue
=
"10"
)
Integer
limit
,
@RequestParam
(
value
=
"mark"
,
defaultValue
=
""
)
String
mark
)
{
@RequestParam
(
value
=
"mark"
,
defaultValue
=
""
)
String
mark
)
{
Example
example
=
new
Example
(
AppVersionMark
.
class
);
if
(
StringUtils
.
isNotBlank
(
mark
))
{
example
.
createCriteria
().
andLike
(
"mark"
,
"%"
+
mark
+
"%"
);
}
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
);
example
.
setOrderByClause
(
"`crt_time` desc"
);
PageHelper
.
startPage
(
page
,
limit
);
List
<
AppVersionMark
>
listPage
=
appVersionMarkBiz
.
selectByExample
(
example
);
...
...
xx-app/xx-app-server/src/main/resources/mapper/AppVersionMarkMapper.xml
View file @
2c19d543
...
...
@@ -11,7 +11,7 @@
where
is_del=0
<if
test=
"mark!=null and mark!=''"
>
and mark like concat('%',#{mark},'%')
and
binary
mark like concat('%',#{mark},'%')
</if>
</select>
...
...
@@ -22,7 +22,7 @@
where
is_del = 0
<if
test=
"mark!=null and mark!=''"
>
and mark like concat('%',#{mark},'%')
and
binary
mark like concat('%',#{mark},'%')
</if>
</select>
...
...
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