/$batch['order_id_is_return_str'] 为逗号拼接的id串,优化之前的写法,当整体字符串为空就报错
$order = Db::table("client_order_info")
->where("order_id in (" . $batch['order_id_is_return_str'] . ")")
->order("merchantkeynum","asc")
->select();
//优化有的写法,把字符串转成了数组,字符串为空就会成为空数组,也不会报错
$map["order_id"] = ['in',explode(",",$batch['order_id_is_return_str'])];
$order = Db::table("client_order_info")
->where($map)
->order("merchantkeynum","asc")
->select();