|
@@ -569,7 +569,8 @@ class Consult extends Base
|
|
|
// "order_status" => 1
|
|
|
// ]);
|
|
|
if($isbids==1){
|
|
|
- $bidlist = Db::name("consult_bids")->where(["infoNo"=>$zxinfo['infoNo'],"is_del"=>0])->select()->toArray();
|
|
|
+ $bidlist = Db::name("consult_b
|
|
|
+ ids")->where(["infoNo"=>$zxinfo['infoNo'],"is_del"=>0])->select()->toArray();
|
|
|
if (!empty($bidlist)){
|
|
|
foreach ($bidlist as $value){
|
|
|
unset($value['id']);
|
|
@@ -594,10 +595,10 @@ class Consult extends Base
|
|
|
if($value['is_combind']==1){
|
|
|
$combine = ConsultTemp::where(["bidNo"=>$bidno])->select();
|
|
|
if(!$combine->isEmpty()){
|
|
|
- (new ConsultTemp)->saveAll(array_map(function(&$v,$key)use($value){
|
|
|
+ (new ConsultTemp)->saveAll(array_map(function(&$v)use($value){
|
|
|
$v['id']=null;
|
|
|
$v['bidNo']=$value['bidNo'];
|
|
|
- $v['spuCode']= substr(makeNo('SKU'), 0, -2) . str_pad($key, 2, '0', STR_PAD_LEFT);;
|
|
|
+ $v['spuCode']= substr(makeNo('SKU'), 0, -2) . round(10,99);
|
|
|
$v['out_tax_id'] =0;
|
|
|
$v['out_tax'] ="";
|
|
|
},$combine->toArray()));
|