Commit 3858213d authored by 吴春's avatar 吴春

1

parent 7ace6a2b
...@@ -5539,12 +5539,15 @@ namespace REBORN.Module.SellModule ...@@ -5539,12 +5539,15 @@ namespace REBORN.Module.SellModule
var tmodel = tConfigModel.PriceList?.FirstOrDefault() ?? new RB_Travel_Price_Extend(); var tmodel = tConfigModel.PriceList?.FirstOrDefault() ?? new RB_Travel_Price_Extend();
//先新曾供应商信息,在新增团信息最后是订单信息 //先新曾供应商信息,在新增团信息最后是订单信息
int supplierId = 0; int supplierId = -1;
if (!string.IsNullOrWhiteSpace(supplierModel.Name) && !string.IsNullOrWhiteSpace(supplierModel.Contact) && !string.IsNullOrWhiteSpace(supplierModel.Tel))
{
bool supplierFlag = AddSupplierType(supplierModel, dmodel.UpdateDate ?? DateTime.Now, clientBankAccountList, out supplierId); bool supplierFlag = AddSupplierType(supplierModel, dmodel.UpdateDate ?? DateTime.Now, clientBankAccountList, out supplierId);
if (!supplierFlag) if (!supplierFlag)
{ {
return "创建订单失败"; return "创建订单失败";
} }
}
supplierModel.ID = supplierId; supplierModel.ID = supplierId;
tmodel.SupplierId = supplierId; tmodel.SupplierId = supplierId;
//新增修改团信息 //新增修改团信息
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 to comment