Commit a9180529 by zhangkb

考核指标目录添加根据id List获取目录详情列表接口

parent 28a73976
...@@ -100,4 +100,10 @@ public class IndCatalogCtrl { ...@@ -100,4 +100,10 @@ public class IndCatalogCtrl {
@RequestParam List<String> codes){ @RequestParam List<String> codes){
return driveIndCatalogService.getFirstVaildCatalog(pid, 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);
}
} }
...@@ -20,4 +20,6 @@ public interface DriveIndCatalogMapper extends BaseMapper<DriveIndCatalog>{ ...@@ -20,4 +20,6 @@ public interface DriveIndCatalogMapper extends BaseMapper<DriveIndCatalog>{
public List<DriveIndCatalog> findByKeyword(Map<String,Object> params); public List<DriveIndCatalog> findByKeyword(Map<String,Object> params);
public List<DriveIndCatalog> findFirstVaildCatalog(Map<String,Object> params); public List<DriveIndCatalog> findFirstVaildCatalog(Map<String,Object> params);
public List<DriveIndCatalog> findByCatalogIdIn(@Param("ids") List<Integer> ids);
} }
...@@ -104,4 +104,8 @@ public class DriveIndCatalogService { ...@@ -104,4 +104,8 @@ public class DriveIndCatalogService {
} }
return null; return null;
} }
public List<DriveIndCatalog> getByCatalogIdList(List<Integer> catalogIds){
return driveIndCatalogMapper.findByCatalogIdIn(catalogIds);
}
} }
...@@ -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.DriveIndCatalog" >
select *
from drive_ind_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