$data(0=>array(
"city"=>"",
"addressid"=>1,
"ordersn"=>"456786a",
"goods"=>""
),
1=>array(
"city"=>"",
"addressid"=>1,
"ordersn"=>"fdsdab",
"goods"=>""
),
2=>array(
"city"=>"",
"addressid"=>2,
"ordersn"=>"fdasad",
"goods"=>""
),
);
grouped by addressid, the same addressid is merged into the same array, and change to the following
$data(0=>array(
"city"=>"",
"addressid"=>1,
"ordersn"=>"456786a,fdsdab",
"goods"=>","
),
1=>array(
"city"=>"",
"addressid"=>2,
"ordersn"=>"fdasad",
"goods"=>""
),
);