Commit 6f3ab5b7 authored by liudong1993's avatar liudong1993

Merge branch 'master' of http://gitlab.oytour.com/Kui2/mall.oytour.com into sdzq-ld

parents 3de90f4b 09f491a6
...@@ -720,8 +720,17 @@ namespace Mall.Common ...@@ -720,8 +720,17 @@ namespace Mall.Common
return ReadConfigKey("XuZongUserId"); return ReadConfigKey("XuZongUserId");
} }
} }
/// <summary>
///首店企业认证是否自动审核,1-是
/// </summary>
public static string IsFirtsShopAutoExamine
{
get
{
return ReadConfigKey("IsFirtsShopAutoExamine");
}
}
} }
} }
\ No newline at end of file
This diff is collapsed.
...@@ -624,7 +624,7 @@ namespace Mall.Module.TradePavilion ...@@ -624,7 +624,7 @@ namespace Mall.Module.TradePavilion
int OpeningStatus = 0; int OpeningStatus = 0;
if (CarrierModel.OpenTime.HasValue) if (CarrierModel.OpenTime.HasValue)
{ {
if (CarrierModel.OpenTime.Value < System.DateTime.Now) if (CarrierModel.OpenTime.Value <= System.DateTime.Now)
{ {
OpeningStatus = 1; OpeningStatus = 1;
} }
...@@ -691,6 +691,13 @@ namespace Mall.Module.TradePavilion ...@@ -691,6 +691,13 @@ namespace Mall.Module.TradePavilion
var inserCModel = CarrierModel.RefMapperTo<RB_Carrier_Extend>(); var inserCModel = CarrierModel.RefMapperTo<RB_Carrier_Extend>();
inserCModel.ID = 0; inserCModel.ID = 0;
inserCModel.UserId = cmodel.CreateBy; inserCModel.UserId = cmodel.CreateBy;
if (CarrierModel.OpenTime.HasValue)
{
if (CarrierModel.OpenTime.Value <= System.DateTime.Now)
{
inserCModel.OpeningStatus = 1;
}
}
int Id = carrierRepository.Insert(inserCModel, trans); int Id = carrierRepository.Insert(inserCModel, trans);
if (Id > 0) if (Id > 0)
{ {
......
...@@ -243,6 +243,17 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -243,6 +243,17 @@ namespace Mall.WebApi.Controllers.TradePavilion
return ApiResult.Failed("该品牌全名已存在,请选择绑定已有品牌"); return ApiResult.Failed("该品牌全名已存在,请选择绑定已有品牌");
} }
} }
//修改
#region 验证品牌是否已关联用户
if (query.ExistBrandId > 0)
{
var bmodel = carrierModule.GetBrand(new RB_Brand_Extend { ID = query.ExistBrandId, MallBaseId = query.MallBaseId, TenantId = query.TenantId });
if (bmodel.UserId > 0)
{
return ApiResult.Failed("该品牌已被其他用户认证,请核实后再试");
}
}
#endregion
#endregion #endregion
bool flag = carrierModule.SetBrandApplyFor(query); bool flag = carrierModule.SetBrandApplyFor(query);
...@@ -345,6 +356,18 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -345,6 +356,18 @@ namespace Mall.WebApi.Controllers.TradePavilion
return ApiResult.Failed("该载体名称已存在,请选择绑定已有载体"); return ApiResult.Failed("该载体名称已存在,请选择绑定已有载体");
} }
} }
//修改
#region 验证品牌是否已关联用户
if (query.ExistCarrierId > 0)
{
var carrmodel = carrierModule.GetCarrierModel(new RB_Carrier_Extend { ID = query.ExistCarrierId, TenantId = query.TenantId, MallBaseId = query.MallBaseId });
if (carrmodel.UserId > 0)
{
return ApiResult.Failed("该载体已被其他用户认证,请核实后再试");
}
}
#endregion
#endregion #endregion
bool flag = carrierModule.SetCarrierApplyFor(query); bool flag = carrierModule.SetCarrierApplyFor(query);
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
"VirtualDirectory": "WebFile", "VirtualDirectory": "WebFile",
"FileService": "2", "FileService": "2",
"IsNormalServer": 2, "IsNormalServer": 2,
"IsFirtsShopAutoExamine": 1,//首店企业认证是否字段审核
"FinanceSetting": { "FinanceSetting": {
"TenantId": 1, "TenantId": 1,
"MallBaseId": 1, "MallBaseId": 1,
......
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