Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
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
zhangkb
indicators
Commits
a9180529
Commit
a9180529
authored
Jul 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考核指标目录添加根据id List获取目录详情列表接口
parent
28a73976
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
IndCatalogCtrl.java
...om/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
+6
-0
DriveIndCatalogMapper.java
...icators/model/mapper/indmapper/DriveIndCatalogMapper.java
+2
-0
DriveIndCatalogService.java
.../indicators/service/hytobacco/DriveIndCatalogService.java
+4
-0
DriveIndCatalogMapper.xml
src/main/resources/mybatis/mapping/DriveIndCatalogMapper.xml
+11
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
View file @
a9180529
...
...
@@ -100,4 +100,10 @@ public class IndCatalogCtrl {
@RequestParam
List
<
String
>
codes
){
return
driveIndCatalogService
.
getFirstVaildCatalog
(
pid
,
codes
);
}
@ApiOperation
(
value
=
"根据考核指标目录id数列获取考核目录List"
,
notes
=
"根据考核指标目录id数列获取考核目录List"
)
@PostMapping
(
value
=
"/getByDriveCatalogIdList"
)
public
List
<
DriveIndCatalog
>
getByDriveCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
driveIndCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
}
src/main/java/com/keymobile/indicators/model/mapper/indmapper/DriveIndCatalogMapper.java
View file @
a9180529
...
...
@@ -20,4 +20,6 @@ public interface DriveIndCatalogMapper extends BaseMapper<DriveIndCatalog>{
public
List
<
DriveIndCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
DriveIndCatalog
>
findFirstVaildCatalog
(
Map
<
String
,
Object
>
params
);
public
List
<
DriveIndCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndCatalogService.java
View file @
a9180529
...
...
@@ -104,4 +104,8 @@ public class DriveIndCatalogService {
}
return
null
;
}
public
List
<
DriveIndCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
driveIndCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
src/main/resources/mybatis/mapping/DriveIndCatalogMapper.xml
View file @
a9180529
...
...
@@ -48,4 +48,14 @@
</foreach>
order by last_update_time desc
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.indicators.DriveIndCatalog"
>
select *
from drive_ind_catalog
where
id in
<foreach
item=
"id"
collection=
"ids"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
</mapper>
\ 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