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
195d7af2
Commit
195d7af2
authored
Jul 15, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据基础项id list获取基础项信息
parent
796d700b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
IndicatorsDefCtrl.java
...keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
+6
-0
BaseIndDefMapper.java
.../indicators/model/mapper/indicators/BaseIndDefMapper.java
+2
-0
BaseIndDefService.java
...obile/indicators/service/hytobacco/BaseIndDefService.java
+5
-3
BaseIndDefMapper.xml
src/main/resources/mybatis/mapping/BaseIndDefMapper.xml
+10
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
View file @
195d7af2
...
...
@@ -72,6 +72,12 @@ public class IndicatorsDefCtrl {
return
baseIndDefService
.
getById
(
indId
);
}
@ApiOperation
(
value
=
"根据id List查询基础指标详情List"
,
notes
=
"根据id List查询基础指标详情List"
)
@PostMapping
(
value
=
"/getBaseIndByIdList"
)
public
List
<
BaseIndDef
>
getBaseIndByIdList
(
@RequestParam
List
<
String
>
indIds
)
throws
Exception
{
return
baseIndDefService
.
getByIdList
(
indIds
);
}
@ApiOperation
(
value
=
"根据关键字查询基础指标"
,
notes
=
"根据关键字查询基础指标"
)
@PostMapping
(
value
=
"/getByPageAndKeyword"
)
public
Map
<
String
,
Object
>
getByPageAndKeyword
(
@RequestParam
Integer
catalogId
,
...
...
src/main/java/com/keymobile/indicators/model/mapper/indicators/BaseIndDefMapper.java
View file @
195d7af2
...
...
@@ -20,4 +20,6 @@ public interface BaseIndDefMapper extends BaseMapper<BaseIndDef>{
public
String
getMaxIndId
(
@Param
(
"code"
)
String
code
,
@Param
(
"length"
)
int
length
);
public
List
<
BaseIndDef
>
getByIndFormatLike
(
@Param
(
"indId"
)
String
indId
);
public
List
<
BaseIndDef
>
getByIdIn
(
@Param
(
"indIds"
)
List
<
String
>
indIds
);
}
src/main/java/com/keymobile/indicators/service/hytobacco/BaseIndDefService.java
View file @
195d7af2
...
...
@@ -70,9 +70,11 @@ public class BaseIndDefService {
}
public
BaseIndDef
getById
(
String
indId
)
throws
Exception
{
BaseIndDef
baseIndDef
=
new
BaseIndDef
();
baseIndDef
.
setIndId
(
indId
);
return
baseIndDefMapper
.
selectOne
(
baseIndDef
);
return
baseIndDefMapper
.
selectByPrimaryKey
(
indId
);
}
public
List
<
BaseIndDef
>
getByIdList
(
List
<
String
>
indIds
){
return
baseIndDefMapper
.
getByIdIn
(
indIds
);
}
public
String
delete
(
List
<
String
>
indIds
)
throws
Exception
{
...
...
src/main/resources/mybatis/mapping/BaseIndDefMapper.xml
View file @
195d7af2
...
...
@@ -46,4 +46,13 @@
from base_ind_def
where ind_format like #{indId}
</select>
<select
id=
"getByIdIn"
resultType=
"com.keymobile.indicators.model.entity.indicators.BaseIndDef"
>
select *
from base_ind_def
where ind_id in
<foreach
item=
"id"
collection=
"indIds"
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