shanji 3 years ago
parent
commit
f44d2e69b7
  1. 15
      BBWY.Client/Models/APIModel/Response/Shop/ShopResponse.cs
  2. 15
      BBWY.Client/Models/Shop/Shop.cs
  3. 3
      BBWY.Client/ViewModels/MainViewModel.cs
  4. 16
      BBWY.Server.Business/Vender/VenderBusiness.cs
  5. 18
      BBWY.Server.Model/Db/Mds/Shops.cs
  6. 15
      BBWY.Server.Model/Dto/Request/Vender/ShopSettingRequest.cs
  7. 15
      BBWY.Server.Model/Dto/Response/Vender/ShopResponse.cs

15
BBWY.Client/Models/APIModel/Response/Shop/ShopResponse.cs

@ -35,6 +35,21 @@ namespace BBWY.Client.Models
public string DingDingKey { get; set; } public string DingDingKey { get; set; }
public int SkuSafeTurnoverDays { get; set; } public int SkuSafeTurnoverDays { get; set; }
/// <summary>
/// 司南策略等级
/// </summary>
public int SiNanPolicyLevel { get; set; }
/// <summary>
/// 司南钉钉WebHook地址
/// </summary>
public string SiNanDingDingWebHook { get; set; }
/// <summary>
/// 司南钉钉密钥
/// </summary>
public string SiNanDingDingKey { get; set; }
} }
public class DepartmentResponse public class DepartmentResponse

15
BBWY.Client/Models/Shop/Shop.cs

@ -49,6 +49,21 @@ namespace BBWY.Client.Models
public int SkuSafeTurnoverDays { get; set; } public int SkuSafeTurnoverDays { get; set; }
/// <summary>
/// 司南策略等级
/// </summary>
public int SiNanPolicyLevel { get; set; }
/// <summary>
/// 司南钉钉WebHook地址
/// </summary>
public string SiNanDingDingWebHook { get; set; }
/// <summary>
/// 司南钉钉密钥
/// </summary>
public string SiNanDingDingKey { get; set; }
public override string ToString() public override string ToString()
{ {
return ShopName; return ShopName;

3
BBWY.Client/ViewModels/MainViewModel.cs

@ -247,6 +247,9 @@ namespace BBWY.Client.ViewModels
shop.DingDingKey = s2.DingDingKey; shop.DingDingKey = s2.DingDingKey;
shop.DingDingWebHook = s2.DingDingWebHook; shop.DingDingWebHook = s2.DingDingWebHook;
shop.SkuSafeTurnoverDays = s2.SkuSafeTurnoverDays; shop.SkuSafeTurnoverDays = s2.SkuSafeTurnoverDays;
shop.SiNanPolicyLevel = s2.SiNanPolicyLevel;
shop.SiNanDingDingKey = s2.SiNanDingDingKey;
shop.SiNanDingDingWebHook = s2.SiNanDingDingWebHook;
} }
} }
} }

16
BBWY.Server.Business/Vender/VenderBusiness.cs

