$arr = array(
"1" => array(
"pv" => '300',
"max" => '100',
'status' => '1'
),
"2" => array(
"pv" => '250',
"max" => '200',
'status' => '1'
),
"3" => array(
"pv" => '90',
"max" => '100',
'status' => '1'
),
"4" => array(
"pv" => '201',
"max" => '200',
'status' => '1'
),
"5" => array(
"pv" => '80',
"max" => '300',
'status' => '2'
)
);
1 、pv<max
2 、status=1
3 、如果查询的结果有多个,只返回最小的 key 那个,即上面 12345 数组按小到大优先顺序展示最小值那个。
1
sxbxjhwm 2021-05-11 08:35:50 +08:00 via Android
|