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
cd3d169f
Commit
cd3d169f
authored
Jul 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目录添加根据id List获取目录信息接口
parent
02aa2aad
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
92 additions
and
0 deletions
+92
-0
IndScorecardCtrl.java
.../keymobile/indicators/api/hytobacco/IndScorecardCtrl.java
+6
-0
ObjScoreRuleCtrl.java
.../keymobile/indicators/api/hytobacco/ObjScoreRuleCtrl.java
+6
-0
ShortboardRuleCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
+6
-0
ShortboardUnitCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardUnitCtrl.java
+6
-0
ScoreRuleCatalogMapper.java
...cators/model/mapper/indmapper/ScoreRuleCatalogMapper.java
+2
-0
ScorecardCatalogMapper.java
...cators/model/mapper/indmapper/ScorecardCatalogMapper.java
+2
-0
ShortboardCatalogMapper.java
...ators/model/mapper/indmapper/ShortboardCatalogMapper.java
+2
-0
ShortboardUnitCatalogMapper.java
...s/model/mapper/indmapper/ShortboardUnitCatalogMapper.java
+2
-0
ScoreRuleCatalogService.java
...indicators/service/hytobacco/ScoreRuleCatalogService.java
+4
-0
ScorecardCatalogService.java
...indicators/service/hytobacco/ScorecardCatalogService.java
+4
-0
ShortboardCatalogService.java
...ndicators/service/hytobacco/ShortboardCatalogService.java
+4
-0
ShortboardUnitCatalogService.java
...ators/service/hytobacco/ShortboardUnitCatalogService.java
+4
-0
ScoreRuleCatalogMapper.xml
...main/resources/mybatis/mapping/ScoreRuleCatalogMapper.xml
+11
-0
ScorecardCatalogMapper.xml
...main/resources/mybatis/mapping/ScorecardCatalogMapper.xml
+11
-0
ShortboardCatalogMapper.xml
...ain/resources/mybatis/mapping/ShortboardCatalogMapper.xml
+11
-0
ShortboardUnitCatalogMapper.xml
...resources/mybatis/mapping/ShortboardUnitCatalogMapper.xml
+11
-0
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndScorecardCtrl.java
View file @
cd3d169f
...
@@ -59,6 +59,12 @@ public class IndScorecardCtrl {
...
@@ -59,6 +59,12 @@ public class IndScorecardCtrl {
return
scorecardCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
return
scorecardCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
}
}
@ApiOperation
(
value
=
"根据idList获取评分卡目录"
,
notes
=
"根据idList获取评分卡目录"
)
@PostMapping
(
value
=
"/getByCatalogIdList"
)
public
List
<
ScorecardCatalog
>
getByCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
scorecardCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
public
Integer
saveOrUpdate
(
@RequestBody
IndScorecard
indScorecard
,
@RequestParam
Integer
catalogId
,
public
Integer
saveOrUpdate
(
@RequestBody
IndScorecard
indScorecard
,
@RequestParam
Integer
catalogId
,
...
...
src/main/java/com/keymobile/indicators/api/hytobacco/ObjScoreRuleCtrl.java
View file @
cd3d169f
...
@@ -59,6 +59,12 @@ public class ObjScoreRuleCtrl {
...
@@ -59,6 +59,12 @@ public class ObjScoreRuleCtrl {
return
scoreRuleCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
return
scoreRuleCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
}
}
@ApiOperation
(
value
=
"根据idList获取单位规则目录"
,
notes
=
"根据idList获取单位规则目录"
)
@PostMapping
(
value
=
"/getByCatalogIdList"
)
public
List
<
ScoreRuleCatalog
>
getByCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
scoreRuleCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
public
Integer
saveOrUpdate
(
@RequestBody
ScoreRule
scoreRule
,
@RequestParam
Integer
catalogId
,
public
Integer
saveOrUpdate
(
@RequestBody
ScoreRule
scoreRule
,
@RequestParam
Integer
catalogId
,
...
...
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
View file @
cd3d169f
...
@@ -59,6 +59,12 @@ public class ShortboardRuleCtrl {
...
@@ -59,6 +59,12 @@ public class ShortboardRuleCtrl {
return
shortboardCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
return
shortboardCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
}
}
@ApiOperation
(
value
=
"根据idList获取短板筛选规则目录"
,
notes
=
"根据idList获取短板筛选规则目录"
)
@PostMapping
(
value
=
"/getByCatalogIdList"
)
public
List
<
ShortboardCatalog
>
getByCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
shortboardCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
public
Integer
saveOrUpdate
(
@RequestBody
ShortboardRule
shortboardRule
,
@RequestParam
Integer
catalogId
,
public
Integer
saveOrUpdate
(
@RequestBody
ShortboardRule
shortboardRule
,
@RequestParam
Integer
catalogId
,
...
...
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardUnitCtrl.java
View file @
cd3d169f
...
@@ -62,6 +62,12 @@ public class ShortboardUnitCtrl {
...
@@ -62,6 +62,12 @@ public class ShortboardUnitCtrl {
return
shortboardUnitCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
return
shortboardUnitCatalogService
.
getCatalogByKeyword
(
keyword
,
codes
);
}
}
@ApiOperation
(
value
=
"根据idList获取短板筛选规则目录"
,
notes
=
"根据idList获取短板筛选规则目录"
)
@PostMapping
(
value
=
"/getByCatalogIdList"
)
public
List
<
ShortboardUnitCatalog
>
getByCatalogIdList
(
@RequestParam
List
<
Integer
>
catalogIds
){
return
shortboardUnitCatalogService
.
getByCatalogIdList
(
catalogIds
);
}
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@ApiOperation
(
value
=
"新增/修改"
,
notes
=
"新增/修改"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
public
Integer
saveOrUpdate
(
@RequestBody
ShortboardUnit
shortboardUnit
,
@RequestParam
Integer
catalogId
,
public
Integer
saveOrUpdate
(
@RequestBody
ShortboardUnit
shortboardUnit
,
@RequestParam
Integer
catalogId
,
...
...
src/main/java/com/keymobile/indicators/model/mapper/indmapper/ScoreRuleCatalogMapper.java
View file @
cd3d169f
...
@@ -18,4 +18,6 @@ public interface ScoreRuleCatalogMapper extends BaseMapper<ScoreRuleCatalog>{
...
@@ -18,4 +18,6 @@ public interface ScoreRuleCatalogMapper extends BaseMapper<ScoreRuleCatalog>{
public
List
<
ScoreRuleCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ScoreRuleCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ScoreRuleCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ScoreRuleCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ScoreRuleCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
}
src/main/java/com/keymobile/indicators/model/mapper/indmapper/ScorecardCatalogMapper.java
View file @
cd3d169f
...
@@ -18,4 +18,6 @@ public interface ScorecardCatalogMapper extends BaseMapper<ScorecardCatalog>{
...
@@ -18,4 +18,6 @@ public interface ScorecardCatalogMapper extends BaseMapper<ScorecardCatalog>{
public
List
<
ScorecardCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ScorecardCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ScorecardCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ScorecardCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ScorecardCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
}
src/main/java/com/keymobile/indicators/model/mapper/indmapper/ShortboardCatalogMapper.java
View file @
cd3d169f
...
@@ -18,4 +18,6 @@ public interface ShortboardCatalogMapper extends BaseMapper<ShortboardCatalog>{
...
@@ -18,4 +18,6 @@ public interface ShortboardCatalogMapper extends BaseMapper<ShortboardCatalog>{
public
List
<
ShortboardCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ShortboardCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ShortboardCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ShortboardCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ShortboardCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
}
src/main/java/com/keymobile/indicators/model/mapper/indmapper/ShortboardUnitCatalogMapper.java
View file @
cd3d169f
...
@@ -18,4 +18,6 @@ public interface ShortboardUnitCatalogMapper extends BaseMapper<ShortboardUnitCa
...
@@ -18,4 +18,6 @@ public interface ShortboardUnitCatalogMapper extends BaseMapper<ShortboardUnitCa
public
List
<
ShortboardUnitCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ShortboardUnitCatalog
>
findByParentId
(
@Param
(
"pid"
)
Integer
pid
);
public
List
<
ShortboardUnitCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ShortboardUnitCatalog
>
findByKeyword
(
Map
<
String
,
Object
>
params
);
public
List
<
ShortboardUnitCatalog
>
findByCatalogIdIn
(
@Param
(
"ids"
)
List
<
Integer
>
ids
);
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleCatalogService.java
View file @
cd3d169f
...
@@ -89,4 +89,8 @@ public class ScoreRuleCatalogService {
...
@@ -89,4 +89,8 @@ public class ScoreRuleCatalogService {
paramMap
.
put
(
"codes"
,
codes
);
paramMap
.
put
(
"codes"
,
codes
);
return
scoreRuleCatalogMapper
.
findByKeyword
(
paramMap
);
return
scoreRuleCatalogMapper
.
findByKeyword
(
paramMap
);
}
}
public
List
<
ScoreRuleCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
scoreRuleCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/ScorecardCatalogService.java
View file @
cd3d169f
...
@@ -89,4 +89,8 @@ public class ScorecardCatalogService {
...
@@ -89,4 +89,8 @@ public class ScorecardCatalogService {
paramMap
.
put
(
"codes"
,
codes
);
paramMap
.
put
(
"codes"
,
codes
);
return
scorecardCatalogMapper
.
findByKeyword
(
paramMap
);
return
scorecardCatalogMapper
.
findByKeyword
(
paramMap
);
}
}
public
List
<
ScorecardCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
scorecardCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardCatalogService.java
View file @
cd3d169f
...
@@ -88,4 +88,8 @@ public class ShortboardCatalogService {
...
@@ -88,4 +88,8 @@ public class ShortboardCatalogService {
paramMap
.
put
(
"codes"
,
codes
);
paramMap
.
put
(
"codes"
,
codes
);
return
shortboardCatalogMapper
.
findByKeyword
(
paramMap
);
return
shortboardCatalogMapper
.
findByKeyword
(
paramMap
);
}
}
public
List
<
ShortboardCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
shortboardCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
}
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardUnitCatalogService.java
View file @
cd3d169f
...
@@ -89,4 +89,8 @@ public class ShortboardUnitCatalogService {
...
@@ -89,4 +89,8 @@ public class ShortboardUnitCatalogService {
paramMap
.
put
(
"codes"
,
codes
);
paramMap
.
put
(
"codes"
,
codes
);
return
shortboardUnitCatalogMapper
.
findByKeyword
(
paramMap
);
return
shortboardUnitCatalogMapper
.
findByKeyword
(
paramMap
);
}
}
public
List
<
ShortboardUnitCatalog
>
getByCatalogIdList
(
List
<
Integer
>
catalogIds
){
return
shortboardUnitCatalogMapper
.
findByCatalogIdIn
(
catalogIds
);
}
}
}
src/main/resources/mybatis/mapping/ScoreRuleCatalogMapper.xml
View file @
cd3d169f
...
@@ -36,4 +36,14 @@
...
@@ -36,4 +36,14 @@
#{id}
#{id}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.objscorerule.ScoreRuleCatalog"
>
select *
from obj_score_rule_catalog
where
id in
<foreach
item=
"id"
collection=
"ids"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/mapping/ScorecardCatalogMapper.xml
View file @
cd3d169f
...
@@ -36,4 +36,14 @@
...
@@ -36,4 +36,14 @@
#{id}
#{id}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.scorecard.ScorecardCatalog"
>
select *
from score_card_catalog
where
id in
<foreach
item=
"id"
collection=
"ids"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/mapping/ShortboardCatalogMapper.xml
View file @
cd3d169f
...
@@ -36,4 +36,14 @@
...
@@ -36,4 +36,14 @@
#{id}
#{id}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.shortboard.ShortboardCatalog"
>
select *
from ind_short_board_catalog
where
id in
<foreach
item=
"id"
collection=
"ids"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/resources/mybatis/mapping/ShortboardUnitCatalogMapper.xml
View file @
cd3d169f
...
@@ -36,4 +36,14 @@
...
@@ -36,4 +36,14 @@
#{id}
#{id}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findByCatalogIdIn"
resultType=
"com.keymobile.indicators.model.entity.shortboard.ShortboardUnitCatalog"
>
select *
from short_board_unit_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