需求背景:
前端实现下拉列表的级联效果。mybaits单条查询1000次以上耗时为:0.2*1000=200秒
缩减时间:一次查询全部数据 0.2秒但是数据格式不满足条件.
结构为:
[
{
"channel_id": 1,
"channel_name": "张三",
"id": 11,
"company_name": "A公司"
},
{
"channel_id": 1,
"channel_name": "张三",
"id": 12,
"company_name": "B公司"
},
{
"channel_id": 1,
"channel_name": "张三",
"id": 13,
"company_name": "C公司"
},
{
"channel_id": 1,
"channel_name": "张三",
"id": 14,
"company_name": "D公司"
},
{
fastJson 实现jsonArray 分组
最新推荐文章于 2024-05-08 11:27:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)