public function cs(){
$data = Db::connect('csdade')->table('p_order')->withoutField("billid")->whereRaw("billid=2")->select()->toArray();
foreach ($data as $key=>$it){
$order = [];
//删除数组中字段ROW_NUMBER
foreach ($it as $key1=>$it1){
if($key1 != "ROW_NUMBER"){
echo "{$key1}:{$it1}\n";
$order[$key1] = $it1;
}
}
$order['billcode'] = "PO-2024-04-00001";
//Db::connect('csdade')->table("p_order")->insert($order);
}
}
05-30