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
28a73976
Commit
28a73976
authored
Jul 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据基础指标id list获取基础指标
parent
6725ec1c
Hide 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
IndCatalogMapper.java
...e/indicators/model/mapper/indmapper/IndCatalogMapper.java
+2
-0
IndCatalogService.java
...obile/indicators/service/hytobacco/IndCatalogService.java
+4
-0
IndCatalogMapper.xml
src/main/resources/mybatis/mapping/IndCatalogMapper.xml
+11
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndCatalogCtrl.java
View file @
28a73976
...
@@ -60,6 +60,12 @@ public class IndCatalogCtrl {
...
@@ -60,6 +60,12 @@ public class IndCatalogCtrl {
return
indCatalogService
.
getFirstVaildCatalog
(
pid
,
codes
);
return
indCatalogService
.
getFirstVaildCatalog
(
pid
,
codes
);
}
}
@ApiOperation
(
value
=
"根据基础指标目录id数列获取基础目录List"
,
notes
=
"根据基础指标目录id数列获取基础目录List"
)
@PostMapping
(
value
=
"/getByBaseCatalogIdList"
)
public
List
<
IndCatalog
>
getByBaseCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
indCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
//考核指标目录
//考核指标目录
@ApiOperation
(
value
=
"新建考核指标目录"
,
notes
=
"新建考核指标目录"
)
@ApiOperation
(
value
=
"新建考核指标目录"
,
notes
=
"新建考核指标目录"
)
@PostMapping
(
value
=
"/createDriveIndCatalog"
)
@PostMapping
(
value
=
"/createDriveIndCatalog"
)
...
...
src/main/java/com/keymobile/indicators/model/mapper/indmapper/IndCatalogMapper.java
View file @
28a73976
...
@@ -21,4 +21,6 @@ public interface IndCatalogMapper extends BaseMapper<IndCatalog>{
...
@@ -21,4 +21,6 @@ public interface IndCatalogMapper extends BaseMapper<IndCatalog>{
public
List
<
IndCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
IndCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
IndCatalog
>
findFirstVaildCatalog
(
Map
<
String
,
Object
>
params
);
public
List
<
IndCatalog
>
findFirstVaildCatalog
(
Map
<
String
,
Object
>
params
);
public
List
<
IndCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/IndCatalogService.java
View file @
28a73976
...
@@ -104,4 +104,8 @@ public class IndCatalogService {
...
@@ -104,4 +104,8 @@ public class IndCatalogService {
}
}
return
null
;
return
null
;
}
}
public
List
<
IndCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
indCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
}
src/main/resources/mybatis/mapping/IndCatalogMapper.xml
View file @
28a73976
...
@@ -48,4 +48,14 @@
...
@@ -48,4 +48,14 @@
</foreach>
</foreach>
order by last_update_time desc
order by last_update_time desc
</select>
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.indicators.IndCatalog"
>
select *
from base_ind_catalog
where
id in
<foreach
item=
"id"
collection=
"ids"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
</mapper>
</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