Commit f170cb12 by wang

^

parent 81abd60d
Showing with 3 additions and 0 deletions
...@@ -107,7 +107,9 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase ...@@ -107,7 +107,9 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase
panic(nil) panic(nil)
} }
has,poolSupplierEntity:=this.onlyOpenHandle(supplierName,poolSupplierEntitys) has,poolSupplierEntity:=this.onlyOpenHandle(supplierName,poolSupplierEntitys)
if(has==true){ if(has==true){
poolSupplierEntity.IsType=0
//组装采购员 //组装采购员
oldUids:=php2go.Explode(",",poolSupplierEntity.ChannelUid) oldUids:=php2go.Explode(",",poolSupplierEntity.ChannelUid)
channelUidString:=this.assembleChannelUid(purchaseNames,oldUids...) channelUidString:=this.assembleChannelUid(purchaseNames,oldUids...)
...@@ -133,6 +135,7 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase ...@@ -133,6 +135,7 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase
common.PrintStdout().Printf("不存在此标准供应商,供应商名:%s,进行新增",supplierName) common.PrintStdout().Printf("不存在此标准供应商,供应商名:%s,进行新增",supplierName)
poolSupplierEntity:=PoolSupplierEntity{} poolSupplierEntity:=PoolSupplierEntity{}
poolSupplierEntity.Status=2 poolSupplierEntity.Status=2
poolSupplierEntity.IsType=0
poolSupplierEntity.SupplierName=strings.Replace(supplierName,"?"," ",10) poolSupplierEntity.SupplierName=strings.Replace(supplierName,"?"," ",10)
_,err:= dbSpu.Table("lie_supplier_channel").Insert(&poolSupplierEntity) _,err:= dbSpu.Table("lie_supplier_channel").Insert(&poolSupplierEntity)
if(err!=nil){ if(err!=nil){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment