Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
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
huluobin
gogirl-miniapp-backend
Commits
74b436a2
Commit
74b436a2
authored
May 21, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 搜索模板
parent
c33308ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CareerController.java
.../com/gogirl/interfaces/store/career/CareerController.java
+1
-1
CareerMapper.xml
src/main/resources/mapper/store/CareerMapper.xml
+1
-1
No files found.
src/main/java/com/gogirl/interfaces/store/career/CareerController.java
View file @
74b436a2
...
...
@@ -72,7 +72,7 @@ public class CareerController {
public
JsonResult
<
Page
<
BaseProduce
>>
queryWorkTpl
(
@RequestHeader
String
token
,
@RequestParam
Integer
pageNum
,
@RequestParam
Integer
pageSize
,
@RequestParam
String
searchKeyWord
)
{
@RequestParam
(
required
=
false
)
String
searchKeyWord
)
{
Integer
technicianId
=
SessionUtils
.
getTechnicianId
();
Page
<
BaseProduce
>
baseProduceList
=
careerCmdService
.
queryWorkTpl
(
technicianId
,
pageNum
,
pageSize
,
searchKeyWord
);
return
JsonResult
.
success
(
baseProduceList
);
...
...
src/main/resources/mapper/store/CareerMapper.xml
View file @
74b436a2
...
...
@@ -109,10 +109,10 @@
SELECT t1.*
from base_produce t1
LEFT JOIN career_works t2 on t1.id = t2.produce_id and t2.technician_id = #{technicianId}
where t1.is_work_tpl = 1
<if
test=
"searchKeyWord != null and searchKeyWord != ''"
>
and t1.`name` like concat('%',#{searchKeyWord},'%')
</if>
where t1.is_work_tpl = 1
and t2.id is null
</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