@ -123,6 +123,9 @@ namespace BBWY.Server.Business
.Set(s => s.DingDingKey, shopSettingRequest.DingDingKey) .Set(s => s.DingDingKey, shopSettingRequest.DingDingKey)
.Set(s => s.DingDingWebHook, shopSettingRequest.DingDingWebHook) .Set(s => s.DingDingWebHook, shopSettingRequest.DingDingWebHook)
.Set(s => s.SkuSafeTurnoverDays, shopSettingRequest.SkuSafeTurnoverDays) .Set(s => s.SkuSafeTurnoverDays, shopSettingRequest.SkuSafeTurnoverDays)
.Set(s => s.SiNanDingDingKey, shopSettingRequest.SiNanDingDingKey)
.Set(s => s.SiNanDingDingWebHook, shopSettingRequest.SiNanDingDingWebHook)
.Set(s => s.SiNanPolicyLevel, shopSettingRequest.SiNanPolicyLevel)
.ExecuteAffrows(); .ExecuteAffrows();
}); });
} }
@ -151,6 +154,9 @@ namespace BBWY.Server.Business
.Set(s => s.DingDingKey, shopSettingRequest.DingDingKey) .Set(s => s.DingDingKey, shopSettingRequest.DingDingKey)
.Set(s => s.DingDingWebHook, shopSettingRequest.DingDingWebHook) .Set(s => s.DingDingWebHook, shopSettingRequest.DingDingWebHook)
.Set(s => s.SkuSafeTurnoverDays, shopSettingRequest.SkuSafeTurnoverDays) .Set(s => s.SkuSafeTurnoverDays, shopSettingRequest.SkuSafeTurnoverDays)
.Set(s => s.SiNanDingDingKey, shopSettingRequest.SiNanDingDingKey)
.Set(s => s.SiNanDingDingWebHook, shopSettingRequest.SiNanDingDingWebHook)
.Set(s => s.SiNanPolicyLevel, shopSettingRequest.SiNanPolicyLevel)
.ExecuteAffrows(); .ExecuteAffrows();
}); });
} }
@ -179,7 +185,10 @@ namespace BBWY.Server.Business
s.PlatformId, s.PlatformId,
s.DingDingKey, s.DingDingKey,
s.DingDingWebHook, s.DingDingWebHook,
s.SkuSafeTurnoverDays s.SkuSafeTurnoverDays,
s.SiNanDingDingKey,
s.SiNanDingDingWebHook,
s.SiNanPolicyLevel
}).GroupBy(x => x.DepartmentId); }).GroupBy(x => x.DepartmentId);
if (relationGroups.Count() == 0) if (relationGroups.Count() == 0)
return null; return null;
@ -206,7 +215,10 @@ namespace BBWY.Server.Business
ShopType = x.ShopType, ShopType = x.ShopType,
DingDingKey = x.DingDingKey, DingDingKey = x.DingDingKey,
DingDingWebHook = x.DingDingWebHook, DingDingWebHook = x.DingDingWebHook,
SkuSafeTurnoverDays = x.SkuSafeTurnoverDays SkuSafeTurnoverDays = x.SkuSafeTurnoverDays,
SiNanDingDingKey = x.SiNanDingDingKey,
SiNanDingDingWebHook = x.SiNanDingDingWebHook,
SiNanPolicyLevel = x.SiNanPolicyLevel
}).ToList() }).ToList()
}; };
departmentList.Add(department); departmentList.Add(department);

18
BBWY.Server.Model/Db/Mds/Shops.cs

@ -122,6 +122,24 @@ namespace BBWY.Server.Model.Db.Mds
/// </summary> /// </summary>
[Column(StringLength = 100)] [Column(StringLength = 100)]
public string DingDingKey { get; set; } public string DingDingKey { get; set; }
/// <summary>
/// 司南策略等级
/// </summary>
public int SiNanPolicyLevel { get; set; }
/// <summary>
/// 司南钉钉WebHook地址
/// </summary>
[Column(StringLength = 255)]
public string SiNanDingDingWebHook { get; set; }
/// <summary>
/// 司南钉钉密钥
/// </summary>
[Column(StringLength = 100)]
public string SiNanDingDingKey { get; set; }
} }
} }

15
BBWY.Server.Model/Dto/Request/Vender/ShopSettingRequest.cs

@ -36,5 +36,20 @@ namespace BBWY.Server.Model.Dto
public string DingDingKey { get; set; } public string DingDingKey { get; set; }
public int SkuSafeTurnoverDays { get; set; } public int SkuSafeTurnoverDays { get; set; }
/// <summary>
/// 司南策略等级
/// </summary>
public int SiNanPolicyLevel { get; set; }
/// <summary>
/// 司南钉钉WebHook地址
/// </summary>
public string SiNanDingDingWebHook { get; set; }
/// <summary>
/// 司南钉钉密钥
/// </summary>
public string SiNanDingDingKey { get; set; }
} }
} }

15
BBWY.Server.Model/Dto/Response/Vender/ShopResponse.cs

@ -50,6 +50,21 @@ namespace BBWY.Server.Model.Dto
/// 钉钉密钥 /// 钉钉密钥
/// </summary> /// </summary>
public string DingDingKey { get; set; } public string DingDingKey { get; set; }
/// <summary>
/// 司南策略等级
/// </summary>
public int SiNanPolicyLevel { get; set; }
/// <summary>
/// 司南钉钉WebHook地址
/// </summary>
public string SiNanDingDingWebHook { get; set; }
/// <summary>
/// 司南钉钉密钥
/// </summary>
public string SiNanDingDingKey { get; set; }
} }
public class PurchaseAccountResponse public class PurchaseAccountResponse

Loading…
Cancel
Save