Commit cd3d169f by zhangkb

目录添加根据id List获取目录信息接口

parent 02aa2aad
...@@ -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,
......
...@@ -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,
......
...@@ -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,
......
...@@ -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,
......
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
}
} }
...@@ -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);
}
} }
...@@ -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);
}
} }
...@@ -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);
}
} }
...@@ -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
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment