Commit 28a73976 by zhangkb

添加根据基础指标id list获取基础指标

parent 6725ec1c
......@@ -60,6 +60,12 @@ public class IndCatalogCtrl {
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 = "新建考核指标目录")
@PostMapping(value = "/createDriveIndCatalog")
......
......@@ -21,4 +21,6 @@ public interface IndCatalogMapper extends BaseMapper<IndCatalog>{
public List<IndCatalog> findByKeyword(Map<String,Object> params);
public List<IndCatalog> findFirstVaildCatalog(Map<String,Object> params);
public List<IndCatalog> findByCatalogIdIn(@Param("ids") List<Integer> ids);
}
......@@ -104,4 +104,8 @@ public class IndCatalogService {
}
return null;
}
public List<IndCatalog> getByCatalogIdList(List<Integer> catalogIds){
return indCatalogMapper.findByCatalogIdIn(catalogIds);
}
}
......@@ -48,4 +48,14 @@
</foreach>
order by last_update_time desc
</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>
\ 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