private void CreatePidConfig(CouponRulesModel e)
 {
     CouponRulesDataHelper.Instanse.AddData(new CouponRulesConfig
     {
         RuleID      = e.ParentId,
         Type        = 4,
         ConfigValue = e.ProductId
     }, 0);
 }
 private void CreateCategoryConfig(CouponRulesModel e)
 {
     CouponRulesDataHelper.Instanse.AddData(new CouponRulesConfig
     {
         RuleID      = e.ParentId,
         Type        = 1,
         ConfigValue = e.Category
     }, 0);
 }
 private void CreateBrandConfig(CouponRulesModel e)
 {
     CouponRulesDataHelper.Instanse.AddData(new CouponRulesConfig
     {
         RuleID      = e.ParentId,
         Type        = 2,
         ConfigValue = $"{e.Category}|{e.Brand}"
     }, 0);
 }
 private void CreateShopIdConfig(CouponRulesModel e)
 {
     CouponRulesDataHelper.Instanse.AddData(new CouponRulesConfig
     {
         RuleID      = e.ParentId,
         Type        = 16,
         ConfigValue = e.ShopId?.ToString()
     }, 1);
 }