{"查询激活奖励记录列表": { "prefix": "ym-db-ActiveReward-Find", "body": [ "List $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActiveReward $3 in $1)", "{", "}" ] }, "查询激活奖励记录列表,并取值": { "prefix": "ym-db-ActiveReward-FindWithData", "body": [ "List $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActiveReward $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int MerchantId = $3.MerchantId; //商户", " DateTime StandardDate = $3.StandardDate; //达标日期", " int RewardSourceUserId = $3.RewardSourceUserId; //奖励来源创客", " decimal RewardAmount = $3.RewardAmount; //奖励金额", " decimal DivideAmount = $3.DivideAmount; //平分金额", " decimal RuleRewardAmount = $3.RuleRewardAmount; //规则奖励金额", " int BrandId = $3.BrandId; //品牌", " string UserNav = $3.UserNav; //创客父级", " int DirectBuddyNo = $3.DirectBuddyNo; //商户直属创客", " string MerUserNav = $3.MerUserNav; //商户直属创客父级", " string KqMerNo = $3.KqMerNo; //渠道商户编号", " string KqSnNo = $3.KqSnNo; //渠道SN号", " int SnType = $3.SnType; //机具类型", " int SnApplyUserId = $3.SnApplyUserId; //机具申请创客", " int ActType = $3.ActType; //激活类型", " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述", " int SnStoreId = $3.SnStoreId; //SN仓库", " int RewardRef = $3.RewardRef; //奖励来源创客", " string RewardTips = $3.RewardTips; //奖励描述", " string Province = $3.Province; //省份", " string City = $3.City; //城市", " string Remark = $3.Remark; //备注", " DateTime ActDate = $3.ActDate; //激活时间", " int TopUserId = $3.TopUserId; //顶级创客", " int MerUserId = $3.MerUserId; //直属创客", " int ParentUserId = $3.ParentUserId; //上级创客", " int ParentParentUserId = $3.ParentParentUserId; //上上级创客", "}" ] }, "查询激活奖励记录": { "prefix": "ym-db-ActiveReward-Exist", "body": [ "bool $1 = db.ActiveReward.Any(m => m.Id == $2);", ] }, "查询某个激活奖励记录,并取值": { "prefix": "ym-db-ActiveReward-FindByPrimaryKey", "body": [ "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int MerchantId = $1.MerchantId; //商户", " DateTime StandardDate = $1.StandardDate; //达标日期", " int RewardSourceUserId = $1.RewardSourceUserId; //奖励来源创客", " decimal RewardAmount = $1.RewardAmount; //奖励金额", " decimal DivideAmount = $1.DivideAmount; //平分金额", " decimal RuleRewardAmount = $1.RuleRewardAmount; //规则奖励金额", " int BrandId = $1.BrandId; //品牌", " string UserNav = $1.UserNav; //创客父级", " int DirectBuddyNo = $1.DirectBuddyNo; //商户直属创客", " string MerUserNav = $1.MerUserNav; //商户直属创客父级", " string KqMerNo = $1.KqMerNo; //渠道商户编号", " string KqSnNo = $1.KqSnNo; //渠道SN号", " int SnType = $1.SnType; //机具类型", " int SnApplyUserId = $1.SnApplyUserId; //机具申请创客", " int ActType = $1.ActType; //激活类型", " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述", " int SnStoreId = $1.SnStoreId; //SN仓库", " int RewardRef = $1.RewardRef; //奖励来源创客", " string RewardTips = $1.RewardTips; //奖励描述", " string Province = $1.Province; //省份", " string City = $1.City; //城市", " string Remark = $1.Remark; //备注", " DateTime ActDate = $1.ActDate; //激活时间", " int TopUserId = $1.TopUserId; //顶级创客", " int MerUserId = $1.MerUserId; //直属创客", " int ParentUserId = $1.ParentUserId; //上级创客", " int ParentParentUserId = $1.ParentParentUserId; //上上级创客", "}" ] }, "查询某个激活奖励记录,并赋值": { "prefix": "ym-db-ActiveReward-Update", "body": [ "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.MerchantId = $3; //商户", " $1.StandardDate = $4; //达标日期", " $1.RewardSourceUserId = $5; //奖励来源创客", " $1.RewardAmount = $6; //奖励金额", " $1.DivideAmount = $7; //平分金额", " $1.RuleRewardAmount = $8; //规则奖励金额", " $1.BrandId = $9; //品牌", " $1.UserNav = $10; //创客父级", " $1.DirectBuddyNo = $11; //商户直属创客", " $1.MerUserNav = $12; //商户直属创客父级", " $1.KqMerNo = $13; //渠道商户编号", " $1.KqSnNo = $14; //渠道SN号", " $1.SnType = $15; //机具类型", " $1.SnApplyUserId = $16; //机具申请创客", " $1.ActType = $17; //激活类型", " $1.ActTypeDesc = $18; //激活类型描述", " $1.SnStoreId = $19; //SN仓库", " $1.RewardRef = $20; //奖励来源创客", " $1.RewardTips = $21; //奖励描述", " $1.Province = $22; //省份", " $1.City = $23; //城市", " $1.Remark = $24; //备注", " $1.ActDate = $25; //激活时间", " $1.TopUserId = $26; //顶级创客", " $1.MerUserId = $27; //直属创客", " $1.ParentUserId = $28; //上级创客", " $1.ParentParentUserId = $29; //上上级创客", "}" ] }, "获取激活奖励记录数量": { "prefix": "ym-db-ActiveReward-FindAndCount", "body": [ "int $1 = db.ActiveReward.Count(m => $2);", ] }, "添加激活奖励记录": { "prefix": "ym-db-ActiveReward-Create", "body": [ "db.ActiveReward.Add(new ActiveReward()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " MerchantId = $2, //商户", " StandardDate = $3, //达标日期", " RewardSourceUserId = $4, //奖励来源创客", " RewardAmount = $5, //奖励金额", " DivideAmount = $6, //平分金额", " RuleRewardAmount = $7, //规则奖励金额", " BrandId = $8, //品牌", " UserNav = $9, //创客父级", " DirectBuddyNo = $10, //商户直属创客", " MerUserNav = $11, //商户直属创客父级", " KqMerNo = $12, //渠道商户编号", " KqSnNo = $13, //渠道SN号", " SnType = $14, //机具类型", " SnApplyUserId = $15, //机具申请创客", " ActType = $16, //激活类型", " ActTypeDesc = $17, //激活类型描述", " SnStoreId = $18, //SN仓库", " RewardRef = $19, //奖励来源创客", " RewardTips = $20, //奖励描述", " Province = $21, //省份", " City = $22, //城市", " Remark = $23, //备注", " ActDate = $24, //激活时间", " TopUserId = $25, //顶级创客", " MerUserId = $26, //直属创客", " ParentUserId = $27, //上级创客", " ParentParentUserId = $28, //上上级创客", "});" ] },"删除某个激活奖励记录": { "prefix": "ym-db-ActiveReward-Delete", "body": [ "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ActiveReward.Remove($1);", "}" ] }, "查询活动报名记录列表": { "prefix": "ym-db-ActivityEnrolRecord-Find", "body": [ "List $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityEnrolRecord $3 in $1)", "{", "}" ] }, "查询活动报名记录列表,并取值": { "prefix": "ym-db-ActivityEnrolRecord-FindWithData", "body": [ "List $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityEnrolRecord $3 in $1)", "{", " int ActId = $3.ActId; //活动", " int UserId = $3.UserId; //创客", " string EnrolMonth = $3.EnrolMonth; //报名有效月份", " string EffectStartTime = $3.EffectStartTime; //报名有效开始时间", " string EffectEndTime = $3.EffectEndTime; //报名有效结束时间", "}" ] }, "查询活动报名记录": { "prefix": "ym-db-ActivityEnrolRecord-Exist", "body": [ "bool $1 = db.ActivityEnrolRecord.Any(m => m.Id == $2);", ] }, "查询某个活动报名记录,并取值": { "prefix": "ym-db-ActivityEnrolRecord-FindByPrimaryKey", "body": [ "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ActId = $1.ActId; //活动", " int UserId = $1.UserId; //创客", " string EnrolMonth = $1.EnrolMonth; //报名有效月份", " string EffectStartTime = $1.EffectStartTime; //报名有效开始时间", " string EffectEndTime = $1.EffectEndTime; //报名有效结束时间", "}" ] }, "查询某个活动报名记录,并赋值": { "prefix": "ym-db-ActivityEnrolRecord-Update", "body": [ "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ActId = $2; //活动", " $1.UserId = $3; //创客", " $1.EnrolMonth = $4; //报名有效月份", " $1.EffectStartTime = $5; //报名有效开始时间", " $1.EffectEndTime = $6; //报名有效结束时间", "}" ] }, "获取活动报名记录数量": { "prefix": "ym-db-ActivityEnrolRecord-FindAndCount", "body": [ "int $1 = db.ActivityEnrolRecord.Count(m => $2);", ] }, "添加活动报名记录": { "prefix": "ym-db-ActivityEnrolRecord-Create", "body": [ "db.ActivityEnrolRecord.Add(new ActivityEnrolRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ActId = $1, //活动", " UserId = $2, //创客", " EnrolMonth = $3, //报名有效月份", " EffectStartTime = $4, //报名有效开始时间", " EffectEndTime = $5, //报名有效结束时间", "});" ] },"删除某个活动报名记录": { "prefix": "ym-db-ActivityEnrolRecord-Delete", "body": [ "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ActivityEnrolRecord.Remove($1);", "}" ] }, "查询活动信息列表": { "prefix": "ym-db-ActivityInfo-Find", "body": [ "List $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityInfo $3 in $1)", "{", "}" ] }, "查询活动信息列表,并取值": { "prefix": "ym-db-ActivityInfo-FindWithData", "body": [ "List $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityInfo $3 in $1)", "{", " string ActCode = $3.ActCode; //活动编号", " int ActType = $3.ActType; //活动类型", " string ActName = $3.ActName; //活动名称", " string BrandId = $3.BrandId; //产品类型", " string LimitTopBuddy = $3.LimitTopBuddy; //顶级创客设置", " int IsTop = $3.IsTop; //是否置顶", " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间", " DateTime EnrolStartDate = $3.EnrolStartDate; //报名开始日期", " DateTime EnrolEndDate = $3.EnrolEndDate; //报名截止日期", " string EnrolStartTime = $3.EnrolStartTime; //报名当天开始时间", " string EnrolEndTime = $3.EnrolEndTime; //报名当天截止时间", " string ActReferUrl = $3.ActReferUrl; //链接地址", " string ActBanner = $3.ActBanner; //活动Banner图片", " string ActContent = $3.ActContent; //活动详情", " string Remark = $3.Remark; //备注", "}" ] }, "查询活动信息": { "prefix": "ym-db-ActivityInfo-Exist", "body": [ "bool $1 = db.ActivityInfo.Any(m => m.Id == $2);", ] }, "查询某个活动信息,并取值": { "prefix": "ym-db-ActivityInfo-FindByPrimaryKey", "body": [ "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ActCode = $1.ActCode; //活动编号", " int ActType = $1.ActType; //活动类型", " string ActName = $1.ActName; //活动名称", " string BrandId = $1.BrandId; //产品类型", " string LimitTopBuddy = $1.LimitTopBuddy; //顶级创客设置", " int IsTop = $1.IsTop; //是否置顶", " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间", " DateTime EnrolStartDate = $1.EnrolStartDate; //报名开始日期", " DateTime EnrolEndDate = $1.EnrolEndDate; //报名截止日期", " string EnrolStartTime = $1.EnrolStartTime; //报名当天开始时间", " string EnrolEndTime = $1.EnrolEndTime; //报名当天截止时间", " string ActReferUrl = $1.ActReferUrl; //链接地址", " string ActBanner = $1.ActBanner; //活动Banner图片", " string ActContent = $1.ActContent; //活动详情", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个活动信息,并赋值": { "prefix": "ym-db-ActivityInfo-Update", "body": [ "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ActCode = $2; //活动编号", " $1.ActType = $3; //活动类型", " $1.ActName = $4; //活动名称", " $1.BrandId = $5; //产品类型", " $1.LimitTopBuddy = $6; //顶级创客设置", " $1.IsTop = $7; //是否置顶", " $1.EffectStartDate = $8; //活动开始时间", " $1.EffectEndDate = $9; //活动结束时间", " $1.EnrolStartDate = $10; //报名开始日期", " $1.EnrolEndDate = $11; //报名截止日期", " $1.EnrolStartTime = $12; //报名当天开始时间", " $1.EnrolEndTime = $13; //报名当天截止时间", " $1.ActReferUrl = $14; //链接地址", " $1.ActBanner = $15; //活动Banner图片", " $1.ActContent = $16; //活动详情", " $1.Remark = $17; //备注", "}" ] }, "获取活动信息数量": { "prefix": "ym-db-ActivityInfo-FindAndCount", "body": [ "int $1 = db.ActivityInfo.Count(m => $2);", ] }, "添加活动信息": { "prefix": "ym-db-ActivityInfo-Create", "body": [ "db.ActivityInfo.Add(new ActivityInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ActCode = $1, //活动编号", " ActType = $2, //活动类型", " ActName = $3, //活动名称", " BrandId = $4, //产品类型", " LimitTopBuddy = $5, //顶级创客设置", " IsTop = $6, //是否置顶", " EffectStartDate = $7, //活动开始时间", " EffectEndDate = $8, //活动结束时间", " EnrolStartDate = $9, //报名开始日期", " EnrolEndDate = $10, //报名截止日期", " EnrolStartTime = $11, //报名当天开始时间", " EnrolEndTime = $12, //报名当天截止时间", " ActReferUrl = $13, //链接地址", " ActBanner = $14, //活动Banner图片", " ActContent = $15, //活动详情", " Remark = $16, //备注", "});" ] },"删除某个活动信息": { "prefix": "ym-db-ActivityInfo-Delete", "body": [ "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ActivityInfo.Remove($1);", "}" ] }, "查询活动奖励明细列表": { "prefix": "ym-db-ActivityPrizeDetail-Find", "body": [ "List $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityPrizeDetail $3 in $1)", "{", "}" ] }, "查询活动奖励明细列表,并取值": { "prefix": "ym-db-ActivityPrizeDetail-FindWithData", "body": [ "List $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ActivityPrizeDetail $3 in $1)", "{", " int ActivityId = $3.ActivityId; //活动", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //机具品牌", " decimal TradeAmt = $3.TradeAmt; //合伙人团队交易总金额", " int CheckStatus = $3.CheckStatus; //同步状态", " string TradeMonth = $3.TradeMonth; //交易月份", " decimal OtherProdCreditTradeAmt = $3.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额", " decimal CreditTradeAmt = $3.CreditTradeAmt; //合伙人团队贷记卡交易总金额", " decimal ActRewardAmt = $3.ActRewardAmt; //合伙人团队交易活动奖励金额", " decimal ProfitRate = $3.ProfitRate; //活动奖励对应分成比例", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询活动奖励明细": { "prefix": "ym-db-ActivityPrizeDetail-Exist", "body": [ "bool $1 = db.ActivityPrizeDetail.Any(m => m.Id == $2);", ] }, "查询某个活动奖励明细,并取值": { "prefix": "ym-db-ActivityPrizeDetail-FindByPrimaryKey", "body": [ "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ActivityId = $1.ActivityId; //活动", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //机具品牌", " decimal TradeAmt = $1.TradeAmt; //合伙人团队交易总金额", " int CheckStatus = $1.CheckStatus; //同步状态", " string TradeMonth = $1.TradeMonth; //交易月份", " decimal OtherProdCreditTradeAmt = $1.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额", " decimal CreditTradeAmt = $1.CreditTradeAmt; //合伙人团队贷记卡交易总金额", " decimal ActRewardAmt = $1.ActRewardAmt; //合伙人团队交易活动奖励金额", " decimal ProfitRate = $1.ProfitRate; //活动奖励对应分成比例", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个活动奖励明细,并赋值": { "prefix": "ym-db-ActivityPrizeDetail-Update", "body": [ "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ActivityId = $2; //活动", " $1.UserId = $3; //创客", " $1.BrandId = $4; //机具品牌", " $1.TradeAmt = $5; //合伙人团队交易总金额", " $1.CheckStatus = $6; //同步状态", " $1.TradeMonth = $7; //交易月份", " $1.OtherProdCreditTradeAmt = $8; //其他组合计算产品贷记卡交易总金额", " $1.CreditTradeAmt = $9; //合伙人团队贷记卡交易总金额", " $1.ActRewardAmt = $10; //合伙人团队交易活动奖励金额", " $1.ProfitRate = $11; //活动奖励对应分成比例", " $1.TopUserId = $12; //顶级创客", "}" ] }, "获取活动奖励明细数量": { "prefix": "ym-db-ActivityPrizeDetail-FindAndCount", "body": [ "int $1 = db.ActivityPrizeDetail.Count(m => $2);", ] }, "添加活动奖励明细": { "prefix": "ym-db-ActivityPrizeDetail-Create", "body": [ "db.ActivityPrizeDetail.Add(new ActivityPrizeDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ActivityId = $1, //活动", " UserId = $2, //创客", " BrandId = $3, //机具品牌", " TradeAmt = $4, //合伙人团队交易总金额", " CheckStatus = $5, //同步状态", " TradeMonth = $6, //交易月份", " OtherProdCreditTradeAmt = $7, //其他组合计算产品贷记卡交易总金额", " CreditTradeAmt = $8, //合伙人团队贷记卡交易总金额", " ActRewardAmt = $9, //合伙人团队交易活动奖励金额", " ProfitRate = $10, //活动奖励对应分成比例", " TopUserId = $11, //顶级创客", "});" ] },"删除某个活动奖励明细": { "prefix": "ym-db-ActivityPrizeDetail-Delete", "body": [ "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ActivityPrizeDetail.Remove($1);", "}" ] }, "查询广告位列表": { "prefix": "ym-db-Advertisment-Find", "body": [ "List $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Advertisment $3 in $1)", "{", "}" ] }, "查询广告位列表,并取值": { "prefix": "ym-db-Advertisment-FindWithData", "body": [ "List $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Advertisment $3 in $1)", "{", " string Title = $3.Title; //标题", " string ColId = $3.ColId; //分类", " string PicPath = $3.PicPath; //图片", " string Contents = $3.Contents; //内容", " string Url = $3.Url; //链接地址", "}" ] }, "查询广告位": { "prefix": "ym-db-Advertisment-Exist", "body": [ "bool $1 = db.Advertisment.Any(m => m.Id == $2);", ] }, "查询某个广告位,并取值": { "prefix": "ym-db-Advertisment-FindByPrimaryKey", "body": [ "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string ColId = $1.ColId; //分类", " string PicPath = $1.PicPath; //图片", " string Contents = $1.Contents; //内容", " string Url = $1.Url; //链接地址", "}" ] }, "查询某个广告位,并赋值": { "prefix": "ym-db-Advertisment-Update", "body": [ "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.ColId = $3; //分类", " $1.PicPath = $4; //图片", " $1.Contents = $5; //内容", " $1.Url = $6; //链接地址", "}" ] }, "获取广告位数量": { "prefix": "ym-db-Advertisment-FindAndCount", "body": [ "int $1 = db.Advertisment.Count(m => $2);", ] }, "添加广告位": { "prefix": "ym-db-Advertisment-Create", "body": [ "db.Advertisment.Add(new Advertisment()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " ColId = $2, //分类", " PicPath = $3, //图片", " Contents = $4, //内容", " Url = $5, //链接地址", "});" ] },"删除某个广告位": { "prefix": "ym-db-Advertisment-Delete", "body": [ "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Advertisment.Remove($1);", "}" ] }, "查询代理商等级列表": { "prefix": "ym-db-AgentLevelSet-Find", "body": [ "List $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AgentLevelSet $3 in $1)", "{", "}" ] }, "查询代理商等级列表,并取值": { "prefix": "ym-db-AgentLevelSet-FindWithData", "body": [ "List $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AgentLevelSet $3 in $1)", "{", " string Name = $3.Name; //名称", " decimal ProfitPercent = $3.ProfitPercent; //分润比例", " ulong LevelDiff = $3.LevelDiff; //分润级差", " decimal AreasProfitPercent = $3.AreasProfitPercent; //区域保护分润比例", "}" ] }, "查询代理商等级": { "prefix": "ym-db-AgentLevelSet-Exist", "body": [ "bool $1 = db.AgentLevelSet.Any(m => m.Id == $2);", ] }, "查询某个代理商等级,并取值": { "prefix": "ym-db-AgentLevelSet-FindByPrimaryKey", "body": [ "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " decimal ProfitPercent = $1.ProfitPercent; //分润比例", " ulong LevelDiff = $1.LevelDiff; //分润级差", " decimal AreasProfitPercent = $1.AreasProfitPercent; //区域保护分润比例", "}" ] }, "查询某个代理商等级,并赋值": { "prefix": "ym-db-AgentLevelSet-Update", "body": [ "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.ProfitPercent = $3; //分润比例", " $1.LevelDiff = $4; //分润级差", " $1.AreasProfitPercent = $5; //区域保护分润比例", "}" ] }, "获取代理商等级数量": { "prefix": "ym-db-AgentLevelSet-FindAndCount", "body": [ "int $1 = db.AgentLevelSet.Count(m => $2);", ] }, "添加代理商等级": { "prefix": "ym-db-AgentLevelSet-Create", "body": [ "db.AgentLevelSet.Add(new AgentLevelSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " ProfitPercent = $2, //分润比例", " LevelDiff = $3, //分润级差", " AreasProfitPercent = $4, //区域保护分润比例", "});" ] },"删除某个代理商等级": { "prefix": "ym-db-AgentLevelSet-Delete", "body": [ "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.AgentLevelSet.Remove($1);", "}" ] }, "查询App底部导航列表": { "prefix": "ym-db-AppBottomNavs-Find", "body": [ "List $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppBottomNavs $3 in $1)", "{", "}" ] }, "查询App底部导航列表,并取值": { "prefix": "ym-db-AppBottomNavs-FindWithData", "body": [ "List $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppBottomNavs $3 in $1)", "{", " string Title = $3.Title; //标题", " string SelectIcon = $3.SelectIcon; //选中图标", " string NormalIcon = $3.NormalIcon; //未选中图标", " string SelectTextColor = $3.SelectTextColor; //选中文字颜色", " string NormalTextColor = $3.NormalTextColor; //未选中文字颜色", " string PageName = $3.PageName; //关联页面文件", " string NoPageHint = $3.NoPageHint; //空页面提示信息", " string BgColor = $3.BgColor; //背景色", "}" ] }, "查询App底部导航": { "prefix": "ym-db-AppBottomNavs-Exist", "body": [ "bool $1 = db.AppBottomNavs.Any(m => m.Id == $2);", ] }, "查询某个App底部导航,并取值": { "prefix": "ym-db-AppBottomNavs-FindByPrimaryKey", "body": [ "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string SelectIcon = $1.SelectIcon; //选中图标", " string NormalIcon = $1.NormalIcon; //未选中图标", " string SelectTextColor = $1.SelectTextColor; //选中文字颜色", " string NormalTextColor = $1.NormalTextColor; //未选中文字颜色", " string PageName = $1.PageName; //关联页面文件", " string NoPageHint = $1.NoPageHint; //空页面提示信息", " string BgColor = $1.BgColor; //背景色", "}" ] }, "查询某个App底部导航,并赋值": { "prefix": "ym-db-AppBottomNavs-Update", "body": [ "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.SelectIcon = $3; //选中图标", " $1.NormalIcon = $4; //未选中图标", " $1.SelectTextColor = $5; //选中文字颜色", " $1.NormalTextColor = $6; //未选中文字颜色", " $1.PageName = $7; //关联页面文件", " $1.NoPageHint = $8; //空页面提示信息", " $1.BgColor = $9; //背景色", "}" ] }, "获取App底部导航数量": { "prefix": "ym-db-AppBottomNavs-FindAndCount", "body": [ "int $1 = db.AppBottomNavs.Count(m => $2);", ] }, "添加App底部导航": { "prefix": "ym-db-AppBottomNavs-Create", "body": [ "db.AppBottomNavs.Add(new AppBottomNavs()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " SelectIcon = $2, //选中图标", " NormalIcon = $3, //未选中图标", " SelectTextColor = $4, //选中文字颜色", " NormalTextColor = $5, //未选中文字颜色", " PageName = $6, //关联页面文件", " NoPageHint = $7, //空页面提示信息", " BgColor = $8, //背景色", "});" ] },"删除某个App底部导航": { "prefix": "ym-db-AppBottomNavs-Delete", "body": [ "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.AppBottomNavs.Remove($1);", "}" ] }, "查询App版本管理列表": { "prefix": "ym-db-AppVersion-Find", "body": [ "List $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVersion $3 in $1)", "{", "}" ] }, "查询App版本管理列表,并取值": { "prefix": "ym-db-AppVersion-FindWithData", "body": [ "List $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVersion $3 in $1)", "{", " string TerminalKind = $3.TerminalKind; //终端类型", " string VersionNum = $3.VersionNum; //版本号", " string Title = $3.Title; //标题", " string Info = $3.Info; //更新信息", " string ConfirmText = $3.ConfirmText; //确定按钮文字", " string CancelText = $3.CancelText; //取消按钮文字", " string DownloadUrl = $3.DownloadUrl; //更新地址", "}" ] }, "查询App版本管理": { "prefix": "ym-db-AppVersion-Exist", "body": [ "bool $1 = db.AppVersion.Any(m => m.Id == $2);", ] }, "查询某个App版本管理,并取值": { "prefix": "ym-db-AppVersion-FindByPrimaryKey", "body": [ "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TerminalKind = $1.TerminalKind; //终端类型", " string VersionNum = $1.VersionNum; //版本号", " string Title = $1.Title; //标题", " string Info = $1.Info; //更新信息", " string ConfirmText = $1.ConfirmText; //确定按钮文字", " string CancelText = $1.CancelText; //取消按钮文字", " string DownloadUrl = $1.DownloadUrl; //更新地址", "}" ] }, "查询某个App版本管理,并赋值": { "prefix": "ym-db-AppVersion-Update", "body": [ "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TerminalKind = $2; //终端类型", " $1.VersionNum = $3; //版本号", " $1.Title = $4; //标题", " $1.Info = $5; //更新信息", " $1.ConfirmText = $6; //确定按钮文字", " $1.CancelText = $7; //取消按钮文字", " $1.DownloadUrl = $8; //更新地址", "}" ] }, "获取App版本管理数量": { "prefix": "ym-db-AppVersion-FindAndCount", "body": [ "int $1 = db.AppVersion.Count(m => $2);", ] }, "添加App版本管理": { "prefix": "ym-db-AppVersion-Create", "body": [ "db.AppVersion.Add(new AppVersion()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TerminalKind = $1, //终端类型", " VersionNum = $2, //版本号", " Title = $3, //标题", " Info = $4, //更新信息", " ConfirmText = $5, //确定按钮文字", " CancelText = $6, //取消按钮文字", " DownloadUrl = $7, //更新地址", "});" ] },"删除某个App版本管理": { "prefix": "ym-db-AppVersion-Delete", "body": [ "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.AppVersion.Remove($1);", "}" ] }, "查询操作视频分类列表": { "prefix": "ym-db-AppVideo-Find", "body": [ "List $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVideo $3 in $1)", "{", "}" ] }, "查询操作视频分类列表,并取值": { "prefix": "ym-db-AppVideo-FindWithData", "body": [ "List $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVideo $3 in $1)", "{", " string Name = $3.Name; //名称", " string BannerPic = $3.BannerPic; //Banner图片", " string Remark = $3.Remark; //备注", "}" ] }, "查询操作视频分类": { "prefix": "ym-db-AppVideo-Exist", "body": [ "bool $1 = db.AppVideo.Any(m => m.Id == $2);", ] }, "查询某个操作视频分类,并取值": { "prefix": "ym-db-AppVideo-FindByPrimaryKey", "body": [ "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string BannerPic = $1.BannerPic; //Banner图片", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个操作视频分类,并赋值": { "prefix": "ym-db-AppVideo-Update", "body": [ "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.BannerPic = $3; //Banner图片", " $1.Remark = $4; //备注", "}" ] }, "获取操作视频分类数量": { "prefix": "ym-db-AppVideo-FindAndCount", "body": [ "int $1 = db.AppVideo.Count(m => $2);", ] }, "添加操作视频分类": { "prefix": "ym-db-AppVideo-Create", "body": [ "db.AppVideo.Add(new AppVideo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " BannerPic = $2, //Banner图片", " Remark = $3, //备注", "});" ] },"删除某个操作视频分类": { "prefix": "ym-db-AppVideo-Delete", "body": [ "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.AppVideo.Remove($1);", "}" ] }, "查询操作视频列表列表": { "prefix": "ym-db-AppVideoList-Find", "body": [ "List $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVideoList $3 in $1)", "{", "}" ] }, "查询操作视频列表列表,并取值": { "prefix": "ym-db-AppVideoList-FindWithData", "body": [ "List $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (AppVideoList $3 in $1)", "{", " string Title = $3.Title; //标题", " string VideoUrl = $3.VideoUrl; //视频地址", " string Remark = $3.Remark; //备注", " int VideoId = $3.VideoId; //视频分类Id", " string BgPic = $3.BgPic; //背景图", "}" ] }, "查询操作视频列表": { "prefix": "ym-db-AppVideoList-Exist", "body": [ "bool $1 = db.AppVideoList.Any(m => m.Id == $2);", ] }, "查询某个操作视频列表,并取值": { "prefix": "ym-db-AppVideoList-FindByPrimaryKey", "body": [ "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string VideoUrl = $1.VideoUrl; //视频地址", " string Remark = $1.Remark; //备注", " int VideoId = $1.VideoId; //视频分类Id", " string BgPic = $1.BgPic; //背景图", "}" ] }, "查询某个操作视频列表,并赋值": { "prefix": "ym-db-AppVideoList-Update", "body": [ "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.VideoUrl = $3; //视频地址", " $1.Remark = $4; //备注", " $1.VideoId = $5; //视频分类Id", " $1.BgPic = $6; //背景图", "}" ] }, "获取操作视频列表数量": { "prefix": "ym-db-AppVideoList-FindAndCount", "body": [ "int $1 = db.AppVideoList.Count(m => $2);", ] }, "添加操作视频列表": { "prefix": "ym-db-AppVideoList-Create", "body": [ "db.AppVideoList.Add(new AppVideoList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " VideoUrl = $2, //视频地址", " Remark = $3, //备注", " VideoId = $4, //视频分类Id", " BgPic = $5, //背景图", "});" ] },"删除某个操作视频列表": { "prefix": "ym-db-AppVideoList-Delete", "body": [ "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.AppVideoList.Remove($1);", "}" ] }, "查询银行信息列表": { "prefix": "ym-db-BankInfo-Find", "body": [ "List $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (BankInfo $3 in $1)", "{", "}" ] }, "查询银行信息列表,并取值": { "prefix": "ym-db-BankInfo-FindWithData", "body": [ "List $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (BankInfo $3 in $1)", "{", " string BankName = $3.BankName; //银行全称", " string BankCode = $3.BankCode; //银行编码", " string UnitedBankNo = $3.UnitedBankNo; //银行总行联行号", " string UnitedBankName = $3.UnitedBankName; //总行名称", " string BankNameAbbr = $3.BankNameAbbr; //银行简称", "}" ] }, "查询银行信息": { "prefix": "ym-db-BankInfo-Exist", "body": [ "bool $1 = db.BankInfo.Any(m => m.Id == $2);", ] }, "查询某个银行信息,并取值": { "prefix": "ym-db-BankInfo-FindByPrimaryKey", "body": [ "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string BankName = $1.BankName; //银行全称", " string BankCode = $1.BankCode; //银行编码", " string UnitedBankNo = $1.UnitedBankNo; //银行总行联行号", " string UnitedBankName = $1.UnitedBankName; //总行名称", " string BankNameAbbr = $1.BankNameAbbr; //银行简称", "}" ] }, "查询某个银行信息,并赋值": { "prefix": "ym-db-BankInfo-Update", "body": [ "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.BankName = $2; //银行全称", " $1.BankCode = $3; //银行编码", " $1.UnitedBankNo = $4; //银行总行联行号", " $1.UnitedBankName = $5; //总行名称", " $1.BankNameAbbr = $6; //银行简称", "}" ] }, "获取银行信息数量": { "prefix": "ym-db-BankInfo-FindAndCount", "body": [ "int $1 = db.BankInfo.Count(m => $2);", ] }, "添加银行信息": { "prefix": "ym-db-BankInfo-Create", "body": [ "db.BankInfo.Add(new BankInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BankName = $1, //银行全称", " BankCode = $2, //银行编码", " UnitedBankNo = $3, //银行总行联行号", " UnitedBankName = $4, //总行名称", " BankNameAbbr = $5, //银行简称", "});" ] },"删除某个银行信息": { "prefix": "ym-db-BankInfo-Delete", "body": [ "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.BankInfo.Remove($1);", "}" ] }, "查询分类设置列表": { "prefix": "ym-db-Col-Find", "body": [ "List $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Col $3 in $1)", "{", "}" ] }, "查询分类设置列表,并取值": { "prefix": "ym-db-Col-FindWithData", "body": [ "List $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Col $3 in $1)", "{", " string ColId = $3.ColId; //编号", " string ColName = $3.ColName; //名称", " string ColPicPath = $3.ColPicPath; //图标", " string ColDetail = $3.ColDetail; //简介", " ulong Recommend = $3.Recommend; //推荐", " string ColEnName = $3.ColEnName; //英文名", " string Contents = $3.Contents; //详细内容", " string Url = $3.Url; //第三方链接", " string ListTemp = $3.ListTemp; //列表模板PC", " string DetailTemp = $3.DetailTemp; //详情模板PC", " string ListTempM = $3.ListTempM; //列表模板移动", " string DetailTempM = $3.DetailTempM; //详情模板移动", " int ListPageCount = $3.ListPageCount; //每页数量", " int ParentId = $3.ParentId; //父级Id", " string ColEnNav = $3.ColEnNav; //英文路径", " string ClassName = $3.ClassName; //class样式名1", "}" ] }, "查询分类设置": { "prefix": "ym-db-Col-Exist", "body": [ "bool $1 = db.Col.Any(m => m.Id == $2);", ] }, "查询某个分类设置,并取值": { "prefix": "ym-db-Col-FindByPrimaryKey", "body": [ "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColId = $1.ColId; //编号", " string ColName = $1.ColName; //名称", " string ColPicPath = $1.ColPicPath; //图标", " string ColDetail = $1.ColDetail; //简介", " ulong Recommend = $1.Recommend; //推荐", " string ColEnName = $1.ColEnName; //英文名", " string Contents = $1.Contents; //详细内容", " string Url = $1.Url; //第三方链接", " string ListTemp = $1.ListTemp; //列表模板PC", " string DetailTemp = $1.DetailTemp; //详情模板PC", " string ListTempM = $1.ListTempM; //列表模板移动", " string DetailTempM = $1.DetailTempM; //详情模板移动", " int ListPageCount = $1.ListPageCount; //每页数量", " int ParentId = $1.ParentId; //父级Id", " string ColEnNav = $1.ColEnNav; //英文路径", " string ClassName = $1.ClassName; //class样式名1", "}" ] }, "查询某个分类设置,并赋值": { "prefix": "ym-db-Col-Update", "body": [ "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColId = $2; //编号", " $1.ColName = $3; //名称", " $1.ColPicPath = $4; //图标", " $1.ColDetail = $5; //简介", " $1.Recommend = $6; //推荐", " $1.ColEnName = $7; //英文名", " $1.Contents = $8; //详细内容", " $1.Url = $9; //第三方链接", " $1.ListTemp = $10; //列表模板PC", " $1.DetailTemp = $11; //详情模板PC", " $1.ListTempM = $12; //列表模板移动", " $1.DetailTempM = $13; //详情模板移动", " $1.ListPageCount = $14; //每页数量", " $1.ParentId = $15; //父级Id", " $1.ColEnNav = $16; //英文路径", " $1.ClassName = $17; //class样式名1", "}" ] }, "获取分类设置数量": { "prefix": "ym-db-Col-FindAndCount", "body": [ "int $1 = db.Col.Count(m => $2);", ] }, "添加分类设置": { "prefix": "ym-db-Col-Create", "body": [ "db.Col.Add(new Col()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColId = $1, //编号", " ColName = $2, //名称", " ColPicPath = $3, //图标", " ColDetail = $4, //简介", " Recommend = $5, //推荐", " ColEnName = $6, //英文名", " Contents = $7, //详细内容", " Url = $8, //第三方链接", " ListTemp = $9, //列表模板PC", " DetailTemp = $10, //详情模板PC", " ListTempM = $11, //列表模板移动", " DetailTempM = $12, //详情模板移动", " ListPageCount = $13, //每页数量", " ParentId = $14, //父级Id", " ColEnNav = $15, //英文路径", " ClassName = $16, //class样式名1", "});" ] },"删除某个分类设置": { "prefix": "ym-db-Col-Delete", "body": [ "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Col.Remove($1);", "}" ] }, "查询消费者对应商户的OpenId列表": { "prefix": "ym-db-ConsumerOpenIds-Find", "body": [ "List $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerOpenIds $3 in $1)", "{", "}" ] }, "查询消费者对应商户的OpenId列表,并取值": { "prefix": "ym-db-ConsumerOpenIds-FindWithData", "body": [ "List $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerOpenIds $3 in $1)", "{", " string OpenId = $3.OpenId; //消费者OpenId", " int ConsumerId = $3.ConsumerId; //消费者", "}" ] }, "查询消费者对应商户的OpenId": { "prefix": "ym-db-ConsumerOpenIds-Exist", "body": [ "bool $1 = db.ConsumerOpenIds.Any(m => m.OpenId == $2);", ] }, "查询某个消费者对应商户的OpenId,并取值": { "prefix": "ym-db-ConsumerOpenIds-FindByPrimaryKey", "body": [ "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);", "if ($1 != null)", "{", " string OpenId = $1.OpenId; //消费者OpenId", " int ConsumerId = $1.ConsumerId; //消费者", "}" ] }, "查询某个消费者对应商户的OpenId,并赋值": { "prefix": "ym-db-ConsumerOpenIds-Update", "body": [ "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);", "if ($1 != null)", "{", " $1.OpenId = $2; //消费者OpenId", " $1.ConsumerId = $3; //消费者", "}" ] }, "获取消费者对应商户的OpenId数量": { "prefix": "ym-db-ConsumerOpenIds-FindAndCount", "body": [ "int $1 = db.ConsumerOpenIds.Count(m => $2);", ] }, "添加消费者对应商户的OpenId": { "prefix": "ym-db-ConsumerOpenIds-Create", "body": [ "db.ConsumerOpenIds.Add(new ConsumerOpenIds()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " OpenId = $1, //消费者OpenId", " ConsumerId = $2, //消费者", "});" ] },"删除某个消费者对应商户的OpenId": { "prefix": "ym-db-ConsumerOpenIds-Delete", "body": [ "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);", "if ($1 != null)", "{", " db.ConsumerOpenIds.Remove($1);", "}" ] }, "查询消费记录列表": { "prefix": "ym-db-ConsumerOrders-Find", "body": [ "List $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerOrders $3 in $1)", "{", "}" ] }, "查询消费记录列表,并取值": { "prefix": "ym-db-ConsumerOrders-FindWithData", "body": [ "List $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerOrders $3 in $1)", "{", " int MerchantId = $3.MerchantId; //商户", " int ConsumerId = $3.ConsumerId; //消费者", " string OrderNo = $3.OrderNo; //订单号", " int PayMode = $3.PayMode; //支付方式", " decimal PayMoney = $3.PayMoney; //支付金额", " decimal ReturnMoney = $3.ReturnMoney; //已返金额", " string SnNo = $3.SnNo; //SN号", " decimal MaxDivi = $3.MaxDivi; //最大分红", " decimal CurDivi = $3.CurDivi; //当前分红", "}" ] }, "查询消费记录": { "prefix": "ym-db-ConsumerOrders-Exist", "body": [ "bool $1 = db.ConsumerOrders.Any(m => m.Id == $2);", ] }, "查询某个消费记录,并取值": { "prefix": "ym-db-ConsumerOrders-FindByPrimaryKey", "body": [ "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MerchantId = $1.MerchantId; //商户", " int ConsumerId = $1.ConsumerId; //消费者", " string OrderNo = $1.OrderNo; //订单号", " int PayMode = $1.PayMode; //支付方式", " decimal PayMoney = $1.PayMoney; //支付金额", " decimal ReturnMoney = $1.ReturnMoney; //已返金额", " string SnNo = $1.SnNo; //SN号", " decimal MaxDivi = $1.MaxDivi; //最大分红", " decimal CurDivi = $1.CurDivi; //当前分红", "}" ] }, "查询某个消费记录,并赋值": { "prefix": "ym-db-ConsumerOrders-Update", "body": [ "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MerchantId = $2; //商户", " $1.ConsumerId = $3; //消费者", " $1.OrderNo = $4; //订单号", " $1.PayMode = $5; //支付方式", " $1.PayMoney = $6; //支付金额", " $1.ReturnMoney = $7; //已返金额", " $1.SnNo = $8; //SN号", " $1.MaxDivi = $9; //最大分红", " $1.CurDivi = $10; //当前分红", "}" ] }, "获取消费记录数量": { "prefix": "ym-db-ConsumerOrders-FindAndCount", "body": [ "int $1 = db.ConsumerOrders.Count(m => $2);", ] }, "添加消费记录": { "prefix": "ym-db-ConsumerOrders-Create", "body": [ "db.ConsumerOrders.Add(new ConsumerOrders()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MerchantId = $1, //商户", " ConsumerId = $2, //消费者", " OrderNo = $3, //订单号", " PayMode = $4, //支付方式", " PayMoney = $5, //支付金额", " ReturnMoney = $6, //已返金额", " SnNo = $7, //SN号", " MaxDivi = $8, //最大分红", " CurDivi = $9, //当前分红", "});" ] },"删除某个消费记录": { "prefix": "ym-db-ConsumerOrders-Delete", "body": [ "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ConsumerOrders.Remove($1);", "}" ] }, "查询消费者分红记录列表": { "prefix": "ym-db-ConsumerProfit-Find", "body": [ "List $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerProfit $3 in $1)", "{", "}" ] }, "查询消费者分红记录列表,并取值": { "prefix": "ym-db-ConsumerProfit-FindWithData", "body": [ "List $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ConsumerProfit $3 in $1)", "{", " int ConsumerId = $3.ConsumerId; //消费者", " int MerchantId = $3.MerchantId; //商户", " decimal GetMoney = $3.GetMoney; //分红金额", " int OrderId = $3.OrderId; //订单", "}" ] }, "查询消费者分红记录": { "prefix": "ym-db-ConsumerProfit-Exist", "body": [ "bool $1 = db.ConsumerProfit.Any(m => m.Id == $2);", ] }, "查询某个消费者分红记录,并取值": { "prefix": "ym-db-ConsumerProfit-FindByPrimaryKey", "body": [ "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ConsumerId = $1.ConsumerId; //消费者", " int MerchantId = $1.MerchantId; //商户", " decimal GetMoney = $1.GetMoney; //分红金额", " int OrderId = $1.OrderId; //订单", "}" ] }, "查询某个消费者分红记录,并赋值": { "prefix": "ym-db-ConsumerProfit-Update", "body": [ "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ConsumerId = $2; //消费者", " $1.MerchantId = $3; //商户", " $1.GetMoney = $4; //分红金额", " $1.OrderId = $5; //订单", "}" ] }, "获取消费者分红记录数量": { "prefix": "ym-db-ConsumerProfit-FindAndCount", "body": [ "int $1 = db.ConsumerProfit.Count(m => $2);", ] }, "添加消费者分红记录": { "prefix": "ym-db-ConsumerProfit-Create", "body": [ "db.ConsumerProfit.Add(new ConsumerProfit()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ConsumerId = $1, //消费者", " MerchantId = $2, //商户", " GetMoney = $3, //分红金额", " OrderId = $4, //订单", "});" ] },"删除某个消费者分红记录": { "prefix": "ym-db-ConsumerProfit-Delete", "body": [ "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ConsumerProfit.Remove($1);", "}" ] }, "查询消费者列表": { "prefix": "ym-db-Consumers-Find", "body": [ "List $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Consumers $3 in $1)", "{", "}" ] }, "查询消费者列表,并取值": { "prefix": "ym-db-Consumers-FindWithData", "body": [ "List $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Consumers $3 in $1)", "{", " string NickName = $3.NickName; //昵称", " string HeadPhoto = $3.HeadPhoto; //头像", " string Mobile = $3.Mobile; //手机号", " decimal TotalDividend = $3.TotalDividend; //累计分红", " int TotalIntegral = $3.TotalIntegral; //累计积分", " int CurIntgegral = $3.CurIntgegral; //当前积分", " string WechatUnionid = $3.WechatUnionid; //微信Unionid", " string AlipayUserId = $3.AlipayUserId; //支付宝UserId", " decimal TotalAmount = $3.TotalAmount; //累计消费金额", " int TotalConsumCount = $3.TotalConsumCount; //累计消费次数", " DateTime LastConsumDate = $3.LastConsumDate; //最近消费时间", " ulong WeChatPayFlag = $3.WeChatPayFlag; //微信付款标记", " ulong AlipayFlag = $3.AlipayFlag; //支付宝付款标记", " ulong CardFlag = $3.CardFlag; //是否领取会员卡", " string WechatOpenId = $3.WechatOpenId; //微信OpenId", "}" ] }, "查询消费者": { "prefix": "ym-db-Consumers-Exist", "body": [ "bool $1 = db.Consumers.Any(m => m.Id == $2);", ] }, "查询某个消费者,并取值": { "prefix": "ym-db-Consumers-FindByPrimaryKey", "body": [ "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string NickName = $1.NickName; //昵称", " string HeadPhoto = $1.HeadPhoto; //头像", " string Mobile = $1.Mobile; //手机号", " decimal TotalDividend = $1.TotalDividend; //累计分红", " int TotalIntegral = $1.TotalIntegral; //累计积分", " int CurIntgegral = $1.CurIntgegral; //当前积分", " string WechatUnionid = $1.WechatUnionid; //微信Unionid", " string AlipayUserId = $1.AlipayUserId; //支付宝UserId", " decimal TotalAmount = $1.TotalAmount; //累计消费金额", " int TotalConsumCount = $1.TotalConsumCount; //累计消费次数", " DateTime LastConsumDate = $1.LastConsumDate; //最近消费时间", " ulong WeChatPayFlag = $1.WeChatPayFlag; //微信付款标记", " ulong AlipayFlag = $1.AlipayFlag; //支付宝付款标记", " ulong CardFlag = $1.CardFlag; //是否领取会员卡", " string WechatOpenId = $1.WechatOpenId; //微信OpenId", "}" ] }, "查询某个消费者,并赋值": { "prefix": "ym-db-Consumers-Update", "body": [ "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.NickName = $2; //昵称", " $1.HeadPhoto = $3; //头像", " $1.Mobile = $4; //手机号", " $1.TotalDividend = $5; //累计分红", " $1.TotalIntegral = $6; //累计积分", " $1.CurIntgegral = $7; //当前积分", " $1.WechatUnionid = $8; //微信Unionid", " $1.AlipayUserId = $9; //支付宝UserId", " $1.TotalAmount = $10; //累计消费金额", " $1.TotalConsumCount = $11; //累计消费次数", " $1.LastConsumDate = $12; //最近消费时间", " $1.WeChatPayFlag = $13; //微信付款标记", " $1.AlipayFlag = $14; //支付宝付款标记", " $1.CardFlag = $15; //是否领取会员卡", " $1.WechatOpenId = $16; //微信OpenId", "}" ] }, "获取消费者数量": { "prefix": "ym-db-Consumers-FindAndCount", "body": [ "int $1 = db.Consumers.Count(m => $2);", ] }, "添加消费者": { "prefix": "ym-db-Consumers-Create", "body": [ "db.Consumers.Add(new Consumers()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " NickName = $1, //昵称", " HeadPhoto = $2, //头像", " Mobile = $3, //手机号", " TotalDividend = $4, //累计分红", " TotalIntegral = $5, //累计积分", " CurIntgegral = $6, //当前积分", " WechatUnionid = $7, //微信Unionid", " AlipayUserId = $8, //支付宝UserId", " TotalAmount = $9, //累计消费金额", " TotalConsumCount = $10, //累计消费次数", " LastConsumDate = $11, //最近消费时间", " WeChatPayFlag = $12, //微信付款标记", " AlipayFlag = $13, //支付宝付款标记", " CardFlag = $14, //是否领取会员卡", " WechatOpenId = $15, //微信OpenId", "});" ] },"删除某个消费者": { "prefix": "ym-db-Consumers-Delete", "body": [ "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Consumers.Remove($1);", "}" ] }, "查询优惠券发放记录列表": { "prefix": "ym-db-CouponAssignRecords-Find", "body": [ "List $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CouponAssignRecords $3 in $1)", "{", "}" ] }, "查询优惠券发放记录列表,并取值": { "prefix": "ym-db-CouponAssignRecords-FindWithData", "body": [ "List $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CouponAssignRecords $3 in $1)", "{", " int UserMinLevel = $3.UserMinLevel; //创客最低等级", " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级", " decimal TotalOrderMoneyMin = $3.TotalOrderMoneyMin; //最小消费总额", " decimal TotalOrderMoneyMax = $3.TotalOrderMoneyMax; //最大消费总额", " decimal TotalUseIntegralMin = $3.TotalUseIntegralMin; //最小消耗积分总额", " decimal TotalUseIntegralMax = $3.TotalUseIntegralMax; //最大消耗积分总额", " decimal CurMoneyMin = $3.CurMoneyMin; //当前最低余额", " decimal CurMoneyMax = $3.CurMoneyMax; //当前最高余额", " string UserGroupId = $3.UserGroupId; //创客分组", " string Areas = $3.Areas; //创客所在地区", " string Mobile = $3.Mobile; //手机号", " string CouponIds = $3.CouponIds; //优惠券", "}" ] }, "查询优惠券发放记录": { "prefix": "ym-db-CouponAssignRecords-Exist", "body": [ "bool $1 = db.CouponAssignRecords.Any(m => m.Id == $2);", ] }, "查询某个优惠券发放记录,并取值": { "prefix": "ym-db-CouponAssignRecords-FindByPrimaryKey", "body": [ "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserMinLevel = $1.UserMinLevel; //创客最低等级", " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级", " decimal TotalOrderMoneyMin = $1.TotalOrderMoneyMin; //最小消费总额", " decimal TotalOrderMoneyMax = $1.TotalOrderMoneyMax; //最大消费总额", " decimal TotalUseIntegralMin = $1.TotalUseIntegralMin; //最小消耗积分总额", " decimal TotalUseIntegralMax = $1.TotalUseIntegralMax; //最大消耗积分总额", " decimal CurMoneyMin = $1.CurMoneyMin; //当前最低余额", " decimal CurMoneyMax = $1.CurMoneyMax; //当前最高余额", " string UserGroupId = $1.UserGroupId; //创客分组", " string Areas = $1.Areas; //创客所在地区", " string Mobile = $1.Mobile; //手机号", " string CouponIds = $1.CouponIds; //优惠券", "}" ] }, "查询某个优惠券发放记录,并赋值": { "prefix": "ym-db-CouponAssignRecords-Update", "body": [ "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserMinLevel = $2; //创客最低等级", " $1.UserMaxLevel = $3; //创客最高等级", " $1.TotalOrderMoneyMin = $4; //最小消费总额", " $1.TotalOrderMoneyMax = $5; //最大消费总额", " $1.TotalUseIntegralMin = $6; //最小消耗积分总额", " $1.TotalUseIntegralMax = $7; //最大消耗积分总额", " $1.CurMoneyMin = $8; //当前最低余额", " $1.CurMoneyMax = $9; //当前最高余额", " $1.UserGroupId = $10; //创客分组", " $1.Areas = $11; //创客所在地区", " $1.Mobile = $12; //手机号", " $1.CouponIds = $13; //优惠券", "}" ] }, "获取优惠券发放记录数量": { "prefix": "ym-db-CouponAssignRecords-FindAndCount", "body": [ "int $1 = db.CouponAssignRecords.Count(m => $2);", ] }, "添加优惠券发放记录": { "prefix": "ym-db-CouponAssignRecords-Create", "body": [ "db.CouponAssignRecords.Add(new CouponAssignRecords()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserMinLevel = $1, //创客最低等级", " UserMaxLevel = $2, //创客最高等级", " TotalOrderMoneyMin = $3, //最小消费总额", " TotalOrderMoneyMax = $4, //最大消费总额", " TotalUseIntegralMin = $5, //最小消耗积分总额", " TotalUseIntegralMax = $6, //最大消耗积分总额", " CurMoneyMin = $7, //当前最低余额", " CurMoneyMax = $8, //当前最高余额", " UserGroupId = $9, //创客分组", " Areas = $10, //创客所在地区", " Mobile = $11, //手机号", " CouponIds = $12, //优惠券", "});" ] },"删除某个优惠券发放记录": { "prefix": "ym-db-CouponAssignRecords-Delete", "body": [ "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.CouponAssignRecords.Remove($1);", "}" ] }, "查询优惠券列表": { "prefix": "ym-db-Coupons-Find", "body": [ "List $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Coupons $3 in $1)", "{", "}" ] }, "查询优惠券列表,并取值": { "prefix": "ym-db-Coupons-FindWithData", "body": [ "List $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Coupons $3 in $1)", "{", " string Name = $3.Name; //名称", " string Explanation = $3.Explanation; //说明", " ulong IsNewUser = $3.IsNewUser; //新创客使用", " ulong IsPublic = $3.IsPublic; //是否公开领取", " decimal Stock = $3.Stock; //库存", " int Kind = $3.Kind; //优惠券类型", " string MerchantId = $3.MerchantId; //商家", " string ProductColId = $3.ProductColId; //商品分类", " string ProductId = $3.ProductId; //商品", " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级", " int UserMinLevel = $3.UserMinLevel; //创客最低等级", " DateTime UseStartDate = $3.UseStartDate; //开始使用时间", " DateTime UseEndDate = $3.UseEndDate; //结束使用时间", " ulong IsRepeat = $3.IsRepeat; //是否重复", " int RepeatType = $3.RepeatType; //重复类型", " string RepeatCondition = $3.RepeatCondition; //重复条件值", " ulong IsReUse = $3.IsReUse; //是否一次性使用", " DateTime PublicStartDate = $3.PublicStartDate; //公开领取开始时间", " DateTime PublicEndDate = $3.PublicEndDate; //公开领取结束时间", " int PublicMax = $3.PublicMax; //公开每人领取数量", " int PublicMaxByDay = $3.PublicMaxByDay; //公开每人每天领取数量", " ulong IsSuperpose = $3.IsSuperpose; //是否叠加使用", " ulong AndPromotion = $3.AndPromotion; //是否与促销活动同时使用", " decimal FullReduceMoney = $3.FullReduceMoney; //满多少可用", " decimal FullReduceData = $3.FullReduceData; //满减数据", " DateTime ExpireStartDate = $3.ExpireStartDate; //过期开始时间", " DateTime ExpireEndDate = $3.ExpireEndDate; //过期结束时间", "}" ] }, "查询优惠券": { "prefix": "ym-db-Coupons-Exist", "body": [ "bool $1 = db.Coupons.Any(m => m.Id == $2);", ] }, "查询某个优惠券,并取值": { "prefix": "ym-db-Coupons-FindByPrimaryKey", "body": [ "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Explanation = $1.Explanation; //说明", " ulong IsNewUser = $1.IsNewUser; //新创客使用", " ulong IsPublic = $1.IsPublic; //是否公开领取", " decimal Stock = $1.Stock; //库存", " int Kind = $1.Kind; //优惠券类型", " string MerchantId = $1.MerchantId; //商家", " string ProductColId = $1.ProductColId; //商品分类", " string ProductId = $1.ProductId; //商品", " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级", " int UserMinLevel = $1.UserMinLevel; //创客最低等级", " DateTime UseStartDate = $1.UseStartDate; //开始使用时间", " DateTime UseEndDate = $1.UseEndDate; //结束使用时间", " ulong IsRepeat = $1.IsRepeat; //是否重复", " int RepeatType = $1.RepeatType; //重复类型", " string RepeatCondition = $1.RepeatCondition; //重复条件值", " ulong IsReUse = $1.IsReUse; //是否一次性使用", " DateTime PublicStartDate = $1.PublicStartDate; //公开领取开始时间", " DateTime PublicEndDate = $1.PublicEndDate; //公开领取结束时间", " int PublicMax = $1.PublicMax; //公开每人领取数量", " int PublicMaxByDay = $1.PublicMaxByDay; //公开每人每天领取数量", " ulong IsSuperpose = $1.IsSuperpose; //是否叠加使用", " ulong AndPromotion = $1.AndPromotion; //是否与促销活动同时使用", " decimal FullReduceMoney = $1.FullReduceMoney; //满多少可用", " decimal FullReduceData = $1.FullReduceData; //满减数据", " DateTime ExpireStartDate = $1.ExpireStartDate; //过期开始时间", " DateTime ExpireEndDate = $1.ExpireEndDate; //过期结束时间", "}" ] }, "查询某个优惠券,并赋值": { "prefix": "ym-db-Coupons-Update", "body": [ "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Explanation = $3; //说明", " $1.IsNewUser = $4; //新创客使用", " $1.IsPublic = $5; //是否公开领取", " $1.Stock = $6; //库存", " $1.Kind = $7; //优惠券类型", " $1.MerchantId = $8; //商家", " $1.ProductColId = $9; //商品分类", " $1.ProductId = $10; //商品", " $1.UserMaxLevel = $11; //创客最高等级", " $1.UserMinLevel = $12; //创客最低等级", " $1.UseStartDate = $13; //开始使用时间", " $1.UseEndDate = $14; //结束使用时间", " $1.IsRepeat = $15; //是否重复", " $1.RepeatType = $16; //重复类型", " $1.RepeatCondition = $17; //重复条件值", " $1.IsReUse = $18; //是否一次性使用", " $1.PublicStartDate = $19; //公开领取开始时间", " $1.PublicEndDate = $20; //公开领取结束时间", " $1.PublicMax = $21; //公开每人领取数量", " $1.PublicMaxByDay = $22; //公开每人每天领取数量", " $1.IsSuperpose = $23; //是否叠加使用", " $1.AndPromotion = $24; //是否与促销活动同时使用", " $1.FullReduceMoney = $25; //满多少可用", " $1.FullReduceData = $26; //满减数据", " $1.ExpireStartDate = $27; //过期开始时间", " $1.ExpireEndDate = $28; //过期结束时间", "}" ] }, "获取优惠券数量": { "prefix": "ym-db-Coupons-FindAndCount", "body": [ "int $1 = db.Coupons.Count(m => $2);", ] }, "添加优惠券": { "prefix": "ym-db-Coupons-Create", "body": [ "db.Coupons.Add(new Coupons()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Explanation = $2, //说明", " IsNewUser = $3, //新创客使用", " IsPublic = $4, //是否公开领取", " Stock = $5, //库存", " Kind = $6, //优惠券类型", " MerchantId = $7, //商家", " ProductColId = $8, //商品分类", " ProductId = $9, //商品", " UserMaxLevel = $10, //创客最高等级", " UserMinLevel = $11, //创客最低等级", " UseStartDate = $12, //开始使用时间", " UseEndDate = $13, //结束使用时间", " IsRepeat = $14, //是否重复", " RepeatType = $15, //重复类型", " RepeatCondition = $16, //重复条件值", " IsReUse = $17, //是否一次性使用", " PublicStartDate = $18, //公开领取开始时间", " PublicEndDate = $19, //公开领取结束时间", " PublicMax = $20, //公开每人领取数量", " PublicMaxByDay = $21, //公开每人每天领取数量", " IsSuperpose = $22, //是否叠加使用", " AndPromotion = $23, //是否与促销活动同时使用", " FullReduceMoney = $24, //满多少可用", " FullReduceData = $25, //满减数据", " ExpireStartDate = $26, //过期开始时间", " ExpireEndDate = $27, //过期结束时间", "});" ] },"删除某个优惠券": { "prefix": "ym-db-Coupons-Delete", "body": [ "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Coupons.Remove($1);", "}" ] }, "查询优惠券领取记录列表": { "prefix": "ym-db-CouponsForUser-Find", "body": [ "List $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CouponsForUser $3 in $1)", "{", "}" ] }, "查询优惠券领取记录列表,并取值": { "prefix": "ym-db-CouponsForUser-FindWithData", "body": [ "List $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CouponsForUser $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int CouponId = $3.CouponId; //券Id", " ulong IsUse = $3.IsUse; //是否使用", " ulong IsLock = $3.IsLock; //是否锁定", " DateTime UseDate = $3.UseDate; //使用时间", "}" ] }, "查询优惠券领取记录": { "prefix": "ym-db-CouponsForUser-Exist", "body": [ "bool $1 = db.CouponsForUser.Any(m => m.Id == $2);", ] }, "查询某个优惠券领取记录,并取值": { "prefix": "ym-db-CouponsForUser-FindByPrimaryKey", "body": [ "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int CouponId = $1.CouponId; //券Id", " ulong IsUse = $1.IsUse; //是否使用", " ulong IsLock = $1.IsLock; //是否锁定", " DateTime UseDate = $1.UseDate; //使用时间", "}" ] }, "查询某个优惠券领取记录,并赋值": { "prefix": "ym-db-CouponsForUser-Update", "body": [ "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.CouponId = $3; //券Id", " $1.IsUse = $4; //是否使用", " $1.IsLock = $5; //是否锁定", " $1.UseDate = $6; //使用时间", "}" ] }, "获取优惠券领取记录数量": { "prefix": "ym-db-CouponsForUser-FindAndCount", "body": [ "int $1 = db.CouponsForUser.Count(m => $2);", ] }, "添加优惠券领取记录": { "prefix": "ym-db-CouponsForUser-Create", "body": [ "db.CouponsForUser.Add(new CouponsForUser()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " CouponId = $2, //券Id", " IsUse = $3, //是否使用", " IsLock = $4, //是否锁定", " UseDate = $5, //使用时间", "});" ] },"删除某个优惠券领取记录": { "prefix": "ym-db-CouponsForUser-Delete", "body": [ "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.CouponsForUser.Remove($1);", "}" ] }, "查询自定义全局标签列表": { "prefix": "ym-db-CustomTagSet-Find", "body": [ "List $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CustomTagSet $3 in $1)", "{", "}" ] }, "查询自定义全局标签列表,并取值": { "prefix": "ym-db-CustomTagSet-FindWithData", "body": [ "List $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (CustomTagSet $3 in $1)", "{", " string Tags = $3.Tags; //标签", " string Title = $3.Title; //标题", " string Contents = $3.Contents; //内容", "}" ] }, "查询自定义全局标签": { "prefix": "ym-db-CustomTagSet-Exist", "body": [ "bool $1 = db.CustomTagSet.Any(m => m.Id == $2);", ] }, "查询某个自定义全局标签,并取值": { "prefix": "ym-db-CustomTagSet-FindByPrimaryKey", "body": [ "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Tags = $1.Tags; //标签", " string Title = $1.Title; //标题", " string Contents = $1.Contents; //内容", "}" ] }, "查询某个自定义全局标签,并赋值": { "prefix": "ym-db-CustomTagSet-Update", "body": [ "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Tags = $2; //标签", " $1.Title = $3; //标题", " $1.Contents = $4; //内容", "}" ] }, "获取自定义全局标签数量": { "prefix": "ym-db-CustomTagSet-FindAndCount", "body": [ "int $1 = db.CustomTagSet.Count(m => $2);", ] }, "添加自定义全局标签": { "prefix": "ym-db-CustomTagSet-Create", "body": [ "db.CustomTagSet.Add(new CustomTagSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Tags = $1, //标签", " Title = $2, //标题", " Contents = $3, //内容", "});" ] },"删除某个自定义全局标签": { "prefix": "ym-db-CustomTagSet-Delete", "body": [ "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.CustomTagSet.Remove($1);", "}" ] }, "查询快递公司列表": { "prefix": "ym-db-ErpCompanys-Find", "body": [ "List $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ErpCompanys $3 in $1)", "{", "}" ] }, "查询快递公司列表,并取值": { "prefix": "ym-db-ErpCompanys-FindWithData", "body": [ "List $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ErpCompanys $3 in $1)", "{", " string Name = $3.Name; //名称", " string Code = $3.Code; //编码", " string Phone = $3.Phone; //客服电话", "}" ] }, "查询快递公司": { "prefix": "ym-db-ErpCompanys-Exist", "body": [ "bool $1 = db.ErpCompanys.Any(m => m.Id == $2);", ] }, "查询某个快递公司,并取值": { "prefix": "ym-db-ErpCompanys-FindByPrimaryKey", "body": [ "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Code = $1.Code; //编码", " string Phone = $1.Phone; //客服电话", "}" ] }, "查询某个快递公司,并赋值": { "prefix": "ym-db-ErpCompanys-Update", "body": [ "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Code = $3; //编码", " $1.Phone = $4; //客服电话", "}" ] }, "获取快递公司数量": { "prefix": "ym-db-ErpCompanys-FindAndCount", "body": [ "int $1 = db.ErpCompanys.Count(m => $2);", ] }, "添加快递公司": { "prefix": "ym-db-ErpCompanys-Create", "body": [ "db.ErpCompanys.Add(new ErpCompanys()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Code = $2, //编码", " Phone = $3, //客服电话", "});" ] },"删除某个快递公司": { "prefix": "ym-db-ErpCompanys-Delete", "body": [ "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ErpCompanys.Remove($1);", "}" ] }, "查询资源文件更新信息列表": { "prefix": "ym-db-FileUpdateInfo-Find", "body": [ "List $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FileUpdateInfo $3 in $1)", "{", "}" ] }, "查询资源文件更新信息列表,并取值": { "prefix": "ym-db-FileUpdateInfo-FindWithData", "body": [ "List $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FileUpdateInfo $3 in $1)", "{", " int VersionNum = $3.VersionNum; //更新版本", " string Path = $3.Path; //路径", " string FileName = $3.FileName; //文件名", "}" ] }, "查询资源文件更新信息": { "prefix": "ym-db-FileUpdateInfo-Exist", "body": [ "bool $1 = db.FileUpdateInfo.Any(m => m.Id == $2);", ] }, "查询某个资源文件更新信息,并取值": { "prefix": "ym-db-FileUpdateInfo-FindByPrimaryKey", "body": [ "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int VersionNum = $1.VersionNum; //更新版本", " string Path = $1.Path; //路径", " string FileName = $1.FileName; //文件名", "}" ] }, "查询某个资源文件更新信息,并赋值": { "prefix": "ym-db-FileUpdateInfo-Update", "body": [ "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.VersionNum = $2; //更新版本", " $1.Path = $3; //路径", " $1.FileName = $4; //文件名", "}" ] }, "获取资源文件更新信息数量": { "prefix": "ym-db-FileUpdateInfo-FindAndCount", "body": [ "int $1 = db.FileUpdateInfo.Count(m => $2);", ] }, "添加资源文件更新信息": { "prefix": "ym-db-FileUpdateInfo-Create", "body": [ "db.FileUpdateInfo.Add(new FileUpdateInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " VersionNum = $1, //更新版本", " Path = $2, //路径", " FileName = $3, //文件名", "});" ] },"删除某个资源文件更新信息": { "prefix": "ym-db-FileUpdateInfo-Delete", "body": [ "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.FileUpdateInfo.Remove($1);", "}" ] }, "查询流量分佣明细列表": { "prefix": "ym-db-FluxProfitDetail-Find", "body": [ "List $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FluxProfitDetail $3 in $1)", "{", "}" ] }, "查询流量分佣明细列表,并取值": { "prefix": "ym-db-FluxProfitDetail-FindWithData", "body": [ "List $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FluxProfitDetail $3 in $1)", "{", " string RecordNo = $3.RecordNo; //单号", " string TradeDate = $3.TradeDate; //交易日期", " string TradeTime = $3.TradeTime; //交易时间", " string TradeMonth = $3.TradeMonth; //交易月", " int UserId = $3.UserId; //创客", " int MerchantId = $3.MerchantId; //商户", " int MerchantUserId = $3.MerchantUserId; //商户直属人", " string MerNo = $3.MerNo; //渠道商户编号", " string SnNo = $3.SnNo; //渠道SN号", " int ProfitType = $3.ProfitType; //分润类型", " string FluxOrderNo = $3.FluxOrderNo; //流量扣费单号", " string TradeOrderNo = $3.TradeOrderNo; //交易流水号", " decimal TradeAmt = $3.TradeAmt; //商户交易额", " decimal FluxFeeAmt = $3.FluxFeeAmt; //流量费", " string FluxStartDate = $3.FluxStartDate; //流量扣费开始日期", " string FluxEndDate = $3.FluxEndDate; //流量扣费结束日期", " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额", " string PosType = $3.PosType; //POS类型", " string Remark = $3.Remark; //备注", " int BrandId = $3.BrandId; //品牌", " int TopUserId = $3.TopUserId; //顶级创客", " int MerUserType = $3.MerUserType; //商户创客类型", "}" ] }, "查询流量分佣明细": { "prefix": "ym-db-FluxProfitDetail-Exist", "body": [ "bool $1 = db.FluxProfitDetail.Any(m => m.Id == $2);", ] }, "查询某个流量分佣明细,并取值": { "prefix": "ym-db-FluxProfitDetail-FindByPrimaryKey", "body": [ "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string RecordNo = $1.RecordNo; //单号", " string TradeDate = $1.TradeDate; //交易日期", " string TradeTime = $1.TradeTime; //交易时间", " string TradeMonth = $1.TradeMonth; //交易月", " int UserId = $1.UserId; //创客", " int MerchantId = $1.MerchantId; //商户", " int MerchantUserId = $1.MerchantUserId; //商户直属人", " string MerNo = $1.MerNo; //渠道商户编号", " string SnNo = $1.SnNo; //渠道SN号", " int ProfitType = $1.ProfitType; //分润类型", " string FluxOrderNo = $1.FluxOrderNo; //流量扣费单号", " string TradeOrderNo = $1.TradeOrderNo; //交易流水号", " decimal TradeAmt = $1.TradeAmt; //商户交易额", " decimal FluxFeeAmt = $1.FluxFeeAmt; //流量费", " string FluxStartDate = $1.FluxStartDate; //流量扣费开始日期", " string FluxEndDate = $1.FluxEndDate; //流量扣费结束日期", " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额", " string PosType = $1.PosType; //POS类型", " string Remark = $1.Remark; //备注", " int BrandId = $1.BrandId; //品牌", " int TopUserId = $1.TopUserId; //顶级创客", " int MerUserType = $1.MerUserType; //商户创客类型", "}" ] }, "查询某个流量分佣明细,并赋值": { "prefix": "ym-db-FluxProfitDetail-Update", "body": [ "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RecordNo = $2; //单号", " $1.TradeDate = $3; //交易日期", " $1.TradeTime = $4; //交易时间", " $1.TradeMonth = $5; //交易月", " $1.UserId = $6; //创客", " $1.MerchantId = $7; //商户", " $1.MerchantUserId = $8; //商户直属人", " $1.MerNo = $9; //渠道商户编号", " $1.SnNo = $10; //渠道SN号", " $1.ProfitType = $11; //分润类型", " $1.FluxOrderNo = $12; //流量扣费单号", " $1.TradeOrderNo = $13; //交易流水号", " $1.TradeAmt = $14; //商户交易额", " $1.FluxFeeAmt = $15; //流量费", " $1.FluxStartDate = $16; //流量扣费开始日期", " $1.FluxEndDate = $17; //流量扣费结束日期", " $1.FluxProfitAmt = $18; //流量分润总金额", " $1.PosType = $19; //POS类型", " $1.Remark = $20; //备注", " $1.BrandId = $21; //品牌", " $1.TopUserId = $22; //顶级创客", " $1.MerUserType = $23; //商户创客类型", "}" ] }, "获取流量分佣明细数量": { "prefix": "ym-db-FluxProfitDetail-FindAndCount", "body": [ "int $1 = db.FluxProfitDetail.Count(m => $2);", ] }, "添加流量分佣明细": { "prefix": "ym-db-FluxProfitDetail-Create", "body": [ "db.FluxProfitDetail.Add(new FluxProfitDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RecordNo = $1, //单号", " TradeDate = $2, //交易日期", " TradeTime = $3, //交易时间", " TradeMonth = $4, //交易月", " UserId = $5, //创客", " MerchantId = $6, //商户", " MerchantUserId = $7, //商户直属人", " MerNo = $8, //渠道商户编号", " SnNo = $9, //渠道SN号", " ProfitType = $10, //分润类型", " FluxOrderNo = $11, //流量扣费单号", " TradeOrderNo = $12, //交易流水号", " TradeAmt = $13, //商户交易额", " FluxFeeAmt = $14, //流量费", " FluxStartDate = $15, //流量扣费开始日期", " FluxEndDate = $16, //流量扣费结束日期", " FluxProfitAmt = $17, //流量分润总金额", " PosType = $18, //POS类型", " Remark = $19, //备注", " BrandId = $20, //品牌", " TopUserId = $21, //顶级创客", " MerUserType = $22, //商户创客类型", "});" ] },"删除某个流量分佣明细": { "prefix": "ym-db-FluxProfitDetail-Delete", "body": [ "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.FluxProfitDetail.Remove($1);", "}" ] }, "查询流量分佣汇总列表": { "prefix": "ym-db-FluxProfitSummary-Find", "body": [ "List $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FluxProfitSummary $3 in $1)", "{", "}" ] }, "查询流量分佣汇总列表,并取值": { "prefix": "ym-db-FluxProfitSummary-FindWithData", "body": [ "List $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (FluxProfitSummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int TopUserId = $3.TopUserId; //顶级创客", " string TradeMonth = $3.TradeMonth; //交易月", " int MerUserType = $3.MerUserType; //商户创客类型", " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额", " int FluxTradeNum = $3.FluxTradeNum; //商户借记卡封顶交易总笔数", " int CheckStatus = $3.CheckStatus; //同步账户状态", " string Remark = $3.Remark; //备注", " int BrandId = $3.BrandId; //品牌", "}" ] }, "查询流量分佣汇总": { "prefix": "ym-db-FluxProfitSummary-Exist", "body": [ "bool $1 = db.FluxProfitSummary.Any(m => m.Id == $2);", ] }, "查询某个流量分佣汇总,并取值": { "prefix": "ym-db-FluxProfitSummary-FindByPrimaryKey", "body": [ "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int TopUserId = $1.TopUserId; //顶级创客", " string TradeMonth = $1.TradeMonth; //交易月", " int MerUserType = $1.MerUserType; //商户创客类型", " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额", " int FluxTradeNum = $1.FluxTradeNum; //商户借记卡封顶交易总笔数", " int CheckStatus = $1.CheckStatus; //同步账户状态", " string Remark = $1.Remark; //备注", " int BrandId = $1.BrandId; //品牌", "}" ] }, "查询某个流量分佣汇总,并赋值": { "prefix": "ym-db-FluxProfitSummary-Update", "body": [ "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.TopUserId = $3; //顶级创客", " $1.TradeMonth = $4; //交易月", " $1.MerUserType = $5; //商户创客类型", " $1.FluxProfitAmt = $6; //流量分润总金额", " $1.FluxTradeNum = $7; //商户借记卡封顶交易总笔数", " $1.CheckStatus = $8; //同步账户状态", " $1.Remark = $9; //备注", " $1.BrandId = $10; //品牌", "}" ] }, "获取流量分佣汇总数量": { "prefix": "ym-db-FluxProfitSummary-FindAndCount", "body": [ "int $1 = db.FluxProfitSummary.Count(m => $2);", ] }, "添加流量分佣汇总": { "prefix": "ym-db-FluxProfitSummary-Create", "body": [ "db.FluxProfitSummary.Add(new FluxProfitSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " TopUserId = $2, //顶级创客", " TradeMonth = $3, //交易月", " MerUserType = $4, //商户创客类型", " FluxProfitAmt = $5, //流量分润总金额", " FluxTradeNum = $6, //商户借记卡封顶交易总笔数", " CheckStatus = $7, //同步账户状态", " Remark = $8, //备注", " BrandId = $9, //品牌", "});" ] },"删除某个流量分佣汇总": { "prefix": "ym-db-FluxProfitSummary-Delete", "body": [ "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.FluxProfitSummary.Remove($1);", "}" ] }, "查询首页快捷入口列表": { "prefix": "ym-db-IndexIconList-Find", "body": [ "List $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (IndexIconList $3 in $1)", "{", "}" ] }, "查询首页快捷入口列表,并取值": { "prefix": "ym-db-IndexIconList-FindWithData", "body": [ "List $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (IndexIconList $3 in $1)", "{", " string Icon = $3.Icon; //图标", " string Title = $3.Title; //标题", " string Url = $3.Url; //跳转地址", "}" ] }, "查询首页快捷入口": { "prefix": "ym-db-IndexIconList-Exist", "body": [ "bool $1 = db.IndexIconList.Any(m => m.Id == $2);", ] }, "查询某个首页快捷入口,并取值": { "prefix": "ym-db-IndexIconList-FindByPrimaryKey", "body": [ "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Icon = $1.Icon; //图标", " string Title = $1.Title; //标题", " string Url = $1.Url; //跳转地址", "}" ] }, "查询某个首页快捷入口,并赋值": { "prefix": "ym-db-IndexIconList-Update", "body": [ "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Icon = $2; //图标", " $1.Title = $3; //标题", " $1.Url = $4; //跳转地址", "}" ] }, "获取首页快捷入口数量": { "prefix": "ym-db-IndexIconList-FindAndCount", "body": [ "int $1 = db.IndexIconList.Count(m => $2);", ] }, "添加首页快捷入口": { "prefix": "ym-db-IndexIconList-Create", "body": [ "db.IndexIconList.Add(new IndexIconList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Icon = $1, //图标", " Title = $2, //标题", " Url = $3, //跳转地址", "});" ] },"删除某个首页快捷入口": { "prefix": "ym-db-IndexIconList-Delete", "body": [ "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.IndexIconList.Remove($1);", "}" ] }, "查询产品品牌列表": { "prefix": "ym-db-KqProductBrand-Find", "body": [ "List $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductBrand $3 in $1)", "{", "}" ] }, "查询产品品牌列表,并取值": { "prefix": "ym-db-KqProductBrand-FindWithData", "body": [ "List $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductBrand $3 in $1)", "{", " int ProductId = $3.ProductId; //产品", " string Name = $3.Name; //品牌名称", "}" ] }, "查询产品品牌": { "prefix": "ym-db-KqProductBrand-Exist", "body": [ "bool $1 = db.KqProductBrand.Any(m => m.Id == $2);", ] }, "查询某个产品品牌,并取值": { "prefix": "ym-db-KqProductBrand-FindByPrimaryKey", "body": [ "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ProductId = $1.ProductId; //产品", " string Name = $1.Name; //品牌名称", "}" ] }, "查询某个产品品牌,并赋值": { "prefix": "ym-db-KqProductBrand-Update", "body": [ "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ProductId = $2; //产品", " $1.Name = $3; //品牌名称", "}" ] }, "获取产品品牌数量": { "prefix": "ym-db-KqProductBrand-FindAndCount", "body": [ "int $1 = db.KqProductBrand.Count(m => $2);", ] }, "添加产品品牌": { "prefix": "ym-db-KqProductBrand-Create", "body": [ "db.KqProductBrand.Add(new KqProductBrand()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ProductId = $1, //产品", " Name = $2, //品牌名称", "});" ] },"删除某个产品品牌": { "prefix": "ym-db-KqProductBrand-Delete", "body": [ "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.KqProductBrand.Remove($1);", "}" ] }, "查询产品机构列表": { "prefix": "ym-db-KqProductOrgs-Find", "body": [ "List $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductOrgs $3 in $1)", "{", "}" ] }, "查询产品机构列表,并取值": { "prefix": "ym-db-KqProductOrgs-FindWithData", "body": [ "List $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductOrgs $3 in $1)", "{", " int BrandId = $3.BrandId; //品牌", " string Name = $3.Name; //机构名称", "}" ] }, "查询产品机构": { "prefix": "ym-db-KqProductOrgs-Exist", "body": [ "bool $1 = db.KqProductOrgs.Any(m => m.Id == $2);", ] }, "查询某个产品机构,并取值": { "prefix": "ym-db-KqProductOrgs-FindByPrimaryKey", "body": [ "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int BrandId = $1.BrandId; //品牌", " string Name = $1.Name; //机构名称", "}" ] }, "查询某个产品机构,并赋值": { "prefix": "ym-db-KqProductOrgs-Update", "body": [ "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.BrandId = $2; //品牌", " $1.Name = $3; //机构名称", "}" ] }, "获取产品机构数量": { "prefix": "ym-db-KqProductOrgs-FindAndCount", "body": [ "int $1 = db.KqProductOrgs.Count(m => $2);", ] }, "添加产品机构": { "prefix": "ym-db-KqProductOrgs-Create", "body": [ "db.KqProductOrgs.Add(new KqProductOrgs()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BrandId = $1, //品牌", " Name = $2, //机构名称", "});" ] },"删除某个产品机构": { "prefix": "ym-db-KqProductOrgs-Delete", "body": [ "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.KqProductOrgs.Remove($1);", "}" ] }, "查询产品规则配置列表": { "prefix": "ym-db-KqProductRuleSet-Find", "body": [ "List $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductRuleSet $3 in $1)", "{", "}" ] }, "查询产品规则配置列表,并取值": { "prefix": "ym-db-KqProductRuleSet-FindWithData", "body": [ "List $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProductRuleSet $3 in $1)", "{", " int OrgId = $3.OrgId; //机构", " decimal Deposit = $3.Deposit; //押金", " int ActiveCount = $3.ActiveCount; //活动政策台数", " decimal ActivePrice = $3.ActivePrice; //活动政策价格", " DateTime MerStaStartDate = $3.MerStaStartDate; //活动开始时间", " DateTime MerStaEndDate = $3.MerStaEndDate; //活动结束时间", " decimal MerStaProfit = $3.MerStaProfit; //达标奖励", " int MerStaMonths = $3.MerStaMonths; //激活后达标月", " decimal MerStaTradeForMonth = $3.MerStaTradeForMonth; //激活后每月达标交易", " DateTime ActStartDate = $3.ActStartDate; //活动开始时间", " DateTime ActEndDate = $3.ActEndDate; //活动结束时间", " decimal ActDeposit = $3.ActDeposit; //激活押金", " decimal ActFirst = $3.ActFirst; //激活首刷", " decimal ActFirstDeposit = $3.ActFirstDeposit; //激活首刷押金", " decimal ActPrize = $3.ActPrize; //激活奖励金额", " int ActPosCount = $3.ActPosCount; //激活赠机台数", " DateTime OpenStartDate = $3.OpenStartDate; //活动开始时间", " DateTime OpenEndDate = $3.OpenEndDate; //活动结束时间", " int OpenStaDays = $3.OpenStaDays; //达标天数", " decimal OpenStaTrade = $3.OpenStaTrade; //达标交易", " decimal OpenStaPrize = $3.OpenStaPrize; //达标奖励1", " decimal OpenStaPrize2 = $3.OpenStaPrize2; //达标奖励2", " DateTime CycleStartDate = $3.CycleStartDate; //活动开始时间", " DateTime CycleEndDate = $3.CycleEndDate; //活动结束时间", " ulong CycleIsOther = $3.CycleIsOther; //是否允许划拨给他人", " int CyclePosDays = $3.CyclePosDays; //领机天数", " DateTime PullNewStartDate = $3.PullNewStartDate; //活动开始时间", " DateTime PullNewEndDate = $3.PullNewEndDate; //活动结束时间", " int PullNewExtendDays = $3.PullNewExtendDays; //延长领机天数", " decimal BigTotalAmount = $3.BigTotalAmount; //购买机起始价", " int BigExtendCycleDays = $3.BigExtendCycleDays; //延长循环周期天数", " DateTime SubsidyStartDate = $3.SubsidyStartDate; //活动开始时间", " DateTime SubsidyEndDate = $3.SubsidyEndDate; //活动结束时间", " DateTime FlowCardStartDate = $3.FlowCardStartDate; //活动开始时间", " DateTime FlowCardEndDate = $3.FlowCardEndDate; //活动结束时间", " int FlowCardFreeDays = $3.FlowCardFreeDays; //免收天数", " decimal FlowCardFee = $3.FlowCardFee; //费用", " DateTime FeeOfDays = $3.FeeOfDays; //扣费频率(天)", " decimal FlowCardDirectProfit = $3.FlowCardDirectProfit; //直属上级返佣", " DateTime HelpStartDate = $3.HelpStartDate; //活动开始时间", " DateTime HelpEndDate = $3.HelpEndDate; //活动结束时间", " int HelpMonths = $3.HelpMonths; //计算自然月", " decimal HelpFee = $3.HelpFee; //扶植期费率", " decimal HelpSteadyFee = $3.HelpSteadyFee; //稳定期费率", " int FeeBindDays = $3.FeeBindDays; //绑定起天数", " decimal FeeFixed = $3.FeeFixed; //固定手续费", " decimal FeeRate = $3.FeeRate; //费率", "}" ] }, "查询产品规则配置": { "prefix": "ym-db-KqProductRuleSet-Exist", "body": [ "bool $1 = db.KqProductRuleSet.Any(m => m.Id == $2);", ] }, "查询某个产品规则配置,并取值": { "prefix": "ym-db-KqProductRuleSet-FindByPrimaryKey", "body": [ "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int OrgId = $1.OrgId; //机构", " decimal Deposit = $1.Deposit; //押金", " int ActiveCount = $1.ActiveCount; //活动政策台数", " decimal ActivePrice = $1.ActivePrice; //活动政策价格", " DateTime MerStaStartDate = $1.MerStaStartDate; //活动开始时间", " DateTime MerStaEndDate = $1.MerStaEndDate; //活动结束时间", " decimal MerStaProfit = $1.MerStaProfit; //达标奖励", " int MerStaMonths = $1.MerStaMonths; //激活后达标月", " decimal MerStaTradeForMonth = $1.MerStaTradeForMonth; //激活后每月达标交易", " DateTime ActStartDate = $1.ActStartDate; //活动开始时间", " DateTime ActEndDate = $1.ActEndDate; //活动结束时间", " decimal ActDeposit = $1.ActDeposit; //激活押金", " decimal ActFirst = $1.ActFirst; //激活首刷", " decimal ActFirstDeposit = $1.ActFirstDeposit; //激活首刷押金", " decimal ActPrize = $1.ActPrize; //激活奖励金额", " int ActPosCount = $1.ActPosCount; //激活赠机台数", " DateTime OpenStartDate = $1.OpenStartDate; //活动开始时间", " DateTime OpenEndDate = $1.OpenEndDate; //活动结束时间", " int OpenStaDays = $1.OpenStaDays; //达标天数", " decimal OpenStaTrade = $1.OpenStaTrade; //达标交易", " decimal OpenStaPrize = $1.OpenStaPrize; //达标奖励1", " decimal OpenStaPrize2 = $1.OpenStaPrize2; //达标奖励2", " DateTime CycleStartDate = $1.CycleStartDate; //活动开始时间", " DateTime CycleEndDate = $1.CycleEndDate; //活动结束时间", " ulong CycleIsOther = $1.CycleIsOther; //是否允许划拨给他人", " int CyclePosDays = $1.CyclePosDays; //领机天数", " DateTime PullNewStartDate = $1.PullNewStartDate; //活动开始时间", " DateTime PullNewEndDate = $1.PullNewEndDate; //活动结束时间", " int PullNewExtendDays = $1.PullNewExtendDays; //延长领机天数", " decimal BigTotalAmount = $1.BigTotalAmount; //购买机起始价", " int BigExtendCycleDays = $1.BigExtendCycleDays; //延长循环周期天数", " DateTime SubsidyStartDate = $1.SubsidyStartDate; //活动开始时间", " DateTime SubsidyEndDate = $1.SubsidyEndDate; //活动结束时间", " DateTime FlowCardStartDate = $1.FlowCardStartDate; //活动开始时间", " DateTime FlowCardEndDate = $1.FlowCardEndDate; //活动结束时间", " int FlowCardFreeDays = $1.FlowCardFreeDays; //免收天数", " decimal FlowCardFee = $1.FlowCardFee; //费用", " DateTime FeeOfDays = $1.FeeOfDays; //扣费频率(天)", " decimal FlowCardDirectProfit = $1.FlowCardDirectProfit; //直属上级返佣", " DateTime HelpStartDate = $1.HelpStartDate; //活动开始时间", " DateTime HelpEndDate = $1.HelpEndDate; //活动结束时间", " int HelpMonths = $1.HelpMonths; //计算自然月", " decimal HelpFee = $1.HelpFee; //扶植期费率", " decimal HelpSteadyFee = $1.HelpSteadyFee; //稳定期费率", " int FeeBindDays = $1.FeeBindDays; //绑定起天数", " decimal FeeFixed = $1.FeeFixed; //固定手续费", " decimal FeeRate = $1.FeeRate; //费率", "}" ] }, "查询某个产品规则配置,并赋值": { "prefix": "ym-db-KqProductRuleSet-Update", "body": [ "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.OrgId = $2; //机构", " $1.Deposit = $3; //押金", " $1.ActiveCount = $4; //活动政策台数", " $1.ActivePrice = $5; //活动政策价格", " $1.MerStaStartDate = $6; //活动开始时间", " $1.MerStaEndDate = $7; //活动结束时间", " $1.MerStaProfit = $8; //达标奖励", " $1.MerStaMonths = $9; //激活后达标月", " $1.MerStaTradeForMonth = $10; //激活后每月达标交易", " $1.ActStartDate = $11; //活动开始时间", " $1.ActEndDate = $12; //活动结束时间", " $1.ActDeposit = $13; //激活押金", " $1.ActFirst = $14; //激活首刷", " $1.ActFirstDeposit = $15; //激活首刷押金", " $1.ActPrize = $16; //激活奖励金额", " $1.ActPosCount = $17; //激活赠机台数", " $1.OpenStartDate = $18; //活动开始时间", " $1.OpenEndDate = $19; //活动结束时间", " $1.OpenStaDays = $20; //达标天数", " $1.OpenStaTrade = $21; //达标交易", " $1.OpenStaPrize = $22; //达标奖励1", " $1.OpenStaPrize2 = $23; //达标奖励2", " $1.CycleStartDate = $24; //活动开始时间", " $1.CycleEndDate = $25; //活动结束时间", " $1.CycleIsOther = $26; //是否允许划拨给他人", " $1.CyclePosDays = $27; //领机天数", " $1.PullNewStartDate = $28; //活动开始时间", " $1.PullNewEndDate = $29; //活动结束时间", " $1.PullNewExtendDays = $30; //延长领机天数", " $1.BigTotalAmount = $31; //购买机起始价", " $1.BigExtendCycleDays = $32; //延长循环周期天数", " $1.SubsidyStartDate = $33; //活动开始时间", " $1.SubsidyEndDate = $34; //活动结束时间", " $1.FlowCardStartDate = $35; //活动开始时间", " $1.FlowCardEndDate = $36; //活动结束时间", " $1.FlowCardFreeDays = $37; //免收天数", " $1.FlowCardFee = $38; //费用", " $1.FeeOfDays = $39; //扣费频率(天)", " $1.FlowCardDirectProfit = $40; //直属上级返佣", " $1.HelpStartDate = $41; //活动开始时间", " $1.HelpEndDate = $42; //活动结束时间", " $1.HelpMonths = $43; //计算自然月", " $1.HelpFee = $44; //扶植期费率", " $1.HelpSteadyFee = $45; //稳定期费率", " $1.FeeBindDays = $46; //绑定起天数", " $1.FeeFixed = $47; //固定手续费", " $1.FeeRate = $48; //费率", "}" ] }, "获取产品规则配置数量": { "prefix": "ym-db-KqProductRuleSet-FindAndCount", "body": [ "int $1 = db.KqProductRuleSet.Count(m => $2);", ] }, "添加产品规则配置": { "prefix": "ym-db-KqProductRuleSet-Create", "body": [ "db.KqProductRuleSet.Add(new KqProductRuleSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " OrgId = $1, //机构", " Deposit = $2, //押金", " ActiveCount = $3, //活动政策台数", " ActivePrice = $4, //活动政策价格", " MerStaStartDate = $5, //活动开始时间", " MerStaEndDate = $6, //活动结束时间", " MerStaProfit = $7, //达标奖励", " MerStaMonths = $8, //激活后达标月", " MerStaTradeForMonth = $9, //激活后每月达标交易", " ActStartDate = $10, //活动开始时间", " ActEndDate = $11, //活动结束时间", " ActDeposit = $12, //激活押金", " ActFirst = $13, //激活首刷", " ActFirstDeposit = $14, //激活首刷押金", " ActPrize = $15, //激活奖励金额", " ActPosCount = $16, //激活赠机台数", " OpenStartDate = $17, //活动开始时间", " OpenEndDate = $18, //活动结束时间", " OpenStaDays = $19, //达标天数", " OpenStaTrade = $20, //达标交易", " OpenStaPrize = $21, //达标奖励1", " OpenStaPrize2 = $22, //达标奖励2", " CycleStartDate = $23, //活动开始时间", " CycleEndDate = $24, //活动结束时间", " CycleIsOther = $25, //是否允许划拨给他人", " CyclePosDays = $26, //领机天数", " PullNewStartDate = $27, //活动开始时间", " PullNewEndDate = $28, //活动结束时间", " PullNewExtendDays = $29, //延长领机天数", " BigTotalAmount = $30, //购买机起始价", " BigExtendCycleDays = $31, //延长循环周期天数", " SubsidyStartDate = $32, //活动开始时间", " SubsidyEndDate = $33, //活动结束时间", " FlowCardStartDate = $34, //活动开始时间", " FlowCardEndDate = $35, //活动结束时间", " FlowCardFreeDays = $36, //免收天数", " FlowCardFee = $37, //费用", " FeeOfDays = $38, //扣费频率(天)", " FlowCardDirectProfit = $39, //直属上级返佣", " HelpStartDate = $40, //活动开始时间", " HelpEndDate = $41, //活动结束时间", " HelpMonths = $42, //计算自然月", " HelpFee = $43, //扶植期费率", " HelpSteadyFee = $44, //稳定期费率", " FeeBindDays = $45, //绑定起天数", " FeeFixed = $46, //固定手续费", " FeeRate = $47, //费率", "});" ] },"删除某个产品规则配置": { "prefix": "ym-db-KqProductRuleSet-Delete", "body": [ "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.KqProductRuleSet.Remove($1);", "}" ] }, "查询产品库列表": { "prefix": "ym-db-KqProducts-Find", "body": [ "List $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProducts $3 in $1)", "{", "}" ] }, "查询产品库列表,并取值": { "prefix": "ym-db-KqProducts-FindWithData", "body": [ "List $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (KqProducts $3 in $1)", "{", " string Name = $3.Name; //名称", "}" ] }, "查询产品库": { "prefix": "ym-db-KqProducts-Exist", "body": [ "bool $1 = db.KqProducts.Any(m => m.Id == $2);", ] }, "查询某个产品库,并取值": { "prefix": "ym-db-KqProducts-FindByPrimaryKey", "body": [ "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", "}" ] }, "查询某个产品库,并赋值": { "prefix": "ym-db-KqProducts-Update", "body": [ "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", "}" ] }, "获取产品库数量": { "prefix": "ym-db-KqProducts-FindAndCount", "body": [ "int $1 = db.KqProducts.Count(m => $2);", ] }, "添加产品库": { "prefix": "ym-db-KqProducts-Create", "body": [ "db.KqProducts.Add(new KqProducts()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", "});" ] },"删除某个产品库": { "prefix": "ym-db-KqProducts-Delete", "body": [ "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.KqProducts.Remove($1);", "}" ] }, "查询机具申请订单列表": { "prefix": "ym-db-MachineApply-Find", "body": [ "List $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineApply $3 in $1)", "{", "}" ] }, "查询机具申请订单列表,并取值": { "prefix": "ym-db-MachineApply-FindWithData", "body": [ "List $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineApply $3 in $1)", "{", " string ApplyNo = $3.ApplyNo; //申请单号", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string ProductName = $3.ProductName; //产品名称", " string Areas = $3.Areas; //收货所在地区", " string Address = $3.Address; //收货详细地址", " string RealName = $3.RealName; //收件人姓名", " string Mobile = $3.Mobile; //收件人手机号", " string ApplyDeviceName = $3.ApplyDeviceName; //申请机具名称", " int ApplyDeviceNum = $3.ApplyDeviceNum; //申请机具数量", " DateTime ApplyTime = $3.ApplyTime; //申请时间", " string AuditBy = $3.AuditBy; //审核人", " DateTime AuditTime = $3.AuditTime; //审核时间", " int AuditResult = $3.AuditResult; //审核结果", " string AuditRemark = $3.AuditRemark; //审核备注", " DateTime CompleteTime = $3.CompleteTime; //完成时间", " int SendStatus = $3.SendStatus; //发货状态", " string ReturnOrderNo = $3.ReturnOrderNo; //退货单号", " int ReturnStatus = $3.ReturnStatus; //退货状态", " string ExpressNo = $3.ExpressNo; //快递单号", " string ExpressName = $3.ExpressName; //快递名称", " int DeliveryType = $3.DeliveryType; //提货类型", " int SwapActProType = $3.SwapActProType; //兑换实际产品类型", " string SwapActProName = $3.SwapActProName; //兑换实际产品名称", " string OrderExpand = $3.OrderExpand; //订单扩展信息", " string SwapSnExpand = $3.SwapSnExpand; //兑换机器SN来源", " int StoreId = $3.StoreId; //发货仓库", " string StoreName = $3.StoreName; //发货仓库名称", " string StoreAreas = $3.StoreAreas; //仓库所在地区", " string StoreAddress = $3.StoreAddress; //仓库地址", " string StoreManager = $3.StoreManager; //仓库联系人", " string StoreManagerMobile = $3.StoreManagerMobile; //仓库联系人手机号", " string Remark = $3.Remark; //订单备注", " int StoreUserId = $3.StoreUserId; //仓库归属创客", " int StoreType = $3.StoreType; //仓库类型", " DateTime SendDate = $3.SendDate; //发货时间", " int TopUserId = $3.TopUserId; //顶级创客", " string SendSn = $3.SendSn; //发货SN", "}" ] }, "查询机具申请订单": { "prefix": "ym-db-MachineApply-Exist", "body": [ "bool $1 = db.MachineApply.Any(m => m.Id == $2);", ] }, "查询某个机具申请订单,并取值": { "prefix": "ym-db-MachineApply-FindByPrimaryKey", "body": [ "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ApplyNo = $1.ApplyNo; //申请单号", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string ProductName = $1.ProductName; //产品名称", " string Areas = $1.Areas; //收货所在地区", " string Address = $1.Address; //收货详细地址", " string RealName = $1.RealName; //收件人姓名", " string Mobile = $1.Mobile; //收件人手机号", " string ApplyDeviceName = $1.ApplyDeviceName; //申请机具名称", " int ApplyDeviceNum = $1.ApplyDeviceNum; //申请机具数量", " DateTime ApplyTime = $1.ApplyTime; //申请时间", " string AuditBy = $1.AuditBy; //审核人", " DateTime AuditTime = $1.AuditTime; //审核时间", " int AuditResult = $1.AuditResult; //审核结果", " string AuditRemark = $1.AuditRemark; //审核备注", " DateTime CompleteTime = $1.CompleteTime; //完成时间", " int SendStatus = $1.SendStatus; //发货状态", " string ReturnOrderNo = $1.ReturnOrderNo; //退货单号", " int ReturnStatus = $1.ReturnStatus; //退货状态", " string ExpressNo = $1.ExpressNo; //快递单号", " string ExpressName = $1.ExpressName; //快递名称", " int DeliveryType = $1.DeliveryType; //提货类型", " int SwapActProType = $1.SwapActProType; //兑换实际产品类型", " string SwapActProName = $1.SwapActProName; //兑换实际产品名称", " string OrderExpand = $1.OrderExpand; //订单扩展信息", " string SwapSnExpand = $1.SwapSnExpand; //兑换机器SN来源", " int StoreId = $1.StoreId; //发货仓库", " string StoreName = $1.StoreName; //发货仓库名称", " string StoreAreas = $1.StoreAreas; //仓库所在地区", " string StoreAddress = $1.StoreAddress; //仓库地址", " string StoreManager = $1.StoreManager; //仓库联系人", " string StoreManagerMobile = $1.StoreManagerMobile; //仓库联系人手机号", " string Remark = $1.Remark; //订单备注", " int StoreUserId = $1.StoreUserId; //仓库归属创客", " int StoreType = $1.StoreType; //仓库类型", " DateTime SendDate = $1.SendDate; //发货时间", " int TopUserId = $1.TopUserId; //顶级创客", " string SendSn = $1.SendSn; //发货SN", "}" ] }, "查询某个机具申请订单,并赋值": { "prefix": "ym-db-MachineApply-Update", "body": [ "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ApplyNo = $2; //申请单号", " $1.UserId = $3; //创客", " $1.BrandId = $4; //品牌", " $1.ProductName = $5; //产品名称", " $1.Areas = $6; //收货所在地区", " $1.Address = $7; //收货详细地址", " $1.RealName = $8; //收件人姓名", " $1.Mobile = $9; //收件人手机号", " $1.ApplyDeviceName = $10; //申请机具名称", " $1.ApplyDeviceNum = $11; //申请机具数量", " $1.ApplyTime = $12; //申请时间", " $1.AuditBy = $13; //审核人", " $1.AuditTime = $14; //审核时间", " $1.AuditResult = $15; //审核结果", " $1.AuditRemark = $16; //审核备注", " $1.CompleteTime = $17; //完成时间", " $1.SendStatus = $18; //发货状态", " $1.ReturnOrderNo = $19; //退货单号", " $1.ReturnStatus = $20; //退货状态", " $1.ExpressNo = $21; //快递单号", " $1.ExpressName = $22; //快递名称", " $1.DeliveryType = $23; //提货类型", " $1.SwapActProType = $24; //兑换实际产品类型", " $1.SwapActProName = $25; //兑换实际产品名称", " $1.OrderExpand = $26; //订单扩展信息", " $1.SwapSnExpand = $27; //兑换机器SN来源", " $1.StoreId = $28; //发货仓库", " $1.StoreName = $29; //发货仓库名称", " $1.StoreAreas = $30; //仓库所在地区", " $1.StoreAddress = $31; //仓库地址", " $1.StoreManager = $32; //仓库联系人", " $1.StoreManagerMobile = $33; //仓库联系人手机号", " $1.Remark = $34; //订单备注", " $1.StoreUserId = $35; //仓库归属创客", " $1.StoreType = $36; //仓库类型", " $1.SendDate = $37; //发货时间", " $1.TopUserId = $38; //顶级创客", " $1.SendSn = $39; //发货SN", "}" ] }, "获取机具申请订单数量": { "prefix": "ym-db-MachineApply-FindAndCount", "body": [ "int $1 = db.MachineApply.Count(m => $2);", ] }, "添加机具申请订单": { "prefix": "ym-db-MachineApply-Create", "body": [ "db.MachineApply.Add(new MachineApply()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ApplyNo = $1, //申请单号", " UserId = $2, //创客", " BrandId = $3, //品牌", " ProductName = $4, //产品名称", " Areas = $5, //收货所在地区", " Address = $6, //收货详细地址", " RealName = $7, //收件人姓名", " Mobile = $8, //收件人手机号", " ApplyDeviceName = $9, //申请机具名称", " ApplyDeviceNum = $10, //申请机具数量", " ApplyTime = $11, //申请时间", " AuditBy = $12, //审核人", " AuditTime = $13, //审核时间", " AuditResult = $14, //审核结果", " AuditRemark = $15, //审核备注", " CompleteTime = $16, //完成时间", " SendStatus = $17, //发货状态", " ReturnOrderNo = $18, //退货单号", " ReturnStatus = $19, //退货状态", " ExpressNo = $20, //快递单号", " ExpressName = $21, //快递名称", " DeliveryType = $22, //提货类型", " SwapActProType = $23, //兑换实际产品类型", " SwapActProName = $24, //兑换实际产品名称", " OrderExpand = $25, //订单扩展信息", " SwapSnExpand = $26, //兑换机器SN来源", " StoreId = $27, //发货仓库", " StoreName = $28, //发货仓库名称", " StoreAreas = $29, //仓库所在地区", " StoreAddress = $30, //仓库地址", " StoreManager = $31, //仓库联系人", " StoreManagerMobile = $32, //仓库联系人手机号", " Remark = $33, //订单备注", " StoreUserId = $34, //仓库归属创客", " StoreType = $35, //仓库类型", " SendDate = $36, //发货时间", " TopUserId = $37, //顶级创客", " SendSn = $38, //发货SN", "});" ] },"删除某个机具申请订单": { "prefix": "ym-db-MachineApply-Delete", "body": [ "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineApply.Remove($1);", "}" ] }, "查询机具申请明细列表": { "prefix": "ym-db-MachineApplyDetail-Find", "body": [ "List $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineApplyDetail $3 in $1)", "{", "}" ] }, "查询机具申请明细列表,并取值": { "prefix": "ym-db-MachineApplyDetail-FindWithData", "body": [ "List $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineApplyDetail $3 in $1)", "{", " string ApplyNo = $3.ApplyNo; //订单号", " int ApplyId = $3.ApplyId; //订单Id", " int ProductType = $3.ProductType; //实际发货产品类型", " string ProductName = $3.ProductName; //实际发货产品名称", " int UserId = $3.UserId; //创客", " string DeviceSnNo = $3.DeviceSnNo; //设备SN编号", " int DeviceStatus = $3.DeviceStatus; //设备状态", " string DeviceVendor = $3.DeviceVendor; //设备厂商", " string DeviceModel = $3.DeviceModel; //设备型号", " string DeviceDesc = $3.DeviceDesc; //设备描述", " int UpSrcProType = $3.UpSrcProType; //上级源机具产品类型", " string UpSrcProName = $3.UpSrcProName; //上级源机具产品名称", " string SourceSnNo = $3.SourceSnNo; //兑换来源SN编码", " int SourceSnType = $3.SourceSnType; //兑换来源SN机具类型", " string Remark = $3.Remark; //备注", "}" ] }, "查询机具申请明细": { "prefix": "ym-db-MachineApplyDetail-Exist", "body": [ "bool $1 = db.MachineApplyDetail.Any(m => m.Id == $2);", ] }, "查询某个机具申请明细,并取值": { "prefix": "ym-db-MachineApplyDetail-FindByPrimaryKey", "body": [ "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ApplyNo = $1.ApplyNo; //订单号", " int ApplyId = $1.ApplyId; //订单Id", " int ProductType = $1.ProductType; //实际发货产品类型", " string ProductName = $1.ProductName; //实际发货产品名称", " int UserId = $1.UserId; //创客", " string DeviceSnNo = $1.DeviceSnNo; //设备SN编号", " int DeviceStatus = $1.DeviceStatus; //设备状态", " string DeviceVendor = $1.DeviceVendor; //设备厂商", " string DeviceModel = $1.DeviceModel; //设备型号", " string DeviceDesc = $1.DeviceDesc; //设备描述", " int UpSrcProType = $1.UpSrcProType; //上级源机具产品类型", " string UpSrcProName = $1.UpSrcProName; //上级源机具产品名称", " string SourceSnNo = $1.SourceSnNo; //兑换来源SN编码", " int SourceSnType = $1.SourceSnType; //兑换来源SN机具类型", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个机具申请明细,并赋值": { "prefix": "ym-db-MachineApplyDetail-Update", "body": [ "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ApplyNo = $2; //订单号", " $1.ApplyId = $3; //订单Id", " $1.ProductType = $4; //实际发货产品类型", " $1.ProductName = $5; //实际发货产品名称", " $1.UserId = $6; //创客", " $1.DeviceSnNo = $7; //设备SN编号", " $1.DeviceStatus = $8; //设备状态", " $1.DeviceVendor = $9; //设备厂商", " $1.DeviceModel = $10; //设备型号", " $1.DeviceDesc = $11; //设备描述", " $1.UpSrcProType = $12; //上级源机具产品类型", " $1.UpSrcProName = $13; //上级源机具产品名称", " $1.SourceSnNo = $14; //兑换来源SN编码", " $1.SourceSnType = $15; //兑换来源SN机具类型", " $1.Remark = $16; //备注", "}" ] }, "获取机具申请明细数量": { "prefix": "ym-db-MachineApplyDetail-FindAndCount", "body": [ "int $1 = db.MachineApplyDetail.Count(m => $2);", ] }, "添加机具申请明细": { "prefix": "ym-db-MachineApplyDetail-Create", "body": [ "db.MachineApplyDetail.Add(new MachineApplyDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ApplyNo = $1, //订单号", " ApplyId = $2, //订单Id", " ProductType = $3, //实际发货产品类型", " ProductName = $4, //实际发货产品名称", " UserId = $5, //创客", " DeviceSnNo = $6, //设备SN编号", " DeviceStatus = $7, //设备状态", " DeviceVendor = $8, //设备厂商", " DeviceModel = $9, //设备型号", " DeviceDesc = $10, //设备描述", " UpSrcProType = $11, //上级源机具产品类型", " UpSrcProName = $12, //上级源机具产品名称", " SourceSnNo = $13, //兑换来源SN编码", " SourceSnType = $14, //兑换来源SN机具类型", " Remark = $15, //备注", "});" ] },"删除某个机具申请明细": { "prefix": "ym-db-MachineApplyDetail-Delete", "body": [ "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineApplyDetail.Remove($1);", "}" ] }, "查询机具转换订单列表": { "prefix": "ym-db-MachineChange-Find", "body": [ "List $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineChange $3 in $1)", "{", "}" ] }, "查询机具转换订单列表,并取值": { "prefix": "ym-db-MachineChange-FindWithData", "body": [ "List $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineChange $3 in $1)", "{", " string ChangeNo = $3.ChangeNo; //转换单号", " int UserId = $3.UserId; //创客", " int BackProductType = $3.BackProductType; //退回产品类型", " string BackProductName = $3.BackProductName; //退回产品名称", " string ChangeDeviceName = $3.ChangeDeviceName; //转换机具名称", " int ChangeDeviceNum = $3.ChangeDeviceNum; //转换机具数量", " DateTime ChangeTime = $3.ChangeTime; //转换时间", " string AuditBy = $3.AuditBy; //审核人", " DateTime AuditTime = $3.AuditTime; //审核时间", " int AuditResult = $3.AuditResult; //审核结果", " string AuditRemark = $3.AuditRemark; //审核备注", " DateTime CompleteTime = $3.CompleteTime; //完成时间", " string OrderExpand = $3.OrderExpand; //订单扩展信息", " string ChangeSnExpand = $3.ChangeSnExpand; //转换机器SN来源", " int BackStoreId = $3.BackStoreId; //退回仓库", " string BackStoreName = $3.BackStoreName; //退回仓库名称", " string Remark = $3.Remark; //订单备注", " int BackStoreUserId = $3.BackStoreUserId; //退回仓库归属人", " int OutProductType = $3.OutProductType; //出库产品类型", " string OutProductName = $3.OutProductName; //出库产品名称", " int OutStoreId = $3.OutStoreId; //出库仓库", " string OutStoreName = $3.OutStoreName; //出库仓库名称", " string OutStoreAreas = $3.OutStoreAreas; //出库仓库所在地区", " string OutStoreAddress = $3.OutStoreAddress ; //出库仓库地址", " string OutStoreManager = $3.OutStoreManager; //出库仓库联系人", " string OutStoreManagerMobile = $3.OutStoreManagerMobile; //出库仓库联系人手机号", "}" ] }, "查询机具转换订单": { "prefix": "ym-db-MachineChange-Exist", "body": [ "bool $1 = db.MachineChange.Any(m => m.Id == $2);", ] }, "查询某个机具转换订单,并取值": { "prefix": "ym-db-MachineChange-FindByPrimaryKey", "body": [ "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ChangeNo = $1.ChangeNo; //转换单号", " int UserId = $1.UserId; //创客", " int BackProductType = $1.BackProductType; //退回产品类型", " string BackProductName = $1.BackProductName; //退回产品名称", " string ChangeDeviceName = $1.ChangeDeviceName; //转换机具名称", " int ChangeDeviceNum = $1.ChangeDeviceNum; //转换机具数量", " DateTime ChangeTime = $1.ChangeTime; //转换时间", " string AuditBy = $1.AuditBy; //审核人", " DateTime AuditTime = $1.AuditTime; //审核时间", " int AuditResult = $1.AuditResult; //审核结果", " string AuditRemark = $1.AuditRemark; //审核备注", " DateTime CompleteTime = $1.CompleteTime; //完成时间", " string OrderExpand = $1.OrderExpand; //订单扩展信息", " string ChangeSnExpand = $1.ChangeSnExpand; //转换机器SN来源", " int BackStoreId = $1.BackStoreId; //退回仓库", " string BackStoreName = $1.BackStoreName; //退回仓库名称", " string Remark = $1.Remark; //订单备注", " int BackStoreUserId = $1.BackStoreUserId; //退回仓库归属人", " int OutProductType = $1.OutProductType; //出库产品类型", " string OutProductName = $1.OutProductName; //出库产品名称", " int OutStoreId = $1.OutStoreId; //出库仓库", " string OutStoreName = $1.OutStoreName; //出库仓库名称", " string OutStoreAreas = $1.OutStoreAreas; //出库仓库所在地区", " string OutStoreAddress = $1.OutStoreAddress ; //出库仓库地址", " string OutStoreManager = $1.OutStoreManager; //出库仓库联系人", " string OutStoreManagerMobile = $1.OutStoreManagerMobile; //出库仓库联系人手机号", "}" ] }, "查询某个机具转换订单,并赋值": { "prefix": "ym-db-MachineChange-Update", "body": [ "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ChangeNo = $2; //转换单号", " $1.UserId = $3; //创客", " $1.BackProductType = $4; //退回产品类型", " $1.BackProductName = $5; //退回产品名称", " $1.ChangeDeviceName = $6; //转换机具名称", " $1.ChangeDeviceNum = $7; //转换机具数量", " $1.ChangeTime = $8; //转换时间", " $1.AuditBy = $9; //审核人", " $1.AuditTime = $10; //审核时间", " $1.AuditResult = $11; //审核结果", " $1.AuditRemark = $12; //审核备注", " $1.CompleteTime = $13; //完成时间", " $1.OrderExpand = $14; //订单扩展信息", " $1.ChangeSnExpand = $15; //转换机器SN来源", " $1.BackStoreId = $16; //退回仓库", " $1.BackStoreName = $17; //退回仓库名称", " $1.Remark = $18; //订单备注", " $1.BackStoreUserId = $19; //退回仓库归属人", " $1.OutProductType = $20; //出库产品类型", " $1.OutProductName = $21; //出库产品名称", " $1.OutStoreId = $22; //出库仓库", " $1.OutStoreName = $23; //出库仓库名称", " $1.OutStoreAreas = $24; //出库仓库所在地区", " $1.OutStoreAddress = $25; //出库仓库地址", " $1.OutStoreManager = $26; //出库仓库联系人", " $1.OutStoreManagerMobile = $27; //出库仓库联系人手机号", "}" ] }, "获取机具转换订单数量": { "prefix": "ym-db-MachineChange-FindAndCount", "body": [ "int $1 = db.MachineChange.Count(m => $2);", ] }, "添加机具转换订单": { "prefix": "ym-db-MachineChange-Create", "body": [ "db.MachineChange.Add(new MachineChange()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ChangeNo = $1, //转换单号", " UserId = $2, //创客", " BackProductType = $3, //退回产品类型", " BackProductName = $4, //退回产品名称", " ChangeDeviceName = $5, //转换机具名称", " ChangeDeviceNum = $6, //转换机具数量", " ChangeTime = $7, //转换时间", " AuditBy = $8, //审核人", " AuditTime = $9, //审核时间", " AuditResult = $10, //审核结果", " AuditRemark = $11, //审核备注", " CompleteTime = $12, //完成时间", " OrderExpand = $13, //订单扩展信息", " ChangeSnExpand = $14, //转换机器SN来源", " BackStoreId = $15, //退回仓库", " BackStoreName = $16, //退回仓库名称", " Remark = $17, //订单备注", " BackStoreUserId = $18, //退回仓库归属人", " OutProductType = $19, //出库产品类型", " OutProductName = $20, //出库产品名称", " OutStoreId = $21, //出库仓库", " OutStoreName = $22, //出库仓库名称", " OutStoreAreas = $23, //出库仓库所在地区", " OutStoreAddress = $24, //出库仓库地址", " OutStoreManager = $25, //出库仓库联系人", " OutStoreManagerMobile = $26, //出库仓库联系人手机号", "});" ] },"删除某个机具转换订单": { "prefix": "ym-db-MachineChange-Delete", "body": [ "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineChange.Remove($1);", "}" ] }, "查询机具转换明细列表": { "prefix": "ym-db-MachineChangeDetail-Find", "body": [ "List $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineChangeDetail $3 in $1)", "{", "}" ] }, "查询机具转换明细列表,并取值": { "prefix": "ym-db-MachineChangeDetail-FindWithData", "body": [ "List $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineChangeDetail $3 in $1)", "{", " string ChangeNo = $3.ChangeNo; //订单号", " int ChangeId = $3.ChangeId; //订单Id", " int BackProductType = $3.BackProductType; //退回产品类型", " string BackProductName = $3.BackProductName; //退回产品名称", " int UserId = $3.UserId; //创客", " string BackSnNo = $3.BackSnNo; //设备SN编号", " int BackDeviceStatus = $3.BackDeviceStatus; //设备状态", " int OutProductType = $3.OutProductType ; //出库产品类型", " string OutProductName = $3.OutProductName; //出库产品名称", " string OutSnNo = $3.OutSnNo; //出库设备SN编号", " int OutSnType = $3.OutSnType; //出库SN机具类型", " string Remark = $3.Remark; //备注", " int BackSnType = $3.BackSnType; //退回SN机具类型", "}" ] }, "查询机具转换明细": { "prefix": "ym-db-MachineChangeDetail-Exist", "body": [ "bool $1 = db.MachineChangeDetail.Any(m => m.Id == $2);", ] }, "查询某个机具转换明细,并取值": { "prefix": "ym-db-MachineChangeDetail-FindByPrimaryKey", "body": [ "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ChangeNo = $1.ChangeNo; //订单号", " int ChangeId = $1.ChangeId; //订单Id", " int BackProductType = $1.BackProductType; //退回产品类型", " string BackProductName = $1.BackProductName; //退回产品名称", " int UserId = $1.UserId; //创客", " string BackSnNo = $1.BackSnNo; //设备SN编号", " int BackDeviceStatus = $1.BackDeviceStatus; //设备状态", " int OutProductType = $1.OutProductType ; //出库产品类型", " string OutProductName = $1.OutProductName; //出库产品名称", " string OutSnNo = $1.OutSnNo; //出库设备SN编号", " int OutSnType = $1.OutSnType; //出库SN机具类型", " string Remark = $1.Remark; //备注", " int BackSnType = $1.BackSnType; //退回SN机具类型", "}" ] }, "查询某个机具转换明细,并赋值": { "prefix": "ym-db-MachineChangeDetail-Update", "body": [ "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ChangeNo = $2; //订单号", " $1.ChangeId = $3; //订单Id", " $1.BackProductType = $4; //退回产品类型", " $1.BackProductName = $5; //退回产品名称", " $1.UserId = $6; //创客", " $1.BackSnNo = $7; //设备SN编号", " $1.BackDeviceStatus = $8; //设备状态", " $1.OutProductType = $9; //出库产品类型", " $1.OutProductName = $10; //出库产品名称", " $1.OutSnNo = $11; //出库设备SN编号", " $1.OutSnType = $12; //出库SN机具类型", " $1.Remark = $13; //备注", " $1.BackSnType = $14; //退回SN机具类型", "}" ] }, "获取机具转换明细数量": { "prefix": "ym-db-MachineChangeDetail-FindAndCount", "body": [ "int $1 = db.MachineChangeDetail.Count(m => $2);", ] }, "添加机具转换明细": { "prefix": "ym-db-MachineChangeDetail-Create", "body": [ "db.MachineChangeDetail.Add(new MachineChangeDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ChangeNo = $1, //订单号", " ChangeId = $2, //订单Id", " BackProductType = $3, //退回产品类型", " BackProductName = $4, //退回产品名称", " UserId = $5, //创客", " BackSnNo = $6, //设备SN编号", " BackDeviceStatus = $7, //设备状态", " OutProductType = $8, //出库产品类型", " OutProductName = $9, //出库产品名称", " OutSnNo = $10, //出库设备SN编号", " OutSnType = $11, //出库SN机具类型", " Remark = $12, //备注", " BackSnType = $13, //退回SN机具类型", "});" ] },"删除某个机具转换明细": { "prefix": "ym-db-MachineChangeDetail-Delete", "body": [ "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineChangeDetail.Remove($1);", "}" ] }, "查询机具绑定收款码列表": { "prefix": "ym-db-MachineForQrCode-Find", "body": [ "List $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineForQrCode $3 in $1)", "{", "}" ] }, "查询机具绑定收款码列表,并取值": { "prefix": "ym-db-MachineForQrCode-FindWithData", "body": [ "List $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineForQrCode $3 in $1)", "{", " string DataId = $3.DataId; //关联主键", " DateTime BindDate = $3.BindDate; //绑定时间", " string SnNo = $3.SnNo; //收款SN", " string MachineSnNo = $3.MachineSnNo; //音箱SN", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询机具绑定收款码": { "prefix": "ym-db-MachineForQrCode-Exist", "body": [ "bool $1 = db.MachineForQrCode.Any(m => m.DataId == $2);", ] }, "查询某个机具绑定收款码,并取值": { "prefix": "ym-db-MachineForQrCode-FindByPrimaryKey", "body": [ "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);", "if ($1 != null)", "{", " string DataId = $1.DataId; //关联主键", " DateTime BindDate = $1.BindDate; //绑定时间", " string SnNo = $1.SnNo; //收款SN", " string MachineSnNo = $1.MachineSnNo; //音箱SN", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个机具绑定收款码,并赋值": { "prefix": "ym-db-MachineForQrCode-Update", "body": [ "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);", "if ($1 != null)", "{", " $1.DataId = $2; //关联主键", " $1.BindDate = $3; //绑定时间", " $1.SnNo = $4; //收款SN", " $1.MachineSnNo = $5; //音箱SN", " $1.MerchantId = $6; //商户", "}" ] }, "获取机具绑定收款码数量": { "prefix": "ym-db-MachineForQrCode-FindAndCount", "body": [ "int $1 = db.MachineForQrCode.Count(m => $2);", ] }, "添加机具绑定收款码": { "prefix": "ym-db-MachineForQrCode-Create", "body": [ "db.MachineForQrCode.Add(new MachineForQrCode()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " DataId = $1, //关联主键", " BindDate = $2, //绑定时间", " SnNo = $3, //收款SN", " MachineSnNo = $4, //音箱SN", " MerchantId = $5, //商户", "});" ] },"删除某个机具绑定收款码": { "prefix": "ym-db-MachineForQrCode-Delete", "body": [ "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);", "if ($1 != null)", "{", " db.MachineForQrCode.Remove($1);", "}" ] }, "查询机具号为主键的关联表列表": { "prefix": "ym-db-MachineForSnNo-Find", "body": [ "List $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineForSnNo $3 in $1)", "{", "}" ] }, "查询机具号为主键的关联表列表,并取值": { "prefix": "ym-db-MachineForSnNo-FindWithData", "body": [ "List $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineForSnNo $3 in $1)", "{", " string SnNo = $3.SnNo; //机具号", " int SnId = $3.SnId; //机具Id", "}" ] }, "查询机具号为主键的关联表": { "prefix": "ym-db-MachineForSnNo-Exist", "body": [ "bool $1 = db.MachineForSnNo.Any(m => m.SnNo == $2);", ] }, "查询某个机具号为主键的关联表,并取值": { "prefix": "ym-db-MachineForSnNo-FindByPrimaryKey", "body": [ "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);", "if ($1 != null)", "{", " string SnNo = $1.SnNo; //机具号", " int SnId = $1.SnId; //机具Id", "}" ] }, "查询某个机具号为主键的关联表,并赋值": { "prefix": "ym-db-MachineForSnNo-Update", "body": [ "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);", "if ($1 != null)", "{", " $1.SnNo = $2; //机具号", " $1.SnId = $3; //机具Id", "}" ] }, "获取机具号为主键的关联表数量": { "prefix": "ym-db-MachineForSnNo-FindAndCount", "body": [ "int $1 = db.MachineForSnNo.Count(m => $2);", ] }, "添加机具号为主键的关联表": { "prefix": "ym-db-MachineForSnNo-Create", "body": [ "db.MachineForSnNo.Add(new MachineForSnNo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " SnNo = $1, //机具号", " SnId = $2, //机具Id", "});" ] },"删除某个机具号为主键的关联表": { "prefix": "ym-db-MachineForSnNo-Delete", "body": [ "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);", "if ($1 != null)", "{", " db.MachineForSnNo.Remove($1);", "}" ] }, "查询机具损坏换新申请列表": { "prefix": "ym-db-MachineRenew-Find", "body": [ "List $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineRenew $3 in $1)", "{", "}" ] }, "查询机具损坏换新申请列表,并取值": { "prefix": "ym-db-MachineRenew-FindWithData", "body": [ "List $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineRenew $3 in $1)", "{", " string ApplyNo = $3.ApplyNo; //机具售后换新申请订单号", " string ApplyDate = $3.ApplyDate; //机具售后换新申请时间", " int UserId = $3.UserId; //创客", " int DamagedBrandId = $3.DamagedBrandId; //损坏的机具产品类型", " string DamagedSnNo = $3.DamagedSnNo; //创客损坏的机具SN", " int DamagedSnType = $3.DamagedSnType; //损坏的机具SN机具类型", " int ReplaceBrandId = $3.ReplaceBrandId; //替换的机具产品类型", " string ReplaceSnNo = $3.ReplaceSnNo; //创客机具替换SN", " int ReplaceSnType = $3.ReplaceSnType; //替换的机具SN机具类型", " int DeliverBrandId = $3.DeliverBrandId; //仓库换新发货的机具产品类型", " string DeliverSnNo = $3.DeliverSnNo; //仓库换新发货SN", " string DemandDesc = $3.DemandDesc; //售后换新机具处理需求描述", " int audit_status = $3.audit_status; //审核状态", " string AuditDesc = $3.AuditDesc; //创客机具售后换新审核描述", " DateTime AuditDate = $3.AuditDate; //审核时间", "}" ] }, "查询机具损坏换新申请": { "prefix": "ym-db-MachineRenew-Exist", "body": [ "bool $1 = db.MachineRenew.Any(m => m.Id == $2);", ] }, "查询某个机具损坏换新申请,并取值": { "prefix": "ym-db-MachineRenew-FindByPrimaryKey", "body": [ "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ApplyNo = $1.ApplyNo; //机具售后换新申请订单号", " string ApplyDate = $1.ApplyDate; //机具售后换新申请时间", " int UserId = $1.UserId; //创客", " int DamagedBrandId = $1.DamagedBrandId; //损坏的机具产品类型", " string DamagedSnNo = $1.DamagedSnNo; //创客损坏的机具SN", " int DamagedSnType = $1.DamagedSnType; //损坏的机具SN机具类型", " int ReplaceBrandId = $1.ReplaceBrandId; //替换的机具产品类型", " string ReplaceSnNo = $1.ReplaceSnNo; //创客机具替换SN", " int ReplaceSnType = $1.ReplaceSnType; //替换的机具SN机具类型", " int DeliverBrandId = $1.DeliverBrandId; //仓库换新发货的机具产品类型", " string DeliverSnNo = $1.DeliverSnNo; //仓库换新发货SN", " string DemandDesc = $1.DemandDesc; //售后换新机具处理需求描述", " int audit_status = $1.audit_status; //审核状态", " string AuditDesc = $1.AuditDesc; //创客机具售后换新审核描述", " DateTime AuditDate = $1.AuditDate; //审核时间", "}" ] }, "查询某个机具损坏换新申请,并赋值": { "prefix": "ym-db-MachineRenew-Update", "body": [ "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ApplyNo = $2; //机具售后换新申请订单号", " $1.ApplyDate = $3; //机具售后换新申请时间", " $1.UserId = $4; //创客", " $1.DamagedBrandId = $5; //损坏的机具产品类型", " $1.DamagedSnNo = $6; //创客损坏的机具SN", " $1.DamagedSnType = $7; //损坏的机具SN机具类型", " $1.ReplaceBrandId = $8; //替换的机具产品类型", " $1.ReplaceSnNo = $9; //创客机具替换SN", " $1.ReplaceSnType = $10; //替换的机具SN机具类型", " $1.DeliverBrandId = $11; //仓库换新发货的机具产品类型", " $1.DeliverSnNo = $12; //仓库换新发货SN", " $1.DemandDesc = $13; //售后换新机具处理需求描述", " $1.audit_status = $14; //审核状态", " $1.AuditDesc = $15; //创客机具售后换新审核描述", " $1.AuditDate = $16; //审核时间", "}" ] }, "获取机具损坏换新申请数量": { "prefix": "ym-db-MachineRenew-FindAndCount", "body": [ "int $1 = db.MachineRenew.Count(m => $2);", ] }, "添加机具损坏换新申请": { "prefix": "ym-db-MachineRenew-Create", "body": [ "db.MachineRenew.Add(new MachineRenew()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ApplyNo = $1, //机具售后换新申请订单号", " ApplyDate = $2, //机具售后换新申请时间", " UserId = $3, //创客", " DamagedBrandId = $4, //损坏的机具产品类型", " DamagedSnNo = $5, //创客损坏的机具SN", " DamagedSnType = $6, //损坏的机具SN机具类型", " ReplaceBrandId = $7, //替换的机具产品类型", " ReplaceSnNo = $8, //创客机具替换SN", " ReplaceSnType = $9, //替换的机具SN机具类型", " DeliverBrandId = $10, //仓库换新发货的机具产品类型", " DeliverSnNo = $11, //仓库换新发货SN", " DemandDesc = $12, //售后换新机具处理需求描述", " audit_status = $13, //审核状态", " AuditDesc = $14, //创客机具售后换新审核描述", " AuditDate = $15, //审核时间", "});" ] },"删除某个机具损坏换新申请": { "prefix": "ym-db-MachineRenew-Delete", "body": [ "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineRenew.Remove($1);", "}" ] }, "查询机具退货申请订单列表": { "prefix": "ym-db-MachineReturn-Find", "body": [ "List $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineReturn $3 in $1)", "{", "}" ] }, "查询机具退货申请订单列表,并取值": { "prefix": "ym-db-MachineReturn-FindWithData", "body": [ "List $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MachineReturn $3 in $1)", "{", " string ApplyNo = $3.ApplyNo; //申请单号", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " int DeviceNum = $3.DeviceNum; //申请退货数量", " string DeviceSnNos = $3.DeviceSnNos; //退货机具编号", " int ToStoreId = $3.ToStoreId; //退回仓库", " string DeviceDesc = $3.DeviceDesc; //设备描述", " int AuditStatus = $3.AuditStatus; //审核状态", " string Operator = $3.Operator; //操作人", " string Remark = $3.Remark; //退货备注", "}" ] }, "查询机具退货申请订单": { "prefix": "ym-db-MachineReturn-Exist", "body": [ "bool $1 = db.MachineReturn.Any(m => m.Id == $2);", ] }, "查询某个机具退货申请订单,并取值": { "prefix": "ym-db-MachineReturn-FindByPrimaryKey", "body": [ "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ApplyNo = $1.ApplyNo; //申请单号", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " int DeviceNum = $1.DeviceNum; //申请退货数量", " string DeviceSnNos = $1.DeviceSnNos; //退货机具编号", " int ToStoreId = $1.ToStoreId; //退回仓库", " string DeviceDesc = $1.DeviceDesc; //设备描述", " int AuditStatus = $1.AuditStatus; //审核状态", " string Operator = $1.Operator; //操作人", " string Remark = $1.Remark; //退货备注", "}" ] }, "查询某个机具退货申请订单,并赋值": { "prefix": "ym-db-MachineReturn-Update", "body": [ "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ApplyNo = $2; //申请单号", " $1.UserId = $3; //创客", " $1.BrandId = $4; //品牌", " $1.DeviceNum = $5; //申请退货数量", " $1.DeviceSnNos = $6; //退货机具编号", " $1.ToStoreId = $7; //退回仓库", " $1.DeviceDesc = $8; //设备描述", " $1.AuditStatus = $9; //审核状态", " $1.Operator = $10; //操作人", " $1.Remark = $11; //退货备注", "}" ] }, "获取机具退货申请订单数量": { "prefix": "ym-db-MachineReturn-FindAndCount", "body": [ "int $1 = db.MachineReturn.Count(m => $2);", ] }, "添加机具退货申请订单": { "prefix": "ym-db-MachineReturn-Create", "body": [ "db.MachineReturn.Add(new MachineReturn()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ApplyNo = $1, //申请单号", " UserId = $2, //创客", " BrandId = $3, //品牌", " DeviceNum = $4, //申请退货数量", " DeviceSnNos = $5, //退货机具编号", " ToStoreId = $6, //退回仓库", " DeviceDesc = $7, //设备描述", " AuditStatus = $8, //审核状态", " Operator = $9, //操作人", " Remark = $10, //退货备注", "});" ] },"删除某个机具退货申请订单": { "prefix": "ym-db-MachineReturn-Delete", "body": [ "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MachineReturn.Remove($1);", "}" ] }, "查询菜单权限列表": { "prefix": "ym-db-MenuRight-Find", "body": [ "List $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MenuRight $3 in $1)", "{", "}" ] }, "查询菜单权限列表,并取值": { "prefix": "ym-db-MenuRight-FindWithData", "body": [ "List $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MenuRight $3 in $1)", "{", " string Name = $3.Name; //名称", " string MenuId = $3.MenuId; //权限名", "}" ] }, "查询菜单权限": { "prefix": "ym-db-MenuRight-Exist", "body": [ "bool $1 = db.MenuRight.Any(m => m.MenuId == $2);", ] }, "查询某个菜单权限,并取值": { "prefix": "ym-db-MenuRight-FindByPrimaryKey", "body": [ "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string MenuId = $1.MenuId; //权限名", "}" ] }, "查询某个菜单权限,并赋值": { "prefix": "ym-db-MenuRight-Update", "body": [ "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.MenuId = $3; //权限名", "}" ] }, "获取菜单权限数量": { "prefix": "ym-db-MenuRight-FindAndCount", "body": [ "int $1 = db.MenuRight.Count(m => $2);", ] }, "添加菜单权限": { "prefix": "ym-db-MenuRight-Create", "body": [ "db.MenuRight.Add(new MenuRight()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " MenuId = $2, //权限名", "});" ] },"删除某个菜单权限": { "prefix": "ym-db-MenuRight-Delete", "body": [ "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);", "if ($1 != null)", "{", " db.MenuRight.Remove($1);", "}" ] }, "查询商户进件资料列表": { "prefix": "ym-db-MerchantAddInfo-Find", "body": [ "List $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAddInfo $3 in $1)", "{", "}" ] }, "查询商户进件资料列表,并取值": { "prefix": "ym-db-MerchantAddInfo-FindWithData", "body": [ "List $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAddInfo $3 in $1)", "{", " string BusinessCode = $3.BusinessCode; //申请编号", " string ContactName = $3.ContactName; //管理员姓名", " string ContactIdNumber = $3.ContactIdNumber; //管理员身份证件号码", " string OpenId = $3.OpenId; //管理员微信openid", " string MobilePhone = $3.MobilePhone; //联系手机", " string ContactEmail = $3.ContactEmail; //联系邮箱", " string SubjectType = $3.SubjectType; //主体类型", " string LicenseCopy = $3.LicenseCopy; //营业执照照片", " string LicenseNumber = $3.LicenseNumber; //统一社会信用代码", " string LegalPerson = $3.LegalPerson; //个体户经营者/法人姓名", " string CertCopy = $3.CertCopy; //登记证书照片", " string CertType = $3.CertType; //登记证书类型", " string CertNumber = $3.CertNumber; //证书号", " string CertMerchantName = $3.CertMerchantName; //商户名称", " string CompanyAddress = $3.CompanyAddress; //注册地址", " string CertLegalPerson = $3.CertLegalPerson; //法人姓名", " DateTime PeriodBegin = $3.PeriodBegin; //有效期限开始日期", " DateTime PeriodEnd = $3.PeriodEnd; //有效期限结束日期", " string OrganizationCopy = $3.OrganizationCopy; //组织机构代码证照片", " string OrganizationCode = $3.OrganizationCode; //组织机构代码", " DateTime OrgPeriodBegin = $3.OrgPeriodBegin; //组织机构代码证有效期开始日期", " DateTime OrgPeriodEnd = $3.OrgPeriodEnd; //组织机构代码证有效期结束日期", " string CertificateLetterCopy = $3.CertificateLetterCopy; //单位证明函照片", " string IdDocType = $3.IdDocType; //证件类型", " ulong Owner = $3.Owner; //经营者/法人是否为受益人", " string UboInfoIdType = $3.UboInfoIdType; //最终受益人证件类型", " string UboInfoIdCardCopy = $3.UboInfoIdCardCopy; //最终受益人身份证人像面照片", " string UboInfoIdCardNational = $3.UboInfoIdCardNational; //身份证国徽面照片", " string UboInfoIdDocCopy = $3.UboInfoIdDocCopy; //最终受益人证件照片", " string UboInfoName = $3.UboInfoName; //受益人姓名", " string UboInfoIdNumber = $3.UboInfoIdNumber; //最终受益人证件号码", " DateTime UboInfoIdPeriodBegin = $3.UboInfoIdPeriodBegin; //证件有效期开始时间", " DateTime UboInfoIdPeriodEnd = $3.UboInfoIdPeriodEnd; //证件有效期结束时间", " string MerchantShortname = $3.MerchantShortname; //商户简称", " string ServicePhone = $3.ServicePhone; //客服电话", " string SalesScenesType = $3.SalesScenesType; //经营场景类型", " string BizStoreName = $3.BizStoreName; //门店名称", " string BizAddressCode = $3.BizAddressCode; //门店省市编码", " string BizStoreAddress = $3.BizStoreAddress; //门店地址", " string StoreEntrancePic = $3.StoreEntrancePic; //门店门头照片", " string IndoorPic = $3.IndoorPic; //店内环境照片", " string BizSubAppid = $3.BizSubAppid; //线下场所对应的商家APPID", " string MpAppid = $3.MpAppid; //服务商公众号APPID", " string MpSubAppid = $3.MpSubAppid; //商家公众号APPID", " string MpPics = $3.MpPics; //公众号页面截图", " string MiniProgramAppid = $3.MiniProgramAppid; //服务商小程序APPID", " string MiniProgramSubAppid = $3.MiniProgramSubAppid; //商家小程序APPID", " string MiniProgramPics = $3.MiniProgramPics; //小程序截图", " string AppAppid = $3.AppAppid; //服务商应用APPID", " string AppSubAppid = $3.AppSubAppid; //商家应用APPID", " string AppPics = $3.AppPics; //APP截图", " string WebDomain = $3.WebDomain; //互联网网站域名", " string WebAuthorisation = $3.WebAuthorisation; //网站授权函", " string WebAppId = $3.WebAppId; //互联网网站对应的商家APPID", " string SubCorpId = $3.SubCorpId; //商家企业微信CorpID", " string WeworkPics = $3.WeworkPics; //企业微信页面截图", " string SettlementId = $3.SettlementId; //入驻结算规则ID", " string QualificationType = $3.QualificationType; //所属行业", " string Qualifications = $3.Qualifications; //特殊资质图片", " string ActivitiesId = $3.ActivitiesId; //优惠费率活动ID", " string ActivitiesRate = $3.ActivitiesRate; //优惠费率活动值", " string BankAccountType = $3.BankAccountType; //账户类型", " string AccountName = $3.AccountName; //开户名称", " string AccountBank = $3.AccountBank; //开户银行", " string BankAddressCode = $3.BankAddressCode; //开户银行省市编码", " string BankBranchId = $3.BankBranchId; //开户银行联行号", " string BankName = $3.BankName; //开户银行全称", " string AccountNumber = $3.AccountNumber; //银行账号", " string ApplymentId = $3.ApplymentId; //微信支付申请单号", " string SubMchid = $3.SubMchid; //特约商户号", " string SignUrl = $3.SignUrl; //超级管理员签约链接", " string ApplymentState = $3.ApplymentState; //申请单状态", " string AuditDetail = $3.AuditDetail; //驳回原因详情", " string IdCardCopy = $3.IdCardCopy; //身份证人像面照片", " string IdCardNational = $3.IdCardNational; //身份证国徽面照片", " string IdCardName = $3.IdCardName; //身份证姓名", " string IdCardNumber = $3.IdCardNumber; //身份证号码", " DateTime CardPeriodBegin = $3.CardPeriodBegin; //身份证有效期开始时间", " DateTime CardPeriodEnd = $3.CardPeriodEnd; //身份证有效期结束时间", "}" ] }, "查询商户进件资料": { "prefix": "ym-db-MerchantAddInfo-Exist", "body": [ "bool $1 = db.MerchantAddInfo.Any(m => m.Id == $2);", ] }, "查询某个商户进件资料,并取值": { "prefix": "ym-db-MerchantAddInfo-FindByPrimaryKey", "body": [ "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string BusinessCode = $1.BusinessCode; //申请编号", " string ContactName = $1.ContactName; //管理员姓名", " string ContactIdNumber = $1.ContactIdNumber; //管理员身份证件号码", " string OpenId = $1.OpenId; //管理员微信openid", " string MobilePhone = $1.MobilePhone; //联系手机", " string ContactEmail = $1.ContactEmail; //联系邮箱", " string SubjectType = $1.SubjectType; //主体类型", " string LicenseCopy = $1.LicenseCopy; //营业执照照片", " string LicenseNumber = $1.LicenseNumber; //统一社会信用代码", " string LegalPerson = $1.LegalPerson; //个体户经营者/法人姓名", " string CertCopy = $1.CertCopy; //登记证书照片", " string CertType = $1.CertType; //登记证书类型", " string CertNumber = $1.CertNumber; //证书号", " string CertMerchantName = $1.CertMerchantName; //商户名称", " string CompanyAddress = $1.CompanyAddress; //注册地址", " string CertLegalPerson = $1.CertLegalPerson; //法人姓名", " DateTime PeriodBegin = $1.PeriodBegin; //有效期限开始日期", " DateTime PeriodEnd = $1.PeriodEnd; //有效期限结束日期", " string OrganizationCopy = $1.OrganizationCopy; //组织机构代码证照片", " string OrganizationCode = $1.OrganizationCode; //组织机构代码", " DateTime OrgPeriodBegin = $1.OrgPeriodBegin; //组织机构代码证有效期开始日期", " DateTime OrgPeriodEnd = $1.OrgPeriodEnd; //组织机构代码证有效期结束日期", " string CertificateLetterCopy = $1.CertificateLetterCopy; //单位证明函照片", " string IdDocType = $1.IdDocType; //证件类型", " ulong Owner = $1.Owner; //经营者/法人是否为受益人", " string UboInfoIdType = $1.UboInfoIdType; //最终受益人证件类型", " string UboInfoIdCardCopy = $1.UboInfoIdCardCopy; //最终受益人身份证人像面照片", " string UboInfoIdCardNational = $1.UboInfoIdCardNational; //身份证国徽面照片", " string UboInfoIdDocCopy = $1.UboInfoIdDocCopy; //最终受益人证件照片", " string UboInfoName = $1.UboInfoName; //受益人姓名", " string UboInfoIdNumber = $1.UboInfoIdNumber; //最终受益人证件号码", " DateTime UboInfoIdPeriodBegin = $1.UboInfoIdPeriodBegin; //证件有效期开始时间", " DateTime UboInfoIdPeriodEnd = $1.UboInfoIdPeriodEnd; //证件有效期结束时间", " string MerchantShortname = $1.MerchantShortname; //商户简称", " string ServicePhone = $1.ServicePhone; //客服电话", " string SalesScenesType = $1.SalesScenesType; //经营场景类型", " string BizStoreName = $1.BizStoreName; //门店名称", " string BizAddressCode = $1.BizAddressCode; //门店省市编码", " string BizStoreAddress = $1.BizStoreAddress; //门店地址", " string StoreEntrancePic = $1.StoreEntrancePic; //门店门头照片", " string IndoorPic = $1.IndoorPic; //店内环境照片", " string BizSubAppid = $1.BizSubAppid; //线下场所对应的商家APPID", " string MpAppid = $1.MpAppid; //服务商公众号APPID", " string MpSubAppid = $1.MpSubAppid; //商家公众号APPID", " string MpPics = $1.MpPics; //公众号页面截图", " string MiniProgramAppid = $1.MiniProgramAppid; //服务商小程序APPID", " string MiniProgramSubAppid = $1.MiniProgramSubAppid; //商家小程序APPID", " string MiniProgramPics = $1.MiniProgramPics; //小程序截图", " string AppAppid = $1.AppAppid; //服务商应用APPID", " string AppSubAppid = $1.AppSubAppid; //商家应用APPID", " string AppPics = $1.AppPics; //APP截图", " string WebDomain = $1.WebDomain; //互联网网站域名", " string WebAuthorisation = $1.WebAuthorisation; //网站授权函", " string WebAppId = $1.WebAppId; //互联网网站对应的商家APPID", " string SubCorpId = $1.SubCorpId; //商家企业微信CorpID", " string WeworkPics = $1.WeworkPics; //企业微信页面截图", " string SettlementId = $1.SettlementId; //入驻结算规则ID", " string QualificationType = $1.QualificationType; //所属行业", " string Qualifications = $1.Qualifications; //特殊资质图片", " string ActivitiesId = $1.ActivitiesId; //优惠费率活动ID", " string ActivitiesRate = $1.ActivitiesRate; //优惠费率活动值", " string BankAccountType = $1.BankAccountType; //账户类型", " string AccountName = $1.AccountName; //开户名称", " string AccountBank = $1.AccountBank; //开户银行", " string BankAddressCode = $1.BankAddressCode; //开户银行省市编码", " string BankBranchId = $1.BankBranchId; //开户银行联行号", " string BankName = $1.BankName; //开户银行全称", " string AccountNumber = $1.AccountNumber; //银行账号", " string ApplymentId = $1.ApplymentId; //微信支付申请单号", " string SubMchid = $1.SubMchid; //特约商户号", " string SignUrl = $1.SignUrl; //超级管理员签约链接", " string ApplymentState = $1.ApplymentState; //申请单状态", " string AuditDetail = $1.AuditDetail; //驳回原因详情", " string IdCardCopy = $1.IdCardCopy; //身份证人像面照片", " string IdCardNational = $1.IdCardNational; //身份证国徽面照片", " string IdCardName = $1.IdCardName; //身份证姓名", " string IdCardNumber = $1.IdCardNumber; //身份证号码", " DateTime CardPeriodBegin = $1.CardPeriodBegin; //身份证有效期开始时间", " DateTime CardPeriodEnd = $1.CardPeriodEnd; //身份证有效期结束时间", "}" ] }, "查询某个商户进件资料,并赋值": { "prefix": "ym-db-MerchantAddInfo-Update", "body": [ "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.BusinessCode = $2; //申请编号", " $1.ContactName = $3; //管理员姓名", " $1.ContactIdNumber = $4; //管理员身份证件号码", " $1.OpenId = $5; //管理员微信openid", " $1.MobilePhone = $6; //联系手机", " $1.ContactEmail = $7; //联系邮箱", " $1.SubjectType = $8; //主体类型", " $1.LicenseCopy = $9; //营业执照照片", " $1.LicenseNumber = $10; //统一社会信用代码", " $1.LegalPerson = $11; //个体户经营者/法人姓名", " $1.CertCopy = $12; //登记证书照片", " $1.CertType = $13; //登记证书类型", " $1.CertNumber = $14; //证书号", " $1.CertMerchantName = $15; //商户名称", " $1.CompanyAddress = $16; //注册地址", " $1.CertLegalPerson = $17; //法人姓名", " $1.PeriodBegin = $18; //有效期限开始日期", " $1.PeriodEnd = $19; //有效期限结束日期", " $1.OrganizationCopy = $20; //组织机构代码证照片", " $1.OrganizationCode = $21; //组织机构代码", " $1.OrgPeriodBegin = $22; //组织机构代码证有效期开始日期", " $1.OrgPeriodEnd = $23; //组织机构代码证有效期结束日期", " $1.CertificateLetterCopy = $24; //单位证明函照片", " $1.IdDocType = $25; //证件类型", " $1.Owner = $26; //经营者/法人是否为受益人", " $1.UboInfoIdType = $27; //最终受益人证件类型", " $1.UboInfoIdCardCopy = $28; //最终受益人身份证人像面照片", " $1.UboInfoIdCardNational = $29; //身份证国徽面照片", " $1.UboInfoIdDocCopy = $30; //最终受益人证件照片", " $1.UboInfoName = $31; //受益人姓名", " $1.UboInfoIdNumber = $32; //最终受益人证件号码", " $1.UboInfoIdPeriodBegin = $33; //证件有效期开始时间", " $1.UboInfoIdPeriodEnd = $34; //证件有效期结束时间", " $1.MerchantShortname = $35; //商户简称", " $1.ServicePhone = $36; //客服电话", " $1.SalesScenesType = $37; //经营场景类型", " $1.BizStoreName = $38; //门店名称", " $1.BizAddressCode = $39; //门店省市编码", " $1.BizStoreAddress = $40; //门店地址", " $1.StoreEntrancePic = $41; //门店门头照片", " $1.IndoorPic = $42; //店内环境照片", " $1.BizSubAppid = $43; //线下场所对应的商家APPID", " $1.MpAppid = $44; //服务商公众号APPID", " $1.MpSubAppid = $45; //商家公众号APPID", " $1.MpPics = $46; //公众号页面截图", " $1.MiniProgramAppid = $47; //服务商小程序APPID", " $1.MiniProgramSubAppid = $48; //商家小程序APPID", " $1.MiniProgramPics = $49; //小程序截图", " $1.AppAppid = $50; //服务商应用APPID", " $1.AppSubAppid = $51; //商家应用APPID", " $1.AppPics = $52; //APP截图", " $1.WebDomain = $53; //互联网网站域名", " $1.WebAuthorisation = $54; //网站授权函", " $1.WebAppId = $55; //互联网网站对应的商家APPID", " $1.SubCorpId = $56; //商家企业微信CorpID", " $1.WeworkPics = $57; //企业微信页面截图", " $1.SettlementId = $58; //入驻结算规则ID", " $1.QualificationType = $59; //所属行业", " $1.Qualifications = $60; //特殊资质图片", " $1.ActivitiesId = $61; //优惠费率活动ID", " $1.ActivitiesRate = $62; //优惠费率活动值", " $1.BankAccountType = $63; //账户类型", " $1.AccountName = $64; //开户名称", " $1.AccountBank = $65; //开户银行", " $1.BankAddressCode = $66; //开户银行省市编码", " $1.BankBranchId = $67; //开户银行联行号", " $1.BankName = $68; //开户银行全称", " $1.AccountNumber = $69; //银行账号", " $1.ApplymentId = $70; //微信支付申请单号", " $1.SubMchid = $71; //特约商户号", " $1.SignUrl = $72; //超级管理员签约链接", " $1.ApplymentState = $73; //申请单状态", " $1.AuditDetail = $74; //驳回原因详情", " $1.IdCardCopy = $75; //身份证人像面照片", " $1.IdCardNational = $76; //身份证国徽面照片", " $1.IdCardName = $77; //身份证姓名", " $1.IdCardNumber = $78; //身份证号码", " $1.CardPeriodBegin = $79; //身份证有效期开始时间", " $1.CardPeriodEnd = $80; //身份证有效期结束时间", "}" ] }, "获取商户进件资料数量": { "prefix": "ym-db-MerchantAddInfo-FindAndCount", "body": [ "int $1 = db.MerchantAddInfo.Count(m => $2);", ] }, "添加商户进件资料": { "prefix": "ym-db-MerchantAddInfo-Create", "body": [ "db.MerchantAddInfo.Add(new MerchantAddInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BusinessCode = $1, //申请编号", " ContactName = $2, //管理员姓名", " ContactIdNumber = $3, //管理员身份证件号码", " OpenId = $4, //管理员微信openid", " MobilePhone = $5, //联系手机", " ContactEmail = $6, //联系邮箱", " SubjectType = $7, //主体类型", " LicenseCopy = $8, //营业执照照片", " LicenseNumber = $9, //统一社会信用代码", " LegalPerson = $10, //个体户经营者/法人姓名", " CertCopy = $11, //登记证书照片", " CertType = $12, //登记证书类型", " CertNumber = $13, //证书号", " CertMerchantName = $14, //商户名称", " CompanyAddress = $15, //注册地址", " CertLegalPerson = $16, //法人姓名", " PeriodBegin = $17, //有效期限开始日期", " PeriodEnd = $18, //有效期限结束日期", " OrganizationCopy = $19, //组织机构代码证照片", " OrganizationCode = $20, //组织机构代码", " OrgPeriodBegin = $21, //组织机构代码证有效期开始日期", " OrgPeriodEnd = $22, //组织机构代码证有效期结束日期", " CertificateLetterCopy = $23, //单位证明函照片", " IdDocType = $24, //证件类型", " Owner = $25, //经营者/法人是否为受益人", " UboInfoIdType = $26, //最终受益人证件类型", " UboInfoIdCardCopy = $27, //最终受益人身份证人像面照片", " UboInfoIdCardNational = $28, //身份证国徽面照片", " UboInfoIdDocCopy = $29, //最终受益人证件照片", " UboInfoName = $30, //受益人姓名", " UboInfoIdNumber = $31, //最终受益人证件号码", " UboInfoIdPeriodBegin = $32, //证件有效期开始时间", " UboInfoIdPeriodEnd = $33, //证件有效期结束时间", " MerchantShortname = $34, //商户简称", " ServicePhone = $35, //客服电话", " SalesScenesType = $36, //经营场景类型", " BizStoreName = $37, //门店名称", " BizAddressCode = $38, //门店省市编码", " BizStoreAddress = $39, //门店地址", " StoreEntrancePic = $40, //门店门头照片", " IndoorPic = $41, //店内环境照片", " BizSubAppid = $42, //线下场所对应的商家APPID", " MpAppid = $43, //服务商公众号APPID", " MpSubAppid = $44, //商家公众号APPID", " MpPics = $45, //公众号页面截图", " MiniProgramAppid = $46, //服务商小程序APPID", " MiniProgramSubAppid = $47, //商家小程序APPID", " MiniProgramPics = $48, //小程序截图", " AppAppid = $49, //服务商应用APPID", " AppSubAppid = $50, //商家应用APPID", " AppPics = $51, //APP截图", " WebDomain = $52, //互联网网站域名", " WebAuthorisation = $53, //网站授权函", " WebAppId = $54, //互联网网站对应的商家APPID", " SubCorpId = $55, //商家企业微信CorpID", " WeworkPics = $56, //企业微信页面截图", " SettlementId = $57, //入驻结算规则ID", " QualificationType = $58, //所属行业", " Qualifications = $59, //特殊资质图片", " ActivitiesId = $60, //优惠费率活动ID", " ActivitiesRate = $61, //优惠费率活动值", " BankAccountType = $62, //账户类型", " AccountName = $63, //开户名称", " AccountBank = $64, //开户银行", " BankAddressCode = $65, //开户银行省市编码", " BankBranchId = $66, //开户银行联行号", " BankName = $67, //开户银行全称", " AccountNumber = $68, //银行账号", " ApplymentId = $69, //微信支付申请单号", " SubMchid = $70, //特约商户号", " SignUrl = $71, //超级管理员签约链接", " ApplymentState = $72, //申请单状态", " AuditDetail = $73, //驳回原因详情", " IdCardCopy = $74, //身份证人像面照片", " IdCardNational = $75, //身份证国徽面照片", " IdCardName = $76, //身份证姓名", " IdCardNumber = $77, //身份证号码", " CardPeriodBegin = $78, //身份证有效期开始时间", " CardPeriodEnd = $79, //身份证有效期结束时间", "});" ] },"删除某个商户进件资料": { "prefix": "ym-db-MerchantAddInfo-Delete", "body": [ "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantAddInfo.Remove($1);", "}" ] }, "查询商家管理员列表": { "prefix": "ym-db-MerchantAdmin-Find", "body": [ "List $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAdmin $3 in $1)", "{", "}" ] }, "查询商家管理员列表,并取值": { "prefix": "ym-db-MerchantAdmin-FindWithData", "body": [ "List $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAdmin $3 in $1)", "{", " string AdminName = $3.AdminName; //用户名", " string Password = $3.Password; //密码", " string RealName = $3.RealName; //名称", " string RightInfo = $3.RightInfo; //权限", " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间", " string Mobile = $3.Mobile; //手机号", " string Email = $3.Email; //邮箱", " string QQ = $3.QQ; //QQ号", " string Note = $3.Note; //备注", " int MerchantId = $3.MerchantId; //商家Id", "}" ] }, "查询商家管理员": { "prefix": "ym-db-MerchantAdmin-Exist", "body": [ "bool $1 = db.MerchantAdmin.Any(m => m.Id == $2);", ] }, "查询某个商家管理员,并取值": { "prefix": "ym-db-MerchantAdmin-FindByPrimaryKey", "body": [ "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string AdminName = $1.AdminName; //用户名", " string Password = $1.Password; //密码", " string RealName = $1.RealName; //名称", " string RightInfo = $1.RightInfo; //权限", " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间", " string Mobile = $1.Mobile; //手机号", " string Email = $1.Email; //邮箱", " string QQ = $1.QQ; //QQ号", " string Note = $1.Note; //备注", " int MerchantId = $1.MerchantId; //商家Id", "}" ] }, "查询某个商家管理员,并赋值": { "prefix": "ym-db-MerchantAdmin-Update", "body": [ "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.AdminName = $2; //用户名", " $1.Password = $3; //密码", " $1.RealName = $4; //名称", " $1.RightInfo = $5; //权限", " $1.LastLoginDate = $6; //最后登录时间", " $1.Mobile = $7; //手机号", " $1.Email = $8; //邮箱", " $1.QQ = $9; //QQ号", " $1.Note = $10; //备注", " $1.MerchantId = $11; //商家Id", "}" ] }, "获取商家管理员数量": { "prefix": "ym-db-MerchantAdmin-FindAndCount", "body": [ "int $1 = db.MerchantAdmin.Count(m => $2);", ] }, "添加商家管理员": { "prefix": "ym-db-MerchantAdmin-Create", "body": [ "db.MerchantAdmin.Add(new MerchantAdmin()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " AdminName = $1, //用户名", " Password = $2, //密码", " RealName = $3, //名称", " RightInfo = $4, //权限", " LastLoginDate = $5, //最后登录时间", " Mobile = $6, //手机号", " Email = $7, //邮箱", " QQ = $8, //QQ号", " Note = $9, //备注", " MerchantId = $10, //商家Id", "});" ] },"删除某个商家管理员": { "prefix": "ym-db-MerchantAdmin-Delete", "body": [ "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantAdmin.Remove($1);", "}" ] }, "查询商户实名信息列表": { "prefix": "ym-db-MerchantAuth-Find", "body": [ "List $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAuth $3 in $1)", "{", "}" ] }, "查询商户实名信息列表,并取值": { "prefix": "ym-db-MerchantAuth-FindWithData", "body": [ "List $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantAuth $3 in $1)", "{", " string ChannelCode = $3.ChannelCode; //渠道编码", " string ChannelName = $3.ChannelName; //渠道名称 ", " string MerNo = $3.MerNo; //商户编号", " string RealName = $3.RealName; //真实姓名", " string IdCardNo = $3.IdCardNo; //身份证号", " string BankCardAccount = $3.BankCardAccount; //银行卡账号", " string BankName = $3.BankName; //银行名称", " string BankMobile = $3.BankMobile; //银行预留手机号码", " string ReqData = $3.ReqData; //渠道请求报文", " string RespData = $3.RespData; //渠道响应报文", " string ReturnCode = $3.ReturnCode; //渠道返回编码", " string ReturnMsg = $3.ReturnMsg; //渠道返回信息", " int AuthType = $3.AuthType; //实名类型", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询商户实名信息": { "prefix": "ym-db-MerchantAuth-Exist", "body": [ "bool $1 = db.MerchantAuth.Any(m => m.Id == $2);", ] }, "查询某个商户实名信息,并取值": { "prefix": "ym-db-MerchantAuth-FindByPrimaryKey", "body": [ "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ChannelCode = $1.ChannelCode; //渠道编码", " string ChannelName = $1.ChannelName; //渠道名称 ", " string MerNo = $1.MerNo; //商户编号", " string RealName = $1.RealName; //真实姓名", " string IdCardNo = $1.IdCardNo; //身份证号", " string BankCardAccount = $1.BankCardAccount; //银行卡账号", " string BankName = $1.BankName; //银行名称", " string BankMobile = $1.BankMobile; //银行预留手机号码", " string ReqData = $1.ReqData; //渠道请求报文", " string RespData = $1.RespData; //渠道响应报文", " string ReturnCode = $1.ReturnCode; //渠道返回编码", " string ReturnMsg = $1.ReturnMsg; //渠道返回信息", " int AuthType = $1.AuthType; //实名类型", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个商户实名信息,并赋值": { "prefix": "ym-db-MerchantAuth-Update", "body": [ "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ChannelCode = $2; //渠道编码", " $1.ChannelName = $3; //渠道名称 ", " $1.MerNo = $4; //商户编号", " $1.RealName = $5; //真实姓名", " $1.IdCardNo = $6; //身份证号", " $1.BankCardAccount = $7; //银行卡账号", " $1.BankName = $8; //银行名称", " $1.BankMobile = $9; //银行预留手机号码", " $1.ReqData = $10; //渠道请求报文", " $1.RespData = $11; //渠道响应报文", " $1.ReturnCode = $12; //渠道返回编码", " $1.ReturnMsg = $13; //渠道返回信息", " $1.AuthType = $14; //实名类型", " $1.MerchantId = $15; //商户", "}" ] }, "获取商户实名信息数量": { "prefix": "ym-db-MerchantAuth-FindAndCount", "body": [ "int $1 = db.MerchantAuth.Count(m => $2);", ] }, "添加商户实名信息": { "prefix": "ym-db-MerchantAuth-Create", "body": [ "db.MerchantAuth.Add(new MerchantAuth()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ChannelCode = $1, //渠道编码", " ChannelName = $2, //渠道名称 ", " MerNo = $3, //商户编号", " RealName = $4, //真实姓名", " IdCardNo = $5, //身份证号", " BankCardAccount = $6, //银行卡账号", " BankName = $7, //银行名称", " BankMobile = $8, //银行预留手机号码", " ReqData = $9, //渠道请求报文", " RespData = $10, //渠道响应报文", " ReturnCode = $11, //渠道返回编码", " ReturnMsg = $12, //渠道返回信息", " AuthType = $13, //实名类型", " MerchantId = $14, //商户", "});" ] },"删除某个商户实名信息": { "prefix": "ym-db-MerchantAuth-Delete", "body": [ "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantAuth.Remove($1);", "}" ] }, "查询商家分类列表": { "prefix": "ym-db-MerchantClass-Find", "body": [ "List $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantClass $3 in $1)", "{", "}" ] }, "查询商家分类列表,并取值": { "prefix": "ym-db-MerchantClass-FindWithData", "body": [ "List $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantClass $3 in $1)", "{", " string ColName = $3.ColName; //名称", " int ParentId = $3.ParentId; //父级Id", " int MerchantId = $3.MerchantId; //商家Id", "}" ] }, "查询商家分类": { "prefix": "ym-db-MerchantClass-Exist", "body": [ "bool $1 = db.MerchantClass.Any(m => m.Id == $2);", ] }, "查询某个商家分类,并取值": { "prefix": "ym-db-MerchantClass-FindByPrimaryKey", "body": [ "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColName = $1.ColName; //名称", " int ParentId = $1.ParentId; //父级Id", " int MerchantId = $1.MerchantId; //商家Id", "}" ] }, "查询某个商家分类,并赋值": { "prefix": "ym-db-MerchantClass-Update", "body": [ "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColName = $2; //名称", " $1.ParentId = $3; //父级Id", " $1.MerchantId = $4; //商家Id", "}" ] }, "获取商家分类数量": { "prefix": "ym-db-MerchantClass-FindAndCount", "body": [ "int $1 = db.MerchantClass.Count(m => $2);", ] }, "添加商家分类": { "prefix": "ym-db-MerchantClass-Create", "body": [ "db.MerchantClass.Add(new MerchantClass()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColName = $1, //名称", " ParentId = $2, //父级Id", " MerchantId = $3, //商家Id", "});" ] },"删除某个商家分类": { "prefix": "ym-db-MerchantClass-Delete", "body": [ "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantClass.Remove($1);", "}" ] }, "查询商家商品分类列表": { "prefix": "ym-db-MerchantCol-Find", "body": [ "List $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantCol $3 in $1)", "{", "}" ] }, "查询商家商品分类列表,并取值": { "prefix": "ym-db-MerchantCol-FindWithData", "body": [ "List $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantCol $3 in $1)", "{", " string ColId = $3.ColId; //编号", " string ColName = $3.ColName; //名称", " string ColPicPath = $3.ColPicPath; //图标", " string ColDetail = $3.ColDetail; //简介", " ulong Recommend = $3.Recommend; //推荐", " string ColEnName = $3.ColEnName; //英文名", " int ParentId = $3.ParentId; //父级Id", " int MerchantId = $3.MerchantId; //商家Id", "}" ] }, "查询商家商品分类": { "prefix": "ym-db-MerchantCol-Exist", "body": [ "bool $1 = db.MerchantCol.Any(m => m.Id == $2);", ] }, "查询某个商家商品分类,并取值": { "prefix": "ym-db-MerchantCol-FindByPrimaryKey", "body": [ "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColId = $1.ColId; //编号", " string ColName = $1.ColName; //名称", " string ColPicPath = $1.ColPicPath; //图标", " string ColDetail = $1.ColDetail; //简介", " ulong Recommend = $1.Recommend; //推荐", " string ColEnName = $1.ColEnName; //英文名", " int ParentId = $1.ParentId; //父级Id", " int MerchantId = $1.MerchantId; //商家Id", "}" ] }, "查询某个商家商品分类,并赋值": { "prefix": "ym-db-MerchantCol-Update", "body": [ "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColId = $2; //编号", " $1.ColName = $3; //名称", " $1.ColPicPath = $4; //图标", " $1.ColDetail = $5; //简介", " $1.Recommend = $6; //推荐", " $1.ColEnName = $7; //英文名", " $1.ParentId = $8; //父级Id", " $1.MerchantId = $9; //商家Id", "}" ] }, "获取商家商品分类数量": { "prefix": "ym-db-MerchantCol-FindAndCount", "body": [ "int $1 = db.MerchantCol.Count(m => $2);", ] }, "添加商家商品分类": { "prefix": "ym-db-MerchantCol-Create", "body": [ "db.MerchantCol.Add(new MerchantCol()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColId = $1, //编号", " ColName = $2, //名称", " ColPicPath = $3, //图标", " ColDetail = $4, //简介", " Recommend = $5, //推荐", " ColEnName = $6, //英文名", " ParentId = $7, //父级Id", " MerchantId = $8, //商家Id", "});" ] },"删除某个商家商品分类": { "prefix": "ym-db-MerchantCol-Delete", "body": [ "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantCol.Remove($1);", "}" ] }, "查询店铺评价列表": { "prefix": "ym-db-MerchantComment-Find", "body": [ "List $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantComment $3 in $1)", "{", "}" ] }, "查询店铺评价列表,并取值": { "prefix": "ym-db-MerchantComment-FindWithData", "body": [ "List $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantComment $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int OrderId = $3.OrderId; //订单Id", " int StarNum1 = $3.StarNum1; //快递包装评分", " int StarNum2 = $3.StarNum2; //送货速度评分", " int StarNum3 = $3.StarNum3; //服务态度评分", " int MerchantId = $3.MerchantId; //商家Id", "}" ] }, "查询店铺评价": { "prefix": "ym-db-MerchantComment-Exist", "body": [ "bool $1 = db.MerchantComment.Any(m => m.Id == $2);", ] }, "查询某个店铺评价,并取值": { "prefix": "ym-db-MerchantComment-FindByPrimaryKey", "body": [ "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int OrderId = $1.OrderId; //订单Id", " int StarNum1 = $1.StarNum1; //快递包装评分", " int StarNum2 = $1.StarNum2; //送货速度评分", " int StarNum3 = $1.StarNum3; //服务态度评分", " int MerchantId = $1.MerchantId; //商家Id", "}" ] }, "查询某个店铺评价,并赋值": { "prefix": "ym-db-MerchantComment-Update", "body": [ "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.OrderId = $3; //订单Id", " $1.StarNum1 = $4; //快递包装评分", " $1.StarNum2 = $5; //送货速度评分", " $1.StarNum3 = $6; //服务态度评分", " $1.MerchantId = $7; //商家Id", "}" ] }, "获取店铺评价数量": { "prefix": "ym-db-MerchantComment-FindAndCount", "body": [ "int $1 = db.MerchantComment.Count(m => $2);", ] }, "添加店铺评价": { "prefix": "ym-db-MerchantComment-Create", "body": [ "db.MerchantComment.Add(new MerchantComment()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " OrderId = $2, //订单Id", " StarNum1 = $3, //快递包装评分", " StarNum2 = $4, //送货速度评分", " StarNum3 = $5, //服务态度评分", " MerchantId = $6, //商家Id", "});" ] },"删除某个店铺评价": { "prefix": "ym-db-MerchantComment-Delete", "body": [ "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantComment.Remove($1);", "}" ] }, "查询商户编号为主键的关联表列表": { "prefix": "ym-db-MerchantForCode-Find", "body": [ "List $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForCode $3 in $1)", "{", "}" ] }, "查询商户编号为主键的关联表列表,并取值": { "prefix": "ym-db-MerchantForCode-FindWithData", "body": [ "List $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForCode $3 in $1)", "{", " string Code = $3.Code; //编号", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询商户编号为主键的关联表": { "prefix": "ym-db-MerchantForCode-Exist", "body": [ "bool $1 = db.MerchantForCode.Any(m => m.Code == $2);", ] }, "查询某个商户编号为主键的关联表,并取值": { "prefix": "ym-db-MerchantForCode-FindByPrimaryKey", "body": [ "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " string Code = $1.Code; //编号", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个商户编号为主键的关联表,并赋值": { "prefix": "ym-db-MerchantForCode-Update", "body": [ "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " $1.Code = $2; //编号", " $1.MerchantId = $3; //商户", "}" ] }, "获取商户编号为主键的关联表数量": { "prefix": "ym-db-MerchantForCode-FindAndCount", "body": [ "int $1 = db.MerchantForCode.Count(m => $2);", ] }, "添加商户编号为主键的关联表": { "prefix": "ym-db-MerchantForCode-Create", "body": [ "db.MerchantForCode.Add(new MerchantForCode()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Code = $1, //编号", " MerchantId = $2, //商户", "});" ] },"删除某个商户编号为主键的关联表": { "prefix": "ym-db-MerchantForCode-Delete", "body": [ "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " db.MerchantForCode.Remove($1);", "}" ] }, "查询商户手机号为主键的关联表列表": { "prefix": "ym-db-MerchantForMobile-Find", "body": [ "List $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForMobile $3 in $1)", "{", "}" ] }, "查询商户手机号为主键的关联表列表,并取值": { "prefix": "ym-db-MerchantForMobile-FindWithData", "body": [ "List $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForMobile $3 in $1)", "{", " string Mobile = $3.Mobile; //手机号", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询商户手机号为主键的关联表": { "prefix": "ym-db-MerchantForMobile-Exist", "body": [ "bool $1 = db.MerchantForMobile.Any(m => m.Mobile == $2);", ] }, "查询某个商户手机号为主键的关联表,并取值": { "prefix": "ym-db-MerchantForMobile-FindByPrimaryKey", "body": [ "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " string Mobile = $1.Mobile; //手机号", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个商户手机号为主键的关联表,并赋值": { "prefix": "ym-db-MerchantForMobile-Update", "body": [ "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " $1.Mobile = $2; //手机号", " $1.MerchantId = $3; //商户", "}" ] }, "获取商户手机号为主键的关联表数量": { "prefix": "ym-db-MerchantForMobile-FindAndCount", "body": [ "int $1 = db.MerchantForMobile.Count(m => $2);", ] }, "添加商户手机号为主键的关联表": { "prefix": "ym-db-MerchantForMobile-Create", "body": [ "db.MerchantForMobile.Add(new MerchantForMobile()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Mobile = $1, //手机号", " MerchantId = $2, //商户", "});" ] },"删除某个商户手机号为主键的关联表": { "prefix": "ym-db-MerchantForMobile-Delete", "body": [ "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " db.MerchantForMobile.Remove($1);", "}" ] }, "查询商户姓名为主键的关联表列表": { "prefix": "ym-db-MerchantForName-Find", "body": [ "List $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForName $3 in $1)", "{", "}" ] }, "查询商户姓名为主键的关联表列表,并取值": { "prefix": "ym-db-MerchantForName-FindWithData", "body": [ "List $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantForName $3 in $1)", "{", " string Name = $3.Name; //姓名", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询商户姓名为主键的关联表": { "prefix": "ym-db-MerchantForName-Exist", "body": [ "bool $1 = db.MerchantForName.Any(m => m.Name == $2);", ] }, "查询某个商户姓名为主键的关联表,并取值": { "prefix": "ym-db-MerchantForName-FindByPrimaryKey", "body": [ "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //姓名", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个商户姓名为主键的关联表,并赋值": { "prefix": "ym-db-MerchantForName-Update", "body": [ "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " $1.Name = $2; //姓名", " $1.MerchantId = $3; //商户", "}" ] }, "获取商户姓名为主键的关联表数量": { "prefix": "ym-db-MerchantForName-FindAndCount", "body": [ "int $1 = db.MerchantForName.Count(m => $2);", ] }, "添加商户姓名为主键的关联表": { "prefix": "ym-db-MerchantForName-Create", "body": [ "db.MerchantForName.Add(new MerchantForName()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //姓名", " MerchantId = $2, //商户", "});" ] },"删除某个商户姓名为主键的关联表": { "prefix": "ym-db-MerchantForName-Delete", "body": [ "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " db.MerchantForName.Remove($1);", "}" ] }, "查询商户列表": { "prefix": "ym-db-MerchantInfo-Find", "body": [ "List $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantInfo $3 in $1)", "{", "}" ] }, "查询商户列表,并取值": { "prefix": "ym-db-MerchantInfo-FindWithData", "body": [ "List $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantInfo $3 in $1)", "{", " string Name = $3.Name; //名称", " string Mobile = $3.Mobile; //手机号", " string Areas = $3.Areas; //所在地区", " string Address = $3.Address; //详细地址", " ulong IsAuth = $3.IsAuth; //是否认证", " decimal TotalAmount = $3.TotalAmount; //平台总收益", " int TotalOrder = $3.TotalOrder; //累计订单", " int TotalCustomer = $3.TotalCustomer; //累计客户", " int TotalUser = $3.TotalUser; //会员数", " string LoginPwd = $3.LoginPwd; //登录密码", " string Logo = $3.Logo; //Logo图片", " decimal TotalActual = $3.TotalActual; //营收总额", " DateTime LastAddConsumerDate = $3.LastAddConsumerDate; //最后加入会员时间", " int TotalConsumeCount = $3.TotalConsumeCount; //累计消费次数", " DateTime LastConsumeDate = $3.LastConsumeDate; //最后消费时间", " int UserId = $3.UserId; //所属创客", " string ParentUserNav = $3.ParentUserNav; //所属创客上级集合", "}" ] }, "查询商户": { "prefix": "ym-db-MerchantInfo-Exist", "body": [ "bool $1 = db.MerchantInfo.Any(m => m.Id == $2);", ] }, "查询某个商户,并取值": { "prefix": "ym-db-MerchantInfo-FindByPrimaryKey", "body": [ "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Mobile = $1.Mobile; //手机号", " string Areas = $1.Areas; //所在地区", " string Address = $1.Address; //详细地址", " ulong IsAuth = $1.IsAuth; //是否认证", " decimal TotalAmount = $1.TotalAmount; //平台总收益", " int TotalOrder = $1.TotalOrder; //累计订单", " int TotalCustomer = $1.TotalCustomer; //累计客户", " int TotalUser = $1.TotalUser; //会员数", " string LoginPwd = $1.LoginPwd; //登录密码", " string Logo = $1.Logo; //Logo图片", " decimal TotalActual = $1.TotalActual; //营收总额", " DateTime LastAddConsumerDate = $1.LastAddConsumerDate; //最后加入会员时间", " int TotalConsumeCount = $1.TotalConsumeCount; //累计消费次数", " DateTime LastConsumeDate = $1.LastConsumeDate; //最后消费时间", " int UserId = $1.UserId; //所属创客", " string ParentUserNav = $1.ParentUserNav; //所属创客上级集合", "}" ] }, "查询某个商户,并赋值": { "prefix": "ym-db-MerchantInfo-Update", "body": [ "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Mobile = $3; //手机号", " $1.Areas = $4; //所在地区", " $1.Address = $5; //详细地址", " $1.IsAuth = $6; //是否认证", " $1.TotalAmount = $7; //平台总收益", " $1.TotalOrder = $8; //累计订单", " $1.TotalCustomer = $9; //累计客户", " $1.TotalUser = $10; //会员数", " $1.LoginPwd = $11; //登录密码", " $1.Logo = $12; //Logo图片", " $1.TotalActual = $13; //营收总额", " $1.LastAddConsumerDate = $14; //最后加入会员时间", " $1.TotalConsumeCount = $15; //累计消费次数", " $1.LastConsumeDate = $16; //最后消费时间", " $1.UserId = $17; //所属创客", " $1.ParentUserNav = $18; //所属创客上级集合", "}" ] }, "获取商户数量": { "prefix": "ym-db-MerchantInfo-FindAndCount", "body": [ "int $1 = db.MerchantInfo.Count(m => $2);", ] }, "添加商户": { "prefix": "ym-db-MerchantInfo-Create", "body": [ "db.MerchantInfo.Add(new MerchantInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Mobile = $2, //手机号", " Areas = $3, //所在地区", " Address = $4, //详细地址", " IsAuth = $5, //是否认证", " TotalAmount = $6, //平台总收益", " TotalOrder = $7, //累计订单", " TotalCustomer = $8, //累计客户", " TotalUser = $9, //会员数", " LoginPwd = $10, //登录密码", " Logo = $11, //Logo图片", " TotalActual = $12, //营收总额", " LastAddConsumerDate = $13, //最后加入会员时间", " TotalConsumeCount = $14, //累计消费次数", " LastConsumeDate = $15, //最后消费时间", " UserId = $16, //所属创客", " ParentUserNav = $17, //所属创客上级集合", "});" ] },"删除某个商户": { "prefix": "ym-db-MerchantInfo-Delete", "body": [ "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantInfo.Remove($1);", "}" ] }, "查询商户活动配置列表": { "prefix": "ym-db-MerchantParamSet-Find", "body": [ "List $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantParamSet $3 in $1)", "{", "}" ] }, "查询商户活动配置列表,并取值": { "prefix": "ym-db-MerchantParamSet-FindWithData", "body": [ "List $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantParamSet $3 in $1)", "{", " int IsAll = $3.IsAll; //是否收全额", " decimal MinPayMoney = $3.MinPayMoney; //订单参与门槛", " decimal GetPercent = $3.GetPercent; //商家实收比例", " int ProfitDays = $3.ProfitDays; //分红期限(天)", " decimal DiviPercent = $3.DiviPercent; //最大分红比例", " int DiviPersons = $3.DiviPersons; //单笔订单分红人数", "}" ] }, "查询商户活动配置": { "prefix": "ym-db-MerchantParamSet-Exist", "body": [ "bool $1 = db.MerchantParamSet.Any(m => m.Id == $2);", ] }, "查询某个商户活动配置,并取值": { "prefix": "ym-db-MerchantParamSet-FindByPrimaryKey", "body": [ "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int IsAll = $1.IsAll; //是否收全额", " decimal MinPayMoney = $1.MinPayMoney; //订单参与门槛", " decimal GetPercent = $1.GetPercent; //商家实收比例", " int ProfitDays = $1.ProfitDays; //分红期限(天)", " decimal DiviPercent = $1.DiviPercent; //最大分红比例", " int DiviPersons = $1.DiviPersons; //单笔订单分红人数", "}" ] }, "查询某个商户活动配置,并赋值": { "prefix": "ym-db-MerchantParamSet-Update", "body": [ "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.IsAll = $2; //是否收全额", " $1.MinPayMoney = $3; //订单参与门槛", " $1.GetPercent = $4; //商家实收比例", " $1.ProfitDays = $5; //分红期限(天)", " $1.DiviPercent = $6; //最大分红比例", " $1.DiviPersons = $7; //单笔订单分红人数", "}" ] }, "获取商户活动配置数量": { "prefix": "ym-db-MerchantParamSet-FindAndCount", "body": [ "int $1 = db.MerchantParamSet.Count(m => $2);", ] }, "添加商户活动配置": { "prefix": "ym-db-MerchantParamSet-Create", "body": [ "db.MerchantParamSet.Add(new MerchantParamSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " IsAll = $1, //是否收全额", " MinPayMoney = $2, //订单参与门槛", " GetPercent = $3, //商家实收比例", " ProfitDays = $4, //分红期限(天)", " DiviPercent = $5, //最大分红比例", " DiviPersons = $6, //单笔订单分红人数", "});" ] },"删除某个商户活动配置": { "prefix": "ym-db-MerchantParamSet-Delete", "body": [ "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantParamSet.Remove($1);", "}" ] }, "查询商家收款二维码列表": { "prefix": "ym-db-MerchantQrCode-Find", "body": [ "List $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantQrCode $3 in $1)", "{", "}" ] }, "查询商家收款二维码列表,并取值": { "prefix": "ym-db-MerchantQrCode-FindWithData", "body": [ "List $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantQrCode $3 in $1)", "{", " int MerchantId = $3.MerchantId; //商户", " string QrCodeContent = $3.QrCodeContent; //二维码内容", " int MachineId = $3.MachineId; //设备", " string SnNo = $3.SnNo; //Sn编号", "}" ] }, "查询商家收款二维码": { "prefix": "ym-db-MerchantQrCode-Exist", "body": [ "bool $1 = db.MerchantQrCode.Any(m => m.Id == $2);", ] }, "查询某个商家收款二维码,并取值": { "prefix": "ym-db-MerchantQrCode-FindByPrimaryKey", "body": [ "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MerchantId = $1.MerchantId; //商户", " string QrCodeContent = $1.QrCodeContent; //二维码内容", " int MachineId = $1.MachineId; //设备", " string SnNo = $1.SnNo; //Sn编号", "}" ] }, "查询某个商家收款二维码,并赋值": { "prefix": "ym-db-MerchantQrCode-Update", "body": [ "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MerchantId = $2; //商户", " $1.QrCodeContent = $3; //二维码内容", " $1.MachineId = $4; //设备", " $1.SnNo = $5; //Sn编号", "}" ] }, "获取商家收款二维码数量": { "prefix": "ym-db-MerchantQrCode-FindAndCount", "body": [ "int $1 = db.MerchantQrCode.Count(m => $2);", ] }, "添加商家收款二维码": { "prefix": "ym-db-MerchantQrCode-Create", "body": [ "db.MerchantQrCode.Add(new MerchantQrCode()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MerchantId = $1, //商户", " QrCodeContent = $2, //二维码内容", " MachineId = $3, //设备", " SnNo = $4, //Sn编号", "});" ] },"删除某个商家收款二维码": { "prefix": "ym-db-MerchantQrCode-Delete", "body": [ "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantQrCode.Remove($1);", "}" ] }, "查询商户返利明细列表": { "prefix": "ym-db-MerchantRebateDetail-Find", "body": [ "List $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantRebateDetail $3 in $1)", "{", "}" ] }, "查询商户返利明细列表,并取值": { "prefix": "ym-db-MerchantRebateDetail-FindWithData", "body": [ "List $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MerchantRebateDetail $3 in $1)", "{", " int BrandId = $3.BrandId; //品牌", " string ProductName = $3.ProductName; //产品名称", " string TradeMonth = $3.TradeMonth; //交易月份", " string TradeDate = $3.TradeDate; //达标日期", " string MerNo = $3.MerNo; //渠道商户编号", " string SnNo = $3.SnNo; //渠道SN号", " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间", " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间", " int MerchantId = $3.MerchantId; //商户", " string MmpUserNo = $3.MmpUserNo; //KYS刷APP创客编号", " string MmpUserName = $3.MmpUserName; //KYS商户真实姓名", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额", " int SyncStatus = $3.SyncStatus; //同步MMP", " string RewardDesc = $3.RewardDesc; //奖励描述", " string Remark = $3.Remark; //备注", "}" ] }, "查询商户返利明细": { "prefix": "ym-db-MerchantRebateDetail-Exist", "body": [ "bool $1 = db.MerchantRebateDetail.Any(m => m.Id == $2);", ] }, "查询某个商户返利明细,并取值": { "prefix": "ym-db-MerchantRebateDetail-FindByPrimaryKey", "body": [ "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int BrandId = $1.BrandId; //品牌", " string ProductName = $1.ProductName; //产品名称", " string TradeMonth = $1.TradeMonth; //交易月份", " string TradeDate = $1.TradeDate; //达标日期", " string MerNo = $1.MerNo; //渠道商户编号", " string SnNo = $1.SnNo; //渠道SN号", " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间", " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间", " int MerchantId = $1.MerchantId; //商户", " string MmpUserNo = $1.MmpUserNo; //KYS刷APP创客编号", " string MmpUserName = $1.MmpUserName; //KYS商户真实姓名", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额", " int SyncStatus = $1.SyncStatus; //同步MMP", " string RewardDesc = $1.RewardDesc; //奖励描述", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个商户返利明细,并赋值": { "prefix": "ym-db-MerchantRebateDetail-Update", "body": [ "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.BrandId = $2; //品牌", " $1.ProductName = $3; //产品名称", " $1.TradeMonth = $4; //交易月份", " $1.TradeDate = $5; //达标日期", " $1.MerNo = $6; //渠道商户编号", " $1.SnNo = $7; //渠道SN号", " $1.MerRegTime = $8; //渠道注册时间", " $1.MerStandardDate = $9; //商户激活时间", " $1.MerchantId = $10; //商户", " $1.MmpUserNo = $11; //KYS刷APP创客编号", " $1.MmpUserName = $12; //KYS商户真实姓名", " $1.CreditTradeAmt = $13; //贷记卡交易总金额", " $1.DebitTradeAmt = $14; //借记卡交易总金额", " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额", " $1.DebitRewardAmount = $16; //借记卡交易奖励金额", " $1.SyncStatus = $17; //同步MMP", " $1.RewardDesc = $18; //奖励描述", " $1.Remark = $19; //备注", "}" ] }, "获取商户返利明细数量": { "prefix": "ym-db-MerchantRebateDetail-FindAndCount", "body": [ "int $1 = db.MerchantRebateDetail.Count(m => $2);", ] }, "添加商户返利明细": { "prefix": "ym-db-MerchantRebateDetail-Create", "body": [ "db.MerchantRebateDetail.Add(new MerchantRebateDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BrandId = $1, //品牌", " ProductName = $2, //产品名称", " TradeMonth = $3, //交易月份", " TradeDate = $4, //达标日期", " MerNo = $5, //渠道商户编号", " SnNo = $6, //渠道SN号", " MerRegTime = $7, //渠道注册时间", " MerStandardDate = $8, //商户激活时间", " MerchantId = $9, //商户", " MmpUserNo = $10, //KYS刷APP创客编号", " MmpUserName = $11, //KYS商户真实姓名", " CreditTradeAmt = $12, //贷记卡交易总金额", " DebitTradeAmt = $13, //借记卡交易总金额", " CreditRewardAmount = $14, //贷记卡交易奖励金额", " DebitRewardAmount = $15, //借记卡交易奖励金额", " SyncStatus = $16, //同步MMP", " RewardDesc = $17, //奖励描述", " Remark = $18, //备注", "});" ] },"删除某个商户返利明细": { "prefix": "ym-db-MerchantRebateDetail-Delete", "body": [ "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MerchantRebateDetail.Remove($1);", "}" ] }, "查询商家列表": { "prefix": "ym-db-Merchants-Find", "body": [ "List $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Merchants $3 in $1)", "{", "}" ] }, "查询商家列表,并取值": { "prefix": "ym-db-Merchants-FindWithData", "body": [ "List $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Merchants $3 in $1)", "{", " string Name = $3.Name; //名称", " string Logo = $3.Logo; //Logo图片", " string Areas = $3.Areas; //所在地区", " string Principal = $3.Principal; //负责人", " string Phone = $3.Phone; //联系电话", " string BusinessLicense = $3.BusinessLicense; //营业执照", " decimal StarNum1 = $3.StarNum1; //快递包装评分", " int FollowCount = $3.FollowCount; //关注数", " ulong IsAuth = $3.IsAuth; //是否认证", " int CommentCount = $3.CommentCount; //评论数", " string Address = $3.Address; //详细地址", " decimal StarNum2 = $3.StarNum2; //送货速度评分", " decimal StarNum3 = $3.StarNum3; //服务态度评分", " string UserName = $3.UserName; //账号", " string LoginPwd = $3.LoginPwd; //登录密码", " string PayPwd = $3.PayPwd; //支付密码", " ulong IsRecommend = $3.IsRecommend; //推荐", " string Title = $3.Title; //宣传标语", " string Title2 = $3.Title2; //宣传标语2", " string Province = $3.Province; //所在省", "}" ] }, "查询商家": { "prefix": "ym-db-Merchants-Exist", "body": [ "bool $1 = db.Merchants.Any(m => m.Id == $2);", ] }, "查询某个商家,并取值": { "prefix": "ym-db-Merchants-FindByPrimaryKey", "body": [ "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Logo = $1.Logo; //Logo图片", " string Areas = $1.Areas; //所在地区", " string Principal = $1.Principal; //负责人", " string Phone = $1.Phone; //联系电话", " string BusinessLicense = $1.BusinessLicense; //营业执照", " decimal StarNum1 = $1.StarNum1; //快递包装评分", " int FollowCount = $1.FollowCount; //关注数", " ulong IsAuth = $1.IsAuth; //是否认证", " int CommentCount = $1.CommentCount; //评论数", " string Address = $1.Address; //详细地址", " decimal StarNum2 = $1.StarNum2; //送货速度评分", " decimal StarNum3 = $1.StarNum3; //服务态度评分", " string UserName = $1.UserName; //账号", " string LoginPwd = $1.LoginPwd; //登录密码", " string PayPwd = $1.PayPwd; //支付密码", " ulong IsRecommend = $1.IsRecommend; //推荐", " string Title = $1.Title; //宣传标语", " string Title2 = $1.Title2; //宣传标语2", " string Province = $1.Province; //所在省", "}" ] }, "查询某个商家,并赋值": { "prefix": "ym-db-Merchants-Update", "body": [ "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Logo = $3; //Logo图片", " $1.Areas = $4; //所在地区", " $1.Principal = $5; //负责人", " $1.Phone = $6; //联系电话", " $1.BusinessLicense = $7; //营业执照", " $1.StarNum1 = $8; //快递包装评分", " $1.FollowCount = $9; //关注数", " $1.IsAuth = $10; //是否认证", " $1.CommentCount = $11; //评论数", " $1.Address = $12; //详细地址", " $1.StarNum2 = $13; //送货速度评分", " $1.StarNum3 = $14; //服务态度评分", " $1.UserName = $15; //账号", " $1.LoginPwd = $16; //登录密码", " $1.PayPwd = $17; //支付密码", " $1.IsRecommend = $18; //推荐", " $1.Title = $19; //宣传标语", " $1.Title2 = $20; //宣传标语2", " $1.Province = $21; //所在省", "}" ] }, "获取商家数量": { "prefix": "ym-db-Merchants-FindAndCount", "body": [ "int $1 = db.Merchants.Count(m => $2);", ] }, "添加商家": { "prefix": "ym-db-Merchants-Create", "body": [ "db.Merchants.Add(new Merchants()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Logo = $2, //Logo图片", " Areas = $3, //所在地区", " Principal = $4, //负责人", " Phone = $5, //联系电话", " BusinessLicense = $6, //营业执照", " StarNum1 = $7, //快递包装评分", " FollowCount = $8, //关注数", " IsAuth = $9, //是否认证", " CommentCount = $10, //评论数", " Address = $11, //详细地址", " StarNum2 = $12, //送货速度评分", " StarNum3 = $13, //服务态度评分", " UserName = $14, //账号", " LoginPwd = $15, //登录密码", " PayPwd = $16, //支付密码", " IsRecommend = $17, //推荐", " Title = $18, //宣传标语", " Title2 = $19, //宣传标语2", " Province = $20, //所在省", "});" ] },"删除某个商家": { "prefix": "ym-db-Merchants-Delete", "body": [ "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Merchants.Remove($1);", "}" ] }, "查询手机验证码列表": { "prefix": "ym-db-MobileCodeCheck-Find", "body": [ "List $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MobileCodeCheck $3 in $1)", "{", "}" ] }, "查询手机验证码列表,并取值": { "prefix": "ym-db-MobileCodeCheck-FindWithData", "body": [ "List $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MobileCodeCheck $3 in $1)", "{", " string Mobile = $3.Mobile; //手机号", " string CheckCode = $3.CheckCode; //验证码", " string CheckNo = $3.CheckNo; //图形验证码", " DateTime CheckCodeTime = $3.CheckCodeTime; //验证码时间", "}" ] }, "查询手机验证码": { "prefix": "ym-db-MobileCodeCheck-Exist", "body": [ "bool $1 = db.MobileCodeCheck.Any(m => m.Mobile == $2);", ] }, "查询某个手机验证码,并取值": { "prefix": "ym-db-MobileCodeCheck-FindByPrimaryKey", "body": [ "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " string Mobile = $1.Mobile; //手机号", " string CheckCode = $1.CheckCode; //验证码", " string CheckNo = $1.CheckNo; //图形验证码", " DateTime CheckCodeTime = $1.CheckCodeTime; //验证码时间", "}" ] }, "查询某个手机验证码,并赋值": { "prefix": "ym-db-MobileCodeCheck-Update", "body": [ "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " $1.Mobile = $2; //手机号", " $1.CheckCode = $3; //验证码", " $1.CheckNo = $4; //图形验证码", " $1.CheckCodeTime = $5; //验证码时间", "}" ] }, "获取手机验证码数量": { "prefix": "ym-db-MobileCodeCheck-FindAndCount", "body": [ "int $1 = db.MobileCodeCheck.Count(m => $2);", ] }, "添加手机验证码": { "prefix": "ym-db-MobileCodeCheck-Create", "body": [ "db.MobileCodeCheck.Add(new MobileCodeCheck()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Mobile = $1, //手机号", " CheckCode = $2, //验证码", " CheckNo = $3, //图形验证码", " CheckCodeTime = $4, //验证码时间", "});" ] },"删除某个手机验证码": { "prefix": "ym-db-MobileCodeCheck-Delete", "body": [ "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " db.MobileCodeCheck.Remove($1);", "}" ] }, "查询消息黑名单列表": { "prefix": "ym-db-MsgBlackList-Find", "body": [ "List $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgBlackList $3 in $1)", "{", "}" ] }, "查询消息黑名单列表,并取值": { "prefix": "ym-db-MsgBlackList-FindWithData", "body": [ "List $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgBlackList $3 in $1)", "{", " string ColId = $3.ColId; //分类", " int TemplateId = $3.TemplateId; //模板", " string Mobile = $3.Mobile; //手机号", " string Ip = $3.Ip; //IP地址", " string Reason = $3.Reason; //加入黑名单原因", " string Remark = $3.Remark; //注释", " string Extend = $3.Extend; //扩展字段", "}" ] }, "查询消息黑名单": { "prefix": "ym-db-MsgBlackList-Exist", "body": [ "bool $1 = db.MsgBlackList.Any(m => m.Id == $2);", ] }, "查询某个消息黑名单,并取值": { "prefix": "ym-db-MsgBlackList-FindByPrimaryKey", "body": [ "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColId = $1.ColId; //分类", " int TemplateId = $1.TemplateId; //模板", " string Mobile = $1.Mobile; //手机号", " string Ip = $1.Ip; //IP地址", " string Reason = $1.Reason; //加入黑名单原因", " string Remark = $1.Remark; //注释", " string Extend = $1.Extend; //扩展字段", "}" ] }, "查询某个消息黑名单,并赋值": { "prefix": "ym-db-MsgBlackList-Update", "body": [ "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColId = $2; //分类", " $1.TemplateId = $3; //模板", " $1.Mobile = $4; //手机号", " $1.Ip = $5; //IP地址", " $1.Reason = $6; //加入黑名单原因", " $1.Remark = $7; //注释", " $1.Extend = $8; //扩展字段", "}" ] }, "获取消息黑名单数量": { "prefix": "ym-db-MsgBlackList-FindAndCount", "body": [ "int $1 = db.MsgBlackList.Count(m => $2);", ] }, "添加消息黑名单": { "prefix": "ym-db-MsgBlackList-Create", "body": [ "db.MsgBlackList.Add(new MsgBlackList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColId = $1, //分类", " TemplateId = $2, //模板", " Mobile = $3, //手机号", " Ip = $4, //IP地址", " Reason = $5, //加入黑名单原因", " Remark = $6, //注释", " Extend = $7, //扩展字段", "});" ] },"删除某个消息黑名单": { "prefix": "ym-db-MsgBlackList-Delete", "body": [ "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgBlackList.Remove($1);", "}" ] }, "查询个人消息列表": { "prefix": "ym-db-MsgPersonal-Find", "body": [ "List $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPersonal $3 in $1)", "{", "}" ] }, "查询个人消息列表,并取值": { "prefix": "ym-db-MsgPersonal-FindWithData", "body": [ "List $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPersonal $3 in $1)", "{", " int TemplateId = $3.TemplateId; //模板", " int UserId = $3.UserId; //创客", " int MsgType = $3.MsgType; //消息类型", " string BgPic = $3.BgPic; //背景图片", " string Title = $3.Title; //标题", " string Content = $3.Content; //内容", " string Url = $3.Url; //跳转Url", " string Summary = $3.Summary; //简介", " int PushFlag = $3.PushFlag; //推送标记", " ulong ReadFlag = $3.ReadFlag; //已读标记", " string PushParam = $3.PushParam; //推送参数", " string ExtendColumn = $3.ExtendColumn; //扩展字段", " string Remark = $3.Remark; //备注", "}" ] }, "查询个人消息": { "prefix": "ym-db-MsgPersonal-Exist", "body": [ "bool $1 = db.MsgPersonal.Any(m => m.Id == $2);", ] }, "查询某个个人消息,并取值": { "prefix": "ym-db-MsgPersonal-FindByPrimaryKey", "body": [ "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int TemplateId = $1.TemplateId; //模板", " int UserId = $1.UserId; //创客", " int MsgType = $1.MsgType; //消息类型", " string BgPic = $1.BgPic; //背景图片", " string Title = $1.Title; //标题", " string Content = $1.Content; //内容", " string Url = $1.Url; //跳转Url", " string Summary = $1.Summary; //简介", " int PushFlag = $1.PushFlag; //推送标记", " ulong ReadFlag = $1.ReadFlag; //已读标记", " string PushParam = $1.PushParam; //推送参数", " string ExtendColumn = $1.ExtendColumn; //扩展字段", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个个人消息,并赋值": { "prefix": "ym-db-MsgPersonal-Update", "body": [ "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TemplateId = $2; //模板", " $1.UserId = $3; //创客", " $1.MsgType = $4; //消息类型", " $1.BgPic = $5; //背景图片", " $1.Title = $6; //标题", " $1.Content = $7; //内容", " $1.Url = $8; //跳转Url", " $1.Summary = $9; //简介", " $1.PushFlag = $10; //推送标记", " $1.ReadFlag = $11; //已读标记", " $1.PushParam = $12; //推送参数", " $1.ExtendColumn = $13; //扩展字段", " $1.Remark = $14; //备注", "}" ] }, "获取个人消息数量": { "prefix": "ym-db-MsgPersonal-FindAndCount", "body": [ "int $1 = db.MsgPersonal.Count(m => $2);", ] }, "添加个人消息": { "prefix": "ym-db-MsgPersonal-Create", "body": [ "db.MsgPersonal.Add(new MsgPersonal()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TemplateId = $1, //模板", " UserId = $2, //创客", " MsgType = $3, //消息类型", " BgPic = $4, //背景图片", " Title = $5, //标题", " Content = $6, //内容", " Url = $7, //跳转Url", " Summary = $8, //简介", " PushFlag = $9, //推送标记", " ReadFlag = $10, //已读标记", " PushParam = $11, //推送参数", " ExtendColumn = $12, //扩展字段", " Remark = $13, //备注", "});" ] },"删除某个个人消息": { "prefix": "ym-db-MsgPersonal-Delete", "body": [ "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgPersonal.Remove($1);", "}" ] }, "查询公告消息列表": { "prefix": "ym-db-MsgPlacard-Find", "body": [ "List $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPlacard $3 in $1)", "{", "}" ] }, "查询公告消息列表,并取值": { "prefix": "ym-db-MsgPlacard-FindWithData", "body": [ "List $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPlacard $3 in $1)", "{", " int MsgType = $3.MsgType; //消息类型", " string Title = $3.Title; //标题", " string Summary = $3.Summary; //简介", " string Content = $3.Content; //内容", " ulong IsTop = $3.IsTop; //置顶", " int ShowType = $3.ShowType; //展示类型", " DateTime EffectStartDate = $3.EffectStartDate; //有效开始时间", " DateTime EffectEndDate = $3.EffectEndDate; //有效结束时间", " string BgPic = $3.BgPic; //背景图片", " int PushType = $3.PushType; //推送类型", " int PushFlag = $3.PushFlag; //推送标记", " string PushParam = $3.PushParam; //推送参数", " DateTime PushTime = $3.PushTime; //推送时间", " string ExtendColumn = $3.ExtendColumn; //扩展字段", " string Remark = $3.Remark; //备注", " string Url = $3.Url; //跳转Url", "}" ] }, "查询公告消息": { "prefix": "ym-db-MsgPlacard-Exist", "body": [ "bool $1 = db.MsgPlacard.Any(m => m.Id == $2);", ] }, "查询某个公告消息,并取值": { "prefix": "ym-db-MsgPlacard-FindByPrimaryKey", "body": [ "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MsgType = $1.MsgType; //消息类型", " string Title = $1.Title; //标题", " string Summary = $1.Summary; //简介", " string Content = $1.Content; //内容", " ulong IsTop = $1.IsTop; //置顶", " int ShowType = $1.ShowType; //展示类型", " DateTime EffectStartDate = $1.EffectStartDate; //有效开始时间", " DateTime EffectEndDate = $1.EffectEndDate; //有效结束时间", " string BgPic = $1.BgPic; //背景图片", " int PushType = $1.PushType; //推送类型", " int PushFlag = $1.PushFlag; //推送标记", " string PushParam = $1.PushParam; //推送参数", " DateTime PushTime = $1.PushTime; //推送时间", " string ExtendColumn = $1.ExtendColumn; //扩展字段", " string Remark = $1.Remark; //备注", " string Url = $1.Url; //跳转Url", "}" ] }, "查询某个公告消息,并赋值": { "prefix": "ym-db-MsgPlacard-Update", "body": [ "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MsgType = $2; //消息类型", " $1.Title = $3; //标题", " $1.Summary = $4; //简介", " $1.Content = $5; //内容", " $1.IsTop = $6; //置顶", " $1.ShowType = $7; //展示类型", " $1.EffectStartDate = $8; //有效开始时间", " $1.EffectEndDate = $9; //有效结束时间", " $1.BgPic = $10; //背景图片", " $1.PushType = $11; //推送类型", " $1.PushFlag = $12; //推送标记", " $1.PushParam = $13; //推送参数", " $1.PushTime = $14; //推送时间", " $1.ExtendColumn = $15; //扩展字段", " $1.Remark = $16; //备注", " $1.Url = $17; //跳转Url", "}" ] }, "获取公告消息数量": { "prefix": "ym-db-MsgPlacard-FindAndCount", "body": [ "int $1 = db.MsgPlacard.Count(m => $2);", ] }, "添加公告消息": { "prefix": "ym-db-MsgPlacard-Create", "body": [ "db.MsgPlacard.Add(new MsgPlacard()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MsgType = $1, //消息类型", " Title = $2, //标题", " Summary = $3, //简介", " Content = $4, //内容", " IsTop = $5, //置顶", " ShowType = $6, //展示类型", " EffectStartDate = $7, //有效开始时间", " EffectEndDate = $8, //有效结束时间", " BgPic = $9, //背景图片", " PushType = $10, //推送类型", " PushFlag = $11, //推送标记", " PushParam = $12, //推送参数", " PushTime = $13, //推送时间", " ExtendColumn = $14, //扩展字段", " Remark = $15, //备注", " Url = $16, //跳转Url", "});" ] },"删除某个公告消息": { "prefix": "ym-db-MsgPlacard-Delete", "body": [ "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgPlacard.Remove($1);", "}" ] }, "查询公告消息已读记录列表": { "prefix": "ym-db-MsgPlacardRead-Find", "body": [ "List $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPlacardRead $3 in $1)", "{", "}" ] }, "查询公告消息已读记录列表,并取值": { "prefix": "ym-db-MsgPlacardRead-FindWithData", "body": [ "List $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPlacardRead $3 in $1)", "{", " int PlacardId = $3.PlacardId; //公告", " string UserId = $3.UserId; //用户ID", " ulong ReadFlag = $3.ReadFlag; //已读标记", " string Remark = $3.Remark; //备注", "}" ] }, "查询公告消息已读记录": { "prefix": "ym-db-MsgPlacardRead-Exist", "body": [ "bool $1 = db.MsgPlacardRead.Any(m => m.Id == $2);", ] }, "查询某个公告消息已读记录,并取值": { "prefix": "ym-db-MsgPlacardRead-FindByPrimaryKey", "body": [ "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int PlacardId = $1.PlacardId; //公告", " string UserId = $1.UserId; //用户ID", " ulong ReadFlag = $1.ReadFlag; //已读标记", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个公告消息已读记录,并赋值": { "prefix": "ym-db-MsgPlacardRead-Update", "body": [ "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.PlacardId = $2; //公告", " $1.UserId = $3; //用户ID", " $1.ReadFlag = $4; //已读标记", " $1.Remark = $5; //备注", "}" ] }, "获取公告消息已读记录数量": { "prefix": "ym-db-MsgPlacardRead-FindAndCount", "body": [ "int $1 = db.MsgPlacardRead.Count(m => $2);", ] }, "添加公告消息已读记录": { "prefix": "ym-db-MsgPlacardRead-Create", "body": [ "db.MsgPlacardRead.Add(new MsgPlacardRead()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " PlacardId = $1, //公告", " UserId = $2, //用户ID", " ReadFlag = $3, //已读标记", " Remark = $4, //备注", "});" ] },"删除某个公告消息已读记录": { "prefix": "ym-db-MsgPlacardRead-Delete", "body": [ "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgPlacardRead.Remove($1);", "}" ] }, "查询推送消息记录列表": { "prefix": "ym-db-MsgPush-Find", "body": [ "List $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPush $3 in $1)", "{", "}" ] }, "查询推送消息记录列表,并取值": { "prefix": "ym-db-MsgPush-FindWithData", "body": [ "List $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgPush $3 in $1)", "{", " string ClientType = $3.ClientType; //客户端类型", " string Url = $3.Url; //链接地址", " string Title = $3.Title; //推送标题", " string Details = $3.Details; //推送内容", " ulong IsSilent = $3.IsSilent; //静音推送", " string Devices = $3.Devices; //设备号", " int TemplateId = $3.TemplateId; //模板", " DateTime AutoPushDate = $3.AutoPushDate; //定时推送时间", " string MessageId = $3.MessageId; //推送返回码", " string Mobiles = $3.Mobiles; //手机号", "}" ] }, "查询推送消息记录": { "prefix": "ym-db-MsgPush-Exist", "body": [ "bool $1 = db.MsgPush.Any(m => m.Id == $2);", ] }, "查询某个推送消息记录,并取值": { "prefix": "ym-db-MsgPush-FindByPrimaryKey", "body": [ "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ClientType = $1.ClientType; //客户端类型", " string Url = $1.Url; //链接地址", " string Title = $1.Title; //推送标题", " string Details = $1.Details; //推送内容", " ulong IsSilent = $1.IsSilent; //静音推送", " string Devices = $1.Devices; //设备号", " int TemplateId = $1.TemplateId; //模板", " DateTime AutoPushDate = $1.AutoPushDate; //定时推送时间", " string MessageId = $1.MessageId; //推送返回码", " string Mobiles = $1.Mobiles; //手机号", "}" ] }, "查询某个推送消息记录,并赋值": { "prefix": "ym-db-MsgPush-Update", "body": [ "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ClientType = $2; //客户端类型", " $1.Url = $3; //链接地址", " $1.Title = $4; //推送标题", " $1.Details = $5; //推送内容", " $1.IsSilent = $6; //静音推送", " $1.Devices = $7; //设备号", " $1.TemplateId = $8; //模板", " $1.AutoPushDate = $9; //定时推送时间", " $1.MessageId = $10; //推送返回码", " $1.Mobiles = $11; //手机号", "}" ] }, "获取推送消息记录数量": { "prefix": "ym-db-MsgPush-FindAndCount", "body": [ "int $1 = db.MsgPush.Count(m => $2);", ] }, "添加推送消息记录": { "prefix": "ym-db-MsgPush-Create", "body": [ "db.MsgPush.Add(new MsgPush()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ClientType = $1, //客户端类型", " Url = $2, //链接地址", " Title = $3, //推送标题", " Details = $4, //推送内容", " IsSilent = $5, //静音推送", " Devices = $6, //设备号", " TemplateId = $7, //模板", " AutoPushDate = $8, //定时推送时间", " MessageId = $9, //推送返回码", " Mobiles = $10, //手机号", "});" ] },"删除某个推送消息记录": { "prefix": "ym-db-MsgPush-Delete", "body": [ "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgPush.Remove($1);", "}" ] }, "查询发送短信记录列表": { "prefix": "ym-db-MsgSms-Find", "body": [ "List $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgSms $3 in $1)", "{", "}" ] }, "查询发送短信记录列表,并取值": { "prefix": "ym-db-MsgSms-FindWithData", "body": [ "List $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgSms $3 in $1)", "{", " string ColId = $3.ColId; //分类", " int TemplateId = $3.TemplateId; //模板", " string Mobile = $3.Mobile; //手机号", " string Ip = $3.Ip; //IP地址", " int SendType = $3.SendType; //发送类别", " int SmsType = $3.SmsType; //短信内容类型", " string Content = $3.Content; //内容", " string SignName = $3.SignName; //签名", " DateTime SendTime = $3.SendTime; //发送时间", " string RespContent = $3.RespContent; //返回报文", " string RespCode = $3.RespCode; //返回码", " string VerifyCode = $3.VerifyCode; //验证码", " int ErrorNum = $3.ErrorNum; //错误次数", " int VerifyStatus = $3.VerifyStatus; //校验状态", " int Code = $3.Code; //业务编号", " string Kind = $3.Kind; //短信类型", " int SendStatus = $3.SendStatus; //发送状态", "}" ] }, "查询发送短信记录": { "prefix": "ym-db-MsgSms-Exist", "body": [ "bool $1 = db.MsgSms.Any(m => m.Id == $2);", ] }, "查询某个发送短信记录,并取值": { "prefix": "ym-db-MsgSms-FindByPrimaryKey", "body": [ "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColId = $1.ColId; //分类", " int TemplateId = $1.TemplateId; //模板", " string Mobile = $1.Mobile; //手机号", " string Ip = $1.Ip; //IP地址", " int SendType = $1.SendType; //发送类别", " int SmsType = $1.SmsType; //短信内容类型", " string Content = $1.Content; //内容", " string SignName = $1.SignName; //签名", " DateTime SendTime = $1.SendTime; //发送时间", " string RespContent = $1.RespContent; //返回报文", " string RespCode = $1.RespCode; //返回码", " string VerifyCode = $1.VerifyCode; //验证码", " int ErrorNum = $1.ErrorNum; //错误次数", " int VerifyStatus = $1.VerifyStatus; //校验状态", " int Code = $1.Code; //业务编号", " string Kind = $1.Kind; //短信类型", " int SendStatus = $1.SendStatus; //发送状态", "}" ] }, "查询某个发送短信记录,并赋值": { "prefix": "ym-db-MsgSms-Update", "body": [ "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColId = $2; //分类", " $1.TemplateId = $3; //模板", " $1.Mobile = $4; //手机号", " $1.Ip = $5; //IP地址", " $1.SendType = $6; //发送类别", " $1.SmsType = $7; //短信内容类型", " $1.Content = $8; //内容", " $1.SignName = $9; //签名", " $1.SendTime = $10; //发送时间", " $1.RespContent = $11; //返回报文", " $1.RespCode = $12; //返回码", " $1.VerifyCode = $13; //验证码", " $1.ErrorNum = $14; //错误次数", " $1.VerifyStatus = $15; //校验状态", " $1.Code = $16; //业务编号", " $1.Kind = $17; //短信类型", " $1.SendStatus = $18; //发送状态", "}" ] }, "获取发送短信记录数量": { "prefix": "ym-db-MsgSms-FindAndCount", "body": [ "int $1 = db.MsgSms.Count(m => $2);", ] }, "添加发送短信记录": { "prefix": "ym-db-MsgSms-Create", "body": [ "db.MsgSms.Add(new MsgSms()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColId = $1, //分类", " TemplateId = $2, //模板", " Mobile = $3, //手机号", " Ip = $4, //IP地址", " SendType = $5, //发送类别", " SmsType = $6, //短信内容类型", " Content = $7, //内容", " SignName = $8, //签名", " SendTime = $9, //发送时间", " RespContent = $10, //返回报文", " RespCode = $11, //返回码", " VerifyCode = $12, //验证码", " ErrorNum = $13, //错误次数", " VerifyStatus = $14, //校验状态", " Code = $15, //业务编号", " Kind = $16, //短信类型", " SendStatus = $17, //发送状态", "});" ] },"删除某个发送短信记录": { "prefix": "ym-db-MsgSms-Delete", "body": [ "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgSms.Remove($1);", "}" ] }, "查询发送短信配置列表": { "prefix": "ym-db-MsgSmsSet-Find", "body": [ "List $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgSmsSet $3 in $1)", "{", "}" ] }, "查询发送短信配置列表,并取值": { "prefix": "ym-db-MsgSmsSet-FindWithData", "body": [ "List $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgSmsSet $3 in $1)", "{", " string Name = $3.Name; //渠道名称", " string UserName = $3.UserName; //账号", " string AuthPwd = $3.AuthPwd; //密码", " int SmsType = $3.SmsType; //类别", " string ReqUrl = $3.ReqUrl; //请求地址", " string Params = $3.Params; //请求参数", "}" ] }, "查询发送短信配置": { "prefix": "ym-db-MsgSmsSet-Exist", "body": [ "bool $1 = db.MsgSmsSet.Any(m => m.Id == $2);", ] }, "查询某个发送短信配置,并取值": { "prefix": "ym-db-MsgSmsSet-FindByPrimaryKey", "body": [ "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //渠道名称", " string UserName = $1.UserName; //账号", " string AuthPwd = $1.AuthPwd; //密码", " int SmsType = $1.SmsType; //类别", " string ReqUrl = $1.ReqUrl; //请求地址", " string Params = $1.Params; //请求参数", "}" ] }, "查询某个发送短信配置,并赋值": { "prefix": "ym-db-MsgSmsSet-Update", "body": [ "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //渠道名称", " $1.UserName = $3; //账号", " $1.AuthPwd = $4; //密码", " $1.SmsType = $5; //类别", " $1.ReqUrl = $6; //请求地址", " $1.Params = $7; //请求参数", "}" ] }, "获取发送短信配置数量": { "prefix": "ym-db-MsgSmsSet-FindAndCount", "body": [ "int $1 = db.MsgSmsSet.Count(m => $2);", ] }, "添加发送短信配置": { "prefix": "ym-db-MsgSmsSet-Create", "body": [ "db.MsgSmsSet.Add(new MsgSmsSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //渠道名称", " UserName = $2, //账号", " AuthPwd = $3, //密码", " SmsType = $4, //类别", " ReqUrl = $5, //请求地址", " Params = $6, //请求参数", "});" ] },"删除某个发送短信配置": { "prefix": "ym-db-MsgSmsSet-Delete", "body": [ "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgSmsSet.Remove($1);", "}" ] }, "查询消息模板列表": { "prefix": "ym-db-MsgTemplate-Find", "body": [ "List $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgTemplate $3 in $1)", "{", "}" ] }, "查询消息模板列表,并取值": { "prefix": "ym-db-MsgTemplate-FindWithData", "body": [ "List $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (MsgTemplate $3 in $1)", "{", " string Title = $3.Title; //标题", " string Content = $3.Content; //内容", " string ColId = $3.ColId; //分类", " int TemplateType = $3.TemplateType; //类型", " int MsgType = $3.MsgType; //消息类型", " string Remark = $3.Remark; //注释", " string Extend = $3.Extend; //扩展字段", " string SignName = $3.SignName; //签名", "}" ] }, "查询消息模板": { "prefix": "ym-db-MsgTemplate-Exist", "body": [ "bool $1 = db.MsgTemplate.Any(m => m.Id == $2);", ] }, "查询某个消息模板,并取值": { "prefix": "ym-db-MsgTemplate-FindByPrimaryKey", "body": [ "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string Content = $1.Content; //内容", " string ColId = $1.ColId; //分类", " int TemplateType = $1.TemplateType; //类型", " int MsgType = $1.MsgType; //消息类型", " string Remark = $1.Remark; //注释", " string Extend = $1.Extend; //扩展字段", " string SignName = $1.SignName; //签名", "}" ] }, "查询某个消息模板,并赋值": { "prefix": "ym-db-MsgTemplate-Update", "body": [ "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.Content = $3; //内容", " $1.ColId = $4; //分类", " $1.TemplateType = $5; //类型", " $1.MsgType = $6; //消息类型", " $1.Remark = $7; //注释", " $1.Extend = $8; //扩展字段", " $1.SignName = $9; //签名", "}" ] }, "获取消息模板数量": { "prefix": "ym-db-MsgTemplate-FindAndCount", "body": [ "int $1 = db.MsgTemplate.Count(m => $2);", ] }, "添加消息模板": { "prefix": "ym-db-MsgTemplate-Create", "body": [ "db.MsgTemplate.Add(new MsgTemplate()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " Content = $2, //内容", " ColId = $3, //分类", " TemplateType = $4, //类型", " MsgType = $5, //消息类型", " Remark = $6, //注释", " Extend = $7, //扩展字段", " SignName = $8, //签名", "});" ] },"删除某个消息模板": { "prefix": "ym-db-MsgTemplate-Delete", "body": [ "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.MsgTemplate.Remove($1);", "}" ] }, "查询开户银行省市编码列表": { "prefix": "ym-db-OpenBankCityTable-Find", "body": [ "List $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenBankCityTable $3 in $1)", "{", "}" ] }, "查询开户银行省市编码列表,并取值": { "prefix": "ym-db-OpenBankCityTable-FindWithData", "body": [ "List $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenBankCityTable $3 in $1)", "{", " string CityName = $3.CityName; //省市", " string Code = $3.Code; //编码", "}" ] }, "查询开户银行省市编码": { "prefix": "ym-db-OpenBankCityTable-Exist", "body": [ "bool $1 = db.OpenBankCityTable.Any(m => m.CityName == $2);", ] }, "查询某个开户银行省市编码,并取值": { "prefix": "ym-db-OpenBankCityTable-FindByPrimaryKey", "body": [ "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);", "if ($1 != null)", "{", " string CityName = $1.CityName; //省市", " string Code = $1.Code; //编码", "}" ] }, "查询某个开户银行省市编码,并赋值": { "prefix": "ym-db-OpenBankCityTable-Update", "body": [ "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);", "if ($1 != null)", "{", " $1.CityName = $2; //省市", " $1.Code = $3; //编码", "}" ] }, "获取开户银行省市编码数量": { "prefix": "ym-db-OpenBankCityTable-FindAndCount", "body": [ "int $1 = db.OpenBankCityTable.Count(m => $2);", ] }, "添加开户银行省市编码": { "prefix": "ym-db-OpenBankCityTable-Create", "body": [ "db.OpenBankCityTable.Add(new OpenBankCityTable()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " CityName = $1, //省市", " Code = $2, //编码", "});" ] },"删除某个开户银行省市编码": { "prefix": "ym-db-OpenBankCityTable-Delete", "body": [ "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);", "if ($1 != null)", "{", " db.OpenBankCityTable.Remove($1);", "}" ] }, "查询开户行对照表列表": { "prefix": "ym-db-OpenBankTable-Find", "body": [ "List $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenBankTable $3 in $1)", "{", "}" ] }, "查询开户行对照表列表,并取值": { "prefix": "ym-db-OpenBankTable-FindWithData", "body": [ "List $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenBankTable $3 in $1)", "{", " string BankName = $3.BankName; //开户行名称", " string BankCode = $3.BankCode; //联行号", "}" ] }, "查询开户行对照表": { "prefix": "ym-db-OpenBankTable-Exist", "body": [ "bool $1 = db.OpenBankTable.Any(m => m.BankName == $2);", ] }, "查询某个开户行对照表,并取值": { "prefix": "ym-db-OpenBankTable-FindByPrimaryKey", "body": [ "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);", "if ($1 != null)", "{", " string BankName = $1.BankName; //开户行名称", " string BankCode = $1.BankCode; //联行号", "}" ] }, "查询某个开户行对照表,并赋值": { "prefix": "ym-db-OpenBankTable-Update", "body": [ "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);", "if ($1 != null)", "{", " $1.BankName = $2; //开户行名称", " $1.BankCode = $3; //联行号", "}" ] }, "获取开户行对照表数量": { "prefix": "ym-db-OpenBankTable-FindAndCount", "body": [ "int $1 = db.OpenBankTable.Count(m => $2);", ] }, "添加开户行对照表": { "prefix": "ym-db-OpenBankTable-Create", "body": [ "db.OpenBankTable.Add(new OpenBankTable()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BankName = $1, //开户行名称", " BankCode = $2, //联行号", "});" ] },"删除某个开户行对照表": { "prefix": "ym-db-OpenBankTable-Delete", "body": [ "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);", "if ($1 != null)", "{", " db.OpenBankTable.Remove($1);", "}" ] }, "查询开机奖励列表": { "prefix": "ym-db-OpenReward-Find", "body": [ "List $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenReward $3 in $1)", "{", "}" ] }, "查询开机奖励列表,并取值": { "prefix": "ym-db-OpenReward-FindWithData", "body": [ "List $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenReward $3 in $1)", "{", " string TradeMonth = $3.TradeMonth; //交易月", " DateTime TradeDate = $3.TradeDate; //达标日期", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " int RewardType = $3.RewardType; //奖励类型", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号", " string RewardDesc = $3.RewardDesc; //奖励描述", " string Remark = $3.Remark; //备注", " int RewardMerCount = $3.RewardMerCount; //达标商户数", " int CheckStatus = $3.CheckStatus; //验证和同步账户状态", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询开机奖励": { "prefix": "ym-db-OpenReward-Exist", "body": [ "bool $1 = db.OpenReward.Any(m => m.Id == $2);", ] }, "查询某个开机奖励,并取值": { "prefix": "ym-db-OpenReward-FindByPrimaryKey", "body": [ "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeMonth = $1.TradeMonth; //交易月", " DateTime TradeDate = $1.TradeDate; //达标日期", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " int RewardType = $1.RewardType; //奖励类型", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号", " string RewardDesc = $1.RewardDesc; //奖励描述", " string Remark = $1.Remark; //备注", " int RewardMerCount = $1.RewardMerCount; //达标商户数", " int CheckStatus = $1.CheckStatus; //验证和同步账户状态", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个开机奖励,并赋值": { "prefix": "ym-db-OpenReward-Update", "body": [ "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeMonth = $2; //交易月", " $1.TradeDate = $3; //达标日期", " $1.UserId = $4; //创客", " $1.BrandId = $5; //品牌", " $1.RewardType = $6; //奖励类型", " $1.CreditTradeAmt = $7; //贷记卡交易总金额", " $1.DebitTradeAmt = $8; //借记卡交易总金额", " $1.CreditRewardAmount = $9; //贷记卡交易奖励金额", " $1.DebitRewardAmount = $10; //借记记卡交易奖励金额", " $1.OpenRewardNo = $11; //开机奖励单号", " $1.RewardDesc = $12; //奖励描述", " $1.Remark = $13; //备注", " $1.RewardMerCount = $14; //达标商户数", " $1.CheckStatus = $15; //验证和同步账户状态", " $1.TopUserId = $16; //顶级创客", "}" ] }, "获取开机奖励数量": { "prefix": "ym-db-OpenReward-FindAndCount", "body": [ "int $1 = db.OpenReward.Count(m => $2);", ] }, "添加开机奖励": { "prefix": "ym-db-OpenReward-Create", "body": [ "db.OpenReward.Add(new OpenReward()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeMonth = $1, //交易月", " TradeDate = $2, //达标日期", " UserId = $3, //创客", " BrandId = $4, //品牌", " RewardType = $5, //奖励类型", " CreditTradeAmt = $6, //贷记卡交易总金额", " DebitTradeAmt = $7, //借记卡交易总金额", " CreditRewardAmount = $8, //贷记卡交易奖励金额", " DebitRewardAmount = $9, //借记记卡交易奖励金额", " OpenRewardNo = $10, //开机奖励单号", " RewardDesc = $11, //奖励描述", " Remark = $12, //备注", " RewardMerCount = $13, //达标商户数", " CheckStatus = $14, //验证和同步账户状态", " TopUserId = $15, //顶级创客", "});" ] },"删除某个开机奖励": { "prefix": "ym-db-OpenReward-Delete", "body": [ "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OpenReward.Remove($1);", "}" ] }, "查询开机奖励明细列表": { "prefix": "ym-db-OpenRewardDetail-Find", "body": [ "List $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenRewardDetail $3 in $1)", "{", "}" ] }, "查询开机奖励明细列表,并取值": { "prefix": "ym-db-OpenRewardDetail-FindWithData", "body": [ "List $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenRewardDetail $3 in $1)", "{", " string TradeMonth = $3.TradeMonth; //交易月", " DateTime TradeDate = $3.TradeDate; //达标日期", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string ProductName = $3.ProductName; //产品名称", " int MerchantId = $3.MerchantId; //商户", " int DirectUserId = $3.DirectUserId; //商户直属人", " string SnNo = $3.SnNo; //SN号", " string MerNo = $3.MerNo; //渠道商户号", " int SnType = $3.SnType; //机具类型", " int SnApplyUserId = $3.SnApplyUserId; //机具申请人", " DateTime StandardDate = $3.StandardDate; //商户的激活日期", " int SnStoreId = $3.SnStoreId; //SN仓库", " int MerBuddyType = $3.MerBuddyType; //商户创客类型", " int RewardType = $3.RewardType; //奖励类型", " string RewardTips = $3.RewardTips; //奖励描述", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号", " string RewardDesc = $3.RewardDesc; //奖励描述", " string Remark = $3.Remark; //备注", " string OpenDetailRec = $3.OpenDetailRec; //明细单号", " int CheckStatus = $3.CheckStatus; //同步状态", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询开机奖励明细": { "prefix": "ym-db-OpenRewardDetail-Exist", "body": [ "bool $1 = db.OpenRewardDetail.Any(m => m.Id == $2);", ] }, "查询某个开机奖励明细,并取值": { "prefix": "ym-db-OpenRewardDetail-FindByPrimaryKey", "body": [ "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeMonth = $1.TradeMonth; //交易月", " DateTime TradeDate = $1.TradeDate; //达标日期", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string ProductName = $1.ProductName; //产品名称", " int MerchantId = $1.MerchantId; //商户", " int DirectUserId = $1.DirectUserId; //商户直属人", " string SnNo = $1.SnNo; //SN号", " string MerNo = $1.MerNo; //渠道商户号", " int SnType = $1.SnType; //机具类型", " int SnApplyUserId = $1.SnApplyUserId; //机具申请人", " DateTime StandardDate = $1.StandardDate; //商户的激活日期", " int SnStoreId = $1.SnStoreId; //SN仓库", " int MerBuddyType = $1.MerBuddyType; //商户创客类型", " int RewardType = $1.RewardType; //奖励类型", " string RewardTips = $1.RewardTips; //奖励描述", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号", " string RewardDesc = $1.RewardDesc; //奖励描述", " string Remark = $1.Remark; //备注", " string OpenDetailRec = $1.OpenDetailRec; //明细单号", " int CheckStatus = $1.CheckStatus; //同步状态", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个开机奖励明细,并赋值": { "prefix": "ym-db-OpenRewardDetail-Update", "body": [ "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeMonth = $2; //交易月", " $1.TradeDate = $3; //达标日期", " $1.UserId = $4; //创客", " $1.BrandId = $5; //品牌", " $1.ProductName = $6; //产品名称", " $1.MerchantId = $7; //商户", " $1.DirectUserId = $8; //商户直属人", " $1.SnNo = $9; //SN号", " $1.MerNo = $10; //渠道商户号", " $1.SnType = $11; //机具类型", " $1.SnApplyUserId = $12; //机具申请人", " $1.StandardDate = $13; //商户的激活日期", " $1.SnStoreId = $14; //SN仓库", " $1.MerBuddyType = $15; //商户创客类型", " $1.RewardType = $16; //奖励类型", " $1.RewardTips = $17; //奖励描述", " $1.CreditTradeAmt = $18; //贷记卡交易总金额", " $1.DebitTradeAmt = $19; //借记卡交易总金额", " $1.CreditRewardAmount = $20; //贷记卡交易奖励金额", " $1.DebitRewardAmount = $21; //借记记卡交易奖励金额", " $1.OpenRewardNo = $22; //开机奖励单号", " $1.RewardDesc = $23; //奖励描述", " $1.Remark = $24; //备注", " $1.OpenDetailRec = $25; //明细单号", " $1.CheckStatus = $26; //同步状态", " $1.TopUserId = $27; //顶级创客", "}" ] }, "获取开机奖励明细数量": { "prefix": "ym-db-OpenRewardDetail-FindAndCount", "body": [ "int $1 = db.OpenRewardDetail.Count(m => $2);", ] }, "添加开机奖励明细": { "prefix": "ym-db-OpenRewardDetail-Create", "body": [ "db.OpenRewardDetail.Add(new OpenRewardDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeMonth = $1, //交易月", " TradeDate = $2, //达标日期", " UserId = $3, //创客", " BrandId = $4, //品牌", " ProductName = $5, //产品名称", " MerchantId = $6, //商户", " DirectUserId = $7, //商户直属人", " SnNo = $8, //SN号", " MerNo = $9, //渠道商户号", " SnType = $10, //机具类型", " SnApplyUserId = $11, //机具申请人", " StandardDate = $12, //商户的激活日期", " SnStoreId = $13, //SN仓库", " MerBuddyType = $14, //商户创客类型", " RewardType = $15, //奖励类型", " RewardTips = $16, //奖励描述", " CreditTradeAmt = $17, //贷记卡交易总金额", " DebitTradeAmt = $18, //借记卡交易总金额", " CreditRewardAmount = $19, //贷记卡交易奖励金额", " DebitRewardAmount = $20, //借记记卡交易奖励金额", " OpenRewardNo = $21, //开机奖励单号", " RewardDesc = $22, //奖励描述", " Remark = $23, //备注", " OpenDetailRec = $24, //明细单号", " CheckStatus = $25, //同步状态", " TopUserId = $26, //顶级创客", "});" ] },"删除某个开机奖励明细": { "prefix": "ym-db-OpenRewardDetail-Delete", "body": [ "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OpenRewardDetail.Remove($1);", "}" ] }, "查询开机机具快照列表": { "prefix": "ym-db-OpenSnSnapshot-Find", "body": [ "List $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenSnSnapshot $3 in $1)", "{", "}" ] }, "查询开机机具快照列表,并取值": { "prefix": "ym-db-OpenSnSnapshot-FindWithData", "body": [ "List $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OpenSnSnapshot $3 in $1)", "{", " string TradeMonth = $3.TradeMonth; //交易月", " DateTime TradeDate = $3.TradeDate; //达标日期", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " int MerchantId = $3.MerchantId; //商户", " int DirectUserId = $3.DirectUserId; //商户直属人", " string SnNo = $3.SnNo; //SN号", " string MerNo = $3.MerNo; //渠道商户号", " int SnType = $3.SnType; //机具类型", " int SnApplyUserId = $3.SnApplyUserId; //机具申请人", " DateTime StandardDate = $3.StandardDate; //商户的激活日期", " int SnStoreId = $3.SnStoreId; //SN仓库", " int MerUserType = $3.MerUserType; //商户创客类型", " int RewardType = $3.RewardType; //奖励类型", " string RewardTips = $3.RewardTips; //奖励描述", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号", " string RewardDesc = $3.RewardDesc; //奖励描述", " string Remark = $3.Remark; //备注", " string OpenDetailRec = $3.OpenDetailRec; //明细单号", " int BuySnNum = $3.BuySnNum; //购买机数量", " int StdBuySnNum = $3.StdBuySnNum; //标准购买机数量", " decimal RewardAmount = $3.RewardAmount; //奖励金额", " string FailReason = $3.FailReason; //失败原因", " string UserNav = $3.UserNav; //创客路径", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询开机机具快照": { "prefix": "ym-db-OpenSnSnapshot-Exist", "body": [ "bool $1 = db.OpenSnSnapshot.Any(m => m.Id == $2);", ] }, "查询某个开机机具快照,并取值": { "prefix": "ym-db-OpenSnSnapshot-FindByPrimaryKey", "body": [ "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeMonth = $1.TradeMonth; //交易月", " DateTime TradeDate = $1.TradeDate; //达标日期", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " int MerchantId = $1.MerchantId; //商户", " int DirectUserId = $1.DirectUserId; //商户直属人", " string SnNo = $1.SnNo; //SN号", " string MerNo = $1.MerNo; //渠道商户号", " int SnType = $1.SnType; //机具类型", " int SnApplyUserId = $1.SnApplyUserId; //机具申请人", " DateTime StandardDate = $1.StandardDate; //商户的激活日期", " int SnStoreId = $1.SnStoreId; //SN仓库", " int MerUserType = $1.MerUserType; //商户创客类型", " int RewardType = $1.RewardType; //奖励类型", " string RewardTips = $1.RewardTips; //奖励描述", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额", " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号", " string RewardDesc = $1.RewardDesc; //奖励描述", " string Remark = $1.Remark; //备注", " string OpenDetailRec = $1.OpenDetailRec; //明细单号", " int BuySnNum = $1.BuySnNum; //购买机数量", " int StdBuySnNum = $1.StdBuySnNum; //标准购买机数量", " decimal RewardAmount = $1.RewardAmount; //奖励金额", " string FailReason = $1.FailReason; //失败原因", " string UserNav = $1.UserNav; //创客路径", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个开机机具快照,并赋值": { "prefix": "ym-db-OpenSnSnapshot-Update", "body": [ "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeMonth = $2; //交易月", " $1.TradeDate = $3; //达标日期", " $1.UserId = $4; //创客", " $1.BrandId = $5; //品牌", " $1.MerchantId = $6; //商户", " $1.DirectUserId = $7; //商户直属人", " $1.SnNo = $8; //SN号", " $1.MerNo = $9; //渠道商户号", " $1.SnType = $10; //机具类型", " $1.SnApplyUserId = $11; //机具申请人", " $1.StandardDate = $12; //商户的激活日期", " $1.SnStoreId = $13; //SN仓库", " $1.MerUserType = $14; //商户创客类型", " $1.RewardType = $15; //奖励类型", " $1.RewardTips = $16; //奖励描述", " $1.CreditTradeAmt = $17; //贷记卡交易总金额", " $1.DebitTradeAmt = $18; //借记卡交易总金额", " $1.CreditRewardAmount = $19; //贷记卡交易奖励金额", " $1.DebitRewardAmount = $20; //借记记卡交易奖励金额", " $1.OpenRewardNo = $21; //开机奖励单号", " $1.RewardDesc = $22; //奖励描述", " $1.Remark = $23; //备注", " $1.OpenDetailRec = $24; //明细单号", " $1.BuySnNum = $25; //购买机数量", " $1.StdBuySnNum = $26; //标准购买机数量", " $1.RewardAmount = $27; //奖励金额", " $1.FailReason = $28; //失败原因", " $1.UserNav = $29; //创客路径", " $1.TopUserId = $30; //顶级创客", "}" ] }, "获取开机机具快照数量": { "prefix": "ym-db-OpenSnSnapshot-FindAndCount", "body": [ "int $1 = db.OpenSnSnapshot.Count(m => $2);", ] }, "添加开机机具快照": { "prefix": "ym-db-OpenSnSnapshot-Create", "body": [ "db.OpenSnSnapshot.Add(new OpenSnSnapshot()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeMonth = $1, //交易月", " TradeDate = $2, //达标日期", " UserId = $3, //创客", " BrandId = $4, //品牌", " MerchantId = $5, //商户", " DirectUserId = $6, //商户直属人", " SnNo = $7, //SN号", " MerNo = $8, //渠道商户号", " SnType = $9, //机具类型", " SnApplyUserId = $10, //机具申请人", " StandardDate = $11, //商户的激活日期", " SnStoreId = $12, //SN仓库", " MerUserType = $13, //商户创客类型", " RewardType = $14, //奖励类型", " RewardTips = $15, //奖励描述", " CreditTradeAmt = $16, //贷记卡交易总金额", " DebitTradeAmt = $17, //借记卡交易总金额", " CreditRewardAmount = $18, //贷记卡交易奖励金额", " DebitRewardAmount = $19, //借记记卡交易奖励金额", " OpenRewardNo = $20, //开机奖励单号", " RewardDesc = $21, //奖励描述", " Remark = $22, //备注", " OpenDetailRec = $23, //明细单号", " BuySnNum = $24, //购买机数量", " StdBuySnNum = $25, //标准购买机数量", " RewardAmount = $26, //奖励金额", " FailReason = $27, //失败原因", " UserNav = $28, //创客路径", " TopUserId = $29, //顶级创客", "});" ] },"删除某个开机机具快照": { "prefix": "ym-db-OpenSnSnapshot-Delete", "body": [ "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OpenSnSnapshot.Remove($1);", "}" ] }, "查询操作日志列表": { "prefix": "ym-db-OperateLog-Find", "body": [ "List $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OperateLog $3 in $1)", "{", "}" ] }, "查询操作日志列表,并取值": { "prefix": "ym-db-OperateLog-FindWithData", "body": [ "List $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OperateLog $3 in $1)", "{", " string TableEnName = $3.TableEnName; //表", " string OperateMan = $3.OperateMan; //操作员", " string BeforeOperate = $3.BeforeOperate; //操作前的数据", " string AfterOperate = $3.AfterOperate; //操作后的数据", " string OpMode = $3.OpMode; //操作方式", "}" ] }, "查询操作日志": { "prefix": "ym-db-OperateLog-Exist", "body": [ "bool $1 = db.OperateLog.Any(m => m.Id == $2);", ] }, "查询某个操作日志,并取值": { "prefix": "ym-db-OperateLog-FindByPrimaryKey", "body": [ "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TableEnName = $1.TableEnName; //表", " string OperateMan = $1.OperateMan; //操作员", " string BeforeOperate = $1.BeforeOperate; //操作前的数据", " string AfterOperate = $1.AfterOperate; //操作后的数据", " string OpMode = $1.OpMode; //操作方式", "}" ] }, "查询某个操作日志,并赋值": { "prefix": "ym-db-OperateLog-Update", "body": [ "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TableEnName = $2; //表", " $1.OperateMan = $3; //操作员", " $1.BeforeOperate = $4; //操作前的数据", " $1.AfterOperate = $5; //操作后的数据", " $1.OpMode = $6; //操作方式", "}" ] }, "获取操作日志数量": { "prefix": "ym-db-OperateLog-FindAndCount", "body": [ "int $1 = db.OperateLog.Count(m => $2);", ] }, "添加操作日志": { "prefix": "ym-db-OperateLog-Create", "body": [ "db.OperateLog.Add(new OperateLog()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TableEnName = $1, //表", " OperateMan = $2, //操作员", " BeforeOperate = $3, //操作前的数据", " AfterOperate = $4, //操作后的数据", " OpMode = $5, //操作方式", "});" ] },"删除某个操作日志": { "prefix": "ym-db-OperateLog-Delete", "body": [ "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OperateLog.Remove($1);", "}" ] }, "查询操作权限列表": { "prefix": "ym-db-OperateRightList-Find", "body": [ "List $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OperateRightList $3 in $1)", "{", "}" ] }, "查询操作权限列表,并取值": { "prefix": "ym-db-OperateRightList-FindWithData", "body": [ "List $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OperateRightList $3 in $1)", "{", " string Name = $3.Name; //名称", " string EnName = $3.EnName; //英文名", "}" ] }, "查询操作权限": { "prefix": "ym-db-OperateRightList-Exist", "body": [ "bool $1 = db.OperateRightList.Any(m => m.Id == $2);", ] }, "查询某个操作权限,并取值": { "prefix": "ym-db-OperateRightList-FindByPrimaryKey", "body": [ "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string EnName = $1.EnName; //英文名", "}" ] }, "查询某个操作权限,并赋值": { "prefix": "ym-db-OperateRightList-Update", "body": [ "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.EnName = $3; //英文名", "}" ] }, "获取操作权限数量": { "prefix": "ym-db-OperateRightList-FindAndCount", "body": [ "int $1 = db.OperateRightList.Count(m => $2);", ] }, "添加操作权限": { "prefix": "ym-db-OperateRightList-Create", "body": [ "db.OperateRightList.Add(new OperateRightList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " EnName = $2, //英文名", "});" ] },"删除某个操作权限": { "prefix": "ym-db-OperateRightList-Delete", "body": [ "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OperateRightList.Remove($1);", "}" ] }, "查询订单号关联表列表": { "prefix": "ym-db-OrderForNo-Find", "body": [ "List $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderForNo $3 in $1)", "{", "}" ] }, "查询订单号关联表列表,并取值": { "prefix": "ym-db-OrderForNo-FindWithData", "body": [ "List $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderForNo $3 in $1)", "{", " string OrderNo = $3.OrderNo; //订单号", " string OrderIds = $3.OrderIds; //订单Id", " int RspCode = $3.RspCode; //返回码", " string RspMsg = $3.RspMsg; //返回信息", "}" ] }, "查询订单号关联表": { "prefix": "ym-db-OrderForNo-Exist", "body": [ "bool $1 = db.OrderForNo.Any(m => m.OrderNo == $2);", ] }, "查询某个订单号关联表,并取值": { "prefix": "ym-db-OrderForNo-FindByPrimaryKey", "body": [ "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);", "if ($1 != null)", "{", " string OrderNo = $1.OrderNo; //订单号", " string OrderIds = $1.OrderIds; //订单Id", " int RspCode = $1.RspCode; //返回码", " string RspMsg = $1.RspMsg; //返回信息", "}" ] }, "查询某个订单号关联表,并赋值": { "prefix": "ym-db-OrderForNo-Update", "body": [ "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);", "if ($1 != null)", "{", " $1.OrderNo = $2; //订单号", " $1.OrderIds = $3; //订单Id", " $1.RspCode = $4; //返回码", " $1.RspMsg = $5; //返回信息", "}" ] }, "获取订单号关联表数量": { "prefix": "ym-db-OrderForNo-FindAndCount", "body": [ "int $1 = db.OrderForNo.Count(m => $2);", ] }, "添加订单号关联表": { "prefix": "ym-db-OrderForNo-Create", "body": [ "db.OrderForNo.Add(new OrderForNo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " OrderNo = $1, //订单号", " OrderIds = $2, //订单Id", " RspCode = $3, //返回码", " RspMsg = $4, //返回信息", "});" ] },"删除某个订单号关联表": { "prefix": "ym-db-OrderForNo-Delete", "body": [ "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);", "if ($1 != null)", "{", " db.OrderForNo.Remove($1);", "}" ] }, "查询订单商品列表": { "prefix": "ym-db-OrderProduct-Find", "body": [ "List $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderProduct $3 in $1)", "{", "}" ] }, "查询订单商品列表,并取值": { "prefix": "ym-db-OrderProduct-FindWithData", "body": [ "List $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderProduct $3 in $1)", "{", " int OrderId = $3.OrderId; //订单Id", " int UserId = $3.UserId; //创客Id", " int ProductId = $3.ProductId; //商品Id", " string ProductName = $3.ProductName; //商品名称", " decimal ProductPrice = $3.ProductPrice; //商品单价", " int ProductCount = $3.ProductCount; //商品数量", " decimal TotalPrice = $3.TotalPrice; //小计", " int MerchantId = $3.MerchantId; //商家Id", " decimal TotalIntegral = $3.TotalIntegral; //积分", " string ProductPhoto = $3.ProductPhoto; //商品缩略图", " string NormId = $3.NormId; //规格Id", " string NormDetail = $3.NormDetail; //规则描述", " decimal ProductIntegral = $3.ProductIntegral; //商品抵扣积分", " string ProductCode = $3.ProductCode; //商品编号", " int StoreId = $3.StoreId; //发货仓库", " string SnNos = $3.SnNos; //SN编号", "}" ] }, "查询订单商品": { "prefix": "ym-db-OrderProduct-Exist", "body": [ "bool $1 = db.OrderProduct.Any(m => m.Id == $2);", ] }, "查询某个订单商品,并取值": { "prefix": "ym-db-OrderProduct-FindByPrimaryKey", "body": [ "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int OrderId = $1.OrderId; //订单Id", " int UserId = $1.UserId; //创客Id", " int ProductId = $1.ProductId; //商品Id", " string ProductName = $1.ProductName; //商品名称", " decimal ProductPrice = $1.ProductPrice; //商品单价", " int ProductCount = $1.ProductCount; //商品数量", " decimal TotalPrice = $1.TotalPrice; //小计", " int MerchantId = $1.MerchantId; //商家Id", " decimal TotalIntegral = $1.TotalIntegral; //积分", " string ProductPhoto = $1.ProductPhoto; //商品缩略图", " string NormId = $1.NormId; //规格Id", " string NormDetail = $1.NormDetail; //规则描述", " decimal ProductIntegral = $1.ProductIntegral; //商品抵扣积分", " string ProductCode = $1.ProductCode; //商品编号", " int StoreId = $1.StoreId; //发货仓库", " string SnNos = $1.SnNos; //SN编号", "}" ] }, "查询某个订单商品,并赋值": { "prefix": "ym-db-OrderProduct-Update", "body": [ "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.OrderId = $2; //订单Id", " $1.UserId = $3; //创客Id", " $1.ProductId = $4; //商品Id", " $1.ProductName = $5; //商品名称", " $1.ProductPrice = $6; //商品单价", " $1.ProductCount = $7; //商品数量", " $1.TotalPrice = $8; //小计", " $1.MerchantId = $9; //商家Id", " $1.TotalIntegral = $10; //积分", " $1.ProductPhoto = $11; //商品缩略图", " $1.NormId = $12; //规格Id", " $1.NormDetail = $13; //规则描述", " $1.ProductIntegral = $14; //商品抵扣积分", " $1.ProductCode = $15; //商品编号", " $1.StoreId = $16; //发货仓库", " $1.SnNos = $17; //SN编号", "}" ] }, "获取订单商品数量": { "prefix": "ym-db-OrderProduct-FindAndCount", "body": [ "int $1 = db.OrderProduct.Count(m => $2);", ] }, "添加订单商品": { "prefix": "ym-db-OrderProduct-Create", "body": [ "db.OrderProduct.Add(new OrderProduct()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " OrderId = $1, //订单Id", " UserId = $2, //创客Id", " ProductId = $3, //商品Id", " ProductName = $4, //商品名称", " ProductPrice = $5, //商品单价", " ProductCount = $6, //商品数量", " TotalPrice = $7, //小计", " MerchantId = $8, //商家Id", " TotalIntegral = $9, //积分", " ProductPhoto = $10, //商品缩略图", " NormId = $11, //规格Id", " NormDetail = $12, //规则描述", " ProductIntegral = $13, //商品抵扣积分", " ProductCode = $14, //商品编号", " StoreId = $15, //发货仓库", " SnNos = $16, //SN编号", "});" ] },"删除某个订单商品": { "prefix": "ym-db-OrderProduct-Delete", "body": [ "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OrderProduct.Remove($1);", "}" ] }, "查询退款申请列表": { "prefix": "ym-db-OrderRefund-Find", "body": [ "List $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderRefund $3 in $1)", "{", "}" ] }, "查询退款申请列表,并取值": { "prefix": "ym-db-OrderRefund-FindWithData", "body": [ "List $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderRefund $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int OrderId = $3.OrderId; //订单Id", " string ProductId = $3.ProductId; //商品Id", " int Reason = $3.Reason; //退款原因", " decimal Amount = $3.Amount; //退款金额", " string Contents = $3.Contents; //补充说明", " string Mobile = $3.Mobile; //申请人手机号", " int MerchantId = $3.MerchantId; //商家Id", " int GoodStatus = $3.GoodStatus; //货物状态", " string Photos = $3.Photos; //凭证", " int ErpCompany = $3.ErpCompany; //快递公司", " string ErpCode = $3.ErpCode; //快递运单号", "}" ] }, "查询退款申请": { "prefix": "ym-db-OrderRefund-Exist", "body": [ "bool $1 = db.OrderRefund.Any(m => m.Id == $2);", ] }, "查询某个退款申请,并取值": { "prefix": "ym-db-OrderRefund-FindByPrimaryKey", "body": [ "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int OrderId = $1.OrderId; //订单Id", " string ProductId = $1.ProductId; //商品Id", " int Reason = $1.Reason; //退款原因", " decimal Amount = $1.Amount; //退款金额", " string Contents = $1.Contents; //补充说明", " string Mobile = $1.Mobile; //申请人手机号", " int MerchantId = $1.MerchantId; //商家Id", " int GoodStatus = $1.GoodStatus; //货物状态", " string Photos = $1.Photos; //凭证", " int ErpCompany = $1.ErpCompany; //快递公司", " string ErpCode = $1.ErpCode; //快递运单号", "}" ] }, "查询某个退款申请,并赋值": { "prefix": "ym-db-OrderRefund-Update", "body": [ "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.OrderId = $3; //订单Id", " $1.ProductId = $4; //商品Id", " $1.Reason = $5; //退款原因", " $1.Amount = $6; //退款金额", " $1.Contents = $7; //补充说明", " $1.Mobile = $8; //申请人手机号", " $1.MerchantId = $9; //商家Id", " $1.GoodStatus = $10; //货物状态", " $1.Photos = $11; //凭证", " $1.ErpCompany = $12; //快递公司", " $1.ErpCode = $13; //快递运单号", "}" ] }, "获取退款申请数量": { "prefix": "ym-db-OrderRefund-FindAndCount", "body": [ "int $1 = db.OrderRefund.Count(m => $2);", ] }, "添加退款申请": { "prefix": "ym-db-OrderRefund-Create", "body": [ "db.OrderRefund.Add(new OrderRefund()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " OrderId = $2, //订单Id", " ProductId = $3, //商品Id", " Reason = $4, //退款原因", " Amount = $5, //退款金额", " Contents = $6, //补充说明", " Mobile = $7, //申请人手机号", " MerchantId = $8, //商家Id", " GoodStatus = $9, //货物状态", " Photos = $10, //凭证", " ErpCompany = $11, //快递公司", " ErpCode = $12, //快递运单号", "});" ] },"删除某个退款申请": { "prefix": "ym-db-OrderRefund-Delete", "body": [ "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OrderRefund.Remove($1);", "}" ] }, "查询退款原因列表": { "prefix": "ym-db-OrderRefundReason-Find", "body": [ "List $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderRefundReason $3 in $1)", "{", "}" ] }, "查询退款原因列表,并取值": { "prefix": "ym-db-OrderRefundReason-FindWithData", "body": [ "List $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (OrderRefundReason $3 in $1)", "{", " string Name = $3.Name; //名称", "}" ] }, "查询退款原因": { "prefix": "ym-db-OrderRefundReason-Exist", "body": [ "bool $1 = db.OrderRefundReason.Any(m => m.Id == $2);", ] }, "查询某个退款原因,并取值": { "prefix": "ym-db-OrderRefundReason-FindByPrimaryKey", "body": [ "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", "}" ] }, "查询某个退款原因,并赋值": { "prefix": "ym-db-OrderRefundReason-Update", "body": [ "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", "}" ] }, "获取退款原因数量": { "prefix": "ym-db-OrderRefundReason-FindAndCount", "body": [ "int $1 = db.OrderRefundReason.Count(m => $2);", ] }, "添加退款原因": { "prefix": "ym-db-OrderRefundReason-Create", "body": [ "db.OrderRefundReason.Add(new OrderRefundReason()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", "});" ] },"删除某个退款原因": { "prefix": "ym-db-OrderRefundReason-Delete", "body": [ "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.OrderRefundReason.Remove($1);", "}" ] }, "查询创客订单列表": { "prefix": "ym-db-Orders-Find", "body": [ "List $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Orders $3 in $1)", "{", "}" ] }, "查询创客订单列表,并取值": { "prefix": "ym-db-Orders-FindWithData", "body": [ "List $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Orders $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string OrderNo = $3.OrderNo; //订单号", " string RealName = $3.RealName; //姓名", " string Mobile = $3.Mobile; //手机号", " decimal TotalPrice = $3.TotalPrice; //总价", " string Areas = $3.Areas; //所在地区", " string Address = $3.Address; //详细地址", " string PostalCode = $3.PostalCode; //邮政编码", " int ErpMode = $3.ErpMode; //配送方式", " string UserMessage = $3.UserMessage; //买家留言", " int CouponId = $3.CouponId; //优惠券Id", " string ErpName = $3.ErpName; //物流名称", " string ErpCode = $3.ErpCode; //运单号", " DateTime PayDate = $3.PayDate; //付款时间", " DateTime SendDate = $3.SendDate; //发货时间", " DateTime ConfirmDate = $3.ConfirmDate; //确认时间", " int PayMode = $3.PayMode; //支付方式", " int MerchantId = $3.MerchantId; //商家Id", " decimal ErpPrice = $3.ErpPrice; //运费", " decimal Integral = $3.Integral; //积分抵扣", " string TradeNo = $3.TradeNo; //支付交易号", " decimal CouponMoney = $3.CouponMoney; //优惠金额", " DateTime AutoConfirmDate = $3.AutoConfirmDate; //自动确认时间", " decimal ActualPay = $3.ActualPay; //实付款", " int StoreId = $3.StoreId; //仓库", " int RefundStatus = $3.RefundStatus; //退款状态", " decimal RefundActAmount = $3.RefundActAmount; //实际退款金额", " decimal RefundFeeAmount = $3.RefundFeeAmount; //退款手续费", " int DeliveryType = $3.DeliveryType; //提货类型", " string ReqData = $3.ReqData; //请求数据", " string ResData = $3.ResData; //响应数据", " string ReturnMsg = $3.ReturnMsg; //返回信息", " string ReturnCode = $3.ReturnCode; //返回编码", " int SendStatus = $3.SendStatus; //发货状态", " int ProductId = $3.ProductId; //商品名称", " string StoreContact = $3.StoreContact; //仓库联系人", " int StoreType = $3.StoreType; //仓库类型", " int StoreUserId = $3.StoreUserId; //仓库归属创客", " int TopUserId = $3.TopUserId; //顶级创客", " int PayStatus = $3.PayStatus; //支付状态", " int BuyCount = $3.BuyCount; //下单数量", " string Remark = $3.Remark; //订单备注", " string SnNos = $3.SnNos; //SN编号", " string StoreContactMobile = $3.StoreContactMobile; //仓库联系人电话", " decimal ChannelAmount = $3.ChannelAmount; //渠道返回实际金额", " string RefundReason = $3.RefundReason; //退货原因", "}" ] }, "查询创客订单": { "prefix": "ym-db-Orders-Exist", "body": [ "bool $1 = db.Orders.Any(m => m.Id == $2);", ] }, "查询某个创客订单,并取值": { "prefix": "ym-db-Orders-FindByPrimaryKey", "body": [ "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string OrderNo = $1.OrderNo; //订单号", " string RealName = $1.RealName; //姓名", " string Mobile = $1.Mobile; //手机号", " decimal TotalPrice = $1.TotalPrice; //总价", " string Areas = $1.Areas; //所在地区", " string Address = $1.Address; //详细地址", " string PostalCode = $1.PostalCode; //邮政编码", " int ErpMode = $1.ErpMode; //配送方式", " string UserMessage = $1.UserMessage; //买家留言", " int CouponId = $1.CouponId; //优惠券Id", " string ErpName = $1.ErpName; //物流名称", " string ErpCode = $1.ErpCode; //运单号", " DateTime PayDate = $1.PayDate; //付款时间", " DateTime SendDate = $1.SendDate; //发货时间", " DateTime ConfirmDate = $1.ConfirmDate; //确认时间", " int PayMode = $1.PayMode; //支付方式", " int MerchantId = $1.MerchantId; //商家Id", " decimal ErpPrice = $1.ErpPrice; //运费", " decimal Integral = $1.Integral; //积分抵扣", " string TradeNo = $1.TradeNo; //支付交易号", " decimal CouponMoney = $1.CouponMoney; //优惠金额", " DateTime AutoConfirmDate = $1.AutoConfirmDate; //自动确认时间", " decimal ActualPay = $1.ActualPay; //实付款", " int StoreId = $1.StoreId; //仓库", " int RefundStatus = $1.RefundStatus; //退款状态", " decimal RefundActAmount = $1.RefundActAmount; //实际退款金额", " decimal RefundFeeAmount = $1.RefundFeeAmount; //退款手续费", " int DeliveryType = $1.DeliveryType; //提货类型", " string ReqData = $1.ReqData; //请求数据", " string ResData = $1.ResData; //响应数据", " string ReturnMsg = $1.ReturnMsg; //返回信息", " string ReturnCode = $1.ReturnCode; //返回编码", " int SendStatus = $1.SendStatus; //发货状态", " int ProductId = $1.ProductId; //商品名称", " string StoreContact = $1.StoreContact; //仓库联系人", " int StoreType = $1.StoreType; //仓库类型", " int StoreUserId = $1.StoreUserId; //仓库归属创客", " int TopUserId = $1.TopUserId; //顶级创客", " int PayStatus = $1.PayStatus; //支付状态", " int BuyCount = $1.BuyCount; //下单数量", " string Remark = $1.Remark; //订单备注", " string SnNos = $1.SnNos; //SN编号", " string StoreContactMobile = $1.StoreContactMobile; //仓库联系人电话", " decimal ChannelAmount = $1.ChannelAmount; //渠道返回实际金额", " string RefundReason = $1.RefundReason; //退货原因", "}" ] }, "查询某个创客订单,并赋值": { "prefix": "ym-db-Orders-Update", "body": [ "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.OrderNo = $3; //订单号", " $1.RealName = $4; //姓名", " $1.Mobile = $5; //手机号", " $1.TotalPrice = $6; //总价", " $1.Areas = $7; //所在地区", " $1.Address = $8; //详细地址", " $1.PostalCode = $9; //邮政编码", " $1.ErpMode = $10; //配送方式", " $1.UserMessage = $11; //买家留言", " $1.CouponId = $12; //优惠券Id", " $1.ErpName = $13; //物流名称", " $1.ErpCode = $14; //运单号", " $1.PayDate = $15; //付款时间", " $1.SendDate = $16; //发货时间", " $1.ConfirmDate = $17; //确认时间", " $1.PayMode = $18; //支付方式", " $1.MerchantId = $19; //商家Id", " $1.ErpPrice = $20; //运费", " $1.Integral = $21; //积分抵扣", " $1.TradeNo = $22; //支付交易号", " $1.CouponMoney = $23; //优惠金额", " $1.AutoConfirmDate = $24; //自动确认时间", " $1.ActualPay = $25; //实付款", " $1.StoreId = $26; //仓库", " $1.RefundStatus = $27; //退款状态", " $1.RefundActAmount = $28; //实际退款金额", " $1.RefundFeeAmount = $29; //退款手续费", " $1.DeliveryType = $30; //提货类型", " $1.ReqData = $31; //请求数据", " $1.ResData = $32; //响应数据", " $1.ReturnMsg = $33; //返回信息", " $1.ReturnCode = $34; //返回编码", " $1.SendStatus = $35; //发货状态", " $1.ProductId = $36; //商品名称", " $1.StoreContact = $37; //仓库联系人", " $1.StoreType = $38; //仓库类型", " $1.StoreUserId = $39; //仓库归属创客", " $1.TopUserId = $40; //顶级创客", " $1.PayStatus = $41; //支付状态", " $1.BuyCount = $42; //下单数量", " $1.Remark = $43; //订单备注", " $1.SnNos = $44; //SN编号", " $1.StoreContactMobile = $45; //仓库联系人电话", " $1.ChannelAmount = $46; //渠道返回实际金额", " $1.RefundReason = $47; //退货原因", "}" ] }, "获取创客订单数量": { "prefix": "ym-db-Orders-FindAndCount", "body": [ "int $1 = db.Orders.Count(m => $2);", ] }, "添加创客订单": { "prefix": "ym-db-Orders-Create", "body": [ "db.Orders.Add(new Orders()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " OrderNo = $2, //订单号", " RealName = $3, //姓名", " Mobile = $4, //手机号", " TotalPrice = $5, //总价", " Areas = $6, //所在地区", " Address = $7, //详细地址", " PostalCode = $8, //邮政编码", " ErpMode = $9, //配送方式", " UserMessage = $10, //买家留言", " CouponId = $11, //优惠券Id", " ErpName = $12, //物流名称", " ErpCode = $13, //运单号", " PayDate = $14, //付款时间", " SendDate = $15, //发货时间", " ConfirmDate = $16, //确认时间", " PayMode = $17, //支付方式", " MerchantId = $18, //商家Id", " ErpPrice = $19, //运费", " Integral = $20, //积分抵扣", " TradeNo = $21, //支付交易号", " CouponMoney = $22, //优惠金额", " AutoConfirmDate = $23, //自动确认时间", " ActualPay = $24, //实付款", " StoreId = $25, //仓库", " RefundStatus = $26, //退款状态", " RefundActAmount = $27, //实际退款金额", " RefundFeeAmount = $28, //退款手续费", " DeliveryType = $29, //提货类型", " ReqData = $30, //请求数据", " ResData = $31, //响应数据", " ReturnMsg = $32, //返回信息", " ReturnCode = $33, //返回编码", " SendStatus = $34, //发货状态", " ProductId = $35, //商品名称", " StoreContact = $36, //仓库联系人", " StoreType = $37, //仓库类型", " StoreUserId = $38, //仓库归属创客", " TopUserId = $39, //顶级创客", " PayStatus = $40, //支付状态", " BuyCount = $41, //下单数量", " Remark = $42, //订单备注", " SnNos = $43, //SN编号", " StoreContactMobile = $44, //仓库联系人电话", " ChannelAmount = $45, //渠道返回实际金额", " RefundReason = $46, //退货原因", "});" ] },"删除某个创客订单": { "prefix": "ym-db-Orders-Delete", "body": [ "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Orders.Remove($1);", "}" ] }, "查询单页内容列表": { "prefix": "ym-db-PageInfo-Find", "body": [ "List $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PageInfo $3 in $1)", "{", "}" ] }, "查询单页内容列表,并取值": { "prefix": "ym-db-PageInfo-FindWithData", "body": [ "List $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PageInfo $3 in $1)", "{", " string Title = $3.Title; //标题", " string ColId = $3.ColId; //分类", " string Contents = $3.Contents; //内容", "}" ] }, "查询单页内容": { "prefix": "ym-db-PageInfo-Exist", "body": [ "bool $1 = db.PageInfo.Any(m => m.Id == $2);", ] }, "查询某个单页内容,并取值": { "prefix": "ym-db-PageInfo-FindByPrimaryKey", "body": [ "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string ColId = $1.ColId; //分类", " string Contents = $1.Contents; //内容", "}" ] }, "查询某个单页内容,并赋值": { "prefix": "ym-db-PageInfo-Update", "body": [ "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.ColId = $3; //分类", " $1.Contents = $4; //内容", "}" ] }, "获取单页内容数量": { "prefix": "ym-db-PageInfo-FindAndCount", "body": [ "int $1 = db.PageInfo.Count(m => $2);", ] }, "添加单页内容": { "prefix": "ym-db-PageInfo-Create", "body": [ "db.PageInfo.Add(new PageInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " ColId = $2, //分类", " Contents = $3, //内容", "});" ] },"删除某个单页内容": { "prefix": "ym-db-PageInfo-Delete", "body": [ "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PageInfo.Remove($1);", "}" ] }, "查询页面模板更新信息列表": { "prefix": "ym-db-PageUpdateInfo-Find", "body": [ "List $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PageUpdateInfo $3 in $1)", "{", "}" ] }, "查询页面模板更新信息列表,并取值": { "prefix": "ym-db-PageUpdateInfo-FindWithData", "body": [ "List $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PageUpdateInfo $3 in $1)", "{", " int ModuleVersion = $3.ModuleVersion; //模板更新版本", " string ModulePath = $3.ModulePath; //模板路径", " string BgColor = $3.BgColor; //背景色", " string TextColor = $3.TextColor; //前景色", " string StatusBarStyle = $3.StatusBarStyle; //苹果状态栏", " ulong ShowTitle = $3.ShowTitle; //是否显示头部", " string Title = $3.Title; //顶部标题", " ulong IsScrollBar = $3.IsScrollBar; //是否显示滚动条", " ulong IsSkid = $3.IsSkid; //是否侧滑返回", " string LeftBtn1 = $3.LeftBtn1; //左侧按钮1", " string LeftBtn2 = $3.LeftBtn2; //左侧按钮2", " string RightBtn1 = $3.RightBtn1; //右侧按钮1", " string RightBtn2 = $3.RightBtn2; //右侧按钮2", " string LeftAction1 = $3.LeftAction1; //左侧按钮1点击事件", " string LeftAction2 = $3.LeftAction2; //左侧按钮2点击事件", " string RightAction1 = $3.RightAction1; //右侧按钮1点击事件", " string RightAction2 = $3.RightAction2; //右侧按钮2点击事件", " string GotoPages = $3.GotoPages; //下级页面", " ulong MustUpdate = $3.MustUpdate; //是否强制更新", "}" ] }, "查询页面模板更新信息": { "prefix": "ym-db-PageUpdateInfo-Exist", "body": [ "bool $1 = db.PageUpdateInfo.Any(m => m.Id == $2);", ] }, "查询某个页面模板更新信息,并取值": { "prefix": "ym-db-PageUpdateInfo-FindByPrimaryKey", "body": [ "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ModuleVersion = $1.ModuleVersion; //模板更新版本", " string ModulePath = $1.ModulePath; //模板路径", " string BgColor = $1.BgColor; //背景色", " string TextColor = $1.TextColor; //前景色", " string StatusBarStyle = $1.StatusBarStyle; //苹果状态栏", " ulong ShowTitle = $1.ShowTitle; //是否显示头部", " string Title = $1.Title; //顶部标题", " ulong IsScrollBar = $1.IsScrollBar; //是否显示滚动条", " ulong IsSkid = $1.IsSkid; //是否侧滑返回", " string LeftBtn1 = $1.LeftBtn1; //左侧按钮1", " string LeftBtn2 = $1.LeftBtn2; //左侧按钮2", " string RightBtn1 = $1.RightBtn1; //右侧按钮1", " string RightBtn2 = $1.RightBtn2; //右侧按钮2", " string LeftAction1 = $1.LeftAction1; //左侧按钮1点击事件", " string LeftAction2 = $1.LeftAction2; //左侧按钮2点击事件", " string RightAction1 = $1.RightAction1; //右侧按钮1点击事件", " string RightAction2 = $1.RightAction2; //右侧按钮2点击事件", " string GotoPages = $1.GotoPages; //下级页面", " ulong MustUpdate = $1.MustUpdate; //是否强制更新", "}" ] }, "查询某个页面模板更新信息,并赋值": { "prefix": "ym-db-PageUpdateInfo-Update", "body": [ "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ModuleVersion = $2; //模板更新版本", " $1.ModulePath = $3; //模板路径", " $1.BgColor = $4; //背景色", " $1.TextColor = $5; //前景色", " $1.StatusBarStyle = $6; //苹果状态栏", " $1.ShowTitle = $7; //是否显示头部", " $1.Title = $8; //顶部标题", " $1.IsScrollBar = $9; //是否显示滚动条", " $1.IsSkid = $10; //是否侧滑返回", " $1.LeftBtn1 = $11; //左侧按钮1", " $1.LeftBtn2 = $12; //左侧按钮2", " $1.RightBtn1 = $13; //右侧按钮1", " $1.RightBtn2 = $14; //右侧按钮2", " $1.LeftAction1 = $15; //左侧按钮1点击事件", " $1.LeftAction2 = $16; //左侧按钮2点击事件", " $1.RightAction1 = $17; //右侧按钮1点击事件", " $1.RightAction2 = $18; //右侧按钮2点击事件", " $1.GotoPages = $19; //下级页面", " $1.MustUpdate = $20; //是否强制更新", "}" ] }, "获取页面模板更新信息数量": { "prefix": "ym-db-PageUpdateInfo-FindAndCount", "body": [ "int $1 = db.PageUpdateInfo.Count(m => $2);", ] }, "添加页面模板更新信息": { "prefix": "ym-db-PageUpdateInfo-Create", "body": [ "db.PageUpdateInfo.Add(new PageUpdateInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ModuleVersion = $1, //模板更新版本", " ModulePath = $2, //模板路径", " BgColor = $3, //背景色", " TextColor = $4, //前景色", " StatusBarStyle = $5, //苹果状态栏", " ShowTitle = $6, //是否显示头部", " Title = $7, //顶部标题", " IsScrollBar = $8, //是否显示滚动条", " IsSkid = $9, //是否侧滑返回", " LeftBtn1 = $10, //左侧按钮1", " LeftBtn2 = $11, //左侧按钮2", " RightBtn1 = $12, //右侧按钮1", " RightBtn2 = $13, //右侧按钮2", " LeftAction1 = $14, //左侧按钮1点击事件", " LeftAction2 = $15, //左侧按钮2点击事件", " RightAction1 = $16, //右侧按钮1点击事件", " RightAction2 = $17, //右侧按钮2点击事件", " GotoPages = $18, //下级页面", " MustUpdate = $19, //是否强制更新", "});" ] },"删除某个页面模板更新信息": { "prefix": "ym-db-PageUpdateInfo-Delete", "body": [ "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PageUpdateInfo.Remove($1);", "}" ] }, "查询机具库列表": { "prefix": "ym-db-PosMachines-Find", "body": [ "List $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PosMachines $3 in $1)", "{", "}" ] }, "查询机具库列表,并取值": { "prefix": "ym-db-PosMachines-FindWithData", "body": [ "List $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PosMachines $3 in $1)", "{", " int BindingState = $3.BindingState; //绑定状态", " int ActivationState = $3.ActivationState; //激活状态", " string Detail = $3.Detail; //机具详情", " DateTime ActivationTime = $3.ActivationTime; //激活时间", " DateTime BindingTime = $3.BindingTime; //绑定时间", " int UserId = $3.UserId; //所属创客", " ulong IsPurchase = $3.IsPurchase; //是否卖出", " string PosSn = $3.PosSn; //SN编号", " DateTime TransferTime = $3.TransferTime; //划拨时间", " int BuyUserId = $3.BuyUserId; //购买人", " string UserNav = $3.UserNav; //所属创客上级集合", " int BrandId = $3.BrandId; //产品类型", " decimal CreditTrade = $3.CreditTrade; //贷记卡交易额", " ulong IsVip = $3.IsVip; //是否VIP", " string PrizeParams = $3.PrizeParams; //附加参数", " int RecycBackCount = $3.RecycBackCount; //循环返券张数", " int StoreId = $3.StoreId; //所在仓库", " decimal DebitCardTrade = $3.DebitCardTrade; //借记卡交易额", " decimal ScanQrTrade = $3.ScanQrTrade; //扫码交易额", " string ActivityList = $3.ActivityList; //参加活动", " int BindMerchantId = $3.BindMerchantId; //绑定商户", " int PosSnType = $3.PosSnType; //机具类型", " string DeviceType = $3.DeviceType; //设备类型", " string BatchNo = $3.BatchNo; //业务批次号", " string DeviceName = $3.DeviceName; //设备厂商", " string DeviceKind = $3.DeviceKind; //设备型号", " DateTime RecycEndDate = $3.RecycEndDate; //循环截止时间", " int OrderId = $3.OrderId; //订单Id", " int SourceStoreId = $3.SourceStoreId; //源仓库", "}" ] }, "查询机具库": { "prefix": "ym-db-PosMachines-Exist", "body": [ "bool $1 = db.PosMachines.Any(m => m.Id == $2);", ] }, "查询某个机具库,并取值": { "prefix": "ym-db-PosMachines-FindByPrimaryKey", "body": [ "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int BindingState = $1.BindingState; //绑定状态", " int ActivationState = $1.ActivationState; //激活状态", " string Detail = $1.Detail; //机具详情", " DateTime ActivationTime = $1.ActivationTime; //激活时间", " DateTime BindingTime = $1.BindingTime; //绑定时间", " int UserId = $1.UserId; //所属创客", " ulong IsPurchase = $1.IsPurchase; //是否卖出", " string PosSn = $1.PosSn; //SN编号", " DateTime TransferTime = $1.TransferTime; //划拨时间", " int BuyUserId = $1.BuyUserId; //购买人", " string UserNav = $1.UserNav; //所属创客上级集合", " int BrandId = $1.BrandId; //产品类型", " decimal CreditTrade = $1.CreditTrade; //贷记卡交易额", " ulong IsVip = $1.IsVip; //是否VIP", " string PrizeParams = $1.PrizeParams; //附加参数", " int RecycBackCount = $1.RecycBackCount; //循环返券张数", " int StoreId = $1.StoreId; //所在仓库", " decimal DebitCardTrade = $1.DebitCardTrade; //借记卡交易额", " decimal ScanQrTrade = $1.ScanQrTrade; //扫码交易额", " string ActivityList = $1.ActivityList; //参加活动", " int BindMerchantId = $1.BindMerchantId; //绑定商户", " int PosSnType = $1.PosSnType; //机具类型", " string DeviceType = $1.DeviceType; //设备类型", " string BatchNo = $1.BatchNo; //业务批次号", " string DeviceName = $1.DeviceName; //设备厂商", " string DeviceKind = $1.DeviceKind; //设备型号", " DateTime RecycEndDate = $1.RecycEndDate; //循环截止时间", " int OrderId = $1.OrderId; //订单Id", " int SourceStoreId = $1.SourceStoreId; //源仓库", "}" ] }, "查询某个机具库,并赋值": { "prefix": "ym-db-PosMachines-Update", "body": [ "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.BindingState = $2; //绑定状态", " $1.ActivationState = $3; //激活状态", " $1.Detail = $4; //机具详情", " $1.ActivationTime = $5; //激活时间", " $1.BindingTime = $6; //绑定时间", " $1.UserId = $7; //所属创客", " $1.IsPurchase = $8; //是否卖出", " $1.PosSn = $9; //SN编号", " $1.TransferTime = $10; //划拨时间", " $1.BuyUserId = $11; //购买人", " $1.UserNav = $12; //所属创客上级集合", " $1.BrandId = $13; //产品类型", " $1.CreditTrade = $14; //贷记卡交易额", " $1.IsVip = $15; //是否VIP", " $1.PrizeParams = $16; //附加参数", " $1.RecycBackCount = $17; //循环返券张数", " $1.StoreId = $18; //所在仓库", " $1.DebitCardTrade = $19; //借记卡交易额", " $1.ScanQrTrade = $20; //扫码交易额", " $1.ActivityList = $21; //参加活动", " $1.BindMerchantId = $22; //绑定商户", " $1.PosSnType = $23; //机具类型", " $1.DeviceType = $24; //设备类型", " $1.BatchNo = $25; //业务批次号", " $1.DeviceName = $26; //设备厂商", " $1.DeviceKind = $27; //设备型号", " $1.RecycEndDate = $28; //循环截止时间", " $1.OrderId = $29; //订单Id", " $1.SourceStoreId = $30; //源仓库", "}" ] }, "获取机具库数量": { "prefix": "ym-db-PosMachines-FindAndCount", "body": [ "int $1 = db.PosMachines.Count(m => $2);", ] }, "添加机具库": { "prefix": "ym-db-PosMachines-Create", "body": [ "db.PosMachines.Add(new PosMachines()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " BindingState = $1, //绑定状态", " ActivationState = $2, //激活状态", " Detail = $3, //机具详情", " ActivationTime = $4, //激活时间", " BindingTime = $5, //绑定时间", " UserId = $6, //所属创客", " IsPurchase = $7, //是否卖出", " PosSn = $8, //SN编号", " TransferTime = $9, //划拨时间", " BuyUserId = $10, //购买人", " UserNav = $11, //所属创客上级集合", " BrandId = $12, //产品类型", " CreditTrade = $13, //贷记卡交易额", " IsVip = $14, //是否VIP", " PrizeParams = $15, //附加参数", " RecycBackCount = $16, //循环返券张数", " StoreId = $17, //所在仓库", " DebitCardTrade = $18, //借记卡交易额", " ScanQrTrade = $19, //扫码交易额", " ActivityList = $20, //参加活动", " BindMerchantId = $21, //绑定商户", " PosSnType = $22, //机具类型", " DeviceType = $23, //设备类型", " BatchNo = $24, //业务批次号", " DeviceName = $25, //设备厂商", " DeviceKind = $26, //设备型号", " RecycEndDate = $27, //循环截止时间", " OrderId = $28, //订单Id", " SourceStoreId = $29, //源仓库", "});" ] },"删除某个机具库": { "prefix": "ym-db-PosMachines-Delete", "body": [ "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PosMachines.Remove($1);", "}" ] }, "查询商品评价列表": { "prefix": "ym-db-ProductComment-Find", "body": [ "List $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductComment $3 in $1)", "{", "}" ] }, "查询商品评价列表,并取值": { "prefix": "ym-db-ProductComment-FindWithData", "body": [ "List $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductComment $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int ProductId = $3.ProductId; //商品Id", " int OrderId = $3.OrderId; //订单Id", " string Contents = $3.Contents; //评论内容", " int StarNum = $3.StarNum; //商品评分", " int AgreeCount = $3.AgreeCount; //点赞数", " int BackCount = $3.BackCount; //回复数", " int MerchantId = $3.MerchantId; //商家Id", " ulong HasPhoto = $3.HasPhoto; //是否有图", " string PhotoList = $3.PhotoList; //图集", " int ProductNormId = $3.ProductNormId; //商品规格Id", "}" ] }, "查询商品评价": { "prefix": "ym-db-ProductComment-Exist", "body": [ "bool $1 = db.ProductComment.Any(m => m.Id == $2);", ] }, "查询某个商品评价,并取值": { "prefix": "ym-db-ProductComment-FindByPrimaryKey", "body": [ "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int ProductId = $1.ProductId; //商品Id", " int OrderId = $1.OrderId; //订单Id", " string Contents = $1.Contents; //评论内容", " int StarNum = $1.StarNum; //商品评分", " int AgreeCount = $1.AgreeCount; //点赞数", " int BackCount = $1.BackCount; //回复数", " int MerchantId = $1.MerchantId; //商家Id", " ulong HasPhoto = $1.HasPhoto; //是否有图", " string PhotoList = $1.PhotoList; //图集", " int ProductNormId = $1.ProductNormId; //商品规格Id", "}" ] }, "查询某个商品评价,并赋值": { "prefix": "ym-db-ProductComment-Update", "body": [ "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.ProductId = $3; //商品Id", " $1.OrderId = $4; //订单Id", " $1.Contents = $5; //评论内容", " $1.StarNum = $6; //商品评分", " $1.AgreeCount = $7; //点赞数", " $1.BackCount = $8; //回复数", " $1.MerchantId = $9; //商家Id", " $1.HasPhoto = $10; //是否有图", " $1.PhotoList = $11; //图集", " $1.ProductNormId = $12; //商品规格Id", "}" ] }, "获取商品评价数量": { "prefix": "ym-db-ProductComment-FindAndCount", "body": [ "int $1 = db.ProductComment.Count(m => $2);", ] }, "添加商品评价": { "prefix": "ym-db-ProductComment-Create", "body": [ "db.ProductComment.Add(new ProductComment()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " ProductId = $2, //商品Id", " OrderId = $3, //订单Id", " Contents = $4, //评论内容", " StarNum = $5, //商品评分", " AgreeCount = $6, //点赞数", " BackCount = $7, //回复数", " MerchantId = $8, //商家Id", " HasPhoto = $9, //是否有图", " PhotoList = $10, //图集", " ProductNormId = $11, //商品规格Id", "});" ] },"删除某个商品评价": { "prefix": "ym-db-ProductComment-Delete", "body": [ "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductComment.Remove($1);", "}" ] }, "查询商品评价点赞记录列表": { "prefix": "ym-db-ProductCommentAgree-Find", "body": [ "List $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductCommentAgree $3 in $1)", "{", "}" ] }, "查询商品评价点赞记录列表,并取值": { "prefix": "ym-db-ProductCommentAgree-FindWithData", "body": [ "List $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductCommentAgree $3 in $1)", "{", " int Id = $3.Id; //Id", " int UserId = $3.UserId; //创客Id", " int ProductCommentId = $3.ProductCommentId; //商品评价Id", "}" ] }, "查询商品评价点赞记录": { "prefix": "ym-db-ProductCommentAgree-Exist", "body": [ "bool $1 = db.ProductCommentAgree.Any(m => m.Id == $2);", ] }, "查询某个商品评价点赞记录,并取值": { "prefix": "ym-db-ProductCommentAgree-FindByPrimaryKey", "body": [ "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int Id = $1.Id; //Id", " int UserId = $1.UserId; //创客Id", " int ProductCommentId = $1.ProductCommentId; //商品评价Id", "}" ] }, "查询某个商品评价点赞记录,并赋值": { "prefix": "ym-db-ProductCommentAgree-Update", "body": [ "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Id = $2; //Id", " $1.UserId = $3; //创客Id", " $1.ProductCommentId = $4; //商品评价Id", "}" ] }, "获取商品评价点赞记录数量": { "prefix": "ym-db-ProductCommentAgree-FindAndCount", "body": [ "int $1 = db.ProductCommentAgree.Count(m => $2);", ] }, "添加商品评价点赞记录": { "prefix": "ym-db-ProductCommentAgree-Create", "body": [ "db.ProductCommentAgree.Add(new ProductCommentAgree()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Id = $1, //Id", " UserId = $2, //创客Id", " ProductCommentId = $3, //商品评价Id", "});" ] },"删除某个商品评价点赞记录": { "prefix": "ym-db-ProductCommentAgree-Delete", "body": [ "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductCommentAgree.Remove($1);", "}" ] }, "查询运费按区域列表": { "prefix": "ym-db-ProductFareAreas-Find", "body": [ "List $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductFareAreas $3 in $1)", "{", "}" ] }, "查询运费按区域列表,并取值": { "prefix": "ym-db-ProductFareAreas-FindWithData", "body": [ "List $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductFareAreas $3 in $1)", "{", " int MerchantId = $3.MerchantId; //商家Id", " int TemplateId = $3.TemplateId; //模板Id", " string Areas = $3.Areas; //地区", " decimal FirstAmount = $3.FirstAmount; //首件数量", " decimal FirstFee = $3.FirstFee; //首件费用", " decimal MoreAmount = $3.MoreAmount; //续件数量", " decimal MoreFee = $3.MoreFee; //续件费用", "}" ] }, "查询运费按区域": { "prefix": "ym-db-ProductFareAreas-Exist", "body": [ "bool $1 = db.ProductFareAreas.Any(m => m.Id == $2);", ] }, "查询某个运费按区域,并取值": { "prefix": "ym-db-ProductFareAreas-FindByPrimaryKey", "body": [ "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MerchantId = $1.MerchantId; //商家Id", " int TemplateId = $1.TemplateId; //模板Id", " string Areas = $1.Areas; //地区", " decimal FirstAmount = $1.FirstAmount; //首件数量", " decimal FirstFee = $1.FirstFee; //首件费用", " decimal MoreAmount = $1.MoreAmount; //续件数量", " decimal MoreFee = $1.MoreFee; //续件费用", "}" ] }, "查询某个运费按区域,并赋值": { "prefix": "ym-db-ProductFareAreas-Update", "body": [ "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MerchantId = $2; //商家Id", " $1.TemplateId = $3; //模板Id", " $1.Areas = $4; //地区", " $1.FirstAmount = $5; //首件数量", " $1.FirstFee = $6; //首件费用", " $1.MoreAmount = $7; //续件数量", " $1.MoreFee = $8; //续件费用", "}" ] }, "获取运费按区域数量": { "prefix": "ym-db-ProductFareAreas-FindAndCount", "body": [ "int $1 = db.ProductFareAreas.Count(m => $2);", ] }, "添加运费按区域": { "prefix": "ym-db-ProductFareAreas-Create", "body": [ "db.ProductFareAreas.Add(new ProductFareAreas()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MerchantId = $1, //商家Id", " TemplateId = $2, //模板Id", " Areas = $3, //地区", " FirstAmount = $4, //首件数量", " FirstFee = $5, //首件费用", " MoreAmount = $6, //续件数量", " MoreFee = $7, //续件费用", "});" ] },"删除某个运费按区域": { "prefix": "ym-db-ProductFareAreas-Delete", "body": [ "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductFareAreas.Remove($1);", "}" ] }, "查询商品运费模板列表": { "prefix": "ym-db-ProductFareTemp-Find", "body": [ "List $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductFareTemp $3 in $1)", "{", "}" ] }, "查询商品运费模板列表,并取值": { "prefix": "ym-db-ProductFareTemp-FindWithData", "body": [ "List $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductFareTemp $3 in $1)", "{", " string Name = $3.Name; //名称", " string SendAreas = $3.SendAreas; //发货地区", " string SendAddress = $3.SendAddress; //发货地址", " int SendDate = $3.SendDate; //发货时间", " ulong IsFree = $3.IsFree; //是否包邮", " int MeterMode = $3.MeterMode; //计价方式", " int TransportMode = $3.TransportMode; //运送方式", " int MerchantId = $3.MerchantId; //商家Id", " decimal FirstAmount = $3.FirstAmount; //首件数量", " decimal FirstFee = $3.FirstFee; //首件费用", " decimal MoreAmount = $3.MoreAmount; //续件数量", " decimal MoreFee = $3.MoreFee; //续件费用", "}" ] }, "查询商品运费模板": { "prefix": "ym-db-ProductFareTemp-Exist", "body": [ "bool $1 = db.ProductFareTemp.Any(m => m.Id == $2);", ] }, "查询某个商品运费模板,并取值": { "prefix": "ym-db-ProductFareTemp-FindByPrimaryKey", "body": [ "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string SendAreas = $1.SendAreas; //发货地区", " string SendAddress = $1.SendAddress; //发货地址", " int SendDate = $1.SendDate; //发货时间", " ulong IsFree = $1.IsFree; //是否包邮", " int MeterMode = $1.MeterMode; //计价方式", " int TransportMode = $1.TransportMode; //运送方式", " int MerchantId = $1.MerchantId; //商家Id", " decimal FirstAmount = $1.FirstAmount; //首件数量", " decimal FirstFee = $1.FirstFee; //首件费用", " decimal MoreAmount = $1.MoreAmount; //续件数量", " decimal MoreFee = $1.MoreFee; //续件费用", "}" ] }, "查询某个商品运费模板,并赋值": { "prefix": "ym-db-ProductFareTemp-Update", "body": [ "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.SendAreas = $3; //发货地区", " $1.SendAddress = $4; //发货地址", " $1.SendDate = $5; //发货时间", " $1.IsFree = $6; //是否包邮", " $1.MeterMode = $7; //计价方式", " $1.TransportMode = $8; //运送方式", " $1.MerchantId = $9; //商家Id", " $1.FirstAmount = $10; //首件数量", " $1.FirstFee = $11; //首件费用", " $1.MoreAmount = $12; //续件数量", " $1.MoreFee = $13; //续件费用", "}" ] }, "获取商品运费模板数量": { "prefix": "ym-db-ProductFareTemp-FindAndCount", "body": [ "int $1 = db.ProductFareTemp.Count(m => $2);", ] }, "添加商品运费模板": { "prefix": "ym-db-ProductFareTemp-Create", "body": [ "db.ProductFareTemp.Add(new ProductFareTemp()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " SendAreas = $2, //发货地区", " SendAddress = $3, //发货地址", " SendDate = $4, //发货时间", " IsFree = $5, //是否包邮", " MeterMode = $6, //计价方式", " TransportMode = $7, //运送方式", " MerchantId = $8, //商家Id", " FirstAmount = $9, //首件数量", " FirstFee = $10, //首件费用", " MoreAmount = $11, //续件数量", " MoreFee = $12, //续件费用", "});" ] },"删除某个商品运费模板": { "prefix": "ym-db-ProductFareTemp-Delete", "body": [ "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductFareTemp.Remove($1);", "}" ] }, "查询商品关键词库列表": { "prefix": "ym-db-ProductKeys-Find", "body": [ "List $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductKeys $3 in $1)", "{", "}" ] }, "查询商品关键词库列表,并取值": { "prefix": "ym-db-ProductKeys-FindWithData", "body": [ "List $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductKeys $3 in $1)", "{", " string Name = $3.Name; //关键词", " string ProductIds = $3.ProductIds; //商品Id集合", " string ColIds = $3.ColIds; //分类Id集合", "}" ] }, "查询商品关键词库": { "prefix": "ym-db-ProductKeys-Exist", "body": [ "bool $1 = db.ProductKeys.Any(m => m.Name == $2);", ] }, "查询某个商品关键词库,并取值": { "prefix": "ym-db-ProductKeys-FindByPrimaryKey", "body": [ "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //关键词", " string ProductIds = $1.ProductIds; //商品Id集合", " string ColIds = $1.ColIds; //分类Id集合", "}" ] }, "查询某个商品关键词库,并赋值": { "prefix": "ym-db-ProductKeys-Update", "body": [ "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " $1.Name = $2; //关键词", " $1.ProductIds = $3; //商品Id集合", " $1.ColIds = $4; //分类Id集合", "}" ] }, "获取商品关键词库数量": { "prefix": "ym-db-ProductKeys-FindAndCount", "body": [ "int $1 = db.ProductKeys.Count(m => $2);", ] }, "添加商品关键词库": { "prefix": "ym-db-ProductKeys-Create", "body": [ "db.ProductKeys.Add(new ProductKeys()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //关键词", " ProductIds = $2, //商品Id集合", " ColIds = $3, //分类Id集合", "});" ] },"删除某个商品关键词库": { "prefix": "ym-db-ProductKeys-Delete", "body": [ "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " db.ProductKeys.Remove($1);", "}" ] }, "查询商品规格列表": { "prefix": "ym-db-ProductNorm-Find", "body": [ "List $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNorm $3 in $1)", "{", "}" ] }, "查询商品规格列表,并取值": { "prefix": "ym-db-ProductNorm-FindWithData", "body": [ "List $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNorm $3 in $1)", "{", " string ColName = $3.ColName; //名称", " string IdList = $3.IdList; //Id集合", " decimal Price = $3.Price; //价格", " decimal Integral = $3.Integral; //抵扣积分", " decimal UserPrice = $3.UserPrice; //创客价", " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分", " int ProductId = $3.ProductId; //商品Id", " int Stock = $3.Stock; //库存", " int BuyCount = $3.BuyCount; //已购买数", " decimal CostPrice = $3.CostPrice; //成本价", " string Code = $3.Code; //编码", " int MerchantId = $3.MerchantId; //商家Id", " int LimitCount = $3.LimitCount; //限购数量", "}" ] }, "查询商品规格": { "prefix": "ym-db-ProductNorm-Exist", "body": [ "bool $1 = db.ProductNorm.Any(m => m.Id == $2);", ] }, "查询某个商品规格,并取值": { "prefix": "ym-db-ProductNorm-FindByPrimaryKey", "body": [ "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColName = $1.ColName; //名称", " string IdList = $1.IdList; //Id集合", " decimal Price = $1.Price; //价格", " decimal Integral = $1.Integral; //抵扣积分", " decimal UserPrice = $1.UserPrice; //创客价", " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分", " int ProductId = $1.ProductId; //商品Id", " int Stock = $1.Stock; //库存", " int BuyCount = $1.BuyCount; //已购买数", " decimal CostPrice = $1.CostPrice; //成本价", " string Code = $1.Code; //编码", " int MerchantId = $1.MerchantId; //商家Id", " int LimitCount = $1.LimitCount; //限购数量", "}" ] }, "查询某个商品规格,并赋值": { "prefix": "ym-db-ProductNorm-Update", "body": [ "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColName = $2; //名称", " $1.IdList = $3; //Id集合", " $1.Price = $4; //价格", " $1.Integral = $5; //抵扣积分", " $1.UserPrice = $6; //创客价", " $1.UserIntegral = $7; //创客抵扣积分", " $1.ProductId = $8; //商品Id", " $1.Stock = $9; //库存", " $1.BuyCount = $10; //已购买数", " $1.CostPrice = $11; //成本价", " $1.Code = $12; //编码", " $1.MerchantId = $13; //商家Id", " $1.LimitCount = $14; //限购数量", "}" ] }, "获取商品规格数量": { "prefix": "ym-db-ProductNorm-FindAndCount", "body": [ "int $1 = db.ProductNorm.Count(m => $2);", ] }, "添加商品规格": { "prefix": "ym-db-ProductNorm-Create", "body": [ "db.ProductNorm.Add(new ProductNorm()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColName = $1, //名称", " IdList = $2, //Id集合", " Price = $3, //价格", " Integral = $4, //抵扣积分", " UserPrice = $5, //创客价", " UserIntegral = $6, //创客抵扣积分", " ProductId = $7, //商品Id", " Stock = $8, //库存", " BuyCount = $9, //已购买数", " CostPrice = $10, //成本价", " Code = $11, //编码", " MerchantId = $12, //商家Id", " LimitCount = $13, //限购数量", "});" ] },"删除某个商品规格": { "prefix": "ym-db-ProductNorm-Delete", "body": [ "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductNorm.Remove($1);", "}" ] }, "查询商品规格项目列表": { "prefix": "ym-db-ProductNormItem-Find", "body": [ "List $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNormItem $3 in $1)", "{", "}" ] }, "查询商品规格项目列表,并取值": { "prefix": "ym-db-ProductNormItem-FindWithData", "body": [ "List $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNormItem $3 in $1)", "{", " string ColName = $3.ColName; //名称", " int ParentId = $3.ParentId; //父级Id", " int MerchantId = $3.MerchantId; //商家Id", " int ProductId = $3.ProductId; //商品Id", "}" ] }, "查询商品规格项目": { "prefix": "ym-db-ProductNormItem-Exist", "body": [ "bool $1 = db.ProductNormItem.Any(m => m.Id == $2);", ] }, "查询某个商品规格项目,并取值": { "prefix": "ym-db-ProductNormItem-FindByPrimaryKey", "body": [ "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ColName = $1.ColName; //名称", " int ParentId = $1.ParentId; //父级Id", " int MerchantId = $1.MerchantId; //商家Id", " int ProductId = $1.ProductId; //商品Id", "}" ] }, "查询某个商品规格项目,并赋值": { "prefix": "ym-db-ProductNormItem-Update", "body": [ "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ColName = $2; //名称", " $1.ParentId = $3; //父级Id", " $1.MerchantId = $4; //商家Id", " $1.ProductId = $5; //商品Id", "}" ] }, "获取商品规格项目数量": { "prefix": "ym-db-ProductNormItem-FindAndCount", "body": [ "int $1 = db.ProductNormItem.Count(m => $2);", ] }, "添加商品规格项目": { "prefix": "ym-db-ProductNormItem-Create", "body": [ "db.ProductNormItem.Add(new ProductNormItem()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ColName = $1, //名称", " ParentId = $2, //父级Id", " MerchantId = $3, //商家Id", " ProductId = $4, //商品Id", "});" ] },"删除某个商品规格项目": { "prefix": "ym-db-ProductNormItem-Delete", "body": [ "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductNormItem.Remove($1);", "}" ] }, "查询商品规格模板列表": { "prefix": "ym-db-ProductNormTemp-Find", "body": [ "List $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNormTemp $3 in $1)", "{", "}" ] }, "查询商品规格模板列表,并取值": { "prefix": "ym-db-ProductNormTemp-FindWithData", "body": [ "List $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProductNormTemp $3 in $1)", "{", " string Name = $3.Name; //名称", " int MerchantId = $3.MerchantId; //商家Id", " string TempJsonData = $3.TempJsonData; //模板内容", "}" ] }, "查询商品规格模板": { "prefix": "ym-db-ProductNormTemp-Exist", "body": [ "bool $1 = db.ProductNormTemp.Any(m => m.Id == $2);", ] }, "查询某个商品规格模板,并取值": { "prefix": "ym-db-ProductNormTemp-FindByPrimaryKey", "body": [ "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int MerchantId = $1.MerchantId; //商家Id", " string TempJsonData = $1.TempJsonData; //模板内容", "}" ] }, "查询某个商品规格模板,并赋值": { "prefix": "ym-db-ProductNormTemp-Update", "body": [ "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.MerchantId = $3; //商家Id", " $1.TempJsonData = $4; //模板内容", "}" ] }, "获取商品规格模板数量": { "prefix": "ym-db-ProductNormTemp-FindAndCount", "body": [ "int $1 = db.ProductNormTemp.Count(m => $2);", ] }, "添加商品规格模板": { "prefix": "ym-db-ProductNormTemp-Create", "body": [ "db.ProductNormTemp.Add(new ProductNormTemp()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " MerchantId = $2, //商家Id", " TempJsonData = $3, //模板内容", "});" ] },"删除某个商品规格模板": { "prefix": "ym-db-ProductNormTemp-Delete", "body": [ "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProductNormTemp.Remove($1);", "}" ] }, "查询商品信息列表": { "prefix": "ym-db-Products-Find", "body": [ "List $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Products $3 in $1)", "{", "}" ] }, "查询商品信息列表,并取值": { "prefix": "ym-db-Products-FindWithData", "body": [ "List $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Products $3 in $1)", "{", " string ProductName = $3.ProductName; //商品名称", " string Details = $3.Details; //简介", " string Contents = $3.Contents; //内容", " int Stock = $3.Stock; //库存", " int BuyCount = $3.BuyCount; //已购买数", " string ListPicPath = $3.ListPicPath; //列表图片", " string DetailPicPath = $3.DetailPicPath; //图集", " string ColId = $3.ColId; //分类", " int CommentCount = $3.CommentCount; //评价数", " decimal GoodPercent = $3.GoodPercent; //好评率", " ulong IsRecommend = $3.IsRecommend; //推荐", " int MerchantId = $3.MerchantId; //商家Id", " DateTime StartDate = $3.StartDate; //开始时间", " DateTime EndDate = $3.EndDate; //结束时间", " ulong IsLimit = $3.IsLimit; //限时抢购", " decimal SourcePrice = $3.SourcePrice; //原价", " decimal Price = $3.Price; //价格", " decimal Integral = $3.Integral; //抵扣积分", " decimal MemberPrice = $3.MemberPrice; //创客价", " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分", " DateTime PublishDate = $3.PublishDate; //上架时间", " decimal CostPrice = $3.CostPrice; //成本价", " int FareTemplateId = $3.FareTemplateId; //运费模板Id", " int LimitCount = $3.LimitCount; //限购数量", " string KeyWord = $3.KeyWord; //关键词", " int MerchantClassId = $3.MerchantClassId; //商家分类", " string NormIds = $3.NormIds; //商品规格Id", " string ShareDetail = $3.ShareDetail; //分享描述", " string LinkUrl = $3.LinkUrl; //外部链接", " string NormJson = $3.NormJson; //规格json", " string MerchantColId = $3.MerchantColId; //商家商品分类", " int MonthSale = $3.MonthSale; //月销量", " ulong IsRecommend2 = $3.IsRecommend2; //推荐2", " ulong IsRecommend3 = $3.IsRecommend3; //推荐3", " string Title = $3.Title; //宣传标语", " string Title2 = $3.Title2; //宣传标语2", " string ProductCode = $3.ProductCode; //商品编号", "}" ] }, "查询商品信息": { "prefix": "ym-db-Products-Exist", "body": [ "bool $1 = db.Products.Any(m => m.Id == $2);", ] }, "查询某个商品信息,并取值": { "prefix": "ym-db-Products-FindByPrimaryKey", "body": [ "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ProductName = $1.ProductName; //商品名称", " string Details = $1.Details; //简介", " string Contents = $1.Contents; //内容", " int Stock = $1.Stock; //库存", " int BuyCount = $1.BuyCount; //已购买数", " string ListPicPath = $1.ListPicPath; //列表图片", " string DetailPicPath = $1.DetailPicPath; //图集", " string ColId = $1.ColId; //分类", " int CommentCount = $1.CommentCount; //评价数", " decimal GoodPercent = $1.GoodPercent; //好评率", " ulong IsRecommend = $1.IsRecommend; //推荐", " int MerchantId = $1.MerchantId; //商家Id", " DateTime StartDate = $1.StartDate; //开始时间", " DateTime EndDate = $1.EndDate; //结束时间", " ulong IsLimit = $1.IsLimit; //限时抢购", " decimal SourcePrice = $1.SourcePrice; //原价", " decimal Price = $1.Price; //价格", " decimal Integral = $1.Integral; //抵扣积分", " decimal MemberPrice = $1.MemberPrice; //创客价", " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分", " DateTime PublishDate = $1.PublishDate; //上架时间", " decimal CostPrice = $1.CostPrice; //成本价", " int FareTemplateId = $1.FareTemplateId; //运费模板Id", " int LimitCount = $1.LimitCount; //限购数量", " string KeyWord = $1.KeyWord; //关键词", " int MerchantClassId = $1.MerchantClassId; //商家分类", " string NormIds = $1.NormIds; //商品规格Id", " string ShareDetail = $1.ShareDetail; //分享描述", " string LinkUrl = $1.LinkUrl; //外部链接", " string NormJson = $1.NormJson; //规格json", " string MerchantColId = $1.MerchantColId; //商家商品分类", " int MonthSale = $1.MonthSale; //月销量", " ulong IsRecommend2 = $1.IsRecommend2; //推荐2", " ulong IsRecommend3 = $1.IsRecommend3; //推荐3", " string Title = $1.Title; //宣传标语", " string Title2 = $1.Title2; //宣传标语2", " string ProductCode = $1.ProductCode; //商品编号", "}" ] }, "查询某个商品信息,并赋值": { "prefix": "ym-db-Products-Update", "body": [ "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ProductName = $2; //商品名称", " $1.Details = $3; //简介", " $1.Contents = $4; //内容", " $1.Stock = $5; //库存", " $1.BuyCount = $6; //已购买数", " $1.ListPicPath = $7; //列表图片", " $1.DetailPicPath = $8; //图集", " $1.ColId = $9; //分类", " $1.CommentCount = $10; //评价数", " $1.GoodPercent = $11; //好评率", " $1.IsRecommend = $12; //推荐", " $1.MerchantId = $13; //商家Id", " $1.StartDate = $14; //开始时间", " $1.EndDate = $15; //结束时间", " $1.IsLimit = $16; //限时抢购", " $1.SourcePrice = $17; //原价", " $1.Price = $18; //价格", " $1.Integral = $19; //抵扣积分", " $1.MemberPrice = $20; //创客价", " $1.UserIntegral = $21; //创客抵扣积分", " $1.PublishDate = $22; //上架时间", " $1.CostPrice = $23; //成本价", " $1.FareTemplateId = $24; //运费模板Id", " $1.LimitCount = $25; //限购数量", " $1.KeyWord = $26; //关键词", " $1.MerchantClassId = $27; //商家分类", " $1.NormIds = $28; //商品规格Id", " $1.ShareDetail = $29; //分享描述", " $1.LinkUrl = $30; //外部链接", " $1.NormJson = $31; //规格json", " $1.MerchantColId = $32; //商家商品分类", " $1.MonthSale = $33; //月销量", " $1.IsRecommend2 = $34; //推荐2", " $1.IsRecommend3 = $35; //推荐3", " $1.Title = $36; //宣传标语", " $1.Title2 = $37; //宣传标语2", " $1.ProductCode = $38; //商品编号", "}" ] }, "获取商品信息数量": { "prefix": "ym-db-Products-FindAndCount", "body": [ "int $1 = db.Products.Count(m => $2);", ] }, "添加商品信息": { "prefix": "ym-db-Products-Create", "body": [ "db.Products.Add(new Products()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ProductName = $1, //商品名称", " Details = $2, //简介", " Contents = $3, //内容", " Stock = $4, //库存", " BuyCount = $5, //已购买数", " ListPicPath = $6, //列表图片", " DetailPicPath = $7, //图集", " ColId = $8, //分类", " CommentCount = $9, //评价数", " GoodPercent = $10, //好评率", " IsRecommend = $11, //推荐", " MerchantId = $12, //商家Id", " StartDate = $13, //开始时间", " EndDate = $14, //结束时间", " IsLimit = $15, //限时抢购", " SourcePrice = $16, //原价", " Price = $17, //价格", " Integral = $18, //抵扣积分", " MemberPrice = $19, //创客价", " UserIntegral = $20, //创客抵扣积分", " PublishDate = $21, //上架时间", " CostPrice = $22, //成本价", " FareTemplateId = $23, //运费模板Id", " LimitCount = $24, //限购数量", " KeyWord = $25, //关键词", " MerchantClassId = $26, //商家分类", " NormIds = $27, //商品规格Id", " ShareDetail = $28, //分享描述", " LinkUrl = $29, //外部链接", " NormJson = $30, //规格json", " MerchantColId = $31, //商家商品分类", " MonthSale = $32, //月销量", " IsRecommend2 = $33, //推荐2", " IsRecommend3 = $34, //推荐3", " Title = $35, //宣传标语", " Title2 = $36, //宣传标语2", " ProductCode = $37, //商品编号", "});" ] },"删除某个商品信息": { "prefix": "ym-db-Products-Delete", "body": [ "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Products.Remove($1);", "}" ] }, "查询激活奖励设置列表": { "prefix": "ym-db-ProfitObjectActivations-Find", "body": [ "List $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectActivations $3 in $1)", "{", "}" ] }, "查询激活奖励设置列表,并取值": { "prefix": "ym-db-ProfitObjectActivations-FindWithData", "body": [ "List $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectActivations $3 in $1)", "{", " int LimitDateKind = $3.LimitDateKind; //限制时间类型", " int LimitDateVal = $3.LimitDateVal; //限制时间值", " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制", " decimal ExpiredNumber = $3.ExpiredNumber; //过期收益值", " int ObjectId = $3.ObjectId; //对象Id", " decimal ProfitNumber = $3.ProfitNumber; //获得收益值", " int MachineCount = $3.MachineCount; //赠机台数", " DateTime StartDate = $3.StartDate; //开始时间", " DateTime EndDate = $3.EndDate; //结束时间", " string Code = $3.Code; //编码", "}" ] }, "查询激活奖励设置": { "prefix": "ym-db-ProfitObjectActivations-Exist", "body": [ "bool $1 = db.ProfitObjectActivations.Any(m => m.Id == $2);", ] }, "查询某个激活奖励设置,并取值": { "prefix": "ym-db-ProfitObjectActivations-FindByPrimaryKey", "body": [ "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int LimitDateKind = $1.LimitDateKind; //限制时间类型", " int LimitDateVal = $1.LimitDateVal; //限制时间值", " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制", " decimal ExpiredNumber = $1.ExpiredNumber; //过期收益值", " int ObjectId = $1.ObjectId; //对象Id", " decimal ProfitNumber = $1.ProfitNumber; //获得收益值", " int MachineCount = $1.MachineCount; //赠机台数", " DateTime StartDate = $1.StartDate; //开始时间", " DateTime EndDate = $1.EndDate; //结束时间", " string Code = $1.Code; //编码", "}" ] }, "查询某个激活奖励设置,并赋值": { "prefix": "ym-db-ProfitObjectActivations-Update", "body": [ "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.LimitDateKind = $2; //限制时间类型", " $1.LimitDateVal = $3; //限制时间值", " $1.LimitCustomerDate = $4; //自定时间限制", " $1.ExpiredNumber = $5; //过期收益值", " $1.ObjectId = $6; //对象Id", " $1.ProfitNumber = $7; //获得收益值", " $1.MachineCount = $8; //赠机台数", " $1.StartDate = $9; //开始时间", " $1.EndDate = $10; //结束时间", " $1.Code = $11; //编码", "}" ] }, "获取激活奖励设置数量": { "prefix": "ym-db-ProfitObjectActivations-FindAndCount", "body": [ "int $1 = db.ProfitObjectActivations.Count(m => $2);", ] }, "添加激活奖励设置": { "prefix": "ym-db-ProfitObjectActivations-Create", "body": [ "db.ProfitObjectActivations.Add(new ProfitObjectActivations()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " LimitDateKind = $1, //限制时间类型", " LimitDateVal = $2, //限制时间值", " LimitCustomerDate = $3, //自定时间限制", " ExpiredNumber = $4, //过期收益值", " ObjectId = $5, //对象Id", " ProfitNumber = $6, //获得收益值", " MachineCount = $7, //赠机台数", " StartDate = $8, //开始时间", " EndDate = $9, //结束时间", " Code = $10, //编码", "});" ] },"删除某个激活奖励设置": { "prefix": "ym-db-ProfitObjectActivations-Delete", "body": [ "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectActivations.Remove($1);", "}" ] }, "查询继续分润层级列表": { "prefix": "ym-db-ProfitObjectContinueFloors-Find", "body": [ "List $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectContinueFloors $3 in $1)", "{", "}" ] }, "查询继续分润层级列表,并取值": { "prefix": "ym-db-ProfitObjectContinueFloors-FindWithData", "body": [ "List $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectContinueFloors $3 in $1)", "{", " int FloorNumber = $3.FloorNumber; //层级", " decimal Percents = $3.Percents; //分润比例", " decimal AddProfitVal = $3.AddProfitVal; //附加分润值", " int ObjectId = $3.ObjectId; //对象Id", "}" ] }, "查询继续分润层级": { "prefix": "ym-db-ProfitObjectContinueFloors-Exist", "body": [ "bool $1 = db.ProfitObjectContinueFloors.Any(m => m.Id == $2);", ] }, "查询某个继续分润层级,并取值": { "prefix": "ym-db-ProfitObjectContinueFloors-FindByPrimaryKey", "body": [ "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int FloorNumber = $1.FloorNumber; //层级", " decimal Percents = $1.Percents; //分润比例", " decimal AddProfitVal = $1.AddProfitVal; //附加分润值", " int ObjectId = $1.ObjectId; //对象Id", "}" ] }, "查询某个继续分润层级,并赋值": { "prefix": "ym-db-ProfitObjectContinueFloors-Update", "body": [ "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.FloorNumber = $2; //层级", " $1.Percents = $3; //分润比例", " $1.AddProfitVal = $4; //附加分润值", " $1.ObjectId = $5; //对象Id", "}" ] }, "获取继续分润层级数量": { "prefix": "ym-db-ProfitObjectContinueFloors-FindAndCount", "body": [ "int $1 = db.ProfitObjectContinueFloors.Count(m => $2);", ] }, "添加继续分润层级": { "prefix": "ym-db-ProfitObjectContinueFloors-Create", "body": [ "db.ProfitObjectContinueFloors.Add(new ProfitObjectContinueFloors()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " FloorNumber = $1, //层级", " Percents = $2, //分润比例", " AddProfitVal = $3, //附加分润值", " ObjectId = $4, //对象Id", "});" ] },"删除某个继续分润层级": { "prefix": "ym-db-ProfitObjectContinueFloors-Delete", "body": [ "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectContinueFloors.Remove($1);", "}" ] }, "查询分润对象层级列表": { "prefix": "ym-db-ProfitObjectFloors-Find", "body": [ "List $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectFloors $3 in $1)", "{", "}" ] }, "查询分润对象层级列表,并取值": { "prefix": "ym-db-ProfitObjectFloors-FindWithData", "body": [ "List $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectFloors $3 in $1)", "{", " int FloorNumber = $3.FloorNumber; //层级", " decimal Percents = $3.Percents; //分润比例", " decimal AddProfitVal = $3.AddProfitVal; //附加分润值", " ulong FloorDiff = $3.FloorDiff; //级差", " int ObjectId = $3.ObjectId; //对象Id", "}" ] }, "查询分润对象层级": { "prefix": "ym-db-ProfitObjectFloors-Exist", "body": [ "bool $1 = db.ProfitObjectFloors.Any(m => m.Id == $2);", ] }, "查询某个分润对象层级,并取值": { "prefix": "ym-db-ProfitObjectFloors-FindByPrimaryKey", "body": [ "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int FloorNumber = $1.FloorNumber; //层级", " decimal Percents = $1.Percents; //分润比例", " decimal AddProfitVal = $1.AddProfitVal; //附加分润值", " ulong FloorDiff = $1.FloorDiff; //级差", " int ObjectId = $1.ObjectId; //对象Id", "}" ] }, "查询某个分润对象层级,并赋值": { "prefix": "ym-db-ProfitObjectFloors-Update", "body": [ "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.FloorNumber = $2; //层级", " $1.Percents = $3; //分润比例", " $1.AddProfitVal = $4; //附加分润值", " $1.FloorDiff = $5; //级差", " $1.ObjectId = $6; //对象Id", "}" ] }, "获取分润对象层级数量": { "prefix": "ym-db-ProfitObjectFloors-FindAndCount", "body": [ "int $1 = db.ProfitObjectFloors.Count(m => $2);", ] }, "添加分润对象层级": { "prefix": "ym-db-ProfitObjectFloors-Create", "body": [ "db.ProfitObjectFloors.Add(new ProfitObjectFloors()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " FloorNumber = $1, //层级", " Percents = $2, //分润比例", " AddProfitVal = $3, //附加分润值", " FloorDiff = $4, //级差", " ObjectId = $5, //对象Id", "});" ] },"删除某个分润对象层级": { "prefix": "ym-db-ProfitObjectFloors-Delete", "body": [ "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectFloors.Remove($1);", "}" ] }, "查询分润对象等级分类列表": { "prefix": "ym-db-ProfitObjectLevelKinds-Find", "body": [ "List $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectLevelKinds $3 in $1)", "{", "}" ] }, "查询分润对象等级分类列表,并取值": { "prefix": "ym-db-ProfitObjectLevelKinds-FindWithData", "body": [ "List $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectLevelKinds $3 in $1)", "{", " string Name = $3.Name; //名称", " int ObjectId = $3.ObjectId; //对象id", "}" ] }, "查询分润对象等级分类": { "prefix": "ym-db-ProfitObjectLevelKinds-Exist", "body": [ "bool $1 = db.ProfitObjectLevelKinds.Any(m => m.Id == $2);", ] }, "查询某个分润对象等级分类,并取值": { "prefix": "ym-db-ProfitObjectLevelKinds-FindByPrimaryKey", "body": [ "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int ObjectId = $1.ObjectId; //对象id", "}" ] }, "查询某个分润对象等级分类,并赋值": { "prefix": "ym-db-ProfitObjectLevelKinds-Update", "body": [ "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.ObjectId = $3; //对象id", "}" ] }, "获取分润对象等级分类数量": { "prefix": "ym-db-ProfitObjectLevelKinds-FindAndCount", "body": [ "int $1 = db.ProfitObjectLevelKinds.Count(m => $2);", ] }, "添加分润对象等级分类": { "prefix": "ym-db-ProfitObjectLevelKinds-Create", "body": [ "db.ProfitObjectLevelKinds.Add(new ProfitObjectLevelKinds()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " ObjectId = $2, //对象id", "});" ] },"删除某个分润对象等级分类": { "prefix": "ym-db-ProfitObjectLevelKinds-Delete", "body": [ "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectLevelKinds.Remove($1);", "}" ] }, "查询分润对象等级列表": { "prefix": "ym-db-ProfitObjectLevels-Find", "body": [ "List $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectLevels $3 in $1)", "{", "}" ] }, "查询分润对象等级列表,并取值": { "prefix": "ym-db-ProfitObjectLevels-FindWithData", "body": [ "List $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectLevels $3 in $1)", "{", " int LevelNumber = $3.LevelNumber; //级别", " string Name = $3.Name; //名称", " decimal Percents = $3.Percents; //分润比例", " decimal AddProfitVal = $3.AddProfitVal; //附加分润值", " ulong LevelDiff = $3.LevelDiff; //级差", " int KindId = $3.KindId; //分类Id", " decimal DebitPercents = $3.DebitPercents; //借记卡分润比例", " decimal DebitAddProfitVal = $3.DebitAddProfitVal; //借记卡附加分润值", "}" ] }, "查询分润对象等级": { "prefix": "ym-db-ProfitObjectLevels-Exist", "body": [ "bool $1 = db.ProfitObjectLevels.Any(m => m.Id == $2);", ] }, "查询某个分润对象等级,并取值": { "prefix": "ym-db-ProfitObjectLevels-FindByPrimaryKey", "body": [ "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int LevelNumber = $1.LevelNumber; //级别", " string Name = $1.Name; //名称", " decimal Percents = $1.Percents; //分润比例", " decimal AddProfitVal = $1.AddProfitVal; //附加分润值", " ulong LevelDiff = $1.LevelDiff; //级差", " int KindId = $1.KindId; //分类Id", " decimal DebitPercents = $1.DebitPercents; //借记卡分润比例", " decimal DebitAddProfitVal = $1.DebitAddProfitVal; //借记卡附加分润值", "}" ] }, "查询某个分润对象等级,并赋值": { "prefix": "ym-db-ProfitObjectLevels-Update", "body": [ "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.LevelNumber = $2; //级别", " $1.Name = $3; //名称", " $1.Percents = $4; //分润比例", " $1.AddProfitVal = $5; //附加分润值", " $1.LevelDiff = $6; //级差", " $1.KindId = $7; //分类Id", " $1.DebitPercents = $8; //借记卡分润比例", " $1.DebitAddProfitVal = $9; //借记卡附加分润值", "}" ] }, "获取分润对象等级数量": { "prefix": "ym-db-ProfitObjectLevels-FindAndCount", "body": [ "int $1 = db.ProfitObjectLevels.Count(m => $2);", ] }, "添加分润对象等级": { "prefix": "ym-db-ProfitObjectLevels-Create", "body": [ "db.ProfitObjectLevels.Add(new ProfitObjectLevels()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " LevelNumber = $1, //级别", " Name = $2, //名称", " Percents = $3, //分润比例", " AddProfitVal = $4, //附加分润值", " LevelDiff = $5, //级差", " KindId = $6, //分类Id", " DebitPercents = $7, //借记卡分润比例", " DebitAddProfitVal = $8, //借记卡附加分润值", "});" ] },"删除某个分润对象等级": { "prefix": "ym-db-ProfitObjectLevels-Delete", "body": [ "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectLevels.Remove($1);", "}" ] }, "查询分润对象列表": { "prefix": "ym-db-ProfitObjects-Find", "body": [ "List $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjects $3 in $1)", "{", "}" ] }, "查询分润对象列表,并取值": { "prefix": "ym-db-ProfitObjects-FindWithData", "body": [ "List $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjects $3 in $1)", "{", " string Name = $3.Name; //名称", " int MaxFloor = $3.MaxFloor; //最大层级", " int MaxLevel = $3.MaxLevel; //最大等级", " ulong MaxLevelContinue = $3.MaxLevelContinue; //到顶级是否继续", " decimal MinProfitVal = $3.MinProfitVal; //最小分润值", " DateTime StartDate = $3.StartDate; //开始时间", " DateTime EndDate = $3.EndDate; //结束时间", "}" ] }, "查询分润对象": { "prefix": "ym-db-ProfitObjects-Exist", "body": [ "bool $1 = db.ProfitObjects.Any(m => m.Id == $2);", ] }, "查询某个分润对象,并取值": { "prefix": "ym-db-ProfitObjects-FindByPrimaryKey", "body": [ "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int MaxFloor = $1.MaxFloor; //最大层级", " int MaxLevel = $1.MaxLevel; //最大等级", " ulong MaxLevelContinue = $1.MaxLevelContinue; //到顶级是否继续", " decimal MinProfitVal = $1.MinProfitVal; //最小分润值", " DateTime StartDate = $1.StartDate; //开始时间", " DateTime EndDate = $1.EndDate; //结束时间", "}" ] }, "查询某个分润对象,并赋值": { "prefix": "ym-db-ProfitObjects-Update", "body": [ "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.MaxFloor = $3; //最大层级", " $1.MaxLevel = $4; //最大等级", " $1.MaxLevelContinue = $5; //到顶级是否继续", " $1.MinProfitVal = $6; //最小分润值", " $1.StartDate = $7; //开始时间", " $1.EndDate = $8; //结束时间", "}" ] }, "获取分润对象数量": { "prefix": "ym-db-ProfitObjects-FindAndCount", "body": [ "int $1 = db.ProfitObjects.Count(m => $2);", ] }, "添加分润对象": { "prefix": "ym-db-ProfitObjects-Create", "body": [ "db.ProfitObjects.Add(new ProfitObjects()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " MaxFloor = $2, //最大层级", " MaxLevel = $3, //最大等级", " MaxLevelContinue = $4, //到顶级是否继续", " MinProfitVal = $5, //最小分润值", " StartDate = $6, //开始时间", " EndDate = $7, //结束时间", "});" ] },"删除某个分润对象": { "prefix": "ym-db-ProfitObjects-Delete", "body": [ "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjects.Remove($1);", "}" ] }, "查询激活奖励队列列表": { "prefix": "ym-db-ProfitObjectsActiveCheck-Find", "body": [ "List $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActiveCheck $3 in $1)", "{", "}" ] }, "查询激活奖励队列列表,并取值": { "prefix": "ym-db-ProfitObjectsActiveCheck-FindWithData", "body": [ "List $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActiveCheck $3 in $1)", "{", " string CheckData = $3.CheckData; //队列数据", "}" ] }, "查询激活奖励队列": { "prefix": "ym-db-ProfitObjectsActiveCheck-Exist", "body": [ "bool $1 = db.ProfitObjectsActiveCheck.Any(m => m.CheckData == $2);", ] }, "查询某个激活奖励队列,并取值": { "prefix": "ym-db-ProfitObjectsActiveCheck-FindByPrimaryKey", "body": [ "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);", "if ($1 != null)", "{", " string CheckData = $1.CheckData; //队列数据", "}" ] }, "查询某个激活奖励队列,并赋值": { "prefix": "ym-db-ProfitObjectsActiveCheck-Update", "body": [ "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);", "if ($1 != null)", "{", " $1.CheckData = $2; //队列数据", "}" ] }, "获取激活奖励队列数量": { "prefix": "ym-db-ProfitObjectsActiveCheck-FindAndCount", "body": [ "int $1 = db.ProfitObjectsActiveCheck.Count(m => $2);", ] }, "添加激活奖励队列": { "prefix": "ym-db-ProfitObjectsActiveCheck-Create", "body": [ "db.ProfitObjectsActiveCheck.Add(new ProfitObjectsActiveCheck()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " CheckData = $1, //队列数据", "});" ] },"删除某个激活奖励队列": { "prefix": "ym-db-ProfitObjectsActiveCheck-Delete", "body": [ "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);", "if ($1 != null)", "{", " db.ProfitObjectsActiveCheck.Remove($1);", "}" ] }, "查询分润对象活动参数列表": { "prefix": "ym-db-ProfitObjectsActiveParams-Find", "body": [ "List $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActiveParams $3 in $1)", "{", "}" ] }, "查询分润对象活动参数列表,并取值": { "prefix": "ym-db-ProfitObjectsActiveParams-FindWithData", "body": [ "List $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActiveParams $3 in $1)", "{", " int ProfitObjectsActiveId = $3.ProfitObjectsActiveId; //分润对象活动", " string Name = $3.Name; //参数名称", " string TextValue = $3.TextValue; //参数值", " string Remark = $3.Remark; //参数说明", "}" ] }, "查询分润对象活动参数": { "prefix": "ym-db-ProfitObjectsActiveParams-Exist", "body": [ "bool $1 = db.ProfitObjectsActiveParams.Any(m => m.Id == $2);", ] }, "查询某个分润对象活动参数,并取值": { "prefix": "ym-db-ProfitObjectsActiveParams-FindByPrimaryKey", "body": [ "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ProfitObjectsActiveId = $1.ProfitObjectsActiveId; //分润对象活动", " string Name = $1.Name; //参数名称", " string TextValue = $1.TextValue; //参数值", " string Remark = $1.Remark; //参数说明", "}" ] }, "查询某个分润对象活动参数,并赋值": { "prefix": "ym-db-ProfitObjectsActiveParams-Update", "body": [ "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ProfitObjectsActiveId = $2; //分润对象活动", " $1.Name = $3; //参数名称", " $1.TextValue = $4; //参数值", " $1.Remark = $5; //参数说明", "}" ] }, "获取分润对象活动参数数量": { "prefix": "ym-db-ProfitObjectsActiveParams-FindAndCount", "body": [ "int $1 = db.ProfitObjectsActiveParams.Count(m => $2);", ] }, "添加分润对象活动参数": { "prefix": "ym-db-ProfitObjectsActiveParams-Create", "body": [ "db.ProfitObjectsActiveParams.Add(new ProfitObjectsActiveParams()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ProfitObjectsActiveId = $1, //分润对象活动", " Name = $2, //参数名称", " TextValue = $3, //参数值", " Remark = $4, //参数说明", "});" ] },"删除某个分润对象活动参数": { "prefix": "ym-db-ProfitObjectsActiveParams-Delete", "body": [ "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectsActiveParams.Remove($1);", "}" ] }, "查询分润对象活动奖列表": { "prefix": "ym-db-ProfitObjectsActives-Find", "body": [ "List $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActives $3 in $1)", "{", "}" ] }, "查询分润对象活动奖列表,并取值": { "prefix": "ym-db-ProfitObjectsActives-FindWithData", "body": [ "List $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActives $3 in $1)", "{", " string Name = $3.Name; //名称", " int LimitDateKind = $3.LimitDateKind; //限制时间类型", " int LimitDateVal = $3.LimitDateVal; //限制时间值", " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制", " decimal FinishNumber = $3.FinishNumber; //满足条件的数值", " decimal ProfitNumber = $3.ProfitNumber; //获得收益值", " int ObjectId = $3.ObjectId; //对象Id", " DateTime StartDate = $3.StartDate; //活动开始时间", " DateTime EndDate = $3.EndDate; //活动结束时间", " int MachineCount = $3.MachineCount; //赠机台数", " int CardType = $3.CardType; //卡类型", " decimal ProfitNumber2 = $3.ProfitNumber2; //获得收益值2", " string Code = $3.Code; //编号", "}" ] }, "查询分润对象活动奖": { "prefix": "ym-db-ProfitObjectsActives-Exist", "body": [ "bool $1 = db.ProfitObjectsActives.Any(m => m.Id == $2);", ] }, "查询某个分润对象活动奖,并取值": { "prefix": "ym-db-ProfitObjectsActives-FindByPrimaryKey", "body": [ "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int LimitDateKind = $1.LimitDateKind; //限制时间类型", " int LimitDateVal = $1.LimitDateVal; //限制时间值", " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制", " decimal FinishNumber = $1.FinishNumber; //满足条件的数值", " decimal ProfitNumber = $1.ProfitNumber; //获得收益值", " int ObjectId = $1.ObjectId; //对象Id", " DateTime StartDate = $1.StartDate; //活动开始时间", " DateTime EndDate = $1.EndDate; //活动结束时间", " int MachineCount = $1.MachineCount; //赠机台数", " int CardType = $1.CardType; //卡类型", " decimal ProfitNumber2 = $1.ProfitNumber2; //获得收益值2", " string Code = $1.Code; //编号", "}" ] }, "查询某个分润对象活动奖,并赋值": { "prefix": "ym-db-ProfitObjectsActives-Update", "body": [ "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.LimitDateKind = $3; //限制时间类型", " $1.LimitDateVal = $4; //限制时间值", " $1.LimitCustomerDate = $5; //自定时间限制", " $1.FinishNumber = $6; //满足条件的数值", " $1.ProfitNumber = $7; //获得收益值", " $1.ObjectId = $8; //对象Id", " $1.StartDate = $9; //活动开始时间", " $1.EndDate = $10; //活动结束时间", " $1.MachineCount = $11; //赠机台数", " $1.CardType = $12; //卡类型", " $1.ProfitNumber2 = $13; //获得收益值2", " $1.Code = $14; //编号", "}" ] }, "获取分润对象活动奖数量": { "prefix": "ym-db-ProfitObjectsActives-FindAndCount", "body": [ "int $1 = db.ProfitObjectsActives.Count(m => $2);", ] }, "添加分润对象活动奖": { "prefix": "ym-db-ProfitObjectsActives-Create", "body": [ "db.ProfitObjectsActives.Add(new ProfitObjectsActives()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " LimitDateKind = $2, //限制时间类型", " LimitDateVal = $3, //限制时间值", " LimitCustomerDate = $4, //自定时间限制", " FinishNumber = $5, //满足条件的数值", " ProfitNumber = $6, //获得收益值", " ObjectId = $7, //对象Id", " StartDate = $8, //活动开始时间", " EndDate = $9, //活动结束时间", " MachineCount = $10, //赠机台数", " CardType = $11, //卡类型", " ProfitNumber2 = $12, //获得收益值2", " Code = $13, //编号", "});" ] },"删除某个分润对象活动奖": { "prefix": "ym-db-ProfitObjectsActives-Delete", "body": [ "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectsActives.Remove($1);", "}" ] }, "查询活动名称为主键的关联表列表": { "prefix": "ym-db-ProfitObjectsActivesForId-Find", "body": [ "List $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActivesForId $3 in $1)", "{", "}" ] }, "查询活动名称为主键的关联表列表,并取值": { "prefix": "ym-db-ProfitObjectsActivesForId-FindWithData", "body": [ "List $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsActivesForId $3 in $1)", "{", " string Name = $3.Name; //名称", " int ActivityId = $3.ActivityId; //活动Id", "}" ] }, "查询活动名称为主键的关联表": { "prefix": "ym-db-ProfitObjectsActivesForId-Exist", "body": [ "bool $1 = db.ProfitObjectsActivesForId.Any(m => m.Name == $2);", ] }, "查询某个活动名称为主键的关联表,并取值": { "prefix": "ym-db-ProfitObjectsActivesForId-FindByPrimaryKey", "body": [ "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int ActivityId = $1.ActivityId; //活动Id", "}" ] }, "查询某个活动名称为主键的关联表,并赋值": { "prefix": "ym-db-ProfitObjectsActivesForId-Update", "body": [ "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.ActivityId = $3; //活动Id", "}" ] }, "获取活动名称为主键的关联表数量": { "prefix": "ym-db-ProfitObjectsActivesForId-FindAndCount", "body": [ "int $1 = db.ProfitObjectsActivesForId.Count(m => $2);", ] }, "添加活动名称为主键的关联表": { "prefix": "ym-db-ProfitObjectsActivesForId-Create", "body": [ "db.ProfitObjectsActivesForId.Add(new ProfitObjectsActivesForId()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " ActivityId = $2, //活动Id", "});" ] },"删除某个活动名称为主键的关联表": { "prefix": "ym-db-ProfitObjectsActivesForId-Delete", "body": [ "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " db.ProfitObjectsActivesForId.Remove($1);", "}" ] }, "查询分润对象规则列表": { "prefix": "ym-db-ProfitObjectsRule-Find", "body": [ "List $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsRule $3 in $1)", "{", "}" ] }, "查询分润对象规则列表,并取值": { "prefix": "ym-db-ProfitObjectsRule-FindWithData", "body": [ "List $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsRule $3 in $1)", "{", " string Name = $3.Name; //名称", " int ObjectId = $3.ObjectId; //对象Id", " DateTime StartDate = $3.StartDate; //活动开始时间", " DateTime EndDate = $3.EndDate; //活动结束时间", " string Code = $3.Code; //编号", "}" ] }, "查询分润对象规则": { "prefix": "ym-db-ProfitObjectsRule-Exist", "body": [ "bool $1 = db.ProfitObjectsRule.Any(m => m.Id == $2);", ] }, "查询某个分润对象规则,并取值": { "prefix": "ym-db-ProfitObjectsRule-FindByPrimaryKey", "body": [ "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int ObjectId = $1.ObjectId; //对象Id", " DateTime StartDate = $1.StartDate; //活动开始时间", " DateTime EndDate = $1.EndDate; //活动结束时间", " string Code = $1.Code; //编号", "}" ] }, "查询某个分润对象规则,并赋值": { "prefix": "ym-db-ProfitObjectsRule-Update", "body": [ "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.ObjectId = $3; //对象Id", " $1.StartDate = $4; //活动开始时间", " $1.EndDate = $5; //活动结束时间", " $1.Code = $6; //编号", "}" ] }, "获取分润对象规则数量": { "prefix": "ym-db-ProfitObjectsRule-FindAndCount", "body": [ "int $1 = db.ProfitObjectsRule.Count(m => $2);", ] }, "添加分润对象规则": { "prefix": "ym-db-ProfitObjectsRule-Create", "body": [ "db.ProfitObjectsRule.Add(new ProfitObjectsRule()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " ObjectId = $2, //对象Id", " StartDate = $3, //活动开始时间", " EndDate = $4, //活动结束时间", " Code = $5, //编号", "});" ] },"删除某个分润对象规则": { "prefix": "ym-db-ProfitObjectsRule-Delete", "body": [ "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectsRule.Remove($1);", "}" ] }, "查询分润对象规则配置明细列表": { "prefix": "ym-db-ProfitObjectsRuleDetails-Find", "body": [ "List $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsRuleDetails $3 in $1)", "{", "}" ] }, "查询分润对象规则配置明细列表,并取值": { "prefix": "ym-db-ProfitObjectsRuleDetails-FindWithData", "body": [ "List $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitObjectsRuleDetails $3 in $1)", "{", " int RuleId = $3.RuleId; //所属规则", " string Name = $3.Name; //名称", " string Code = $3.Code; //编号", " string DataValue = $3.DataValue; //设置值", "}" ] }, "查询分润对象规则配置明细": { "prefix": "ym-db-ProfitObjectsRuleDetails-Exist", "body": [ "bool $1 = db.ProfitObjectsRuleDetails.Any(m => m.Id == $2);", ] }, "查询某个分润对象规则配置明细,并取值": { "prefix": "ym-db-ProfitObjectsRuleDetails-FindByPrimaryKey", "body": [ "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int RuleId = $1.RuleId; //所属规则", " string Name = $1.Name; //名称", " string Code = $1.Code; //编号", " string DataValue = $1.DataValue; //设置值", "}" ] }, "查询某个分润对象规则配置明细,并赋值": { "prefix": "ym-db-ProfitObjectsRuleDetails-Update", "body": [ "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RuleId = $2; //所属规则", " $1.Name = $3; //名称", " $1.Code = $4; //编号", " $1.DataValue = $5; //设置值", "}" ] }, "获取分润对象规则配置明细数量": { "prefix": "ym-db-ProfitObjectsRuleDetails-FindAndCount", "body": [ "int $1 = db.ProfitObjectsRuleDetails.Count(m => $2);", ] }, "添加分润对象规则配置明细": { "prefix": "ym-db-ProfitObjectsRuleDetails-Create", "body": [ "db.ProfitObjectsRuleDetails.Add(new ProfitObjectsRuleDetails()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RuleId = $1, //所属规则", " Name = $2, //名称", " Code = $3, //编号", " DataValue = $4, //设置值", "});" ] },"删除某个分润对象规则配置明细": { "prefix": "ym-db-ProfitObjectsRuleDetails-Delete", "body": [ "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitObjectsRuleDetails.Remove($1);", "}" ] }, "查询分账记录列表": { "prefix": "ym-db-ProfitReceiveRecord-Find", "body": [ "List $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitReceiveRecord $3 in $1)", "{", "}" ] }, "查询分账记录列表,并取值": { "prefix": "ym-db-ProfitReceiveRecord-FindWithData", "body": [ "List $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitReceiveRecord $3 in $1)", "{", " int MerchantId = $3.MerchantId; //商户", " string SubMchid = $3.SubMchid; //子商户号", " string AppId = $3.AppId; //应用ID", " string SubAppId = $3.SubAppId; //子商户应用ID", " string Type = $3.Type; //分账接收方类型", " string Account = $3.Account; //分账接收方账号", " string Name = $3.Name; //分账个人接收方姓名", " string RelationType = $3.RelationType; //与分账方的关系类型", " string CustomRelation = $3.CustomRelation; //自定义的分账关系", " string TransactionId = $3.TransactionId; //微信订单号", " string OutOrderNo = $3.OutOrderNo; //商户分账单号", " decimal Amount = $3.Amount; //分账金额", " string Description = $3.Description; //分账描述", " ulong UnfreezeUnsplit = $3.UnfreezeUnsplit; //是否解冻剩余未分资金", " string OrderId = $3.OrderId; //微信分账单号", " string State = $3.State; //分账单状态", "}" ] }, "查询分账记录": { "prefix": "ym-db-ProfitReceiveRecord-Exist", "body": [ "bool $1 = db.ProfitReceiveRecord.Any(m => m.Id == $2);", ] }, "查询某个分账记录,并取值": { "prefix": "ym-db-ProfitReceiveRecord-FindByPrimaryKey", "body": [ "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MerchantId = $1.MerchantId; //商户", " string SubMchid = $1.SubMchid; //子商户号", " string AppId = $1.AppId; //应用ID", " string SubAppId = $1.SubAppId; //子商户应用ID", " string Type = $1.Type; //分账接收方类型", " string Account = $1.Account; //分账接收方账号", " string Name = $1.Name; //分账个人接收方姓名", " string RelationType = $1.RelationType; //与分账方的关系类型", " string CustomRelation = $1.CustomRelation; //自定义的分账关系", " string TransactionId = $1.TransactionId; //微信订单号", " string OutOrderNo = $1.OutOrderNo; //商户分账单号", " decimal Amount = $1.Amount; //分账金额", " string Description = $1.Description; //分账描述", " ulong UnfreezeUnsplit = $1.UnfreezeUnsplit; //是否解冻剩余未分资金", " string OrderId = $1.OrderId; //微信分账单号", " string State = $1.State; //分账单状态", "}" ] }, "查询某个分账记录,并赋值": { "prefix": "ym-db-ProfitReceiveRecord-Update", "body": [ "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MerchantId = $2; //商户", " $1.SubMchid = $3; //子商户号", " $1.AppId = $4; //应用ID", " $1.SubAppId = $5; //子商户应用ID", " $1.Type = $6; //分账接收方类型", " $1.Account = $7; //分账接收方账号", " $1.Name = $8; //分账个人接收方姓名", " $1.RelationType = $9; //与分账方的关系类型", " $1.CustomRelation = $10; //自定义的分账关系", " $1.TransactionId = $11; //微信订单号", " $1.OutOrderNo = $12; //商户分账单号", " $1.Amount = $13; //分账金额", " $1.Description = $14; //分账描述", " $1.UnfreezeUnsplit = $15; //是否解冻剩余未分资金", " $1.OrderId = $16; //微信分账单号", " $1.State = $17; //分账单状态", "}" ] }, "获取分账记录数量": { "prefix": "ym-db-ProfitReceiveRecord-FindAndCount", "body": [ "int $1 = db.ProfitReceiveRecord.Count(m => $2);", ] }, "添加分账记录": { "prefix": "ym-db-ProfitReceiveRecord-Create", "body": [ "db.ProfitReceiveRecord.Add(new ProfitReceiveRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MerchantId = $1, //商户", " SubMchid = $2, //子商户号", " AppId = $3, //应用ID", " SubAppId = $4, //子商户应用ID", " Type = $5, //分账接收方类型", " Account = $6, //分账接收方账号", " Name = $7, //分账个人接收方姓名", " RelationType = $8, //与分账方的关系类型", " CustomRelation = $9, //自定义的分账关系", " TransactionId = $10, //微信订单号", " OutOrderNo = $11, //商户分账单号", " Amount = $12, //分账金额", " Description = $13, //分账描述", " UnfreezeUnsplit = $14, //是否解冻剩余未分资金", " OrderId = $15, //微信分账单号", " State = $16, //分账单状态", "});" ] },"删除某个分账记录": { "prefix": "ym-db-ProfitReceiveRecord-Delete", "body": [ "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitReceiveRecord.Remove($1);", "}" ] }, "查询分账接收方列表": { "prefix": "ym-db-ProfitReceives-Find", "body": [ "List $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitReceives $3 in $1)", "{", "}" ] }, "查询分账接收方列表,并取值": { "prefix": "ym-db-ProfitReceives-FindWithData", "body": [ "List $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitReceives $3 in $1)", "{", " int MerchantId = $3.MerchantId; //商户", " string SubMchid = $3.SubMchid; //子商户号", " string AppId = $3.AppId; //应用ID", " string SubAppId = $3.SubAppId; //子商户应用ID", " string Type = $3.Type; //分账接收方类型", " string Account = $3.Account; //分账接收方账号", " string Name = $3.Name; //分账个人接收方姓名", " string RelationType = $3.RelationType; //与分账方的关系类型", " string CustomRelation = $3.CustomRelation; //自定义的分账关系", "}" ] }, "查询分账接收方": { "prefix": "ym-db-ProfitReceives-Exist", "body": [ "bool $1 = db.ProfitReceives.Any(m => m.Id == $2);", ] }, "查询某个分账接收方,并取值": { "prefix": "ym-db-ProfitReceives-FindByPrimaryKey", "body": [ "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int MerchantId = $1.MerchantId; //商户", " string SubMchid = $1.SubMchid; //子商户号", " string AppId = $1.AppId; //应用ID", " string SubAppId = $1.SubAppId; //子商户应用ID", " string Type = $1.Type; //分账接收方类型", " string Account = $1.Account; //分账接收方账号", " string Name = $1.Name; //分账个人接收方姓名", " string RelationType = $1.RelationType; //与分账方的关系类型", " string CustomRelation = $1.CustomRelation; //自定义的分账关系", "}" ] }, "查询某个分账接收方,并赋值": { "prefix": "ym-db-ProfitReceives-Update", "body": [ "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.MerchantId = $2; //商户", " $1.SubMchid = $3; //子商户号", " $1.AppId = $4; //应用ID", " $1.SubAppId = $5; //子商户应用ID", " $1.Type = $6; //分账接收方类型", " $1.Account = $7; //分账接收方账号", " $1.Name = $8; //分账个人接收方姓名", " $1.RelationType = $9; //与分账方的关系类型", " $1.CustomRelation = $10; //自定义的分账关系", "}" ] }, "获取分账接收方数量": { "prefix": "ym-db-ProfitReceives-FindAndCount", "body": [ "int $1 = db.ProfitReceives.Count(m => $2);", ] }, "添加分账接收方": { "prefix": "ym-db-ProfitReceives-Create", "body": [ "db.ProfitReceives.Add(new ProfitReceives()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MerchantId = $1, //商户", " SubMchid = $2, //子商户号", " AppId = $3, //应用ID", " SubAppId = $4, //子商户应用ID", " Type = $5, //分账接收方类型", " Account = $6, //分账接收方账号", " Name = $7, //分账个人接收方姓名", " RelationType = $8, //与分账方的关系类型", " CustomRelation = $9, //自定义的分账关系", "});" ] },"删除某个分账接收方": { "prefix": "ym-db-ProfitReceives-Delete", "body": [ "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitReceives.Remove($1);", "}" ] }, "查询分润记录列表": { "prefix": "ym-db-ProfitRecord-Find", "body": [ "List $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitRecord $3 in $1)", "{", "}" ] }, "查询分润记录列表,并取值": { "prefix": "ym-db-ProfitRecord-FindWithData", "body": [ "List $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitRecord $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int MerchantId = $3.MerchantId; //商户", " string MerNo = $3.MerNo; //渠道商户编号", " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户", " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月", " int MerBuddyType = $3.MerBuddyType; //商户创客类型", " string SnNo = $3.SnNo; //SN号", " DateTime TradeDate = $3.TradeDate; //交易日期", " DateTime ClearDate = $3.ClearDate; //清算日期", " decimal ProfitAmount = $3.ProfitAmount; //分润金额", " int QrPayFlag = $3.QrPayFlag; //云闪付标识", " int CapFlag = $3.CapFlag; //借记卡封顶交易标志", " ulong DirectFlag = $3.DirectFlag; //是否直营", " int BrandId = $3.BrandId; //品牌", " string Remark = $3.Remark; //备注", " string ParentNav = $3.ParentNav; //上级创客集", " int TradeId = $3.TradeId; //交易记录Id", "}" ] }, "查询分润记录": { "prefix": "ym-db-ProfitRecord-Exist", "body": [ "bool $1 = db.ProfitRecord.Any(m => m.Id == $2);", ] }, "查询某个分润记录,并取值": { "prefix": "ym-db-ProfitRecord-FindByPrimaryKey", "body": [ "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int MerchantId = $1.MerchantId; //商户", " string MerNo = $1.MerNo; //渠道商户编号", " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户", " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月", " int MerBuddyType = $1.MerBuddyType; //商户创客类型", " string SnNo = $1.SnNo; //SN号", " DateTime TradeDate = $1.TradeDate; //交易日期", " DateTime ClearDate = $1.ClearDate; //清算日期", " decimal ProfitAmount = $1.ProfitAmount; //分润金额", " int QrPayFlag = $1.QrPayFlag; //云闪付标识", " int CapFlag = $1.CapFlag; //借记卡封顶交易标志", " ulong DirectFlag = $1.DirectFlag; //是否直营", " int BrandId = $1.BrandId; //品牌", " string Remark = $1.Remark; //备注", " string ParentNav = $1.ParentNav; //上级创客集", " int TradeId = $1.TradeId; //交易记录Id", "}" ] }, "查询某个分润记录,并赋值": { "prefix": "ym-db-ProfitRecord-Update", "body": [ "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.MerchantId = $3; //商户", " $1.MerNo = $4; //渠道商户编号", " $1.MerHelpFlag = $5; //是否属于扶持周期内商户", " $1.HelpMonthCount = $6; //扶持第几个月", " $1.MerBuddyType = $7; //商户创客类型", " $1.SnNo = $8; //SN号", " $1.TradeDate = $9; //交易日期", " $1.ClearDate = $10; //清算日期", " $1.ProfitAmount = $11; //分润金额", " $1.QrPayFlag = $12; //云闪付标识", " $1.CapFlag = $13; //借记卡封顶交易标志", " $1.DirectFlag = $14; //是否直营", " $1.BrandId = $15; //品牌", " $1.Remark = $16; //备注", " $1.ParentNav = $17; //上级创客集", " $1.TradeId = $18; //交易记录Id", "}" ] }, "获取分润记录数量": { "prefix": "ym-db-ProfitRecord-FindAndCount", "body": [ "int $1 = db.ProfitRecord.Count(m => $2);", ] }, "添加分润记录": { "prefix": "ym-db-ProfitRecord-Create", "body": [ "db.ProfitRecord.Add(new ProfitRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " MerchantId = $2, //商户", " MerNo = $3, //渠道商户编号", " MerHelpFlag = $4, //是否属于扶持周期内商户", " HelpMonthCount = $5, //扶持第几个月", " MerBuddyType = $6, //商户创客类型", " SnNo = $7, //SN号", " TradeDate = $8, //交易日期", " ClearDate = $9, //清算日期", " ProfitAmount = $10, //分润金额", " QrPayFlag = $11, //云闪付标识", " CapFlag = $12, //借记卡封顶交易标志", " DirectFlag = $13, //是否直营", " BrandId = $14, //品牌", " Remark = $15, //备注", " ParentNav = $16, //上级创客集", " TradeId = $17, //交易记录Id", "});" ] },"删除某个分润记录": { "prefix": "ym-db-ProfitRecord-Delete", "body": [ "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitRecord.Remove($1);", "}" ] }, "查询分润奖励记录列表": { "prefix": "ym-db-ProfitRewardRecord-Find", "body": [ "List $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitRewardRecord $3 in $1)", "{", "}" ] }, "查询分润奖励记录列表,并取值": { "prefix": "ym-db-ProfitRewardRecord-FindWithData", "body": [ "List $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitRewardRecord $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int MerchantId = $3.MerchantId; //商户", " int BrandId = $3.BrandId; //品牌", " int ProfitType = $3.ProfitType; //创客分润类型", " decimal OtherTradeAmt = $3.OtherTradeAmt; //其他产品交易总金额", " decimal OtherCreditTradeAmt = $3.OtherCreditTradeAmt; //其他产品贷记卡交易总金额", " decimal OtherDebitNotCapTradeAmt = $3.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额", " decimal TradeAmt = $3.TradeAmt; //商户交易总额", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额", " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额", " decimal NotHelpCreditTradeAmt = $3.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额", " decimal HelpCreditTradeAmt = $3.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额", " decimal DebitNonCapTradeAmt = $3.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额", " decimal QrDebitNotCapTradeAmt = $3.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额", " decimal NonQrDebitNotCapTradeAmt = $3.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额", " decimal NotHelpDebitNonCapTradeAmt = $3.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额", " decimal HelpDebitNonCapTradeAmt = $3.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额", " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额", " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数", " decimal TradeProfit = $3.TradeProfit; //交易分润", " decimal CreditTradeProfit = $3.CreditTradeProfit; //贷记卡分润总金额", " decimal QrCreditTradeProfit = $3.QrCreditTradeProfit; //(云闪付)贷记卡交易分润", " decimal NonQrCreditTradeProfit = $3.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润", " decimal NotHelpCreditTradeProfit = $3.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额", " decimal HelpCreditTradeProfit = $3.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额", " decimal DebitNonTradeCapProfit = $3.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额", " decimal QrDebitNonTradeCapProfit = $3.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额", " decimal NonQrDebitNonTradeCapProfit = $3.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额", " decimal NotHelpDebitNonTradeCapProfit = $3.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额", " decimal HelpDebitNonTradeCapProfit = $3.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额", " decimal DebitTradeCapProfit = $3.DebitTradeCapProfit; //借记卡封顶交易分润总金额", " decimal NotHelpCreditProfitRate = $3.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例", " decimal NotHelpCreditProfitStandardRate = $3.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例", " decimal NotHelpCreditAddOrSubRate = $3.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例", " decimal HelpCreditProfitRate = $3.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例", " decimal HelpCreditProfitStandardRate = $3.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例", " decimal HelpCreditAddOrSubRate = $3.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例", " decimal NotHelpDebitProfitRate = $3.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例", " decimal NotHelpDebitProfitStandardRate = $3.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例", " decimal NotHelpDebitAddOrSubRate = $3.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例", " decimal HelpDebitProfitRate = $3.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例", " decimal HelpDebitProfitStandardRate = $3.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例", " decimal HelpDebitAddOrSubRate = $3.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例", " decimal DebitCapSingleReward = $3.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额", " decimal QrCreditProfitRate = $3.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例", " decimal QrCreditProfitStandardRate = $3.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准", " decimal QrCreditAddOrSubRate = $3.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减", " decimal QrDebitProfitRate = $3.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例", " decimal QrDebitProfitStandardRate = $3.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准", " decimal QrDebitAddOrSubRate = $3.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减", " int CheckStatus = $3.CheckStatus; //验证和同步账户状态", " string Remark = $3.Remark; //备注", " string TradeMonth = $3.TradeMonth; //交易月", " string RecordNo = $3.RecordNo; //记录单号", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询分润奖励记录": { "prefix": "ym-db-ProfitRewardRecord-Exist", "body": [ "bool $1 = db.ProfitRewardRecord.Any(m => m.Id == $2);", ] }, "查询某个分润奖励记录,并取值": { "prefix": "ym-db-ProfitRewardRecord-FindByPrimaryKey", "body": [ "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int MerchantId = $1.MerchantId; //商户", " int BrandId = $1.BrandId; //品牌", " int ProfitType = $1.ProfitType; //创客分润类型", " decimal OtherTradeAmt = $1.OtherTradeAmt; //其他产品交易总金额", " decimal OtherCreditTradeAmt = $1.OtherCreditTradeAmt; //其他产品贷记卡交易总金额", " decimal OtherDebitNotCapTradeAmt = $1.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额", " decimal TradeAmt = $1.TradeAmt; //商户交易总额", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额", " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额", " decimal NotHelpCreditTradeAmt = $1.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额", " decimal HelpCreditTradeAmt = $1.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额", " decimal DebitNonCapTradeAmt = $1.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额", " decimal QrDebitNotCapTradeAmt = $1.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额", " decimal NonQrDebitNotCapTradeAmt = $1.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额", " decimal NotHelpDebitNonCapTradeAmt = $1.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额", " decimal HelpDebitNonCapTradeAmt = $1.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额", " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额", " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数", " decimal TradeProfit = $1.TradeProfit; //交易分润", " decimal CreditTradeProfit = $1.CreditTradeProfit; //贷记卡分润总金额", " decimal QrCreditTradeProfit = $1.QrCreditTradeProfit; //(云闪付)贷记卡交易分润", " decimal NonQrCreditTradeProfit = $1.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润", " decimal NotHelpCreditTradeProfit = $1.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额", " decimal HelpCreditTradeProfit = $1.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额", " decimal DebitNonTradeCapProfit = $1.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额", " decimal QrDebitNonTradeCapProfit = $1.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额", " decimal NonQrDebitNonTradeCapProfit = $1.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额", " decimal NotHelpDebitNonTradeCapProfit = $1.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额", " decimal HelpDebitNonTradeCapProfit = $1.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额", " decimal DebitTradeCapProfit = $1.DebitTradeCapProfit; //借记卡封顶交易分润总金额", " decimal NotHelpCreditProfitRate = $1.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例", " decimal NotHelpCreditProfitStandardRate = $1.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例", " decimal NotHelpCreditAddOrSubRate = $1.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例", " decimal HelpCreditProfitRate = $1.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例", " decimal HelpCreditProfitStandardRate = $1.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例", " decimal HelpCreditAddOrSubRate = $1.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例", " decimal NotHelpDebitProfitRate = $1.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例", " decimal NotHelpDebitProfitStandardRate = $1.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例", " decimal NotHelpDebitAddOrSubRate = $1.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例", " decimal HelpDebitProfitRate = $1.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例", " decimal HelpDebitProfitStandardRate = $1.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例", " decimal HelpDebitAddOrSubRate = $1.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例", " decimal DebitCapSingleReward = $1.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额", " decimal QrCreditProfitRate = $1.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例", " decimal QrCreditProfitStandardRate = $1.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准", " decimal QrCreditAddOrSubRate = $1.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减", " decimal QrDebitProfitRate = $1.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例", " decimal QrDebitProfitStandardRate = $1.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准", " decimal QrDebitAddOrSubRate = $1.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减", " int CheckStatus = $1.CheckStatus; //验证和同步账户状态", " string Remark = $1.Remark; //备注", " string TradeMonth = $1.TradeMonth; //交易月", " string RecordNo = $1.RecordNo; //记录单号", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个分润奖励记录,并赋值": { "prefix": "ym-db-ProfitRewardRecord-Update", "body": [ "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.MerchantId = $3; //商户", " $1.BrandId = $4; //品牌", " $1.ProfitType = $5; //创客分润类型", " $1.OtherTradeAmt = $6; //其他产品交易总金额", " $1.OtherCreditTradeAmt = $7; //其他产品贷记卡交易总金额", " $1.OtherDebitNotCapTradeAmt = $8; //其他产品借记卡非封顶交易总金额", " $1.TradeAmt = $9; //商户交易总额", " $1.CreditTradeAmt = $10; //贷记卡交易总金额", " $1.QrCreditTradeAmt = $11; //(云闪付)贷记卡交易总金额", " $1.NonQrCreditTradeAmt = $12; //(非云闪付)贷记卡交易总金额", " $1.NotHelpCreditTradeAmt = $13; //(非扶持期)(非云闪付)贷记卡交易总金额", " $1.HelpCreditTradeAmt = $14; //(扶持期)(非云闪付)贷记卡交易总金额", " $1.DebitNonCapTradeAmt = $15; //商户非封顶借记卡交易总额", " $1.QrDebitNotCapTradeAmt = $16; //(云闪付)商户非封顶借记卡交易总额", " $1.NonQrDebitNotCapTradeAmt = $17; //(非云闪付)商户非封顶借记卡交易总额", " $1.NotHelpDebitNonCapTradeAmt = $18; //(非扶持期)(非云闪付)借记卡非封顶交易总金额", " $1.HelpDebitNonCapTradeAmt = $19; //(扶持期)(非云闪付)借记卡非封顶交易总金额", " $1.DebitCapTradeAmt = $20; //商户借记卡封顶交易总额", " $1.DebitCapTradeNum = $21; //商户借记卡封顶交易总笔数", " $1.TradeProfit = $22; //交易分润", " $1.CreditTradeProfit = $23; //贷记卡分润总金额", " $1.QrCreditTradeProfit = $24; //(云闪付)贷记卡交易分润", " $1.NonQrCreditTradeProfit = $25; //(非云闪付)贷记卡交易分润", " $1.NotHelpCreditTradeProfit = $26; //(非扶持期)(非云闪付)贷记卡分润总金额", " $1.HelpCreditTradeProfit = $27; //(扶持期)(非云闪付)贷记卡分润总金额", " $1.DebitNonTradeCapProfit = $28; //借记卡非封顶交易分润总金额", " $1.QrDebitNonTradeCapProfit = $29; //(云闪付)借记卡非封顶交易分润总金额", " $1.NonQrDebitNonTradeCapProfit = $30; //(非云闪付)借记卡非封顶交易分润总金额", " $1.NotHelpDebitNonTradeCapProfit = $31; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额", " $1.HelpDebitNonTradeCapProfit = $32; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额", " $1.DebitTradeCapProfit = $33; //借记卡封顶交易分润总金额", " $1.NotHelpCreditProfitRate = $34; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例", " $1.NotHelpCreditProfitStandardRate = $35; //(非扶持期)(非云闪付)贷记卡标准分润比例", " $1.NotHelpCreditAddOrSubRate = $36; //(非扶持期)(非云闪付)贷记卡成本或增或减比例", " $1.HelpCreditProfitRate = $37; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例", " $1.HelpCreditProfitStandardRate = $38; //(扶持期)(非云闪付)贷记卡-标准分润比例", " $1.HelpCreditAddOrSubRate = $39; //(扶持期)(非云闪付)贷记卡成本或增或减比例", " $1.NotHelpDebitProfitRate = $40; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例", " $1.NotHelpDebitProfitStandardRate = $41; //(非扶持期)(非云闪付)借记卡标准分润比例", " $1.NotHelpDebitAddOrSubRate = $42; //(非扶持期)(非云闪付)借记卡成本或增或减比例", " $1.HelpDebitProfitRate = $43; //(扶持期)(非云闪付)借记卡商户交易对应分润比例", " $1.HelpDebitProfitStandardRate = $44; //(扶持期)(非云闪付)借记卡-标准分润比例", " $1.HelpDebitAddOrSubRate = $45; //(扶持期)(非云闪付)借记卡成本或增或减比例", " $1.DebitCapSingleReward = $46; //借记卡合伙人直营封顶交易奖励金额", " $1.QrCreditProfitRate = $47; //(云闪付)贷记卡交易分润比例", " $1.QrCreditProfitStandardRate = $48; //(云闪付)贷记卡分润基准", " $1.QrCreditAddOrSubRate = $49; //(云闪付)贷记卡分润比例或增或减", " $1.QrDebitProfitRate = $50; //(云闪付)借记卡非封顶交易分润比例", " $1.QrDebitProfitStandardRate = $51; //(云闪付)借记卡非封顶交易分润基准", " $1.QrDebitAddOrSubRate = $52; //(云闪付)借记卡非封顶交易分润比例或增或减", " $1.CheckStatus = $53; //验证和同步账户状态", " $1.Remark = $54; //备注", " $1.TradeMonth = $55; //交易月", " $1.RecordNo = $56; //记录单号", " $1.TopUserId = $57; //顶级创客", "}" ] }, "获取分润奖励记录数量": { "prefix": "ym-db-ProfitRewardRecord-FindAndCount", "body": [ "int $1 = db.ProfitRewardRecord.Count(m => $2);", ] }, "添加分润奖励记录": { "prefix": "ym-db-ProfitRewardRecord-Create", "body": [ "db.ProfitRewardRecord.Add(new ProfitRewardRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " MerchantId = $2, //商户", " BrandId = $3, //品牌", " ProfitType = $4, //创客分润类型", " OtherTradeAmt = $5, //其他产品交易总金额", " OtherCreditTradeAmt = $6, //其他产品贷记卡交易总金额", " OtherDebitNotCapTradeAmt = $7, //其他产品借记卡非封顶交易总金额", " TradeAmt = $8, //商户交易总额", " CreditTradeAmt = $9, //贷记卡交易总金额", " QrCreditTradeAmt = $10, //(云闪付)贷记卡交易总金额", " NonQrCreditTradeAmt = $11, //(非云闪付)贷记卡交易总金额", " NotHelpCreditTradeAmt = $12, //(非扶持期)(非云闪付)贷记卡交易总金额", " HelpCreditTradeAmt = $13, //(扶持期)(非云闪付)贷记卡交易总金额", " DebitNonCapTradeAmt = $14, //商户非封顶借记卡交易总额", " QrDebitNotCapTradeAmt = $15, //(云闪付)商户非封顶借记卡交易总额", " NonQrDebitNotCapTradeAmt = $16, //(非云闪付)商户非封顶借记卡交易总额", " NotHelpDebitNonCapTradeAmt = $17, //(非扶持期)(非云闪付)借记卡非封顶交易总金额", " HelpDebitNonCapTradeAmt = $18, //(扶持期)(非云闪付)借记卡非封顶交易总金额", " DebitCapTradeAmt = $19, //商户借记卡封顶交易总额", " DebitCapTradeNum = $20, //商户借记卡封顶交易总笔数", " TradeProfit = $21, //交易分润", " CreditTradeProfit = $22, //贷记卡分润总金额", " QrCreditTradeProfit = $23, //(云闪付)贷记卡交易分润", " NonQrCreditTradeProfit = $24, //(非云闪付)贷记卡交易分润", " NotHelpCreditTradeProfit = $25, //(非扶持期)(非云闪付)贷记卡分润总金额", " HelpCreditTradeProfit = $26, //(扶持期)(非云闪付)贷记卡分润总金额", " DebitNonTradeCapProfit = $27, //借记卡非封顶交易分润总金额", " QrDebitNonTradeCapProfit = $28, //(云闪付)借记卡非封顶交易分润总金额", " NonQrDebitNonTradeCapProfit = $29, //(非云闪付)借记卡非封顶交易分润总金额", " NotHelpDebitNonTradeCapProfit = $30, //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额", " HelpDebitNonTradeCapProfit = $31, //(扶持期)(非云闪付)借记卡非封顶交易分润总金额", " DebitTradeCapProfit = $32, //借记卡封顶交易分润总金额", " NotHelpCreditProfitRate = $33, //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例", " NotHelpCreditProfitStandardRate = $34, //(非扶持期)(非云闪付)贷记卡标准分润比例", " NotHelpCreditAddOrSubRate = $35, //(非扶持期)(非云闪付)贷记卡成本或增或减比例", " HelpCreditProfitRate = $36, //(扶持期)(非云闪付)贷记卡商户交易对应分润比例", " HelpCreditProfitStandardRate = $37, //(扶持期)(非云闪付)贷记卡-标准分润比例", " HelpCreditAddOrSubRate = $38, //(扶持期)(非云闪付)贷记卡成本或增或减比例", " NotHelpDebitProfitRate = $39, //(非扶持期)(非云闪付)借记卡商户交易对应分润比例", " NotHelpDebitProfitStandardRate = $40, //(非扶持期)(非云闪付)借记卡标准分润比例", " NotHelpDebitAddOrSubRate = $41, //(非扶持期)(非云闪付)借记卡成本或增或减比例", " HelpDebitProfitRate = $42, //(扶持期)(非云闪付)借记卡商户交易对应分润比例", " HelpDebitProfitStandardRate = $43, //(扶持期)(非云闪付)借记卡-标准分润比例", " HelpDebitAddOrSubRate = $44, //(扶持期)(非云闪付)借记卡成本或增或减比例", " DebitCapSingleReward = $45, //借记卡合伙人直营封顶交易奖励金额", " QrCreditProfitRate = $46, //(云闪付)贷记卡交易分润比例", " QrCreditProfitStandardRate = $47, //(云闪付)贷记卡分润基准", " QrCreditAddOrSubRate = $48, //(云闪付)贷记卡分润比例或增或减", " QrDebitProfitRate = $49, //(云闪付)借记卡非封顶交易分润比例", " QrDebitProfitStandardRate = $50, //(云闪付)借记卡非封顶交易分润基准", " QrDebitAddOrSubRate = $51, //(云闪付)借记卡非封顶交易分润比例或增或减", " CheckStatus = $52, //验证和同步账户状态", " Remark = $53, //备注", " TradeMonth = $54, //交易月", " RecordNo = $55, //记录单号", " TopUserId = $56, //顶级创客", "});" ] },"删除某个分润奖励记录": { "prefix": "ym-db-ProfitRewardRecord-Delete", "body": [ "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitRewardRecord.Remove($1);", "}" ] }, "查询分润补贴明细列表": { "prefix": "ym-db-ProfitSubsidyDetail-Find", "body": [ "List $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitSubsidyDetail $3 in $1)", "{", "}" ] }, "查询分润补贴明细列表,并取值": { "prefix": "ym-db-ProfitSubsidyDetail-FindWithData", "body": [ "List $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ProfitSubsidyDetail $3 in $1)", "{", " string RecordNo = $3.RecordNo; //流水号", " int BrandId = $3.BrandId; //品牌", " string ProductName = $3.ProductName; //产品名称", " string TradeMonth = $3.TradeMonth; //交易月份", " int MerchantId = $3.MerchantId; //商户", " string MerNo = $3.MerNo; //渠道商户编号", " string SnNo = $3.SnNo; //渠道SN号", " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间", " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间", " int BelongUserId = $3.BelongUserId; //商户归属人", " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户", " int SubsidyUserId = $3.SubsidyUserId; //补贴人", " int SubsidyType = $3.SubsidyType; //分润补贴类型", " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额", " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额", " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额", " decimal CreditProfitRate = $3.CreditProfitRate; //(非云闪付)贷记卡交易分润比例", " decimal SubsidyProfitRate = $3.SubsidyProfitRate; //创客活动期内直营商户分润万分之十", " decimal SubsidyProfit = $3.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额", " string Remark = $3.Remark; //备注", "}" ] }, "查询分润补贴明细": { "prefix": "ym-db-ProfitSubsidyDetail-Exist", "body": [ "bool $1 = db.ProfitSubsidyDetail.Any(m => m.Id == $2);", ] }, "查询某个分润补贴明细,并取值": { "prefix": "ym-db-ProfitSubsidyDetail-FindByPrimaryKey", "body": [ "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string RecordNo = $1.RecordNo; //流水号", " int BrandId = $1.BrandId; //品牌", " string ProductName = $1.ProductName; //产品名称", " string TradeMonth = $1.TradeMonth; //交易月份", " int MerchantId = $1.MerchantId; //商户", " string MerNo = $1.MerNo; //渠道商户编号", " string SnNo = $1.SnNo; //渠道SN号", " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间", " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间", " int BelongUserId = $1.BelongUserId; //商户归属人", " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户", " int SubsidyUserId = $1.SubsidyUserId; //补贴人", " int SubsidyType = $1.SubsidyType; //分润补贴类型", " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额", " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额", " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额", " decimal CreditProfitRate = $1.CreditProfitRate; //(非云闪付)贷记卡交易分润比例", " decimal SubsidyProfitRate = $1.SubsidyProfitRate; //创客活动期内直营商户分润万分之十", " decimal SubsidyProfit = $1.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个分润补贴明细,并赋值": { "prefix": "ym-db-ProfitSubsidyDetail-Update", "body": [ "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RecordNo = $2; //流水号", " $1.BrandId = $3; //品牌", " $1.ProductName = $4; //产品名称", " $1.TradeMonth = $5; //交易月份", " $1.MerchantId = $6; //商户", " $1.MerNo = $7; //渠道商户编号", " $1.SnNo = $8; //渠道SN号", " $1.MerRegTime = $9; //渠道注册时间", " $1.MerStandardDate = $10; //商户激活时间", " $1.BelongUserId = $11; //商户归属人", " $1.MerHelpFlag = $12; //是否属于扶持周期内商户", " $1.SubsidyUserId = $13; //补贴人", " $1.SubsidyType = $14; //分润补贴类型", " $1.CreditTradeAmt = $15; //商户贷记卡交易总金额", " $1.QrCreditTradeAmt = $16; //商户(云闪付)贷记卡交易总金额", " $1.NonQrCreditTradeAmt = $17; //商户(非云闪付)贷记卡交易总金额", " $1.CreditProfitRate = $18; //(非云闪付)贷记卡交易分润比例", " $1.SubsidyProfitRate = $19; //创客活动期内直营商户分润万分之十", " $1.SubsidyProfit = $20; //商户(非云闪付)贷记卡交易分润补贴金额", " $1.Remark = $21; //备注", "}" ] }, "获取分润补贴明细数量": { "prefix": "ym-db-ProfitSubsidyDetail-FindAndCount", "body": [ "int $1 = db.ProfitSubsidyDetail.Count(m => $2);", ] }, "添加分润补贴明细": { "prefix": "ym-db-ProfitSubsidyDetail-Create", "body": [ "db.ProfitSubsidyDetail.Add(new ProfitSubsidyDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RecordNo = $1, //流水号", " BrandId = $2, //品牌", " ProductName = $3, //产品名称", " TradeMonth = $4, //交易月份", " MerchantId = $5, //商户", " MerNo = $6, //渠道商户编号", " SnNo = $7, //渠道SN号", " MerRegTime = $8, //渠道注册时间", " MerStandardDate = $9, //商户激活时间", " BelongUserId = $10, //商户归属人", " MerHelpFlag = $11, //是否属于扶持周期内商户", " SubsidyUserId = $12, //补贴人", " SubsidyType = $13, //分润补贴类型", " CreditTradeAmt = $14, //商户贷记卡交易总金额", " QrCreditTradeAmt = $15, //商户(云闪付)贷记卡交易总金额", " NonQrCreditTradeAmt = $16, //商户(非云闪付)贷记卡交易总金额", " CreditProfitRate = $17, //(非云闪付)贷记卡交易分润比例", " SubsidyProfitRate = $18, //创客活动期内直营商户分润万分之十", " SubsidyProfit = $19, //商户(非云闪付)贷记卡交易分润补贴金额", " Remark = $20, //备注", "});" ] },"删除某个分润补贴明细": { "prefix": "ym-db-ProfitSubsidyDetail-Delete", "body": [ "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ProfitSubsidyDetail.Remove($1);", "}" ] }, "查询第三方平台设置列表": { "prefix": "ym-db-PublicAccountSet-Find", "body": [ "List $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PublicAccountSet $3 in $1)", "{", "}" ] }, "查询第三方平台设置列表,并取值": { "prefix": "ym-db-PublicAccountSet-FindWithData", "body": [ "List $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PublicAccountSet $3 in $1)", "{", " int Id = $3.Id; //Id", " string AlipayAppId = $3.AlipayAppId; //支付宝AppId", " string AlipayPartnerId = $3.AlipayPartnerId; //支付宝合作者Id", " string AlipayPrivateKey = $3.AlipayPrivateKey; //支付宝私钥", " string AlipayPublicKey = $3.AlipayPublicKey; //支付宝公钥", " string WeChatAppId = $3.WeChatAppId; //微信公众号AppId", " string WeChatAppSecret = $3.WeChatAppSecret; //微信公众号AppSecret", " string WeChatMchId = $3.WeChatMchId; //微信商户号", " string WeChatPayKey = $3.WeChatPayKey; //微信支付密钥", " string WeChatOpenAppId = $3.WeChatOpenAppId; //微信开放平台AppId", " string WeChatOpenAppSecret = $3.WeChatOpenAppSecret; //微信开放平台AppSecret", " string ServerIp = $3.ServerIp; //服务器IP", " string WeChatMiniAppId = $3.WeChatMiniAppId; //微信小程序AppId", " string WeChatMiniAppSecret = $3.WeChatMiniAppSecret; //微信小程序AppSecret", " string QqAndroidAppId = $3.QqAndroidAppId; //QQ安卓AppId", " string QqAndroidAppKey = $3.QqAndroidAppKey; //QQ安卓AppKey", " string QqIosAppId = $3.QqIosAppId; //QQIOSAppId", " string QqIosAppKey = $3.QqIosAppKey; //QQIOSAppKey", " string AliyunAccessKeyId = $3.AliyunAccessKeyId; //阿里云AccessKeyID", " string AliyunAccessKeySecret = $3.AliyunAccessKeySecret; //阿里云AccessKeySecret", " string AliyunPushAndroidAppId = $3.AliyunPushAndroidAppId; //阿里云推送安卓AppId", " string AliyunPushAndroidAppSecret = $3.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret", " string AliyunPushIosAppId = $3.AliyunPushIosAppId; //阿里云推送IOSAppId", " string AliyunPushIosAppSecret = $3.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret", " string MobAppKey = $3.MobAppKey; //MobAppKey", " string MobAppSecret = $3.MobAppSecret; //MobAppSecret", " string MeiQiaAppKey = $3.MeiQiaAppKey; //美洽AppKey", " string ErpApiUrl = $3.ErpApiUrl; //请求地址", " string ErpAppCode = $3.ErpAppCode; //AppCode", " string SmsApiPwd = $3.SmsApiPwd; //密码", " string SmsApiSign = $3.SmsApiSign; //签名", " string SmsApiUserId = $3.SmsApiUserId; //账号", " string SmsApiDefaultTemplate = $3.SmsApiDefaultTemplate; //默认验证码模板", " string AliyunRegionId = $3.AliyunRegionId; //阿里云服务器别名", " string AliyunAndroidNotifyTitle = $3.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题", " string AliyunAndroidActivity = $3.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity", "}" ] }, "查询第三方平台设置": { "prefix": "ym-db-PublicAccountSet-Exist", "body": [ "bool $1 = db.PublicAccountSet.Any(m => m.Id == $2);", ] }, "查询某个第三方平台设置,并取值": { "prefix": "ym-db-PublicAccountSet-FindByPrimaryKey", "body": [ "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int Id = $1.Id; //Id", " string AlipayAppId = $1.AlipayAppId; //支付宝AppId", " string AlipayPartnerId = $1.AlipayPartnerId; //支付宝合作者Id", " string AlipayPrivateKey = $1.AlipayPrivateKey; //支付宝私钥", " string AlipayPublicKey = $1.AlipayPublicKey; //支付宝公钥", " string WeChatAppId = $1.WeChatAppId; //微信公众号AppId", " string WeChatAppSecret = $1.WeChatAppSecret; //微信公众号AppSecret", " string WeChatMchId = $1.WeChatMchId; //微信商户号", " string WeChatPayKey = $1.WeChatPayKey; //微信支付密钥", " string WeChatOpenAppId = $1.WeChatOpenAppId; //微信开放平台AppId", " string WeChatOpenAppSecret = $1.WeChatOpenAppSecret; //微信开放平台AppSecret", " string ServerIp = $1.ServerIp; //服务器IP", " string WeChatMiniAppId = $1.WeChatMiniAppId; //微信小程序AppId", " string WeChatMiniAppSecret = $1.WeChatMiniAppSecret; //微信小程序AppSecret", " string QqAndroidAppId = $1.QqAndroidAppId; //QQ安卓AppId", " string QqAndroidAppKey = $1.QqAndroidAppKey; //QQ安卓AppKey", " string QqIosAppId = $1.QqIosAppId; //QQIOSAppId", " string QqIosAppKey = $1.QqIosAppKey; //QQIOSAppKey", " string AliyunAccessKeyId = $1.AliyunAccessKeyId; //阿里云AccessKeyID", " string AliyunAccessKeySecret = $1.AliyunAccessKeySecret; //阿里云AccessKeySecret", " string AliyunPushAndroidAppId = $1.AliyunPushAndroidAppId; //阿里云推送安卓AppId", " string AliyunPushAndroidAppSecret = $1.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret", " string AliyunPushIosAppId = $1.AliyunPushIosAppId; //阿里云推送IOSAppId", " string AliyunPushIosAppSecret = $1.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret", " string MobAppKey = $1.MobAppKey; //MobAppKey", " string MobAppSecret = $1.MobAppSecret; //MobAppSecret", " string MeiQiaAppKey = $1.MeiQiaAppKey; //美洽AppKey", " string ErpApiUrl = $1.ErpApiUrl; //请求地址", " string ErpAppCode = $1.ErpAppCode; //AppCode", " string SmsApiPwd = $1.SmsApiPwd; //密码", " string SmsApiSign = $1.SmsApiSign; //签名", " string SmsApiUserId = $1.SmsApiUserId; //账号", " string SmsApiDefaultTemplate = $1.SmsApiDefaultTemplate; //默认验证码模板", " string AliyunRegionId = $1.AliyunRegionId; //阿里云服务器别名", " string AliyunAndroidNotifyTitle = $1.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题", " string AliyunAndroidActivity = $1.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity", "}" ] }, "查询某个第三方平台设置,并赋值": { "prefix": "ym-db-PublicAccountSet-Update", "body": [ "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Id = $2; //Id", " $1.AlipayAppId = $3; //支付宝AppId", " $1.AlipayPartnerId = $4; //支付宝合作者Id", " $1.AlipayPrivateKey = $5; //支付宝私钥", " $1.AlipayPublicKey = $6; //支付宝公钥", " $1.WeChatAppId = $7; //微信公众号AppId", " $1.WeChatAppSecret = $8; //微信公众号AppSecret", " $1.WeChatMchId = $9; //微信商户号", " $1.WeChatPayKey = $10; //微信支付密钥", " $1.WeChatOpenAppId = $11; //微信开放平台AppId", " $1.WeChatOpenAppSecret = $12; //微信开放平台AppSecret", " $1.ServerIp = $13; //服务器IP", " $1.WeChatMiniAppId = $14; //微信小程序AppId", " $1.WeChatMiniAppSecret = $15; //微信小程序AppSecret", " $1.QqAndroidAppId = $16; //QQ安卓AppId", " $1.QqAndroidAppKey = $17; //QQ安卓AppKey", " $1.QqIosAppId = $18; //QQIOSAppId", " $1.QqIosAppKey = $19; //QQIOSAppKey", " $1.AliyunAccessKeyId = $20; //阿里云AccessKeyID", " $1.AliyunAccessKeySecret = $21; //阿里云AccessKeySecret", " $1.AliyunPushAndroidAppId = $22; //阿里云推送安卓AppId", " $1.AliyunPushAndroidAppSecret = $23; //阿里云推送安卓AppSecret", " $1.AliyunPushIosAppId = $24; //阿里云推送IOSAppId", " $1.AliyunPushIosAppSecret = $25; //阿里云推送IOSAppSecret", " $1.MobAppKey = $26; //MobAppKey", " $1.MobAppSecret = $27; //MobAppSecret", " $1.MeiQiaAppKey = $28; //美洽AppKey", " $1.ErpApiUrl = $29; //请求地址", " $1.ErpAppCode = $30; //AppCode", " $1.SmsApiPwd = $31; //密码", " $1.SmsApiSign = $32; //签名", " $1.SmsApiUserId = $33; //账号", " $1.SmsApiDefaultTemplate = $34; //默认验证码模板", " $1.AliyunRegionId = $35; //阿里云服务器别名", " $1.AliyunAndroidNotifyTitle = $36; //阿里云安卓弹窗标题", " $1.AliyunAndroidActivity = $37; //阿里云点击通知后跳转的Activity", "}" ] }, "获取第三方平台设置数量": { "prefix": "ym-db-PublicAccountSet-FindAndCount", "body": [ "int $1 = db.PublicAccountSet.Count(m => $2);", ] }, "添加第三方平台设置": { "prefix": "ym-db-PublicAccountSet-Create", "body": [ "db.PublicAccountSet.Add(new PublicAccountSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Id = $1, //Id", " AlipayAppId = $2, //支付宝AppId", " AlipayPartnerId = $3, //支付宝合作者Id", " AlipayPrivateKey = $4, //支付宝私钥", " AlipayPublicKey = $5, //支付宝公钥", " WeChatAppId = $6, //微信公众号AppId", " WeChatAppSecret = $7, //微信公众号AppSecret", " WeChatMchId = $8, //微信商户号", " WeChatPayKey = $9, //微信支付密钥", " WeChatOpenAppId = $10, //微信开放平台AppId", " WeChatOpenAppSecret = $11, //微信开放平台AppSecret", " ServerIp = $12, //服务器IP", " WeChatMiniAppId = $13, //微信小程序AppId", " WeChatMiniAppSecret = $14, //微信小程序AppSecret", " QqAndroidAppId = $15, //QQ安卓AppId", " QqAndroidAppKey = $16, //QQ安卓AppKey", " QqIosAppId = $17, //QQIOSAppId", " QqIosAppKey = $18, //QQIOSAppKey", " AliyunAccessKeyId = $19, //阿里云AccessKeyID", " AliyunAccessKeySecret = $20, //阿里云AccessKeySecret", " AliyunPushAndroidAppId = $21, //阿里云推送安卓AppId", " AliyunPushAndroidAppSecret = $22, //阿里云推送安卓AppSecret", " AliyunPushIosAppId = $23, //阿里云推送IOSAppId", " AliyunPushIosAppSecret = $24, //阿里云推送IOSAppSecret", " MobAppKey = $25, //MobAppKey", " MobAppSecret = $26, //MobAppSecret", " MeiQiaAppKey = $27, //美洽AppKey", " ErpApiUrl = $28, //请求地址", " ErpAppCode = $29, //AppCode", " SmsApiPwd = $30, //密码", " SmsApiSign = $31, //签名", " SmsApiUserId = $32, //账号", " SmsApiDefaultTemplate = $33, //默认验证码模板", " AliyunRegionId = $34, //阿里云服务器别名", " AliyunAndroidNotifyTitle = $35, //阿里云安卓弹窗标题", " AliyunAndroidActivity = $36, //阿里云点击通知后跳转的Activity", "});" ] },"删除某个第三方平台设置": { "prefix": "ym-db-PublicAccountSet-Delete", "body": [ "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PublicAccountSet.Remove($1);", "}" ] }, "查询拉新活动信息列表": { "prefix": "ym-db-PullNewAct-Find", "body": [ "List $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullNewAct $3 in $1)", "{", "}" ] }, "查询拉新活动信息列表,并取值": { "prefix": "ym-db-PullNewAct-FindWithData", "body": [ "List $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullNewAct $3 in $1)", "{", " int SnDelayDay = $3.SnDelayDay; //机具延时时间", " int ProductType = $3.ProductType; //产品类型", " string ProductName = $3.ProductName; //产品名称", " string ActStdCond = $3.ActStdCond; //拉新活动达标条件", " DateTime ActEffectStartDate = $3.ActEffectStartDate; //有效开始时间", " DateTime ActEffectEndDate = $3.ActEffectEndDate; //有效结束时间", " string Remark = $3.Remark; //备注", "}" ] }, "查询拉新活动信息": { "prefix": "ym-db-PullNewAct-Exist", "body": [ "bool $1 = db.PullNewAct.Any(m => m.Id == $2);", ] }, "查询某个拉新活动信息,并取值": { "prefix": "ym-db-PullNewAct-FindByPrimaryKey", "body": [ "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int SnDelayDay = $1.SnDelayDay; //机具延时时间", " int ProductType = $1.ProductType; //产品类型", " string ProductName = $1.ProductName; //产品名称", " string ActStdCond = $1.ActStdCond; //拉新活动达标条件", " DateTime ActEffectStartDate = $1.ActEffectStartDate; //有效开始时间", " DateTime ActEffectEndDate = $1.ActEffectEndDate; //有效结束时间", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个拉新活动信息,并赋值": { "prefix": "ym-db-PullNewAct-Update", "body": [ "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.SnDelayDay = $2; //机具延时时间", " $1.ProductType = $3; //产品类型", " $1.ProductName = $4; //产品名称", " $1.ActStdCond = $5; //拉新活动达标条件", " $1.ActEffectStartDate = $6; //有效开始时间", " $1.ActEffectEndDate = $7; //有效结束时间", " $1.Remark = $8; //备注", "}" ] }, "获取拉新活动信息数量": { "prefix": "ym-db-PullNewAct-FindAndCount", "body": [ "int $1 = db.PullNewAct.Count(m => $2);", ] }, "添加拉新活动信息": { "prefix": "ym-db-PullNewAct-Create", "body": [ "db.PullNewAct.Add(new PullNewAct()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " SnDelayDay = $1, //机具延时时间", " ProductType = $2, //产品类型", " ProductName = $3, //产品名称", " ActStdCond = $4, //拉新活动达标条件", " ActEffectStartDate = $5, //有效开始时间", " ActEffectEndDate = $6, //有效结束时间", " Remark = $7, //备注", "});" ] },"删除某个拉新活动信息": { "prefix": "ym-db-PullNewAct-Delete", "body": [ "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PullNewAct.Remove($1);", "}" ] }, "查询拉新明细列表": { "prefix": "ym-db-PullNewDetail-Find", "body": [ "List $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullNewDetail $3 in $1)", "{", "}" ] }, "查询拉新明细列表,并取值": { "prefix": "ym-db-PullNewDetail-FindWithData", "body": [ "List $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullNewDetail $3 in $1)", "{", " string StatDate = $3.StatDate; //统计日期", " string StatMonth = $3.StatMonth; //统计所在月份", " int UserId = $3.UserId; //创客", " int StatType = $3.StatType; //统计类型", " int RecUserId = $3.RecUserId; //招募人", " string RecMallOrder = $3.RecMallOrder; //招募人商城订单号", " DateTime RecMallOrderTime = $3.RecMallOrderTime; //招募创客商城下单时间", " DateTime RecMallSendTime = $3.RecMallSendTime; //招募人商城发货时间", " int RecMallBrandId = $3.RecMallBrandId; //招募人商城订单品牌", " string RecMallProductName = $3.RecMallProductName; //招募人商城订单产品名称", " int RecMallProductNum = $3.RecMallProductNum; //招募人商城订单产品数量", " int BizStatus = $3.BizStatus; //业务状态", " int RewardStatus = $3.RewardStatus; //奖励状态", " string Remark = $3.Remark; //备注", " int RecUserType = $3.RecUserType; //商户创客类型", " DateTime RegDate = $3.RegDate; //注册时间", "}" ] }, "查询拉新明细": { "prefix": "ym-db-PullNewDetail-Exist", "body": [ "bool $1 = db.PullNewDetail.Any(m => m.Id == $2);", ] }, "查询某个拉新明细,并取值": { "prefix": "ym-db-PullNewDetail-FindByPrimaryKey", "body": [ "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string StatDate = $1.StatDate; //统计日期", " string StatMonth = $1.StatMonth; //统计所在月份", " int UserId = $1.UserId; //创客", " int StatType = $1.StatType; //统计类型", " int RecUserId = $1.RecUserId; //招募人", " string RecMallOrder = $1.RecMallOrder; //招募人商城订单号", " DateTime RecMallOrderTime = $1.RecMallOrderTime; //招募创客商城下单时间", " DateTime RecMallSendTime = $1.RecMallSendTime; //招募人商城发货时间", " int RecMallBrandId = $1.RecMallBrandId; //招募人商城订单品牌", " string RecMallProductName = $1.RecMallProductName; //招募人商城订单产品名称", " int RecMallProductNum = $1.RecMallProductNum; //招募人商城订单产品数量", " int BizStatus = $1.BizStatus; //业务状态", " int RewardStatus = $1.RewardStatus; //奖励状态", " string Remark = $1.Remark; //备注", " int RecUserType = $1.RecUserType; //商户创客类型", " DateTime RegDate = $1.RegDate; //注册时间", "}" ] }, "查询某个拉新明细,并赋值": { "prefix": "ym-db-PullNewDetail-Update", "body": [ "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StatDate = $2; //统计日期", " $1.StatMonth = $3; //统计所在月份", " $1.UserId = $4; //创客", " $1.StatType = $5; //统计类型", " $1.RecUserId = $6; //招募人", " $1.RecMallOrder = $7; //招募人商城订单号", " $1.RecMallOrderTime = $8; //招募创客商城下单时间", " $1.RecMallSendTime = $9; //招募人商城发货时间", " $1.RecMallBrandId = $10; //招募人商城订单品牌", " $1.RecMallProductName = $11; //招募人商城订单产品名称", " $1.RecMallProductNum = $12; //招募人商城订单产品数量", " $1.BizStatus = $13; //业务状态", " $1.RewardStatus = $14; //奖励状态", " $1.Remark = $15; //备注", " $1.RecUserType = $16; //商户创客类型", " $1.RegDate = $17; //注册时间", "}" ] }, "获取拉新明细数量": { "prefix": "ym-db-PullNewDetail-FindAndCount", "body": [ "int $1 = db.PullNewDetail.Count(m => $2);", ] }, "添加拉新明细": { "prefix": "ym-db-PullNewDetail-Create", "body": [ "db.PullNewDetail.Add(new PullNewDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StatDate = $1, //统计日期", " StatMonth = $2, //统计所在月份", " UserId = $3, //创客", " StatType = $4, //统计类型", " RecUserId = $5, //招募人", " RecMallOrder = $6, //招募人商城订单号", " RecMallOrderTime = $7, //招募创客商城下单时间", " RecMallSendTime = $8, //招募人商城发货时间", " RecMallBrandId = $9, //招募人商城订单品牌", " RecMallProductName = $10, //招募人商城订单产品名称", " RecMallProductNum = $11, //招募人商城订单产品数量", " BizStatus = $12, //业务状态", " RewardStatus = $13, //奖励状态", " Remark = $14, //备注", " RecUserType = $15, //商户创客类型", " RegDate = $16, //注册时间", "});" ] },"删除某个拉新明细": { "prefix": "ym-db-PullNewDetail-Delete", "body": [ "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PullNewDetail.Remove($1);", "}" ] }, "查询拉新日统计信息列表": { "prefix": "ym-db-PullnewSummary-Find", "body": [ "List $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullnewSummary $3 in $1)", "{", "}" ] }, "查询拉新日统计信息列表,并取值": { "prefix": "ym-db-PullnewSummary-FindWithData", "body": [ "List $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (PullnewSummary $3 in $1)", "{", " string StatDate = $3.StatDate; //统计日", " string StatMonth = $3.StatMonth; //统计月", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //产品类型", " int RecUserAuthNum = $3.RecUserAuthNum; //招募实名创客数", " int RecUserDeliveryStdNum = $3.RecUserDeliveryStdNum; //招募创客提货达标人数", " int RuleSnDelayDay = $3.RuleSnDelayDay; //规则机具延迟天数", " int BizSnDelayDay = $3.BizSnDelayDay; //业务机具延迟天数", " string Remark = $3.Remark; //备注", "}" ] }, "查询拉新日统计信息": { "prefix": "ym-db-PullnewSummary-Exist", "body": [ "bool $1 = db.PullnewSummary.Any(m => m.Id == $2);", ] }, "查询某个拉新日统计信息,并取值": { "prefix": "ym-db-PullnewSummary-FindByPrimaryKey", "body": [ "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string StatDate = $1.StatDate; //统计日", " string StatMonth = $1.StatMonth; //统计月", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //产品类型", " int RecUserAuthNum = $1.RecUserAuthNum; //招募实名创客数", " int RecUserDeliveryStdNum = $1.RecUserDeliveryStdNum; //招募创客提货达标人数", " int RuleSnDelayDay = $1.RuleSnDelayDay; //规则机具延迟天数", " int BizSnDelayDay = $1.BizSnDelayDay; //业务机具延迟天数", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个拉新日统计信息,并赋值": { "prefix": "ym-db-PullnewSummary-Update", "body": [ "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StatDate = $2; //统计日", " $1.StatMonth = $3; //统计月", " $1.UserId = $4; //创客", " $1.BrandId = $5; //产品类型", " $1.RecUserAuthNum = $6; //招募实名创客数", " $1.RecUserDeliveryStdNum = $7; //招募创客提货达标人数", " $1.RuleSnDelayDay = $8; //规则机具延迟天数", " $1.BizSnDelayDay = $9; //业务机具延迟天数", " $1.Remark = $10; //备注", "}" ] }, "获取拉新日统计信息数量": { "prefix": "ym-db-PullnewSummary-FindAndCount", "body": [ "int $1 = db.PullnewSummary.Count(m => $2);", ] }, "添加拉新日统计信息": { "prefix": "ym-db-PullnewSummary-Create", "body": [ "db.PullnewSummary.Add(new PullnewSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StatDate = $1, //统计日", " StatMonth = $2, //统计月", " UserId = $3, //创客", " BrandId = $4, //产品类型", " RecUserAuthNum = $5, //招募实名创客数", " RecUserDeliveryStdNum = $6, //招募创客提货达标人数", " RuleSnDelayDay = $7, //规则机具延迟天数", " BizSnDelayDay = $8, //业务机具延迟天数", " Remark = $9, //备注", "});" ] },"删除某个拉新日统计信息": { "prefix": "ym-db-PullnewSummary-Delete", "body": [ "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.PullnewSummary.Remove($1);", "}" ] }, "查询服务中心列表": { "prefix": "ym-db-ServiceCenter-Find", "body": [ "List $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ServiceCenter $3 in $1)", "{", "}" ] }, "查询服务中心列表,并取值": { "prefix": "ym-db-ServiceCenter-FindWithData", "body": [ "List $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (ServiceCenter $3 in $1)", "{", " string Title = $3.Title; //标题", " string SubTitle = $3.SubTitle; //副标题", " string Content = $3.Content; //内容", " int CategoryId = $3.CategoryId; //问答类型", "}" ] }, "查询服务中心": { "prefix": "ym-db-ServiceCenter-Exist", "body": [ "bool $1 = db.ServiceCenter.Any(m => m.Id == $2);", ] }, "查询某个服务中心,并取值": { "prefix": "ym-db-ServiceCenter-FindByPrimaryKey", "body": [ "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Title = $1.Title; //标题", " string SubTitle = $1.SubTitle; //副标题", " string Content = $1.Content; //内容", " int CategoryId = $1.CategoryId; //问答类型", "}" ] }, "查询某个服务中心,并赋值": { "prefix": "ym-db-ServiceCenter-Update", "body": [ "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Title = $2; //标题", " $1.SubTitle = $3; //副标题", " $1.Content = $4; //内容", " $1.CategoryId = $5; //问答类型", "}" ] }, "获取服务中心数量": { "prefix": "ym-db-ServiceCenter-FindAndCount", "body": [ "int $1 = db.ServiceCenter.Count(m => $2);", ] }, "添加服务中心": { "prefix": "ym-db-ServiceCenter-Create", "body": [ "db.ServiceCenter.Add(new ServiceCenter()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Title = $1, //标题", " SubTitle = $2, //副标题", " Content = $3, //内容", " CategoryId = $4, //问答类型", "});" ] },"删除某个服务中心": { "prefix": "ym-db-ServiceCenter-Delete", "body": [ "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.ServiceCenter.Remove($1);", "}" ] }, "查询仓库库存变动信息列表": { "prefix": "ym-db-StoreBalance-Find", "body": [ "List $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreBalance $3 in $1)", "{", "}" ] }, "查询仓库库存变动信息列表,并取值": { "prefix": "ym-db-StoreBalance-FindWithData", "body": [ "List $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreBalance $3 in $1)", "{", " int StoreId = $3.StoreId; //仓库", " string TransRecordNo = $3.TransRecordNo; //交易流水编号", " int TransType = $3.TransType; //交易类型", " int BrandId = $3.BrandId; //产品类型", " int OpStoreNum = $3.OpStoreNum; //操作库存数", " string OpSymbol = $3.OpSymbol; //操作符", " int BeforeTotalNum = $3.BeforeTotalNum; //操作前总库存数", " int AfterTotalNum = $3.AfterTotalNum; //操作后总库存数", " int BeforeLaveNum = $3.BeforeLaveNum; //操作前剩余库存数", " int AfterLaveNum = $3.AfterLaveNum; //操作后剩余库存数", " int BeforeOutNum = $3.BeforeOutNum; //操作前出库数", " int AfterOutNum = $3.AfterOutNum; //操作后出库数", "}" ] }, "查询仓库库存变动信息": { "prefix": "ym-db-StoreBalance-Exist", "body": [ "bool $1 = db.StoreBalance.Any(m => m.Id == $2);", ] }, "查询某个仓库库存变动信息,并取值": { "prefix": "ym-db-StoreBalance-FindByPrimaryKey", "body": [ "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int StoreId = $1.StoreId; //仓库", " string TransRecordNo = $1.TransRecordNo; //交易流水编号", " int TransType = $1.TransType; //交易类型", " int BrandId = $1.BrandId; //产品类型", " int OpStoreNum = $1.OpStoreNum; //操作库存数", " string OpSymbol = $1.OpSymbol; //操作符", " int BeforeTotalNum = $1.BeforeTotalNum; //操作前总库存数", " int AfterTotalNum = $1.AfterTotalNum; //操作后总库存数", " int BeforeLaveNum = $1.BeforeLaveNum; //操作前剩余库存数", " int AfterLaveNum = $1.AfterLaveNum; //操作后剩余库存数", " int BeforeOutNum = $1.BeforeOutNum; //操作前出库数", " int AfterOutNum = $1.AfterOutNum; //操作后出库数", "}" ] }, "查询某个仓库库存变动信息,并赋值": { "prefix": "ym-db-StoreBalance-Update", "body": [ "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StoreId = $2; //仓库", " $1.TransRecordNo = $3; //交易流水编号", " $1.TransType = $4; //交易类型", " $1.BrandId = $5; //产品类型", " $1.OpStoreNum = $6; //操作库存数", " $1.OpSymbol = $7; //操作符", " $1.BeforeTotalNum = $8; //操作前总库存数", " $1.AfterTotalNum = $9; //操作后总库存数", " $1.BeforeLaveNum = $10; //操作前剩余库存数", " $1.AfterLaveNum = $11; //操作后剩余库存数", " $1.BeforeOutNum = $12; //操作前出库数", " $1.AfterOutNum = $13; //操作后出库数", "}" ] }, "获取仓库库存变动信息数量": { "prefix": "ym-db-StoreBalance-FindAndCount", "body": [ "int $1 = db.StoreBalance.Count(m => $2);", ] }, "添加仓库库存变动信息": { "prefix": "ym-db-StoreBalance-Create", "body": [ "db.StoreBalance.Add(new StoreBalance()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StoreId = $1, //仓库", " TransRecordNo = $2, //交易流水编号", " TransType = $3, //交易类型", " BrandId = $4, //产品类型", " OpStoreNum = $5, //操作库存数", " OpSymbol = $6, //操作符", " BeforeTotalNum = $7, //操作前总库存数", " AfterTotalNum = $8, //操作后总库存数", " BeforeLaveNum = $9, //操作前剩余库存数", " AfterLaveNum = $10, //操作后剩余库存数", " BeforeOutNum = $11, //操作前出库数", " AfterOutNum = $12, //操作后出库数", "});" ] },"删除某个仓库库存变动信息": { "prefix": "ym-db-StoreBalance-Delete", "body": [ "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreBalance.Remove($1);", "}" ] }, "查询机具变动历史列表": { "prefix": "ym-db-StoreChangeHistory-Find", "body": [ "List $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreChangeHistory $3 in $1)", "{", "}" ] }, "查询机具变动历史列表,并取值": { "prefix": "ym-db-StoreChangeHistory-FindWithData", "body": [ "List $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreChangeHistory $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //产品类型", " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号", " string BizBatchNo = $3.BizBatchNo; //业务批次号", " int TransType = $3.TransType; //交易类型", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN机具类型", " int StockOpDirect = $3.StockOpDirect; //库存操作方向", " string DeviceVendor = $3.DeviceVendor; //设备厂商", " string DeviceType = $3.DeviceType; //设备类型", " string DeviceModel = $3.DeviceModel; //设备型号", " int FromUserId = $3.FromUserId; //出货创客", " DateTime FromDate = $3.FromDate; //出库时间", " string FromRemark = $3.FromRemark; //出库备注", " int ToUserId = $3.ToUserId; //收货创客", " int ToStoreId = $3.ToStoreId; //创客退货收货仓库", " DateTime ToDate = $3.ToDate; //入库时间", " string ToRemark = $3.ToRemark; //入库备注", " int SourceStoreId = $3.SourceStoreId; //源仓库", " int StoreId = $3.StoreId; //仓库", "}" ] }, "查询机具变动历史": { "prefix": "ym-db-StoreChangeHistory-Exist", "body": [ "bool $1 = db.StoreChangeHistory.Any(m => m.Id == $2);", ] }, "查询某个机具变动历史,并取值": { "prefix": "ym-db-StoreChangeHistory-FindByPrimaryKey", "body": [ "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //产品类型", " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号", " string BizBatchNo = $1.BizBatchNo; //业务批次号", " int TransType = $1.TransType; //交易类型", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN机具类型", " int StockOpDirect = $1.StockOpDirect; //库存操作方向", " string DeviceVendor = $1.DeviceVendor; //设备厂商", " string DeviceType = $1.DeviceType; //设备类型", " string DeviceModel = $1.DeviceModel; //设备型号", " int FromUserId = $1.FromUserId; //出货创客", " DateTime FromDate = $1.FromDate; //出库时间", " string FromRemark = $1.FromRemark; //出库备注", " int ToUserId = $1.ToUserId; //收货创客", " int ToStoreId = $1.ToStoreId; //创客退货收货仓库", " DateTime ToDate = $1.ToDate; //入库时间", " string ToRemark = $1.ToRemark; //入库备注", " int SourceStoreId = $1.SourceStoreId; //源仓库", " int StoreId = $1.StoreId; //仓库", "}" ] }, "查询某个机具变动历史,并赋值": { "prefix": "ym-db-StoreChangeHistory-Update", "body": [ "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //产品类型", " $1.ChangeRecordNo = $4; //变更记录单号", " $1.BizBatchNo = $5; //业务批次号", " $1.TransType = $6; //交易类型", " $1.SnNo = $7; //SN编号", " $1.SnType = $8; //SN机具类型", " $1.StockOpDirect = $9; //库存操作方向", " $1.DeviceVendor = $10; //设备厂商", " $1.DeviceType = $11; //设备类型", " $1.DeviceModel = $12; //设备型号", " $1.FromUserId = $13; //出货创客", " $1.FromDate = $14; //出库时间", " $1.FromRemark = $15; //出库备注", " $1.ToUserId = $16; //收货创客", " $1.ToStoreId = $17; //创客退货收货仓库", " $1.ToDate = $18; //入库时间", " $1.ToRemark = $19; //入库备注", " $1.SourceStoreId = $20; //源仓库", " $1.StoreId = $21; //仓库", "}" ] }, "获取机具变动历史数量": { "prefix": "ym-db-StoreChangeHistory-FindAndCount", "body": [ "int $1 = db.StoreChangeHistory.Count(m => $2);", ] }, "添加机具变动历史": { "prefix": "ym-db-StoreChangeHistory-Create", "body": [ "db.StoreChangeHistory.Add(new StoreChangeHistory()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //产品类型", " ChangeRecordNo = $3, //变更记录单号", " BizBatchNo = $4, //业务批次号", " TransType = $5, //交易类型", " SnNo = $6, //SN编号", " SnType = $7, //SN机具类型", " StockOpDirect = $8, //库存操作方向", " DeviceVendor = $9, //设备厂商", " DeviceType = $10, //设备类型", " DeviceModel = $11, //设备型号", " FromUserId = $12, //出货创客", " FromDate = $13, //出库时间", " FromRemark = $14, //出库备注", " ToUserId = $15, //收货创客", " ToStoreId = $16, //创客退货收货仓库", " ToDate = $17, //入库时间", " ToRemark = $18, //入库备注", " SourceStoreId = $19, //源仓库", " StoreId = $20, //仓库", "});" ] },"删除某个机具变动历史": { "prefix": "ym-db-StoreChangeHistory-Delete", "body": [ "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreChangeHistory.Remove($1);", "}" ] }, "查询仓库编号为主键的关联表列表": { "prefix": "ym-db-StoreForCode-Find", "body": [ "List $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreForCode $3 in $1)", "{", "}" ] }, "查询仓库编号为主键的关联表列表,并取值": { "prefix": "ym-db-StoreForCode-FindWithData", "body": [ "List $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreForCode $3 in $1)", "{", " string Code = $3.Code; //编号", " int StoreId = $3.StoreId; //仓库", "}" ] }, "查询仓库编号为主键的关联表": { "prefix": "ym-db-StoreForCode-Exist", "body": [ "bool $1 = db.StoreForCode.Any(m => m.Code == $2);", ] }, "查询某个仓库编号为主键的关联表,并取值": { "prefix": "ym-db-StoreForCode-FindByPrimaryKey", "body": [ "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " string Code = $1.Code; //编号", " int StoreId = $1.StoreId; //仓库", "}" ] }, "查询某个仓库编号为主键的关联表,并赋值": { "prefix": "ym-db-StoreForCode-Update", "body": [ "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " $1.Code = $2; //编号", " $1.StoreId = $3; //仓库", "}" ] }, "获取仓库编号为主键的关联表数量": { "prefix": "ym-db-StoreForCode-FindAndCount", "body": [ "int $1 = db.StoreForCode.Count(m => $2);", ] }, "添加仓库编号为主键的关联表": { "prefix": "ym-db-StoreForCode-Create", "body": [ "db.StoreForCode.Add(new StoreForCode()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Code = $1, //编号", " StoreId = $2, //仓库", "});" ] },"删除某个仓库编号为主键的关联表": { "prefix": "ym-db-StoreForCode-Delete", "body": [ "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);", "if ($1 != null)", "{", " db.StoreForCode.Remove($1);", "}" ] }, "查询仓库名称为主键的关联表列表": { "prefix": "ym-db-StoreForName-Find", "body": [ "List $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreForName $3 in $1)", "{", "}" ] }, "查询仓库名称为主键的关联表列表,并取值": { "prefix": "ym-db-StoreForName-FindWithData", "body": [ "List $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreForName $3 in $1)", "{", " string Name = $3.Name; //名称", " int StoreId = $3.StoreId; //仓库", "}" ] }, "查询仓库名称为主键的关联表": { "prefix": "ym-db-StoreForName-Exist", "body": [ "bool $1 = db.StoreForName.Any(m => m.Name == $2);", ] }, "查询某个仓库名称为主键的关联表,并取值": { "prefix": "ym-db-StoreForName-FindByPrimaryKey", "body": [ "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " int StoreId = $1.StoreId; //仓库", "}" ] }, "查询某个仓库名称为主键的关联表,并赋值": { "prefix": "ym-db-StoreForName-Update", "body": [ "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.StoreId = $3; //仓库", "}" ] }, "获取仓库名称为主键的关联表数量": { "prefix": "ym-db-StoreForName-FindAndCount", "body": [ "int $1 = db.StoreForName.Count(m => $2);", ] }, "添加仓库名称为主键的关联表": { "prefix": "ym-db-StoreForName-Create", "body": [ "db.StoreForName.Add(new StoreForName()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " StoreId = $2, //仓库", "});" ] },"删除某个仓库名称为主键的关联表": { "prefix": "ym-db-StoreForName-Delete", "body": [ "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);", "if ($1 != null)", "{", " db.StoreForName.Remove($1);", "}" ] }, "查询仓库列表": { "prefix": "ym-db-StoreHouse-Find", "body": [ "List $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreHouse $3 in $1)", "{", "}" ] }, "查询仓库列表,并取值": { "prefix": "ym-db-StoreHouse-FindWithData", "body": [ "List $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreHouse $3 in $1)", "{", " string StoreNo = $3.StoreNo; //仓库编号", " string StoreName = $3.StoreName; //仓库名称", " int UserId = $3.UserId; //仓库归属人", " string BrandId = $3.BrandId; //产品类型", " string ProductName = $3.ProductName; //产品名称", " string Address = $3.Address; //仓库地址", " int ManageUserId = $3.ManageUserId; //仓库管理员", " string ManagerEmail = $3.ManagerEmail; //管理者邮箱", " int ParentStoreId = $3.ParentStoreId; //父级Id", " string ParentNav = $3.ParentNav; //父级集合", " int StoreType = $3.StoreType; //仓库类型", " int TotalNum = $3.TotalNum; //总库存数", " int LaveNum = $3.LaveNum; //剩余库存数", " int OutNum = $3.OutNum; //出库数", " string Remark = $3.Remark; //备注", " string Areas = $3.Areas; //所属地区", " string LimitTopUserId = $3.LimitTopUserId; //限制创客特殊仓库", " int StoreStatus = $3.StoreStatus; //仓库状态", " int StoreKind = $3.StoreKind; //仓库归属类型", " string ManageMobile = $3.ManageMobile; //管理者手机号", "}" ] }, "查询仓库": { "prefix": "ym-db-StoreHouse-Exist", "body": [ "bool $1 = db.StoreHouse.Any(m => m.Id == $2);", ] }, "查询某个仓库,并取值": { "prefix": "ym-db-StoreHouse-FindByPrimaryKey", "body": [ "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string StoreNo = $1.StoreNo; //仓库编号", " string StoreName = $1.StoreName; //仓库名称", " int UserId = $1.UserId; //仓库归属人", " string BrandId = $1.BrandId; //产品类型", " string ProductName = $1.ProductName; //产品名称", " string Address = $1.Address; //仓库地址", " int ManageUserId = $1.ManageUserId; //仓库管理员", " string ManagerEmail = $1.ManagerEmail; //管理者邮箱", " int ParentStoreId = $1.ParentStoreId; //父级Id", " string ParentNav = $1.ParentNav; //父级集合", " int StoreType = $1.StoreType; //仓库类型", " int TotalNum = $1.TotalNum; //总库存数", " int LaveNum = $1.LaveNum; //剩余库存数", " int OutNum = $1.OutNum; //出库数", " string Remark = $1.Remark; //备注", " string Areas = $1.Areas; //所属地区", " string LimitTopUserId = $1.LimitTopUserId; //限制创客特殊仓库", " int StoreStatus = $1.StoreStatus; //仓库状态", " int StoreKind = $1.StoreKind; //仓库归属类型", " string ManageMobile = $1.ManageMobile; //管理者手机号", "}" ] }, "查询某个仓库,并赋值": { "prefix": "ym-db-StoreHouse-Update", "body": [ "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StoreNo = $2; //仓库编号", " $1.StoreName = $3; //仓库名称", " $1.UserId = $4; //仓库归属人", " $1.BrandId = $5; //产品类型", " $1.ProductName = $6; //产品名称", " $1.Address = $7; //仓库地址", " $1.ManageUserId = $8; //仓库管理员", " $1.ManagerEmail = $9; //管理者邮箱", " $1.ParentStoreId = $10; //父级Id", " $1.ParentNav = $11; //父级集合", " $1.StoreType = $12; //仓库类型", " $1.TotalNum = $13; //总库存数", " $1.LaveNum = $14; //剩余库存数", " $1.OutNum = $15; //出库数", " $1.Remark = $16; //备注", " $1.Areas = $17; //所属地区", " $1.LimitTopUserId = $18; //限制创客特殊仓库", " $1.StoreStatus = $19; //仓库状态", " $1.StoreKind = $20; //仓库归属类型", " $1.ManageMobile = $21; //管理者手机号", "}" ] }, "获取仓库数量": { "prefix": "ym-db-StoreHouse-FindAndCount", "body": [ "int $1 = db.StoreHouse.Count(m => $2);", ] }, "添加仓库": { "prefix": "ym-db-StoreHouse-Create", "body": [ "db.StoreHouse.Add(new StoreHouse()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StoreNo = $1, //仓库编号", " StoreName = $2, //仓库名称", " UserId = $3, //仓库归属人", " BrandId = $4, //产品类型", " ProductName = $5, //产品名称", " Address = $6, //仓库地址", " ManageUserId = $7, //仓库管理员", " ManagerEmail = $8, //管理者邮箱", " ParentStoreId = $9, //父级Id", " ParentNav = $10, //父级集合", " StoreType = $11, //仓库类型", " TotalNum = $12, //总库存数", " LaveNum = $13, //剩余库存数", " OutNum = $14, //出库数", " Remark = $15, //备注", " Areas = $16, //所属地区", " LimitTopUserId = $17, //限制创客特殊仓库", " StoreStatus = $18, //仓库状态", " StoreKind = $19, //仓库归属类型", " ManageMobile = $20, //管理者手机号", "});" ] },"删除某个仓库": { "prefix": "ym-db-StoreHouse-Delete", "body": [ "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreHouse.Remove($1);", "}" ] }, "查询仓库订单汇总列表": { "prefix": "ym-db-StoreMallOrderSummary-Find", "body": [ "List $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreMallOrderSummary $3 in $1)", "{", "}" ] }, "查询仓库订单汇总列表,并取值": { "prefix": "ym-db-StoreMallOrderSummary-FindWithData", "body": [ "List $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreMallOrderSummary $3 in $1)", "{", " string TradeMonth = $3.TradeMonth; //交易月", " int StoreId = $3.StoreId; //仓库", " int AgentStoreId = $3.AgentStoreId; //代理分仓", " int BrandId = $3.BrandId; //品牌", " decimal UnitPrice = $3.UnitPrice; //单价", " int OrderNum = $3.OrderNum; //订单数量", " int OrderAmt = $3.OrderAmt; //订单金额", " int RefundOrderNum = $3.RefundOrderNum; //退款订单数量", " decimal RefundAmt = $3.RefundAmt; //退款金额", " decimal SettleAmt = $3.SettleAmt; //结算金额", " int SettleStatus = $3.SettleStatus; //结算状态", " string Remark = $3.Remark; //备注", "}" ] }, "查询仓库订单汇总": { "prefix": "ym-db-StoreMallOrderSummary-Exist", "body": [ "bool $1 = db.StoreMallOrderSummary.Any(m => m.Id == $2);", ] }, "查询某个仓库订单汇总,并取值": { "prefix": "ym-db-StoreMallOrderSummary-FindByPrimaryKey", "body": [ "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeMonth = $1.TradeMonth; //交易月", " int StoreId = $1.StoreId; //仓库", " int AgentStoreId = $1.AgentStoreId; //代理分仓", " int BrandId = $1.BrandId; //品牌", " decimal UnitPrice = $1.UnitPrice; //单价", " int OrderNum = $1.OrderNum; //订单数量", " int OrderAmt = $1.OrderAmt; //订单金额", " int RefundOrderNum = $1.RefundOrderNum; //退款订单数量", " decimal RefundAmt = $1.RefundAmt; //退款金额", " decimal SettleAmt = $1.SettleAmt; //结算金额", " int SettleStatus = $1.SettleStatus; //结算状态", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个仓库订单汇总,并赋值": { "prefix": "ym-db-StoreMallOrderSummary-Update", "body": [ "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeMonth = $2; //交易月", " $1.StoreId = $3; //仓库", " $1.AgentStoreId = $4; //代理分仓", " $1.BrandId = $5; //品牌", " $1.UnitPrice = $6; //单价", " $1.OrderNum = $7; //订单数量", " $1.OrderAmt = $8; //订单金额", " $1.RefundOrderNum = $9; //退款订单数量", " $1.RefundAmt = $10; //退款金额", " $1.SettleAmt = $11; //结算金额", " $1.SettleStatus = $12; //结算状态", " $1.Remark = $13; //备注", "}" ] }, "获取仓库订单汇总数量": { "prefix": "ym-db-StoreMallOrderSummary-FindAndCount", "body": [ "int $1 = db.StoreMallOrderSummary.Count(m => $2);", ] }, "添加仓库订单汇总": { "prefix": "ym-db-StoreMallOrderSummary-Create", "body": [ "db.StoreMallOrderSummary.Add(new StoreMallOrderSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeMonth = $1, //交易月", " StoreId = $2, //仓库", " AgentStoreId = $3, //代理分仓", " BrandId = $4, //品牌", " UnitPrice = $5, //单价", " OrderNum = $6, //订单数量", " OrderAmt = $7, //订单金额", " RefundOrderNum = $8, //退款订单数量", " RefundAmt = $9, //退款金额", " SettleAmt = $10, //结算金额", " SettleStatus = $11, //结算状态", " Remark = $12, //备注", "});" ] },"删除某个仓库订单汇总": { "prefix": "ym-db-StoreMallOrderSummary-Delete", "body": [ "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreMallOrderSummary.Remove($1);", "}" ] }, "查询仓库SN激活统计列表": { "prefix": "ym-db-StoreSnActivateSummary-Find", "body": [ "List $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreSnActivateSummary $3 in $1)", "{", "}" ] }, "查询仓库SN激活统计列表,并取值": { "prefix": "ym-db-StoreSnActivateSummary-FindWithData", "body": [ "List $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreSnActivateSummary $3 in $1)", "{", " string TradeDate = $3.TradeDate; //交易日", " string TradeMonth = $3.TradeMonth; //交易月", " int StoreId = $3.StoreId; //仓库", " int AgentStoreId = $3.AgentStoreId; //代理分仓", " int BrandId = $3.BrandId; //产品类型", " int ActivateNum = $3.ActivateNum; //激活数量", " int RejectActNum = $3.RejectActNum; //互斥激活数量", " int TransferActNum = $3.TransferActNum; //划拨激活数量(循环机划拨激活数)", " int EffectActNum = $3.EffectActNum; //有效激活数量", " int UserApplyNum = $3.UserApplyNum; //创客申请数量", " string Remark = $3.Remark; //备注", "}" ] }, "查询仓库SN激活统计": { "prefix": "ym-db-StoreSnActivateSummary-Exist", "body": [ "bool $1 = db.StoreSnActivateSummary.Any(m => m.Id == $2);", ] }, "查询某个仓库SN激活统计,并取值": { "prefix": "ym-db-StoreSnActivateSummary-FindByPrimaryKey", "body": [ "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeDate = $1.TradeDate; //交易日", " string TradeMonth = $1.TradeMonth; //交易月", " int StoreId = $1.StoreId; //仓库", " int AgentStoreId = $1.AgentStoreId; //代理分仓", " int BrandId = $1.BrandId; //产品类型", " int ActivateNum = $1.ActivateNum; //激活数量", " int RejectActNum = $1.RejectActNum; //互斥激活数量", " int TransferActNum = $1.TransferActNum; //划拨激活数量(循环机划拨激活数)", " int EffectActNum = $1.EffectActNum; //有效激活数量", " int UserApplyNum = $1.UserApplyNum; //创客申请数量", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个仓库SN激活统计,并赋值": { "prefix": "ym-db-StoreSnActivateSummary-Update", "body": [ "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeDate = $2; //交易日", " $1.TradeMonth = $3; //交易月", " $1.StoreId = $4; //仓库", " $1.AgentStoreId = $5; //代理分仓", " $1.BrandId = $6; //产品类型", " $1.ActivateNum = $7; //激活数量", " $1.RejectActNum = $8; //互斥激活数量", " $1.TransferActNum = $9; //划拨激活数量(循环机划拨激活数)", " $1.EffectActNum = $10; //有效激活数量", " $1.UserApplyNum = $11; //创客申请数量", " $1.Remark = $12; //备注", "}" ] }, "获取仓库SN激活统计数量": { "prefix": "ym-db-StoreSnActivateSummary-FindAndCount", "body": [ "int $1 = db.StoreSnActivateSummary.Count(m => $2);", ] }, "添加仓库SN激活统计": { "prefix": "ym-db-StoreSnActivateSummary-Create", "body": [ "db.StoreSnActivateSummary.Add(new StoreSnActivateSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeDate = $1, //交易日", " TradeMonth = $2, //交易月", " StoreId = $3, //仓库", " AgentStoreId = $4, //代理分仓", " BrandId = $5, //产品类型", " ActivateNum = $6, //激活数量", " RejectActNum = $7, //互斥激活数量", " TransferActNum = $8, //划拨激活数量(循环机划拨激活数)", " EffectActNum = $9, //有效激活数量", " UserApplyNum = $10, //创客申请数量", " Remark = $11, //备注", "});" ] },"删除某个仓库SN激活统计": { "prefix": "ym-db-StoreSnActivateSummary-Delete", "body": [ "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreSnActivateSummary.Remove($1);", "}" ] }, "查询仓库库存变动记录列表": { "prefix": "ym-db-StoreStockChange-Find", "body": [ "List $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreStockChange $3 in $1)", "{", "}" ] }, "查询仓库库存变动记录列表,并取值": { "prefix": "ym-db-StoreStockChange-FindWithData", "body": [ "List $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreStockChange $3 in $1)", "{", " int StoreId = $3.StoreId; //仓库", " int BrandId = $3.BrandId; //产品类型", " string ProductName = $3.ProductName; //产品名称", " string ChangeNo = $3.ChangeNo ; //变更单号", " string BizBatchNo = $3.BizBatchNo; //业务批次号", " int TransType = $3.TransType; //交易类型", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN机具类型", " int StockOpDirect = $3.StockOpDirect; //库存操作方向", " int SnStatus = $3.SnStatus; //SN状态", " int BindStatus = $3.BindStatus; //绑定状态", " int BindMerchant = $3.BindMerchant; //绑定商户", " int ActiveStatus = $3.ActiveStatus; //激活状态", " int ActRewardUserId = $3.ActRewardUserId; //激活奖励人", " string DeviceVendor = $3.DeviceVendor; //设备厂商", " string DeviceModel = $3.DeviceModel; //设备型号", " string DeviceType = $3.DeviceType; //设备类型", " int FromUserId = $3.FromUserId; //出货人", " DateTime FromDate = $3.FromDate; //出库时间", " string FromRemark = $3.FromRemark; //出库备注", " int ToUserId = $3.ToUserId; //收货人", " int ToStoreId = $3.ToStoreId; //退货收货仓库", " DateTime ToDate = $3.ToDate; //入库时间", " string ToRemark = $3.ToRemark; //入库备注", " int SourceStoreId = $3.SourceStoreId; //源仓库编号", " string ExpressNo = $3.ExpressNo; //快递单号", " string BrandType = $3.BrandType; //品牌类型", "}" ] }, "查询仓库库存变动记录": { "prefix": "ym-db-StoreStockChange-Exist", "body": [ "bool $1 = db.StoreStockChange.Any(m => m.Id == $2);", ] }, "查询某个仓库库存变动记录,并取值": { "prefix": "ym-db-StoreStockChange-FindByPrimaryKey", "body": [ "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int StoreId = $1.StoreId; //仓库", " int BrandId = $1.BrandId; //产品类型", " string ProductName = $1.ProductName; //产品名称", " string ChangeNo = $1.ChangeNo ; //变更单号", " string BizBatchNo = $1.BizBatchNo; //业务批次号", " int TransType = $1.TransType; //交易类型", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN机具类型", " int StockOpDirect = $1.StockOpDirect; //库存操作方向", " int SnStatus = $1.SnStatus; //SN状态", " int BindStatus = $1.BindStatus; //绑定状态", " int BindMerchant = $1.BindMerchant; //绑定商户", " int ActiveStatus = $1.ActiveStatus; //激活状态", " int ActRewardUserId = $1.ActRewardUserId; //激活奖励人", " string DeviceVendor = $1.DeviceVendor; //设备厂商", " string DeviceModel = $1.DeviceModel; //设备型号", " string DeviceType = $1.DeviceType; //设备类型", " int FromUserId = $1.FromUserId; //出货人", " DateTime FromDate = $1.FromDate; //出库时间", " string FromRemark = $1.FromRemark; //出库备注", " int ToUserId = $1.ToUserId; //收货人", " int ToStoreId = $1.ToStoreId; //退货收货仓库", " DateTime ToDate = $1.ToDate; //入库时间", " string ToRemark = $1.ToRemark; //入库备注", " int SourceStoreId = $1.SourceStoreId; //源仓库编号", " string ExpressNo = $1.ExpressNo; //快递单号", " string BrandType = $1.BrandType; //品牌类型", "}" ] }, "查询某个仓库库存变动记录,并赋值": { "prefix": "ym-db-StoreStockChange-Update", "body": [ "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StoreId = $2; //仓库", " $1.BrandId = $3; //产品类型", " $1.ProductName = $4; //产品名称", " $1.ChangeNo = $5; //变更单号", " $1.BizBatchNo = $6; //业务批次号", " $1.TransType = $7; //交易类型", " $1.SnNo = $8; //SN编号", " $1.SnType = $9; //SN机具类型", " $1.StockOpDirect = $10; //库存操作方向", " $1.SnStatus = $11; //SN状态", " $1.BindStatus = $12; //绑定状态", " $1.BindMerchant = $13; //绑定商户", " $1.ActiveStatus = $14; //激活状态", " $1.ActRewardUserId = $15; //激活奖励人", " $1.DeviceVendor = $16; //设备厂商", " $1.DeviceModel = $17; //设备型号", " $1.DeviceType = $18; //设备类型", " $1.FromUserId = $19; //出货人", " $1.FromDate = $20; //出库时间", " $1.FromRemark = $21; //出库备注", " $1.ToUserId = $22; //收货人", " $1.ToStoreId = $23; //退货收货仓库", " $1.ToDate = $24; //入库时间", " $1.ToRemark = $25; //入库备注", " $1.SourceStoreId = $26; //源仓库编号", " $1.ExpressNo = $27; //快递单号", " $1.BrandType = $28; //品牌类型", "}" ] }, "获取仓库库存变动记录数量": { "prefix": "ym-db-StoreStockChange-FindAndCount", "body": [ "int $1 = db.StoreStockChange.Count(m => $2);", ] }, "添加仓库库存变动记录": { "prefix": "ym-db-StoreStockChange-Create", "body": [ "db.StoreStockChange.Add(new StoreStockChange()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StoreId = $1, //仓库", " BrandId = $2, //产品类型", " ProductName = $3, //产品名称", " ChangeNo = $4, //变更单号", " BizBatchNo = $5, //业务批次号", " TransType = $6, //交易类型", " SnNo = $7, //SN编号", " SnType = $8, //SN机具类型", " StockOpDirect = $9, //库存操作方向", " SnStatus = $10, //SN状态", " BindStatus = $11, //绑定状态", " BindMerchant = $12, //绑定商户", " ActiveStatus = $13, //激活状态", " ActRewardUserId = $14, //激活奖励人", " DeviceVendor = $15, //设备厂商", " DeviceModel = $16, //设备型号", " DeviceType = $17, //设备类型", " FromUserId = $18, //出货人", " FromDate = $19, //出库时间", " FromRemark = $20, //出库备注", " ToUserId = $21, //收货人", " ToStoreId = $22, //退货收货仓库", " ToDate = $23, //入库时间", " ToRemark = $24, //入库备注", " SourceStoreId = $25, //源仓库编号", " ExpressNo = $26, //快递单号", " BrandType = $27, //品牌类型", "});" ] },"删除某个仓库库存变动记录": { "prefix": "ym-db-StoreStockChange-Delete", "body": [ "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreStockChange.Remove($1);", "}" ] }, "查询兑换机具记录列表": { "prefix": "ym-db-StoreSwapSn-Find", "body": [ "List $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreSwapSn $3 in $1)", "{", "}" ] }, "查询兑换机具记录列表,并取值": { "prefix": "ym-db-StoreSwapSn-FindWithData", "body": [ "List $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (StoreSwapSn $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string SnNo = $3.SnNo; //SN号", " int SnType = $3.SnType; //SN类型", " DateTime StandardDate = $3.StandardDate; //达标日期", " int ActType = $3.ActType; //激活类型", " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述", " int SnStoreId = $3.SnStoreId; //SN仓库", " string PosType = $3.PosType; //POS类型", " int SwapStatus = $3.SwapStatus; //兑换状态", " int BizStatus = $3.BizStatus; //业务状态", " int RiskStatus = $3.RiskStatus; //风控状态", " string SwapExtProductTypes = $3.SwapExtProductTypes; //可兑换产品类型", " string SwapSnNo = $3.SwapSnNo; //兑换SN号", " string SwapApplyOrderNo = $3.SwapApplyOrderNo; //兑换申请单号", " DateTime SwapApplyDate = $3.SwapApplyDate; //兑换时间", " string Remark = $3.Remark; //备注", "}" ] }, "查询兑换机具记录": { "prefix": "ym-db-StoreSwapSn-Exist", "body": [ "bool $1 = db.StoreSwapSn.Any(m => m.Id == $2);", ] }, "查询某个兑换机具记录,并取值": { "prefix": "ym-db-StoreSwapSn-FindByPrimaryKey", "body": [ "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string SnNo = $1.SnNo; //SN号", " int SnType = $1.SnType; //SN类型", " DateTime StandardDate = $1.StandardDate; //达标日期", " int ActType = $1.ActType; //激活类型", " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述", " int SnStoreId = $1.SnStoreId; //SN仓库", " string PosType = $1.PosType; //POS类型", " int SwapStatus = $1.SwapStatus; //兑换状态", " int BizStatus = $1.BizStatus; //业务状态", " int RiskStatus = $1.RiskStatus; //风控状态", " string SwapExtProductTypes = $1.SwapExtProductTypes; //可兑换产品类型", " string SwapSnNo = $1.SwapSnNo; //兑换SN号", " string SwapApplyOrderNo = $1.SwapApplyOrderNo; //兑换申请单号", " DateTime SwapApplyDate = $1.SwapApplyDate; //兑换时间", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个兑换机具记录,并赋值": { "prefix": "ym-db-StoreSwapSn-Update", "body": [ "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.SnNo = $4; //SN号", " $1.SnType = $5; //SN类型", " $1.StandardDate = $6; //达标日期", " $1.ActType = $7; //激活类型", " $1.ActTypeDesc = $8; //激活类型描述", " $1.SnStoreId = $9; //SN仓库", " $1.PosType = $10; //POS类型", " $1.SwapStatus = $11; //兑换状态", " $1.BizStatus = $12; //业务状态", " $1.RiskStatus = $13; //风控状态", " $1.SwapExtProductTypes = $14; //可兑换产品类型", " $1.SwapSnNo = $15; //兑换SN号", " $1.SwapApplyOrderNo = $16; //兑换申请单号", " $1.SwapApplyDate = $17; //兑换时间", " $1.Remark = $18; //备注", "}" ] }, "获取兑换机具记录数量": { "prefix": "ym-db-StoreSwapSn-FindAndCount", "body": [ "int $1 = db.StoreSwapSn.Count(m => $2);", ] }, "添加兑换机具记录": { "prefix": "ym-db-StoreSwapSn-Create", "body": [ "db.StoreSwapSn.Add(new StoreSwapSn()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " SnNo = $3, //SN号", " SnType = $4, //SN类型", " StandardDate = $5, //达标日期", " ActType = $6, //激活类型", " ActTypeDesc = $7, //激活类型描述", " SnStoreId = $8, //SN仓库", " PosType = $9, //POS类型", " SwapStatus = $10, //兑换状态", " BizStatus = $11, //业务状态", " RiskStatus = $12, //风控状态", " SwapExtProductTypes = $13, //可兑换产品类型", " SwapSnNo = $14, //兑换SN号", " SwapApplyOrderNo = $15, //兑换申请单号", " SwapApplyDate = $16, //兑换时间", " Remark = $17, //备注", "});" ] },"删除某个兑换机具记录": { "prefix": "ym-db-StoreSwapSn-Delete", "body": [ "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.StoreSwapSn.Remove($1);", "}" ] }, "查询后台管理员列表": { "prefix": "ym-db-SysAdmin-Find", "body": [ "List $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysAdmin $3 in $1)", "{", "}" ] }, "查询后台管理员列表,并取值": { "prefix": "ym-db-SysAdmin-FindWithData", "body": [ "List $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysAdmin $3 in $1)", "{", " string AdminName = $3.AdminName; //用户名", " string Password = $3.Password; //密码", " string RealName = $3.RealName; //名称", " string Role = $3.Role; //角色", " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间", "}" ] }, "查询后台管理员": { "prefix": "ym-db-SysAdmin-Exist", "body": [ "bool $1 = db.SysAdmin.Any(m => m.Id == $2);", ] }, "查询某个后台管理员,并取值": { "prefix": "ym-db-SysAdmin-FindByPrimaryKey", "body": [ "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string AdminName = $1.AdminName; //用户名", " string Password = $1.Password; //密码", " string RealName = $1.RealName; //名称", " string Role = $1.Role; //角色", " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间", "}" ] }, "查询某个后台管理员,并赋值": { "prefix": "ym-db-SysAdmin-Update", "body": [ "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.AdminName = $2; //用户名", " $1.Password = $3; //密码", " $1.RealName = $4; //名称", " $1.Role = $5; //角色", " $1.LastLoginDate = $6; //最后登录时间", "}" ] }, "获取后台管理员数量": { "prefix": "ym-db-SysAdmin-FindAndCount", "body": [ "int $1 = db.SysAdmin.Count(m => $2);", ] }, "添加后台管理员": { "prefix": "ym-db-SysAdmin-Create", "body": [ "db.SysAdmin.Add(new SysAdmin()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " AdminName = $1, //用户名", " Password = $2, //密码", " RealName = $3, //名称", " Role = $4, //角色", " LastLoginDate = $5, //最后登录时间", "});" ] },"删除某个后台管理员": { "prefix": "ym-db-SysAdmin-Delete", "body": [ "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.SysAdmin.Remove($1);", "}" ] }, "查询后台管理员角色列表": { "prefix": "ym-db-SysAdminRole-Find", "body": [ "List $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysAdminRole $3 in $1)", "{", "}" ] }, "查询后台管理员角色列表,并取值": { "prefix": "ym-db-SysAdminRole-FindWithData", "body": [ "List $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysAdminRole $3 in $1)", "{", " string Name = $3.Name; //名称", " string Details = $3.Details; //描述", " string RightInfo = $3.RightInfo; //权限设置", "}" ] }, "查询后台管理员角色": { "prefix": "ym-db-SysAdminRole-Exist", "body": [ "bool $1 = db.SysAdminRole.Any(m => m.Id == $2);", ] }, "查询某个后台管理员角色,并取值": { "prefix": "ym-db-SysAdminRole-FindByPrimaryKey", "body": [ "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Details = $1.Details; //描述", " string RightInfo = $1.RightInfo; //权限设置", "}" ] }, "查询某个后台管理员角色,并赋值": { "prefix": "ym-db-SysAdminRole-Update", "body": [ "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Details = $3; //描述", " $1.RightInfo = $4; //权限设置", "}" ] }, "获取后台管理员角色数量": { "prefix": "ym-db-SysAdminRole-FindAndCount", "body": [ "int $1 = db.SysAdminRole.Count(m => $2);", ] }, "添加后台管理员角色": { "prefix": "ym-db-SysAdminRole-Create", "body": [ "db.SysAdminRole.Add(new SysAdminRole()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Details = $2, //描述", " RightInfo = $3, //权限设置", "});" ] },"删除某个后台管理员角色": { "prefix": "ym-db-SysAdminRole-Delete", "body": [ "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.SysAdminRole.Remove($1);", "}" ] }, "查询创客奖励记录列表": { "prefix": "ym-db-SysRechargeRecord-Find", "body": [ "List $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysRechargeRecord $3 in $1)", "{", "}" ] }, "查询创客奖励记录列表,并取值": { "prefix": "ym-db-SysRechargeRecord-FindWithData", "body": [ "List $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SysRechargeRecord $3 in $1)", "{", " string RechargeRecNo = $3.RechargeRecNo; //充值流水号", " string PartnerTradeNo = $3.PartnerTradeNo; //业务单号", " int ProductType = $3.ProductType; //产品类型", " int UserId = $3.UserId; //创客", " int BizType = $3.BizType; //业务类型", " DateTime BizTime = $3.BizTime; //奖励时间", " decimal Amount = $3.Amount; //奖励金额", " int SyncStatus = $3.SyncStatus; //同步状态", " string BatchCode = $3.BatchCode; //批次号", " string ClientIp = $3.ClientIp; //客户IP", "}" ] }, "查询创客奖励记录": { "prefix": "ym-db-SysRechargeRecord-Exist", "body": [ "bool $1 = db.SysRechargeRecord.Any(m => m.Id == $2);", ] }, "查询某个创客奖励记录,并取值": { "prefix": "ym-db-SysRechargeRecord-FindByPrimaryKey", "body": [ "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string RechargeRecNo = $1.RechargeRecNo; //充值流水号", " string PartnerTradeNo = $1.PartnerTradeNo; //业务单号", " int ProductType = $1.ProductType; //产品类型", " int UserId = $1.UserId; //创客", " int BizType = $1.BizType; //业务类型", " DateTime BizTime = $1.BizTime; //奖励时间", " decimal Amount = $1.Amount; //奖励金额", " int SyncStatus = $1.SyncStatus; //同步状态", " string BatchCode = $1.BatchCode; //批次号", " string ClientIp = $1.ClientIp; //客户IP", "}" ] }, "查询某个创客奖励记录,并赋值": { "prefix": "ym-db-SysRechargeRecord-Update", "body": [ "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RechargeRecNo = $2; //充值流水号", " $1.PartnerTradeNo = $3; //业务单号", " $1.ProductType = $4; //产品类型", " $1.UserId = $5; //创客", " $1.BizType = $6; //业务类型", " $1.BizTime = $7; //奖励时间", " $1.Amount = $8; //奖励金额", " $1.SyncStatus = $9; //同步状态", " $1.BatchCode = $10; //批次号", " $1.ClientIp = $11; //客户IP", "}" ] }, "获取创客奖励记录数量": { "prefix": "ym-db-SysRechargeRecord-FindAndCount", "body": [ "int $1 = db.SysRechargeRecord.Count(m => $2);", ] }, "添加创客奖励记录": { "prefix": "ym-db-SysRechargeRecord-Create", "body": [ "db.SysRechargeRecord.Add(new SysRechargeRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RechargeRecNo = $1, //充值流水号", " PartnerTradeNo = $2, //业务单号", " ProductType = $3, //产品类型", " UserId = $4, //创客", " BizType = $5, //业务类型", " BizTime = $6, //奖励时间", " Amount = $7, //奖励金额", " SyncStatus = $8, //同步状态", " BatchCode = $9, //批次号", " ClientIp = $10, //客户IP", "});" ] },"删除某个创客奖励记录": { "prefix": "ym-db-SysRechargeRecord-Delete", "body": [ "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.SysRechargeRecord.Remove($1);", "}" ] }, "查询系统设置列表": { "prefix": "ym-db-SystemSet-Find", "body": [ "List $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SystemSet $3 in $1)", "{", "}" ] }, "查询系统设置列表,并取值": { "prefix": "ym-db-SystemSet-FindWithData", "body": [ "List $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (SystemSet $3 in $1)", "{", " string WebUrl = $3.WebUrl; //网站地址", " string WebName = $3.WebName; //网站名称", " string IndexKeyword = $3.IndexKeyword; //首页关键词", " string IndexDescription = $3.IndexDescription; //首页简介", " string UploadExt = $3.UploadExt; //允许上传类型", " int UploadMaxSize = $3.UploadMaxSize; //允许最大上传", " ulong UploadAutoZoom = $3.UploadAutoZoom; //自动缩略图", " int UploadAutoZoomWidth = $3.UploadAutoZoomWidth; //自动缩略图宽", " int UploadAutoZoomHeight = $3.UploadAutoZoomHeight; //自动缩略图高", " ulong UploadAutoWater = $3.UploadAutoWater; //自动水印", " string UploadWaterPosition = $3.UploadWaterPosition; //水印位置", " string UploadWaterPath = $3.UploadWaterPath; //水印图片", " string RightInfo = $3.RightInfo; //版权信息", " string Address = $3.Address; //企业地址", " string Phone = $3.Phone; //联系电话", " string WebStatCode = $3.WebStatCode; //网站统计代码", " string Logo = $3.Logo; //Logo图片", " ulong UploadOss = $3.UploadOss; //是否上传到OSS", " int UploadAutoZoomQuality = $3.UploadAutoZoomQuality; //自动缩略图质量", " string StartAdPhoto = $3.StartAdPhoto; //启动图", "}" ] }, "查询系统设置": { "prefix": "ym-db-SystemSet-Exist", "body": [ "bool $1 = db.SystemSet.Any(m => m.Id == $2);", ] }, "查询某个系统设置,并取值": { "prefix": "ym-db-SystemSet-FindByPrimaryKey", "body": [ "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string WebUrl = $1.WebUrl; //网站地址", " string WebName = $1.WebName; //网站名称", " string IndexKeyword = $1.IndexKeyword; //首页关键词", " string IndexDescription = $1.IndexDescription; //首页简介", " string UploadExt = $1.UploadExt; //允许上传类型", " int UploadMaxSize = $1.UploadMaxSize; //允许最大上传", " ulong UploadAutoZoom = $1.UploadAutoZoom; //自动缩略图", " int UploadAutoZoomWidth = $1.UploadAutoZoomWidth; //自动缩略图宽", " int UploadAutoZoomHeight = $1.UploadAutoZoomHeight; //自动缩略图高", " ulong UploadAutoWater = $1.UploadAutoWater; //自动水印", " string UploadWaterPosition = $1.UploadWaterPosition; //水印位置", " string UploadWaterPath = $1.UploadWaterPath; //水印图片", " string RightInfo = $1.RightInfo; //版权信息", " string Address = $1.Address; //企业地址", " string Phone = $1.Phone; //联系电话", " string WebStatCode = $1.WebStatCode; //网站统计代码", " string Logo = $1.Logo; //Logo图片", " ulong UploadOss = $1.UploadOss; //是否上传到OSS", " int UploadAutoZoomQuality = $1.UploadAutoZoomQuality; //自动缩略图质量", " string StartAdPhoto = $1.StartAdPhoto; //启动图", "}" ] }, "查询某个系统设置,并赋值": { "prefix": "ym-db-SystemSet-Update", "body": [ "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.WebUrl = $2; //网站地址", " $1.WebName = $3; //网站名称", " $1.IndexKeyword = $4; //首页关键词", " $1.IndexDescription = $5; //首页简介", " $1.UploadExt = $6; //允许上传类型", " $1.UploadMaxSize = $7; //允许最大上传", " $1.UploadAutoZoom = $8; //自动缩略图", " $1.UploadAutoZoomWidth = $9; //自动缩略图宽", " $1.UploadAutoZoomHeight = $10; //自动缩略图高", " $1.UploadAutoWater = $11; //自动水印", " $1.UploadWaterPosition = $12; //水印位置", " $1.UploadWaterPath = $13; //水印图片", " $1.RightInfo = $14; //版权信息", " $1.Address = $15; //企业地址", " $1.Phone = $16; //联系电话", " $1.WebStatCode = $17; //网站统计代码", " $1.Logo = $18; //Logo图片", " $1.UploadOss = $19; //是否上传到OSS", " $1.UploadAutoZoomQuality = $20; //自动缩略图质量", " $1.StartAdPhoto = $21; //启动图", "}" ] }, "获取系统设置数量": { "prefix": "ym-db-SystemSet-FindAndCount", "body": [ "int $1 = db.SystemSet.Count(m => $2);", ] }, "添加系统设置": { "prefix": "ym-db-SystemSet-Create", "body": [ "db.SystemSet.Add(new SystemSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " WebUrl = $1, //网站地址", " WebName = $2, //网站名称", " IndexKeyword = $3, //首页关键词", " IndexDescription = $4, //首页简介", " UploadExt = $5, //允许上传类型", " UploadMaxSize = $6, //允许最大上传", " UploadAutoZoom = $7, //自动缩略图", " UploadAutoZoomWidth = $8, //自动缩略图宽", " UploadAutoZoomHeight = $9, //自动缩略图高", " UploadAutoWater = $10, //自动水印", " UploadWaterPosition = $11, //水印位置", " UploadWaterPath = $12, //水印图片", " RightInfo = $13, //版权信息", " Address = $14, //企业地址", " Phone = $15, //联系电话", " WebStatCode = $16, //网站统计代码", " Logo = $17, //Logo图片", " UploadOss = $18, //是否上传到OSS", " UploadAutoZoomQuality = $19, //自动缩略图质量", " StartAdPhoto = $20, //启动图", "});" ] },"删除某个系统设置": { "prefix": "ym-db-SystemSet-Delete", "body": [ "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.SystemSet.Remove($1);", "}" ] }, "查询开团申请列表": { "prefix": "ym-db-TeamApply-Find", "body": [ "List $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApply $3 in $1)", "{", "}" ] }, "查询开团申请列表,并取值": { "prefix": "ym-db-TeamApply-FindWithData", "body": [ "List $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApply $3 in $1)", "{", " string TeamNo = $3.TeamNo; //队伍编码", " string TeamName = $3.TeamName; //队伍名称", " int UserId = $3.UserId; //队长", " string ManagerNo = $3.ManagerNo; //渠道经理编号", " string ManagerName = $3.ManagerName; //渠道经理名称", " string Areas = $3.Areas; //特训营所在地区", " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间", " DateTime EnterStartDate = $3.EnterStartDate; //报名开始时间", " DateTime EnterEndDate = $3.EnterEndDate; //报名结束时间", " int MinUserNum = $3.MinUserNum; //最小队伍人数", " int MaxUserNum = $3.MaxUserNum; //最大队伍人数", " string WatchWord = $3.WatchWord; //口号", " DateTime AuditTime = $3.AuditTime; //审核时间", " int AuditResult = $3.AuditResult; //审核结果", " string AuditRemark = $3.AuditRemark; //审核备注", " int NotifyFlag = $3.NotifyFlag; //提醒标识", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", " int TeamStatus = $3.TeamStatus; //组队状态", "}" ] }, "查询开团申请": { "prefix": "ym-db-TeamApply-Exist", "body": [ "bool $1 = db.TeamApply.Any(m => m.Id == $2);", ] }, "查询某个开团申请,并取值": { "prefix": "ym-db-TeamApply-FindByPrimaryKey", "body": [ "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TeamNo = $1.TeamNo; //队伍编码", " string TeamName = $1.TeamName; //队伍名称", " int UserId = $1.UserId; //队长", " string ManagerNo = $1.ManagerNo; //渠道经理编号", " string ManagerName = $1.ManagerName; //渠道经理名称", " string Areas = $1.Areas; //特训营所在地区", " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间", " DateTime EnterStartDate = $1.EnterStartDate; //报名开始时间", " DateTime EnterEndDate = $1.EnterEndDate; //报名结束时间", " int MinUserNum = $1.MinUserNum; //最小队伍人数", " int MaxUserNum = $1.MaxUserNum; //最大队伍人数", " string WatchWord = $1.WatchWord; //口号", " DateTime AuditTime = $1.AuditTime; //审核时间", " int AuditResult = $1.AuditResult; //审核结果", " string AuditRemark = $1.AuditRemark; //审核备注", " int NotifyFlag = $1.NotifyFlag; //提醒标识", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", " int TeamStatus = $1.TeamStatus; //组队状态", "}" ] }, "查询某个开团申请,并赋值": { "prefix": "ym-db-TeamApply-Update", "body": [ "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TeamNo = $2; //队伍编码", " $1.TeamName = $3; //队伍名称", " $1.UserId = $4; //队长", " $1.ManagerNo = $5; //渠道经理编号", " $1.ManagerName = $6; //渠道经理名称", " $1.Areas = $7; //特训营所在地区", " $1.EffectStartDate = $8; //活动开始时间", " $1.EffectEndDate = $9; //活动结束时间", " $1.EnterStartDate = $10; //报名开始时间", " $1.EnterEndDate = $11; //报名结束时间", " $1.MinUserNum = $12; //最小队伍人数", " $1.MaxUserNum = $13; //最大队伍人数", " $1.WatchWord = $14; //口号", " $1.AuditTime = $15; //审核时间", " $1.AuditResult = $16; //审核结果", " $1.AuditRemark = $17; //审核备注", " $1.NotifyFlag = $18; //提醒标识", " $1.Remark = $19; //备注", " $1.TopUserId = $20; //顶级创客", " $1.TeamStatus = $21; //组队状态", "}" ] }, "获取开团申请数量": { "prefix": "ym-db-TeamApply-FindAndCount", "body": [ "int $1 = db.TeamApply.Count(m => $2);", ] }, "添加开团申请": { "prefix": "ym-db-TeamApply-Create", "body": [ "db.TeamApply.Add(new TeamApply()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TeamNo = $1, //队伍编码", " TeamName = $2, //队伍名称", " UserId = $3, //队长", " ManagerNo = $4, //渠道经理编号", " ManagerName = $5, //渠道经理名称", " Areas = $6, //特训营所在地区", " EffectStartDate = $7, //活动开始时间", " EffectEndDate = $8, //活动结束时间", " EnterStartDate = $9, //报名开始时间", " EnterEndDate = $10, //报名结束时间", " MinUserNum = $11, //最小队伍人数", " MaxUserNum = $12, //最大队伍人数", " WatchWord = $13, //口号", " AuditTime = $14, //审核时间", " AuditResult = $15, //审核结果", " AuditRemark = $16, //审核备注", " NotifyFlag = $17, //提醒标识", " Remark = $18, //备注", " TopUserId = $19, //顶级创客", " TeamStatus = $20, //组队状态", "});" ] },"删除某个开团申请": { "prefix": "ym-db-TeamApply-Delete", "body": [ "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamApply.Remove($1);", "}" ] }, "查询团队名称为主键的关联表列表": { "prefix": "ym-db-TeamApplyForTeamName-Find", "body": [ "List $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApplyForTeamName $3 in $1)", "{", "}" ] }, "查询团队名称为主键的关联表列表,并取值": { "prefix": "ym-db-TeamApplyForTeamName-FindWithData", "body": [ "List $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApplyForTeamName $3 in $1)", "{", " string TeamName = $3.TeamName; //团队名称", " int TeamId = $3.TeamId; //团队Id", "}" ] }, "查询团队名称为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamName-Exist", "body": [ "bool $1 = db.TeamApplyForTeamName.Any(m => m.TeamName == $2);", ] }, "查询某个团队名称为主键的关联表,并取值": { "prefix": "ym-db-TeamApplyForTeamName-FindByPrimaryKey", "body": [ "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);", "if ($1 != null)", "{", " string TeamName = $1.TeamName; //团队名称", " int TeamId = $1.TeamId; //团队Id", "}" ] }, "查询某个团队名称为主键的关联表,并赋值": { "prefix": "ym-db-TeamApplyForTeamName-Update", "body": [ "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);", "if ($1 != null)", "{", " $1.TeamName = $2; //团队名称", " $1.TeamId = $3; //团队Id", "}" ] }, "获取团队名称为主键的关联表数量": { "prefix": "ym-db-TeamApplyForTeamName-FindAndCount", "body": [ "int $1 = db.TeamApplyForTeamName.Count(m => $2);", ] }, "添加团队名称为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamName-Create", "body": [ "db.TeamApplyForTeamName.Add(new TeamApplyForTeamName()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TeamName = $1, //团队名称", " TeamId = $2, //团队Id", "});" ] },"删除某个团队名称为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamName-Delete", "body": [ "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);", "if ($1 != null)", "{", " db.TeamApplyForTeamName.Remove($1);", "}" ] }, "查询团队编号为主键的关联表列表": { "prefix": "ym-db-TeamApplyForTeamNo-Find", "body": [ "List $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApplyForTeamNo $3 in $1)", "{", "}" ] }, "查询团队编号为主键的关联表列表,并取值": { "prefix": "ym-db-TeamApplyForTeamNo-FindWithData", "body": [ "List $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamApplyForTeamNo $3 in $1)", "{", " string TeamNo = $3.TeamNo; //团队编号", " int TeamId = $3.TeamId; //团队Id", "}" ] }, "查询团队编号为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamNo-Exist", "body": [ "bool $1 = db.TeamApplyForTeamNo.Any(m => m.TeamNo == $2);", ] }, "查询某个团队编号为主键的关联表,并取值": { "prefix": "ym-db-TeamApplyForTeamNo-FindByPrimaryKey", "body": [ "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);", "if ($1 != null)", "{", " string TeamNo = $1.TeamNo; //团队编号", " int TeamId = $1.TeamId; //团队Id", "}" ] }, "查询某个团队编号为主键的关联表,并赋值": { "prefix": "ym-db-TeamApplyForTeamNo-Update", "body": [ "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);", "if ($1 != null)", "{", " $1.TeamNo = $2; //团队编号", " $1.TeamId = $3; //团队Id", "}" ] }, "获取团队编号为主键的关联表数量": { "prefix": "ym-db-TeamApplyForTeamNo-FindAndCount", "body": [ "int $1 = db.TeamApplyForTeamNo.Count(m => $2);", ] }, "添加团队编号为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamNo-Create", "body": [ "db.TeamApplyForTeamNo.Add(new TeamApplyForTeamNo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TeamNo = $1, //团队编号", " TeamId = $2, //团队Id", "});" ] },"删除某个团队编号为主键的关联表": { "prefix": "ym-db-TeamApplyForTeamNo-Delete", "body": [ "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);", "if ($1 != null)", "{", " db.TeamApplyForTeamNo.Remove($1);", "}" ] }, "查询开团黑名单列表": { "prefix": "ym-db-TeamBlackList-Find", "body": [ "List $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamBlackList $3 in $1)", "{", "}" ] }, "查询开团黑名单列表,并取值": { "prefix": "ym-db-TeamBlackList-FindWithData", "body": [ "List $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamBlackList $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string ManagerNo = $3.ManagerNo; //渠道经理编号", " string ManagerName = $3.ManagerName; //渠道经理名称", " DateTime EffectStartDate = $3.EffectStartDate; //生效时间", " DateTime EffectEndDate = $3.EffectEndDate; //失效时间", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", " int BlackStatus = $3.BlackStatus; //状态", "}" ] }, "查询开团黑名单": { "prefix": "ym-db-TeamBlackList-Exist", "body": [ "bool $1 = db.TeamBlackList.Any(m => m.Id == $2);", ] }, "查询某个开团黑名单,并取值": { "prefix": "ym-db-TeamBlackList-FindByPrimaryKey", "body": [ "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string ManagerNo = $1.ManagerNo; //渠道经理编号", " string ManagerName = $1.ManagerName; //渠道经理名称", " DateTime EffectStartDate = $1.EffectStartDate; //生效时间", " DateTime EffectEndDate = $1.EffectEndDate; //失效时间", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", " int BlackStatus = $1.BlackStatus; //状态", "}" ] }, "查询某个开团黑名单,并赋值": { "prefix": "ym-db-TeamBlackList-Update", "body": [ "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.ManagerNo = $3; //渠道经理编号", " $1.ManagerName = $4; //渠道经理名称", " $1.EffectStartDate = $5; //生效时间", " $1.EffectEndDate = $6; //失效时间", " $1.Remark = $7; //备注", " $1.TopUserId = $8; //顶级创客", " $1.BlackStatus = $9; //状态", "}" ] }, "获取开团黑名单数量": { "prefix": "ym-db-TeamBlackList-FindAndCount", "body": [ "int $1 = db.TeamBlackList.Count(m => $2);", ] }, "添加开团黑名单": { "prefix": "ym-db-TeamBlackList-Create", "body": [ "db.TeamBlackList.Add(new TeamBlackList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " ManagerNo = $2, //渠道经理编号", " ManagerName = $3, //渠道经理名称", " EffectStartDate = $4, //生效时间", " EffectEndDate = $5, //失效时间", " Remark = $6, //备注", " TopUserId = $7, //顶级创客", " BlackStatus = $8, //状态", "});" ] },"删除某个开团黑名单": { "prefix": "ym-db-TeamBlackList-Delete", "body": [ "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamBlackList.Remove($1);", "}" ] }, "查询开团配置列表": { "prefix": "ym-db-TeamConfig-Find", "body": [ "List $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamConfig $3 in $1)", "{", "}" ] }, "查询开团配置列表,并取值": { "prefix": "ym-db-TeamConfig-FindWithData", "body": [ "List $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamConfig $3 in $1)", "{", " string LimitBuddyNo = $3.LimitBuddyNo; //限制人", " int MinUserNum = $3.MinUserNum; //最小队伍人数", " int MaxUserNum = $3.MaxUserNum; //最大队伍人数", " int MinCycleNum = $3.MinCycleNum; //最小周期天数", " int MaxCycleNum = $3.MaxCycleNum; //最大周期天数", " int MinStartDayLimit = $3.MinStartDayLimit; //最小间隔天数", " int MaxStartDayLimit = $3.MaxStartDayLimit; //最大间隔天数", " ulong OverlineStatus = $3.OverlineStatus; //是否允许跨顶级线报名", " int BlacklistCycle = $3.BlacklistCycle; //黑名单周期", " int EnterEndMin = $3.EnterEndMin; //活动时间差", " string Remark = $3.Remark; //备注", "}" ] }, "查询开团配置": { "prefix": "ym-db-TeamConfig-Exist", "body": [ "bool $1 = db.TeamConfig.Any(m => m.Id == $2);", ] }, "查询某个开团配置,并取值": { "prefix": "ym-db-TeamConfig-FindByPrimaryKey", "body": [ "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string LimitBuddyNo = $1.LimitBuddyNo; //限制人", " int MinUserNum = $1.MinUserNum; //最小队伍人数", " int MaxUserNum = $1.MaxUserNum; //最大队伍人数", " int MinCycleNum = $1.MinCycleNum; //最小周期天数", " int MaxCycleNum = $1.MaxCycleNum; //最大周期天数", " int MinStartDayLimit = $1.MinStartDayLimit; //最小间隔天数", " int MaxStartDayLimit = $1.MaxStartDayLimit; //最大间隔天数", " ulong OverlineStatus = $1.OverlineStatus; //是否允许跨顶级线报名", " int BlacklistCycle = $1.BlacklistCycle; //黑名单周期", " int EnterEndMin = $1.EnterEndMin; //活动时间差", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个开团配置,并赋值": { "prefix": "ym-db-TeamConfig-Update", "body": [ "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.LimitBuddyNo = $2; //限制人", " $1.MinUserNum = $3; //最小队伍人数", " $1.MaxUserNum = $4; //最大队伍人数", " $1.MinCycleNum = $5; //最小周期天数", " $1.MaxCycleNum = $6; //最大周期天数", " $1.MinStartDayLimit = $7; //最小间隔天数", " $1.MaxStartDayLimit = $8; //最大间隔天数", " $1.OverlineStatus = $9; //是否允许跨顶级线报名", " $1.BlacklistCycle = $10; //黑名单周期", " $1.EnterEndMin = $11; //活动时间差", " $1.Remark = $12; //备注", "}" ] }, "获取开团配置数量": { "prefix": "ym-db-TeamConfig-FindAndCount", "body": [ "int $1 = db.TeamConfig.Count(m => $2);", ] }, "添加开团配置": { "prefix": "ym-db-TeamConfig-Create", "body": [ "db.TeamConfig.Add(new TeamConfig()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " LimitBuddyNo = $1, //限制人", " MinUserNum = $2, //最小队伍人数", " MaxUserNum = $3, //最大队伍人数", " MinCycleNum = $4, //最小周期天数", " MaxCycleNum = $5, //最大周期天数", " MinStartDayLimit = $6, //最小间隔天数", " MaxStartDayLimit = $7, //最大间隔天数", " OverlineStatus = $8, //是否允许跨顶级线报名", " BlacklistCycle = $9, //黑名单周期", " EnterEndMin = $10, //活动时间差", " Remark = $11, //备注", "});" ] },"删除某个开团配置": { "prefix": "ym-db-TeamConfig-Delete", "body": [ "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamConfig.Remove($1);", "}" ] }, "查询特训营团队排行榜列表": { "prefix": "ym-db-TeamDayTop-Find", "body": [ "List $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamDayTop $3 in $1)", "{", "}" ] }, "查询特训营团队排行榜列表,并取值": { "prefix": "ym-db-TeamDayTop-FindWithData", "body": [ "List $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamDayTop $3 in $1)", "{", " string StatDate = $3.StatDate; //统计日", " string StatMonth = $3.StatMonth; //统计月", " int UserId = $3.UserId; //创客", " int TopUserId = $3.TopUserId; //顶级创客", " int BrandId = $3.BrandId; //品牌", " int TeamId = $3.TeamId; //队伍", " int TeamUserId = $3.TeamUserId; //团队长创客", " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间", " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间", " int ActMerNum = $3.ActMerNum; //团员直营激活商户数", " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数", " string Remark = $3.Remark; //备注", "}" ] }, "查询特训营团队排行榜": { "prefix": "ym-db-TeamDayTop-Exist", "body": [ "bool $1 = db.TeamDayTop.Any(m => m.Id == $2);", ] }, "查询某个特训营团队排行榜,并取值": { "prefix": "ym-db-TeamDayTop-FindByPrimaryKey", "body": [ "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string StatDate = $1.StatDate; //统计日", " string StatMonth = $1.StatMonth; //统计月", " int UserId = $1.UserId; //创客", " int TopUserId = $1.TopUserId; //顶级创客", " int BrandId = $1.BrandId; //品牌", " int TeamId = $1.TeamId; //队伍", " int TeamUserId = $1.TeamUserId; //团队长创客", " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间", " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间", " int ActMerNum = $1.ActMerNum; //团员直营激活商户数", " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个特训营团队排行榜,并赋值": { "prefix": "ym-db-TeamDayTop-Update", "body": [ "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StatDate = $2; //统计日", " $1.StatMonth = $3; //统计月", " $1.UserId = $4; //创客", " $1.TopUserId = $5; //顶级创客", " $1.BrandId = $6; //品牌", " $1.TeamId = $7; //队伍", " $1.TeamUserId = $8; //团队长创客", " $1.TeamStartDate = $9; //队伍开始时间", " $1.TeamEndDate = $10; //队伍结束时间", " $1.ActMerNum = $11; //团员直营激活商户数", " $1.TeamActMerNum = $12; //队伍直营激活商户数", " $1.Remark = $13; //备注", "}" ] }, "获取特训营团队排行榜数量": { "prefix": "ym-db-TeamDayTop-FindAndCount", "body": [ "int $1 = db.TeamDayTop.Count(m => $2);", ] }, "添加特训营团队排行榜": { "prefix": "ym-db-TeamDayTop-Create", "body": [ "db.TeamDayTop.Add(new TeamDayTop()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StatDate = $1, //统计日", " StatMonth = $2, //统计月", " UserId = $3, //创客", " TopUserId = $4, //顶级创客", " BrandId = $5, //品牌", " TeamId = $6, //队伍", " TeamUserId = $7, //团队长创客", " TeamStartDate = $8, //队伍开始时间", " TeamEndDate = $9, //队伍结束时间", " ActMerNum = $10, //团员直营激活商户数", " TeamActMerNum = $11, //队伍直营激活商户数", " Remark = $12, //备注", "});" ] },"删除某个特训营团队排行榜": { "prefix": "ym-db-TeamDayTop-Delete", "body": [ "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamDayTop.Remove($1);", "}" ] }, "查询参团申请列表": { "prefix": "ym-db-TeamOfferApply-Find", "body": [ "List $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamOfferApply $3 in $1)", "{", "}" ] }, "查询参团申请列表,并取值": { "prefix": "ym-db-TeamOfferApply-FindWithData", "body": [ "List $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamOfferApply $3 in $1)", "{", " string ManagerNo = $3.ManagerNo; //渠道经理编号", " string ManagerName = $3.ManagerName; //渠道经理名称", " string Areas = $3.Areas; //特训营所在地区", " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间", " DateTime EnterDate = $3.EnterDate; //报名时间", " DateTime AuditTime = $3.AuditTime; //审核时间", " int AuditResult = $3.AuditResult; //审核结果", " string AuditRemark = $3.AuditRemark; //审核备注", " int NotifyFlag = $3.NotifyFlag; //提醒标识", " string Remark = $3.Remark; //备注", " int UserId = $3.UserId; //创客", " int TeamId = $3.TeamId; //团队", " int TeamLeader = $3.TeamLeader; //队长", " int TopUserId = $3.TopUserId; //顶级创客", " int TeamApplyStatus = $3.TeamApplyStatus; //组队申请状态", " int TeamStatus = $3.TeamStatus; //状态", "}" ] }, "查询参团申请": { "prefix": "ym-db-TeamOfferApply-Exist", "body": [ "bool $1 = db.TeamOfferApply.Any(m => m.Id == $2);", ] }, "查询某个参团申请,并取值": { "prefix": "ym-db-TeamOfferApply-FindByPrimaryKey", "body": [ "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ManagerNo = $1.ManagerNo; //渠道经理编号", " string ManagerName = $1.ManagerName; //渠道经理名称", " string Areas = $1.Areas; //特训营所在地区", " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间", " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间", " DateTime EnterDate = $1.EnterDate; //报名时间", " DateTime AuditTime = $1.AuditTime; //审核时间", " int AuditResult = $1.AuditResult; //审核结果", " string AuditRemark = $1.AuditRemark; //审核备注", " int NotifyFlag = $1.NotifyFlag; //提醒标识", " string Remark = $1.Remark; //备注", " int UserId = $1.UserId; //创客", " int TeamId = $1.TeamId; //团队", " int TeamLeader = $1.TeamLeader; //队长", " int TopUserId = $1.TopUserId; //顶级创客", " int TeamApplyStatus = $1.TeamApplyStatus; //组队申请状态", " int TeamStatus = $1.TeamStatus; //状态", "}" ] }, "查询某个参团申请,并赋值": { "prefix": "ym-db-TeamOfferApply-Update", "body": [ "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ManagerNo = $2; //渠道经理编号", " $1.ManagerName = $3; //渠道经理名称", " $1.Areas = $4; //特训营所在地区", " $1.EffectStartDate = $5; //活动开始时间", " $1.EffectEndDate = $6; //活动结束时间", " $1.EnterDate = $7; //报名时间", " $1.AuditTime = $8; //审核时间", " $1.AuditResult = $9; //审核结果", " $1.AuditRemark = $10; //审核备注", " $1.NotifyFlag = $11; //提醒标识", " $1.Remark = $12; //备注", " $1.UserId = $13; //创客", " $1.TeamId = $14; //团队", " $1.TeamLeader = $15; //队长", " $1.TopUserId = $16; //顶级创客", " $1.TeamApplyStatus = $17; //组队申请状态", " $1.TeamStatus = $18; //状态", "}" ] }, "获取参团申请数量": { "prefix": "ym-db-TeamOfferApply-FindAndCount", "body": [ "int $1 = db.TeamOfferApply.Count(m => $2);", ] }, "添加参团申请": { "prefix": "ym-db-TeamOfferApply-Create", "body": [ "db.TeamOfferApply.Add(new TeamOfferApply()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ManagerNo = $1, //渠道经理编号", " ManagerName = $2, //渠道经理名称", " Areas = $3, //特训营所在地区", " EffectStartDate = $4, //活动开始时间", " EffectEndDate = $5, //活动结束时间", " EnterDate = $6, //报名时间", " AuditTime = $7, //审核时间", " AuditResult = $8, //审核结果", " AuditRemark = $9, //审核备注", " NotifyFlag = $10, //提醒标识", " Remark = $11, //备注", " UserId = $12, //创客", " TeamId = $13, //团队", " TeamLeader = $14, //队长", " TopUserId = $15, //顶级创客", " TeamApplyStatus = $16, //组队申请状态", " TeamStatus = $17, //状态", "});" ] },"删除某个参团申请": { "prefix": "ym-db-TeamOfferApply-Delete", "body": [ "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamOfferApply.Remove($1);", "}" ] }, "查询特训营个人排行榜列表": { "prefix": "ym-db-TeamPersonDayTop-Find", "body": [ "List $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamPersonDayTop $3 in $1)", "{", "}" ] }, "查询特训营个人排行榜列表,并取值": { "prefix": "ym-db-TeamPersonDayTop-FindWithData", "body": [ "List $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TeamPersonDayTop $3 in $1)", "{", " string StatDate = $3.StatDate; //统计日", " string StatMonth = $3.StatMonth; //统计月", " int UserId = $3.UserId; //创客", " int TopUserId = $3.TopUserId; //顶级创客", " int BrandId = $3.BrandId; //品牌", " int TeamId = $3.TeamId; //队伍", " int TeamUserId = $3.TeamUserId; //团队长创客", " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间", " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间", " int ActMerNum = $3.ActMerNum; //团员直营激活商户数", " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数", " string Remark = $3.Remark; //备注", "}" ] }, "查询特训营个人排行榜": { "prefix": "ym-db-TeamPersonDayTop-Exist", "body": [ "bool $1 = db.TeamPersonDayTop.Any(m => m.Id == $2);", ] }, "查询某个特训营个人排行榜,并取值": { "prefix": "ym-db-TeamPersonDayTop-FindByPrimaryKey", "body": [ "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string StatDate = $1.StatDate; //统计日", " string StatMonth = $1.StatMonth; //统计月", " int UserId = $1.UserId; //创客", " int TopUserId = $1.TopUserId; //顶级创客", " int BrandId = $1.BrandId; //品牌", " int TeamId = $1.TeamId; //队伍", " int TeamUserId = $1.TeamUserId; //团队长创客", " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间", " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间", " int ActMerNum = $1.ActMerNum; //团员直营激活商户数", " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个特训营个人排行榜,并赋值": { "prefix": "ym-db-TeamPersonDayTop-Update", "body": [ "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.StatDate = $2; //统计日", " $1.StatMonth = $3; //统计月", " $1.UserId = $4; //创客", " $1.TopUserId = $5; //顶级创客", " $1.BrandId = $6; //品牌", " $1.TeamId = $7; //队伍", " $1.TeamUserId = $8; //团队长创客", " $1.TeamStartDate = $9; //队伍开始时间", " $1.TeamEndDate = $10; //队伍结束时间", " $1.ActMerNum = $11; //团员直营激活商户数", " $1.TeamActMerNum = $12; //队伍直营激活商户数", " $1.Remark = $13; //备注", "}" ] }, "获取特训营个人排行榜数量": { "prefix": "ym-db-TeamPersonDayTop-FindAndCount", "body": [ "int $1 = db.TeamPersonDayTop.Count(m => $2);", ] }, "添加特训营个人排行榜": { "prefix": "ym-db-TeamPersonDayTop-Create", "body": [ "db.TeamPersonDayTop.Add(new TeamPersonDayTop()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " StatDate = $1, //统计日", " StatMonth = $2, //统计月", " UserId = $3, //创客", " TopUserId = $4, //顶级创客", " BrandId = $5, //品牌", " TeamId = $6, //队伍", " TeamUserId = $7, //团队长创客", " TeamStartDate = $8, //队伍开始时间", " TeamEndDate = $9, //队伍结束时间", " ActMerNum = $10, //团员直营激活商户数", " TeamActMerNum = $11, //队伍直营激活商户数", " Remark = $12, //备注", "});" ] },"删除某个特训营个人排行榜": { "prefix": "ym-db-TeamPersonDayTop-Delete", "body": [ "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TeamPersonDayTop.Remove($1);", "}" ] }, "查询交易日汇总列表": { "prefix": "ym-db-TradeDaySummary-Find", "body": [ "List $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TradeDaySummary $3 in $1)", "{", "}" ] }, "查询交易日汇总列表,并取值": { "prefix": "ym-db-TradeDaySummary-FindWithData", "body": [ "List $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TradeDaySummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string TradeDate = $3.TradeDate; //交易日", " string TradeMonth = $3.TradeMonth; //交易月", " int BrandId = $3.BrandId; //品牌", " string MgrNo = $3.MgrNo; //渠道经理编号", " string MgrName = $3.MgrName; //渠道经理姓名", " decimal NotHelpDirectTradeAmt = $3.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)", " decimal NotHelpNonDirectTradeAmt = $3.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)", " decimal NotHelpDirectCreditTradeAmt = $3.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)", " decimal NotHelpNonDirectCreditTradeAmt = $3.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)", " decimal NotHelpDirectQrCreditTradeAmt = $3.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)", " decimal NotHelpNonDirectQrCreditTradeAmt = $3.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)", " decimal NotHelpDirectNonQrCreditTradeAmt = $3.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)", " decimal NotHelpNonDirectNonQrCreditTradeAmt = $3.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)", " decimal NotHelpDirectDebitTradeAmt = $3.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)", " decimal NotHelpDirectDebitCapTradeAmt = $3.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)", " int NotHelpDirectDebitCapNum = $3.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)", " decimal NotHelpNonDirectDebitTradeAmt = $3.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)", " decimal NotHelpNonDirectDebitCapTradeAmt = $3.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)", " int NotHelpNonDirectDebitCapNum = $3.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)", " decimal NotHelpDirectQrDebitTradeAmt = $3.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)", " decimal NotHelpNonDirectQrDebitTradeAmt = $3.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)", " decimal NotHelpDirectNonQrDebitTradeAmt = $3.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)", " decimal NotHelpNonDirectNonQrDebitTradeAmt = $3.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)", " decimal HelpDirectTradeAmt = $3.HelpDirectTradeAmt; //直营商户交易总额(扶持期)", " decimal HelpNonDirectTradeAmt = $3.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)", " decimal HelpDirectCreditTradeAmt = $3.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)", " decimal HelpNonDirectCreditTradeAmt = $3.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)", " decimal HelpDirectQrCreditTradeAmt = $3.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)", " decimal HelpNonDirectQrCreditTradeAmt = $3.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)", " decimal HelpDirectNonQrCreditTradeAmt = $3.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)", " decimal HelpNonDirectNonQrCreditTradeAmt = $3.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)", " decimal HelpDirectDebitTradeAmt = $3.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)", " decimal HelpDirectDebitCapTradeAmt = $3.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)", " decimal HelpDirectDebitCapNum = $3.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)", " decimal HelpNonDirectDebitTradeAmt = $3.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)", " decimal HelpNonDirectDebitCapTradeAmt = $3.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)", " decimal HelpNonDirectDebitCapNum = $3.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)", " decimal HelpDirectQrDebitTradeAmt = $3.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)", " decimal HelpNonDirectQrDebitTradeAmt = $3.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)", " decimal HelpDirectNonQrDebitTradeAmt = $3.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)", " decimal HelpNonDirectNonQrDebitTradeAmt = $3.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询交易日汇总": { "prefix": "ym-db-TradeDaySummary-Exist", "body": [ "bool $1 = db.TradeDaySummary.Any(m => m.Id == $2);", ] }, "查询某个交易日汇总,并取值": { "prefix": "ym-db-TradeDaySummary-FindByPrimaryKey", "body": [ "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string TradeDate = $1.TradeDate; //交易日", " string TradeMonth = $1.TradeMonth; //交易月", " int BrandId = $1.BrandId; //品牌", " string MgrNo = $1.MgrNo; //渠道经理编号", " string MgrName = $1.MgrName; //渠道经理姓名", " decimal NotHelpDirectTradeAmt = $1.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)", " decimal NotHelpNonDirectTradeAmt = $1.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)", " decimal NotHelpDirectCreditTradeAmt = $1.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)", " decimal NotHelpNonDirectCreditTradeAmt = $1.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)", " decimal NotHelpDirectQrCreditTradeAmt = $1.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)", " decimal NotHelpNonDirectQrCreditTradeAmt = $1.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)", " decimal NotHelpDirectNonQrCreditTradeAmt = $1.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)", " decimal NotHelpNonDirectNonQrCreditTradeAmt = $1.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)", " decimal NotHelpDirectDebitTradeAmt = $1.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)", " decimal NotHelpDirectDebitCapTradeAmt = $1.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)", " int NotHelpDirectDebitCapNum = $1.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)", " decimal NotHelpNonDirectDebitTradeAmt = $1.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)", " decimal NotHelpNonDirectDebitCapTradeAmt = $1.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)", " int NotHelpNonDirectDebitCapNum = $1.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)", " decimal NotHelpDirectQrDebitTradeAmt = $1.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)", " decimal NotHelpNonDirectQrDebitTradeAmt = $1.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)", " decimal NotHelpDirectNonQrDebitTradeAmt = $1.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)", " decimal NotHelpNonDirectNonQrDebitTradeAmt = $1.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)", " decimal HelpDirectTradeAmt = $1.HelpDirectTradeAmt; //直营商户交易总额(扶持期)", " decimal HelpNonDirectTradeAmt = $1.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)", " decimal HelpDirectCreditTradeAmt = $1.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)", " decimal HelpNonDirectCreditTradeAmt = $1.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)", " decimal HelpDirectQrCreditTradeAmt = $1.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)", " decimal HelpNonDirectQrCreditTradeAmt = $1.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)", " decimal HelpDirectNonQrCreditTradeAmt = $1.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)", " decimal HelpNonDirectNonQrCreditTradeAmt = $1.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)", " decimal HelpDirectDebitTradeAmt = $1.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)", " decimal HelpDirectDebitCapTradeAmt = $1.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)", " decimal HelpDirectDebitCapNum = $1.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)", " decimal HelpNonDirectDebitTradeAmt = $1.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)", " decimal HelpNonDirectDebitCapTradeAmt = $1.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)", " decimal HelpNonDirectDebitCapNum = $1.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)", " decimal HelpDirectQrDebitTradeAmt = $1.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)", " decimal HelpNonDirectQrDebitTradeAmt = $1.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)", " decimal HelpDirectNonQrDebitTradeAmt = $1.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)", " decimal HelpNonDirectNonQrDebitTradeAmt = $1.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个交易日汇总,并赋值": { "prefix": "ym-db-TradeDaySummary-Update", "body": [ "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.TradeDate = $3; //交易日", " $1.TradeMonth = $4; //交易月", " $1.BrandId = $5; //品牌", " $1.MgrNo = $6; //渠道经理编号", " $1.MgrName = $7; //渠道经理姓名", " $1.NotHelpDirectTradeAmt = $8; //直营商户交易总额(非扶持期)", " $1.NotHelpNonDirectTradeAmt = $9; //非直营商户交易总额(非扶持期)", " $1.NotHelpDirectCreditTradeAmt = $10; //直营贷记卡交易总额(非扶持期)", " $1.NotHelpNonDirectCreditTradeAmt = $11; //非直营贷记卡交易总额(非扶持期)", " $1.NotHelpDirectQrCreditTradeAmt = $12; //直营云闪付贷记卡交易额(非扶持期)", " $1.NotHelpNonDirectQrCreditTradeAmt = $13; //非直营云闪付贷记卡交易额(非扶持期)", " $1.NotHelpDirectNonQrCreditTradeAmt = $14; //直营非云闪付贷记卡交易额(非扶持期)", " $1.NotHelpNonDirectNonQrCreditTradeAmt = $15; //非直营非云闪付贷记卡交易额(非扶持期)", " $1.NotHelpDirectDebitTradeAmt = $16; //直营商户借记卡交易总额(非扶持期)", " $1.NotHelpDirectDebitCapTradeAmt = $17; //直营商户借记卡封顶交易总金额(非扶持期)", " $1.NotHelpDirectDebitCapNum = $18; //直营商户借记卡封顶交易总数(非扶持期)", " $1.NotHelpNonDirectDebitTradeAmt = $19; //非直营商户借记卡交易总额(非扶持期)", " $1.NotHelpNonDirectDebitCapTradeAmt = $20; //非直营商户借记卡封顶交易总金额(非扶持期)", " $1.NotHelpNonDirectDebitCapNum = $21; //非直营商户借记卡封顶交易总数(非扶持期)", " $1.NotHelpDirectQrDebitTradeAmt = $22; //直营云闪付非封顶借记卡(非扶持期)", " $1.NotHelpNonDirectQrDebitTradeAmt = $23; //非直营云闪付非封顶借记卡(非扶持期)", " $1.NotHelpDirectNonQrDebitTradeAmt = $24; //直营非云闪付非封顶借记卡(非扶持期)", " $1.NotHelpNonDirectNonQrDebitTradeAmt = $25; //非直营非云闪付非封顶借记卡(非扶持期)", " $1.HelpDirectTradeAmt = $26; //直营商户交易总额(扶持期)", " $1.HelpNonDirectTradeAmt = $27; //非直营商户交易总额(扶持期)", " $1.HelpDirectCreditTradeAmt = $28; //直营贷记卡交易总额(扶持期)", " $1.HelpNonDirectCreditTradeAmt = $29; //非直营贷记卡交易总额(扶持期)", " $1.HelpDirectQrCreditTradeAmt = $30; //直营云闪付贷记卡交易额(扶持期)", " $1.HelpNonDirectQrCreditTradeAmt = $31; //非直营云闪付贷记卡交易额(扶持期)", " $1.HelpDirectNonQrCreditTradeAmt = $32; //直营非云闪付贷记卡交易额(扶持期)", " $1.HelpNonDirectNonQrCreditTradeAmt = $33; //非直营非云闪付贷记卡交易额(扶持期)", " $1.HelpDirectDebitTradeAmt = $34; //直营商户借记卡交易总额(扶持期)", " $1.HelpDirectDebitCapTradeAmt = $35; //直营商户借记卡封顶交易总金额(扶持期)", " $1.HelpDirectDebitCapNum = $36; //直营商户借记卡封顶交易总数(扶持期)", " $1.HelpNonDirectDebitTradeAmt = $37; //非直营商户借记卡交易总额(扶持期)", " $1.HelpNonDirectDebitCapTradeAmt = $38; //非直营商户借记卡封顶交易总金额(扶持期)", " $1.HelpNonDirectDebitCapNum = $39; //非直营商户借记卡封顶交易总数(扶持期)", " $1.HelpDirectQrDebitTradeAmt = $40; //直营云闪付非封顶借记卡(扶持期)", " $1.HelpNonDirectQrDebitTradeAmt = $41; //非直营云闪付非封顶借记卡(扶持期)", " $1.HelpDirectNonQrDebitTradeAmt = $42; //直营非云闪付非封顶借记卡(扶持期)", " $1.HelpNonDirectNonQrDebitTradeAmt = $43; //非直营非云闪付非封顶借记卡(扶持期)", " $1.TopUserId = $44; //顶级创客", "}" ] }, "获取交易日汇总数量": { "prefix": "ym-db-TradeDaySummary-FindAndCount", "body": [ "int $1 = db.TradeDaySummary.Count(m => $2);", ] }, "添加交易日汇总": { "prefix": "ym-db-TradeDaySummary-Create", "body": [ "db.TradeDaySummary.Add(new TradeDaySummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " TradeDate = $2, //交易日", " TradeMonth = $3, //交易月", " BrandId = $4, //品牌", " MgrNo = $5, //渠道经理编号", " MgrName = $6, //渠道经理姓名", " NotHelpDirectTradeAmt = $7, //直营商户交易总额(非扶持期)", " NotHelpNonDirectTradeAmt = $8, //非直营商户交易总额(非扶持期)", " NotHelpDirectCreditTradeAmt = $9, //直营贷记卡交易总额(非扶持期)", " NotHelpNonDirectCreditTradeAmt = $10, //非直营贷记卡交易总额(非扶持期)", " NotHelpDirectQrCreditTradeAmt = $11, //直营云闪付贷记卡交易额(非扶持期)", " NotHelpNonDirectQrCreditTradeAmt = $12, //非直营云闪付贷记卡交易额(非扶持期)", " NotHelpDirectNonQrCreditTradeAmt = $13, //直营非云闪付贷记卡交易额(非扶持期)", " NotHelpNonDirectNonQrCreditTradeAmt = $14, //非直营非云闪付贷记卡交易额(非扶持期)", " NotHelpDirectDebitTradeAmt = $15, //直营商户借记卡交易总额(非扶持期)", " NotHelpDirectDebitCapTradeAmt = $16, //直营商户借记卡封顶交易总金额(非扶持期)", " NotHelpDirectDebitCapNum = $17, //直营商户借记卡封顶交易总数(非扶持期)", " NotHelpNonDirectDebitTradeAmt = $18, //非直营商户借记卡交易总额(非扶持期)", " NotHelpNonDirectDebitCapTradeAmt = $19, //非直营商户借记卡封顶交易总金额(非扶持期)", " NotHelpNonDirectDebitCapNum = $20, //非直营商户借记卡封顶交易总数(非扶持期)", " NotHelpDirectQrDebitTradeAmt = $21, //直营云闪付非封顶借记卡(非扶持期)", " NotHelpNonDirectQrDebitTradeAmt = $22, //非直营云闪付非封顶借记卡(非扶持期)", " NotHelpDirectNonQrDebitTradeAmt = $23, //直营非云闪付非封顶借记卡(非扶持期)", " NotHelpNonDirectNonQrDebitTradeAmt = $24, //非直营非云闪付非封顶借记卡(非扶持期)", " HelpDirectTradeAmt = $25, //直营商户交易总额(扶持期)", " HelpNonDirectTradeAmt = $26, //非直营商户交易总额(扶持期)", " HelpDirectCreditTradeAmt = $27, //直营贷记卡交易总额(扶持期)", " HelpNonDirectCreditTradeAmt = $28, //非直营贷记卡交易总额(扶持期)", " HelpDirectQrCreditTradeAmt = $29, //直营云闪付贷记卡交易额(扶持期)", " HelpNonDirectQrCreditTradeAmt = $30, //非直营云闪付贷记卡交易额(扶持期)", " HelpDirectNonQrCreditTradeAmt = $31, //直营非云闪付贷记卡交易额(扶持期)", " HelpNonDirectNonQrCreditTradeAmt = $32, //非直营非云闪付贷记卡交易额(扶持期)", " HelpDirectDebitTradeAmt = $33, //直营商户借记卡交易总额(扶持期)", " HelpDirectDebitCapTradeAmt = $34, //直营商户借记卡封顶交易总金额(扶持期)", " HelpDirectDebitCapNum = $35, //直营商户借记卡封顶交易总数(扶持期)", " HelpNonDirectDebitTradeAmt = $36, //非直营商户借记卡交易总额(扶持期)", " HelpNonDirectDebitCapTradeAmt = $37, //非直营商户借记卡封顶交易总金额(扶持期)", " HelpNonDirectDebitCapNum = $38, //非直营商户借记卡封顶交易总数(扶持期)", " HelpDirectQrDebitTradeAmt = $39, //直营云闪付非封顶借记卡(扶持期)", " HelpNonDirectQrDebitTradeAmt = $40, //非直营云闪付非封顶借记卡(扶持期)", " HelpDirectNonQrDebitTradeAmt = $41, //直营非云闪付非封顶借记卡(扶持期)", " HelpNonDirectNonQrDebitTradeAmt = $42, //非直营非云闪付非封顶借记卡(扶持期)", " TopUserId = $43, //顶级创客", "});" ] },"删除某个交易日汇总": { "prefix": "ym-db-TradeDaySummary-Delete", "body": [ "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TradeDaySummary.Remove($1);", "}" ] }, "查询交易记录列表": { "prefix": "ym-db-TradeRecord-Find", "body": [ "List $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TradeRecord $3 in $1)", "{", "}" ] }, "查询交易记录列表,并取值": { "prefix": "ym-db-TradeRecord-FindWithData", "body": [ "List $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (TradeRecord $3 in $1)", "{", " string RecordNo = $3.RecordNo; //单号", " int UserId = $3.UserId; //创客", " int MerchantId = $3.MerchantId; //商户", " string MerNo = $3.MerNo; //渠道商户编号", " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户", " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月", " int MerBuddyType = $3.MerBuddyType; //商户创客类型", " string SnNo = $3.SnNo; //渠道SN号", " DateTime TradeDate = $3.TradeDate; //交易日期", " DateTime ClearDate = $3.ClearDate; //清算日期", " string TradeSerialNo = $3.TradeSerialNo; //交易流水号", " decimal TradeAmount = $3.TradeAmount; //交易金额", " int BankCardType = $3.BankCardType; //银行卡类型", " int QrPayFlag = $3.QrPayFlag; //云闪付标识", " int CapFlag = $3.CapFlag; //借记卡封顶交易标志", " ulong DirectFlag = $3.DirectFlag; //是否直营", " int BrandId = $3.BrandId; //品牌", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", " int MerUserId = $3.MerUserId; //商户直属创客", "}" ] }, "查询交易记录": { "prefix": "ym-db-TradeRecord-Exist", "body": [ "bool $1 = db.TradeRecord.Any(m => m.Id == $2);", ] }, "查询某个交易记录,并取值": { "prefix": "ym-db-TradeRecord-FindByPrimaryKey", "body": [ "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string RecordNo = $1.RecordNo; //单号", " int UserId = $1.UserId; //创客", " int MerchantId = $1.MerchantId; //商户", " string MerNo = $1.MerNo; //渠道商户编号", " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户", " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月", " int MerBuddyType = $1.MerBuddyType; //商户创客类型", " string SnNo = $1.SnNo; //渠道SN号", " DateTime TradeDate = $1.TradeDate; //交易日期", " DateTime ClearDate = $1.ClearDate; //清算日期", " string TradeSerialNo = $1.TradeSerialNo; //交易流水号", " decimal TradeAmount = $1.TradeAmount; //交易金额", " int BankCardType = $1.BankCardType; //银行卡类型", " int QrPayFlag = $1.QrPayFlag; //云闪付标识", " int CapFlag = $1.CapFlag; //借记卡封顶交易标志", " ulong DirectFlag = $1.DirectFlag; //是否直营", " int BrandId = $1.BrandId; //品牌", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", " int MerUserId = $1.MerUserId; //商户直属创客", "}" ] }, "查询某个交易记录,并赋值": { "prefix": "ym-db-TradeRecord-Update", "body": [ "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RecordNo = $2; //单号", " $1.UserId = $3; //创客", " $1.MerchantId = $4; //商户", " $1.MerNo = $5; //渠道商户编号", " $1.MerHelpFlag = $6; //是否属于扶持周期内商户", " $1.HelpMonthCount = $7; //扶持第几个月", " $1.MerBuddyType = $8; //商户创客类型", " $1.SnNo = $9; //渠道SN号", " $1.TradeDate = $10; //交易日期", " $1.ClearDate = $11; //清算日期", " $1.TradeSerialNo = $12; //交易流水号", " $1.TradeAmount = $13; //交易金额", " $1.BankCardType = $14; //银行卡类型", " $1.QrPayFlag = $15; //云闪付标识", " $1.CapFlag = $16; //借记卡封顶交易标志", " $1.DirectFlag = $17; //是否直营", " $1.BrandId = $18; //品牌", " $1.Remark = $19; //备注", " $1.TopUserId = $20; //顶级创客", " $1.MerUserId = $21; //商户直属创客", "}" ] }, "获取交易记录数量": { "prefix": "ym-db-TradeRecord-FindAndCount", "body": [ "int $1 = db.TradeRecord.Count(m => $2);", ] }, "添加交易记录": { "prefix": "ym-db-TradeRecord-Create", "body": [ "db.TradeRecord.Add(new TradeRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RecordNo = $1, //单号", " UserId = $2, //创客", " MerchantId = $3, //商户", " MerNo = $4, //渠道商户编号", " MerHelpFlag = $5, //是否属于扶持周期内商户", " HelpMonthCount = $6, //扶持第几个月", " MerBuddyType = $7, //商户创客类型", " SnNo = $8, //渠道SN号", " TradeDate = $9, //交易日期", " ClearDate = $10, //清算日期", " TradeSerialNo = $11, //交易流水号", " TradeAmount = $12, //交易金额", " BankCardType = $13, //银行卡类型", " QrPayFlag = $14, //云闪付标识", " CapFlag = $15, //借记卡封顶交易标志", " DirectFlag = $16, //是否直营", " BrandId = $17, //品牌", " Remark = $18, //备注", " TopUserId = $19, //顶级创客", " MerUserId = $20, //商户直属创客", "});" ] },"删除某个交易记录": { "prefix": "ym-db-TradeRecord-Delete", "body": [ "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.TradeRecord.Remove($1);", "}" ] }, "查询上传配置项列表": { "prefix": "ym-db-UploadParams-Find", "body": [ "List $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UploadParams $3 in $1)", "{", "}" ] }, "查询上传配置项列表,并取值": { "prefix": "ym-db-UploadParams-FindWithData", "body": [ "List $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UploadParams $3 in $1)", "{", " string TableName = $3.TableName; //表名", " string ColumnName = $3.ColumnName; //字段名", " string ColumnEnName = $3.ColumnEnName; //字段英文明", " string ParamString = $3.ParamString; //参数", " string TableEnName = $3.TableEnName; //表英文名", "}" ] }, "查询上传配置项": { "prefix": "ym-db-UploadParams-Exist", "body": [ "bool $1 = db.UploadParams.Any(m => m.Id == $2);", ] }, "查询某个上传配置项,并取值": { "prefix": "ym-db-UploadParams-FindByPrimaryKey", "body": [ "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TableName = $1.TableName; //表名", " string ColumnName = $1.ColumnName; //字段名", " string ColumnEnName = $1.ColumnEnName; //字段英文明", " string ParamString = $1.ParamString; //参数", " string TableEnName = $1.TableEnName; //表英文名", "}" ] }, "查询某个上传配置项,并赋值": { "prefix": "ym-db-UploadParams-Update", "body": [ "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TableName = $2; //表名", " $1.ColumnName = $3; //字段名", " $1.ColumnEnName = $4; //字段英文明", " $1.ParamString = $5; //参数", " $1.TableEnName = $6; //表英文名", "}" ] }, "获取上传配置项数量": { "prefix": "ym-db-UploadParams-FindAndCount", "body": [ "int $1 = db.UploadParams.Count(m => $2);", ] }, "添加上传配置项": { "prefix": "ym-db-UploadParams-Create", "body": [ "db.UploadParams.Add(new UploadParams()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TableName = $1, //表名", " ColumnName = $2, //字段名", " ColumnEnName = $3, //字段英文明", " ParamString = $4, //参数", " TableEnName = $5, //表英文名", "});" ] },"删除某个上传配置项": { "prefix": "ym-db-UploadParams-Delete", "body": [ "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UploadParams.Remove($1);", "}" ] }, "查询创客账户列表": { "prefix": "ym-db-UserAccount-Find", "body": [ "List $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAccount $3 in $1)", "{", "}" ] }, "查询创客账户列表,并取值": { "prefix": "ym-db-UserAccount-FindWithData", "body": [ "List $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAccount $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int UserType = $3.UserType; //创客类型", " int UserProperty = $3.UserProperty; //创客属性", " decimal TotalAmount = $3.TotalAmount; //总金额", " decimal FreezeAmount = $3.FreezeAmount; //冻结金额", " decimal BalanceAmount = $3.BalanceAmount; //余额", " int AccountStatus = $3.AccountStatus; //账户状态", " int LockStatus = $3.LockStatus; //锁定状态", " decimal WithdrawAmount = $3.WithdrawAmount; //已提现金额", " decimal TotalProfit = $3.TotalProfit; //总收益", " decimal TotalServiceProfit = $3.TotalServiceProfit; //总服务分润", " decimal TeamTotalOverProfit = $3.TeamTotalOverProfit; //团队总流水分润", " decimal TeamTotalProfit = $3.TeamTotalProfit; //团队总收益", " decimal TeamTotalServiceProfit = $3.TeamTotalServiceProfit; //团队总服务分润", " decimal TotalOverProfit = $3.TotalOverProfit; //总流水分润", "}" ] }, "查询创客账户": { "prefix": "ym-db-UserAccount-Exist", "body": [ "bool $1 = db.UserAccount.Any(m => m.Id == $2);", ] }, "查询某个创客账户,并取值": { "prefix": "ym-db-UserAccount-FindByPrimaryKey", "body": [ "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int UserType = $1.UserType; //创客类型", " int UserProperty = $1.UserProperty; //创客属性", " decimal TotalAmount = $1.TotalAmount; //总金额", " decimal FreezeAmount = $1.FreezeAmount; //冻结金额", " decimal BalanceAmount = $1.BalanceAmount; //余额", " int AccountStatus = $1.AccountStatus; //账户状态", " int LockStatus = $1.LockStatus; //锁定状态", " decimal WithdrawAmount = $1.WithdrawAmount; //已提现金额", " decimal TotalProfit = $1.TotalProfit; //总收益", " decimal TotalServiceProfit = $1.TotalServiceProfit; //总服务分润", " decimal TeamTotalOverProfit = $1.TeamTotalOverProfit; //团队总流水分润", " decimal TeamTotalProfit = $1.TeamTotalProfit; //团队总收益", " decimal TeamTotalServiceProfit = $1.TeamTotalServiceProfit; //团队总服务分润", " decimal TotalOverProfit = $1.TotalOverProfit; //总流水分润", "}" ] }, "查询某个创客账户,并赋值": { "prefix": "ym-db-UserAccount-Update", "body": [ "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.UserType = $3; //创客类型", " $1.UserProperty = $4; //创客属性", " $1.TotalAmount = $5; //总金额", " $1.FreezeAmount = $6; //冻结金额", " $1.BalanceAmount = $7; //余额", " $1.AccountStatus = $8; //账户状态", " $1.LockStatus = $9; //锁定状态", " $1.WithdrawAmount = $10; //已提现金额", " $1.TotalProfit = $11; //总收益", " $1.TotalServiceProfit = $12; //总服务分润", " $1.TeamTotalOverProfit = $13; //团队总流水分润", " $1.TeamTotalProfit = $14; //团队总收益", " $1.TeamTotalServiceProfit = $15; //团队总服务分润", " $1.TotalOverProfit = $16; //总流水分润", "}" ] }, "获取创客账户数量": { "prefix": "ym-db-UserAccount-FindAndCount", "body": [ "int $1 = db.UserAccount.Count(m => $2);", ] }, "添加创客账户": { "prefix": "ym-db-UserAccount-Create", "body": [ "db.UserAccount.Add(new UserAccount()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " UserType = $2, //创客类型", " UserProperty = $3, //创客属性", " TotalAmount = $4, //总金额", " FreezeAmount = $5, //冻结金额", " BalanceAmount = $6, //余额", " AccountStatus = $7, //账户状态", " LockStatus = $8, //锁定状态", " WithdrawAmount = $9, //已提现金额", " TotalProfit = $10, //总收益", " TotalServiceProfit = $11, //总服务分润", " TeamTotalOverProfit = $12, //团队总流水分润", " TeamTotalProfit = $13, //团队总收益", " TeamTotalServiceProfit = $14, //团队总服务分润", " TotalOverProfit = $15, //总流水分润", "});" ] },"删除某个创客账户": { "prefix": "ym-db-UserAccount-Delete", "body": [ "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserAccount.Remove($1);", "}" ] }, "查询创客账户变动记录列表": { "prefix": "ym-db-UserAccountRecord-Find", "body": [ "List $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAccountRecord $3 in $1)", "{", "}" ] }, "查询创客账户变动记录列表,并取值": { "prefix": "ym-db-UserAccountRecord-FindWithData", "body": [ "List $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAccountRecord $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int ChangeType = $3.ChangeType; //变动类型", " int ProductType = $3.ProductType; //产品类型", " decimal ChangeAmount = $3.ChangeAmount; //变更金额", " decimal BeforeTotalAmount = $3.BeforeTotalAmount; //变更前总金额", " decimal AfterTotalAmount = $3.AfterTotalAmount; //变更后总金额", " decimal BeforeFreezeAmount = $3.BeforeFreezeAmount; //变更前冻结金额", " decimal AfterFreezeAmount = $3.AfterFreezeAmount; //变更后冻结金额", " decimal BeforeBalanceAmount = $3.BeforeBalanceAmount; //变更前余额", " decimal AfterBalanceAmount = $3.AfterBalanceAmount; //变更后余额", " string Remark = $3.Remark; //账户变动明细备注信息", " string TransRecordNo = $3.TransRecordNo; //交易流水编号", "}" ] }, "查询创客账户变动记录": { "prefix": "ym-db-UserAccountRecord-Exist", "body": [ "bool $1 = db.UserAccountRecord.Any(m => m.Id == $2);", ] }, "查询某个创客账户变动记录,并取值": { "prefix": "ym-db-UserAccountRecord-FindByPrimaryKey", "body": [ "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int ChangeType = $1.ChangeType; //变动类型", " int ProductType = $1.ProductType; //产品类型", " decimal ChangeAmount = $1.ChangeAmount; //变更金额", " decimal BeforeTotalAmount = $1.BeforeTotalAmount; //变更前总金额", " decimal AfterTotalAmount = $1.AfterTotalAmount; //变更后总金额", " decimal BeforeFreezeAmount = $1.BeforeFreezeAmount; //变更前冻结金额", " decimal AfterFreezeAmount = $1.AfterFreezeAmount; //变更后冻结金额", " decimal BeforeBalanceAmount = $1.BeforeBalanceAmount; //变更前余额", " decimal AfterBalanceAmount = $1.AfterBalanceAmount; //变更后余额", " string Remark = $1.Remark; //账户变动明细备注信息", " string TransRecordNo = $1.TransRecordNo; //交易流水编号", "}" ] }, "查询某个创客账户变动记录,并赋值": { "prefix": "ym-db-UserAccountRecord-Update", "body": [ "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.ChangeType = $3; //变动类型", " $1.ProductType = $4; //产品类型", " $1.ChangeAmount = $5; //变更金额", " $1.BeforeTotalAmount = $6; //变更前总金额", " $1.AfterTotalAmount = $7; //变更后总金额", " $1.BeforeFreezeAmount = $8; //变更前冻结金额", " $1.AfterFreezeAmount = $9; //变更后冻结金额", " $1.BeforeBalanceAmount = $10; //变更前余额", " $1.AfterBalanceAmount = $11; //变更后余额", " $1.Remark = $12; //账户变动明细备注信息", " $1.TransRecordNo = $13; //交易流水编号", "}" ] }, "获取创客账户变动记录数量": { "prefix": "ym-db-UserAccountRecord-FindAndCount", "body": [ "int $1 = db.UserAccountRecord.Count(m => $2);", ] }, "添加创客账户变动记录": { "prefix": "ym-db-UserAccountRecord-Create", "body": [ "db.UserAccountRecord.Add(new UserAccountRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " ChangeType = $2, //变动类型", " ProductType = $3, //产品类型", " ChangeAmount = $4, //变更金额", " BeforeTotalAmount = $5, //变更前总金额", " AfterTotalAmount = $6, //变更后总金额", " BeforeFreezeAmount = $7, //变更前冻结金额", " AfterFreezeAmount = $8, //变更后冻结金额", " BeforeBalanceAmount = $9, //变更前余额", " AfterBalanceAmount = $10, //变更后余额", " Remark = $11, //账户变动明细备注信息", " TransRecordNo = $12, //交易流水编号", "});" ] },"删除某个创客账户变动记录": { "prefix": "ym-db-UserAccountRecord-Delete", "body": [ "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserAccountRecord.Remove($1);", "}" ] }, "查询创客收货地址列表": { "prefix": "ym-db-UserAddress-Find", "body": [ "List $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAddress $3 in $1)", "{", "}" ] }, "查询创客收货地址列表,并取值": { "prefix": "ym-db-UserAddress-FindWithData", "body": [ "List $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAddress $3 in $1)", "{", " string Address = $3.Address; //详细地址", " string PostalCode = $3.PostalCode; //邮政编码", " string RealName = $3.RealName; //收货人姓名", " string Mobile = $3.Mobile; //手机号码", " int UserId = $3.UserId; //所属创客Id", " string Areas = $3.Areas; //所在地区", " ulong IsDefault = $3.IsDefault; //是否默认", "}" ] }, "查询创客收货地址": { "prefix": "ym-db-UserAddress-Exist", "body": [ "bool $1 = db.UserAddress.Any(m => m.Id == $2);", ] }, "查询某个创客收货地址,并取值": { "prefix": "ym-db-UserAddress-FindByPrimaryKey", "body": [ "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Address = $1.Address; //详细地址", " string PostalCode = $1.PostalCode; //邮政编码", " string RealName = $1.RealName; //收货人姓名", " string Mobile = $1.Mobile; //手机号码", " int UserId = $1.UserId; //所属创客Id", " string Areas = $1.Areas; //所在地区", " ulong IsDefault = $1.IsDefault; //是否默认", "}" ] }, "查询某个创客收货地址,并赋值": { "prefix": "ym-db-UserAddress-Update", "body": [ "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Address = $2; //详细地址", " $1.PostalCode = $3; //邮政编码", " $1.RealName = $4; //收货人姓名", " $1.Mobile = $5; //手机号码", " $1.UserId = $6; //所属创客Id", " $1.Areas = $7; //所在地区", " $1.IsDefault = $8; //是否默认", "}" ] }, "获取创客收货地址数量": { "prefix": "ym-db-UserAddress-FindAndCount", "body": [ "int $1 = db.UserAddress.Count(m => $2);", ] }, "添加创客收货地址": { "prefix": "ym-db-UserAddress-Create", "body": [ "db.UserAddress.Add(new UserAddress()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Address = $1, //详细地址", " PostalCode = $2, //邮政编码", " RealName = $3, //收货人姓名", " Mobile = $4, //手机号码", " UserId = $5, //所属创客Id", " Areas = $6, //所在地区", " IsDefault = $7, //是否默认", "});" ] },"删除某个创客收货地址": { "prefix": "ym-db-UserAddress-Delete", "body": [ "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserAddress.Remove($1);", "}" ] }, "查询创客绑卡记录列表": { "prefix": "ym-db-UserAuthRecord-Find", "body": [ "List $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAuthRecord $3 in $1)", "{", "}" ] }, "查询创客绑卡记录列表,并取值": { "prefix": "ym-db-UserAuthRecord-FindWithData", "body": [ "List $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserAuthRecord $3 in $1)", "{", " string ChannelCode = $3.ChannelCode; //渠道编码", " string ChannelName = $3.ChannelName; //渠道名称", " int UserId = $3.UserId; //创客", " string RealName = $3.RealName; //真实姓名", " string IdcardNo = $3.IdcardNo; //身份证号码", " string BankCardAccount = $3.BankCardAccount; //银行卡账号", " string BankName = $3.BankName; //银行名称", " string BankMobile = $3.BankMobile; //银行预留手机号码", " string ReqData = $3.ReqData; //请求数据", " string ResData = $3.ResData; //响应数据", " string ReturnCode = $3.ReturnCode; //返回编码", " string ReturnMsg = $3.ReturnMsg; //返回信息", " int AuthType = $3.AuthType; //实名类型", "}" ] }, "查询创客绑卡记录": { "prefix": "ym-db-UserAuthRecord-Exist", "body": [ "bool $1 = db.UserAuthRecord.Any(m => m.Id == $2);", ] }, "查询某个创客绑卡记录,并取值": { "prefix": "ym-db-UserAuthRecord-FindByPrimaryKey", "body": [ "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string ChannelCode = $1.ChannelCode; //渠道编码", " string ChannelName = $1.ChannelName; //渠道名称", " int UserId = $1.UserId; //创客", " string RealName = $1.RealName; //真实姓名", " string IdcardNo = $1.IdcardNo; //身份证号码", " string BankCardAccount = $1.BankCardAccount; //银行卡账号", " string BankName = $1.BankName; //银行名称", " string BankMobile = $1.BankMobile; //银行预留手机号码", " string ReqData = $1.ReqData; //请求数据", " string ResData = $1.ResData; //响应数据", " string ReturnCode = $1.ReturnCode; //返回编码", " string ReturnMsg = $1.ReturnMsg; //返回信息", " int AuthType = $1.AuthType; //实名类型", "}" ] }, "查询某个创客绑卡记录,并赋值": { "prefix": "ym-db-UserAuthRecord-Update", "body": [ "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ChannelCode = $2; //渠道编码", " $1.ChannelName = $3; //渠道名称", " $1.UserId = $4; //创客", " $1.RealName = $5; //真实姓名", " $1.IdcardNo = $6; //身份证号码", " $1.BankCardAccount = $7; //银行卡账号", " $1.BankName = $8; //银行名称", " $1.BankMobile = $9; //银行预留手机号码", " $1.ReqData = $10; //请求数据", " $1.ResData = $11; //响应数据", " $1.ReturnCode = $12; //返回编码", " $1.ReturnMsg = $13; //返回信息", " $1.AuthType = $14; //实名类型", "}" ] }, "获取创客绑卡记录数量": { "prefix": "ym-db-UserAuthRecord-FindAndCount", "body": [ "int $1 = db.UserAuthRecord.Count(m => $2);", ] }, "添加创客绑卡记录": { "prefix": "ym-db-UserAuthRecord-Create", "body": [ "db.UserAuthRecord.Add(new UserAuthRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ChannelCode = $1, //渠道编码", " ChannelName = $2, //渠道名称", " UserId = $3, //创客", " RealName = $4, //真实姓名", " IdcardNo = $5, //身份证号码", " BankCardAccount = $6, //银行卡账号", " BankName = $7, //银行名称", " BankMobile = $8, //银行预留手机号码", " ReqData = $9, //请求数据", " ResData = $10, //响应数据", " ReturnCode = $11, //返回编码", " ReturnMsg = $12, //返回信息", " AuthType = $13, //实名类型", "});" ] },"删除某个创客绑卡记录": { "prefix": "ym-db-UserAuthRecord-Delete", "body": [ "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserAuthRecord.Remove($1);", "}" ] }, "查询反馈信息列表": { "prefix": "ym-db-UserBack-Find", "body": [ "List $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBack $3 in $1)", "{", "}" ] }, "查询反馈信息列表,并取值": { "prefix": "ym-db-UserBack-FindWithData", "body": [ "List $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBack $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string Content = $3.Content; //回复内容", " ulong IsPhoneCallBack = $3.IsPhoneCallBack; //是否需要电话回复", " int BackKind = $3.BackKind; //反馈类型", " string ReplyContent = $3.ReplyContent; //后台回复内容", " int BackStatus = $3.BackStatus; //回复状态", "}" ] }, "查询反馈信息": { "prefix": "ym-db-UserBack-Exist", "body": [ "bool $1 = db.UserBack.Any(m => m.Id == $2);", ] }, "查询某个反馈信息,并取值": { "prefix": "ym-db-UserBack-FindByPrimaryKey", "body": [ "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string Content = $1.Content; //回复内容", " ulong IsPhoneCallBack = $1.IsPhoneCallBack; //是否需要电话回复", " int BackKind = $1.BackKind; //反馈类型", " string ReplyContent = $1.ReplyContent; //后台回复内容", " int BackStatus = $1.BackStatus; //回复状态", "}" ] }, "查询某个反馈信息,并赋值": { "prefix": "ym-db-UserBack-Update", "body": [ "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.Content = $3; //回复内容", " $1.IsPhoneCallBack = $4; //是否需要电话回复", " $1.BackKind = $5; //反馈类型", " $1.ReplyContent = $6; //后台回复内容", " $1.BackStatus = $7; //回复状态", "}" ] }, "获取反馈信息数量": { "prefix": "ym-db-UserBack-FindAndCount", "body": [ "int $1 = db.UserBack.Count(m => $2);", ] }, "添加反馈信息": { "prefix": "ym-db-UserBack-Create", "body": [ "db.UserBack.Add(new UserBack()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " Content = $2, //回复内容", " IsPhoneCallBack = $3, //是否需要电话回复", " BackKind = $4, //反馈类型", " ReplyContent = $5, //后台回复内容", " BackStatus = $6, //回复状态", "});" ] },"删除某个反馈信息": { "prefix": "ym-db-UserBack-Delete", "body": [ "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserBack.Remove($1);", "}" ] }, "查询反馈类型列表": { "prefix": "ym-db-UserBackKind-Find", "body": [ "List $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBackKind $3 in $1)", "{", "}" ] }, "查询反馈类型列表,并取值": { "prefix": "ym-db-UserBackKind-FindWithData", "body": [ "List $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBackKind $3 in $1)", "{", " string Name = $3.Name; //名称", "}" ] }, "查询反馈类型": { "prefix": "ym-db-UserBackKind-Exist", "body": [ "bool $1 = db.UserBackKind.Any(m => m.Id == $2);", ] }, "查询某个反馈类型,并取值": { "prefix": "ym-db-UserBackKind-FindByPrimaryKey", "body": [ "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", "}" ] }, "查询某个反馈类型,并赋值": { "prefix": "ym-db-UserBackKind-Update", "body": [ "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", "}" ] }, "获取反馈类型数量": { "prefix": "ym-db-UserBackKind-FindAndCount", "body": [ "int $1 = db.UserBackKind.Count(m => $2);", ] }, "添加反馈类型": { "prefix": "ym-db-UserBackKind-Create", "body": [ "db.UserBackKind.Add(new UserBackKind()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", "});" ] },"删除某个反馈类型": { "prefix": "ym-db-UserBackKind-Delete", "body": [ "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserBackKind.Remove($1);", "}" ] }, "查询创客收益排行列表": { "prefix": "ym-db-UserBalanceTop-Find", "body": [ "List $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBalanceTop $3 in $1)", "{", "}" ] }, "查询创客收益排行列表,并取值": { "prefix": "ym-db-UserBalanceTop-FindWithData", "body": [ "List $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserBalanceTop $3 in $1)", "{", " int UserId = $3.UserId; //创客", " decimal Balance = $3.Balance; //收益金额", " string StatDate = $3.StatDate; //统计日", " string StatMonth = $3.StatMonth; //统计月", "}" ] }, "查询创客收益排行": { "prefix": "ym-db-UserBalanceTop-Exist", "body": [ "bool $1 = db.UserBalanceTop.Any(m => m.Id == $2);", ] }, "查询某个创客收益排行,并取值": { "prefix": "ym-db-UserBalanceTop-FindByPrimaryKey", "body": [ "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " decimal Balance = $1.Balance; //收益金额", " string StatDate = $1.StatDate; //统计日", " string StatMonth = $1.StatMonth; //统计月", "}" ] }, "查询某个创客收益排行,并赋值": { "prefix": "ym-db-UserBalanceTop-Update", "body": [ "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.Balance = $3; //收益金额", " $1.StatDate = $4; //统计日", " $1.StatMonth = $5; //统计月", "}" ] }, "获取创客收益排行数量": { "prefix": "ym-db-UserBalanceTop-FindAndCount", "body": [ "int $1 = db.UserBalanceTop.Count(m => $2);", ] }, "添加创客收益排行": { "prefix": "ym-db-UserBalanceTop-Create", "body": [ "db.UserBalanceTop.Add(new UserBalanceTop()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " Balance = $2, //收益金额", " StatDate = $3, //统计日", " StatMonth = $4, //统计月", "});" ] },"删除某个创客收益排行": { "prefix": "ym-db-UserBalanceTop-Delete", "body": [ "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserBalanceTop.Remove($1);", "}" ] }, "查询创客购物车列表": { "prefix": "ym-db-UserCar-Find", "body": [ "List $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCar $3 in $1)", "{", "}" ] }, "查询创客购物车列表,并取值": { "prefix": "ym-db-UserCar-FindWithData", "body": [ "List $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCar $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int ProductId = $3.ProductId; //商品Id", " int BuyCount = $3.BuyCount; //购买数量", " int MerchantId = $3.MerchantId; //商家Id", " int NormId = $3.NormId; //规格Id", "}" ] }, "查询创客购物车": { "prefix": "ym-db-UserCar-Exist", "body": [ "bool $1 = db.UserCar.Any(m => m.Id == $2);", ] }, "查询某个创客购物车,并取值": { "prefix": "ym-db-UserCar-FindByPrimaryKey", "body": [ "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int ProductId = $1.ProductId; //商品Id", " int BuyCount = $1.BuyCount; //购买数量", " int MerchantId = $1.MerchantId; //商家Id", " int NormId = $1.NormId; //规格Id", "}" ] }, "查询某个创客购物车,并赋值": { "prefix": "ym-db-UserCar-Update", "body": [ "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.ProductId = $3; //商品Id", " $1.BuyCount = $4; //购买数量", " $1.MerchantId = $5; //商家Id", " $1.NormId = $6; //规格Id", "}" ] }, "获取创客购物车数量": { "prefix": "ym-db-UserCar-FindAndCount", "body": [ "int $1 = db.UserCar.Count(m => $2);", ] }, "添加创客购物车": { "prefix": "ym-db-UserCar-Create", "body": [ "db.UserCar.Add(new UserCar()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " ProductId = $2, //商品Id", " BuyCount = $3, //购买数量", " MerchantId = $4, //商家Id", " NormId = $5, //规格Id", "});" ] },"删除某个创客购物车": { "prefix": "ym-db-UserCar-Delete", "body": [ "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCar.Remove($1);", "}" ] }, "查询会员卡列表": { "prefix": "ym-db-UserCardForWeChat-Find", "body": [ "List $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCardForWeChat $3 in $1)", "{", "}" ] }, "查询会员卡列表,并取值": { "prefix": "ym-db-UserCardForWeChat-FindWithData", "body": [ "List $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCardForWeChat $3 in $1)", "{", " string CardType = $3.CardType; //会员卡类型", " string LogoUrl = $3.LogoUrl; //商户logo", " string CodeType = $3.CodeType; //展示类型", " string BrandName = $3.BrandName; //商户名字", " string Title = $3.Title; //卡券名", " string Color = $3.Color; //券颜色", " string Notice = $3.Notice; //卡券使用提醒", " string Description = $3.Description; //卡券使用说明", " int Quantity = $3.Quantity; //卡券库存的数量", " string DateType = $3.DateType; //使用时间类型", " string Sku = $3.Sku; //商品信息", " string Prerogative = $3.Prerogative; //会员卡特权说明", " ulong SupplyBonus = $3.SupplyBonus; //显示积分", " ulong SupplyBalance = $3.SupplyBalance; //是否支持储值", " string EnterName = $3.EnterName; //入口名称", " string EnterTips = $3.EnterTips; //入口右侧提示语", " string EnterUrl = $3.EnterUrl; //入口跳转链接", " string CardId = $3.CardId; //卡券ID", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询会员卡": { "prefix": "ym-db-UserCardForWeChat-Exist", "body": [ "bool $1 = db.UserCardForWeChat.Any(m => m.Id == $2);", ] }, "查询某个会员卡,并取值": { "prefix": "ym-db-UserCardForWeChat-FindByPrimaryKey", "body": [ "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string CardType = $1.CardType; //会员卡类型", " string LogoUrl = $1.LogoUrl; //商户logo", " string CodeType = $1.CodeType; //展示类型", " string BrandName = $1.BrandName; //商户名字", " string Title = $1.Title; //卡券名", " string Color = $1.Color; //券颜色", " string Notice = $1.Notice; //卡券使用提醒", " string Description = $1.Description; //卡券使用说明", " int Quantity = $1.Quantity; //卡券库存的数量", " string DateType = $1.DateType; //使用时间类型", " string Sku = $1.Sku; //商品信息", " string Prerogative = $1.Prerogative; //会员卡特权说明", " ulong SupplyBonus = $1.SupplyBonus; //显示积分", " ulong SupplyBalance = $1.SupplyBalance; //是否支持储值", " string EnterName = $1.EnterName; //入口名称", " string EnterTips = $1.EnterTips; //入口右侧提示语", " string EnterUrl = $1.EnterUrl; //入口跳转链接", " string CardId = $1.CardId; //卡券ID", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个会员卡,并赋值": { "prefix": "ym-db-UserCardForWeChat-Update", "body": [ "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.CardType = $2; //会员卡类型", " $1.LogoUrl = $3; //商户logo", " $1.CodeType = $4; //展示类型", " $1.BrandName = $5; //商户名字", " $1.Title = $6; //卡券名", " $1.Color = $7; //券颜色", " $1.Notice = $8; //卡券使用提醒", " $1.Description = $9; //卡券使用说明", " $1.Quantity = $10; //卡券库存的数量", " $1.DateType = $11; //使用时间类型", " $1.Sku = $12; //商品信息", " $1.Prerogative = $13; //会员卡特权说明", " $1.SupplyBonus = $14; //显示积分", " $1.SupplyBalance = $15; //是否支持储值", " $1.EnterName = $16; //入口名称", " $1.EnterTips = $17; //入口右侧提示语", " $1.EnterUrl = $18; //入口跳转链接", " $1.CardId = $19; //卡券ID", " $1.MerchantId = $20; //商户", "}" ] }, "获取会员卡数量": { "prefix": "ym-db-UserCardForWeChat-FindAndCount", "body": [ "int $1 = db.UserCardForWeChat.Count(m => $2);", ] }, "添加会员卡": { "prefix": "ym-db-UserCardForWeChat-Create", "body": [ "db.UserCardForWeChat.Add(new UserCardForWeChat()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " CardType = $1, //会员卡类型", " LogoUrl = $2, //商户logo", " CodeType = $3, //展示类型", " BrandName = $4, //商户名字", " Title = $5, //卡券名", " Color = $6, //券颜色", " Notice = $7, //卡券使用提醒", " Description = $8, //卡券使用说明", " Quantity = $9, //卡券库存的数量", " DateType = $10, //使用时间类型", " Sku = $11, //商品信息", " Prerogative = $12, //会员卡特权说明", " SupplyBonus = $13, //显示积分", " SupplyBalance = $14, //是否支持储值", " EnterName = $15, //入口名称", " EnterTips = $16, //入口右侧提示语", " EnterUrl = $17, //入口跳转链接", " CardId = $18, //卡券ID", " MerchantId = $19, //商户", "});" ] },"删除某个会员卡": { "prefix": "ym-db-UserCardForWeChat-Delete", "body": [ "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCardForWeChat.Remove($1);", "}" ] }, "查询会员卡领取记录列表": { "prefix": "ym-db-UserCardRecord-Find", "body": [ "List $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCardRecord $3 in $1)", "{", "}" ] }, "查询会员卡领取记录列表,并取值": { "prefix": "ym-db-UserCardRecord-FindWithData", "body": [ "List $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCardRecord $3 in $1)", "{", " int ConsumerId = $3.ConsumerId; //消费者", " int CardId = $3.CardId; //会员卡", " int MerchantId = $3.MerchantId; //商户", "}" ] }, "查询会员卡领取记录": { "prefix": "ym-db-UserCardRecord-Exist", "body": [ "bool $1 = db.UserCardRecord.Any(m => m.Id == $2);", ] }, "查询某个会员卡领取记录,并取值": { "prefix": "ym-db-UserCardRecord-FindByPrimaryKey", "body": [ "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int ConsumerId = $1.ConsumerId; //消费者", " int CardId = $1.CardId; //会员卡", " int MerchantId = $1.MerchantId; //商户", "}" ] }, "查询某个会员卡领取记录,并赋值": { "prefix": "ym-db-UserCardRecord-Update", "body": [ "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.ConsumerId = $2; //消费者", " $1.CardId = $3; //会员卡", " $1.MerchantId = $4; //商户", "}" ] }, "获取会员卡领取记录数量": { "prefix": "ym-db-UserCardRecord-FindAndCount", "body": [ "int $1 = db.UserCardRecord.Count(m => $2);", ] }, "添加会员卡领取记录": { "prefix": "ym-db-UserCardRecord-Create", "body": [ "db.UserCardRecord.Add(new UserCardRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " ConsumerId = $1, //消费者", " CardId = $2, //会员卡", " MerchantId = $3, //商户", "});" ] },"删除某个会员卡领取记录": { "prefix": "ym-db-UserCardRecord-Delete", "body": [ "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCardRecord.Remove($1);", "}" ] }, "查询提现记录列表": { "prefix": "ym-db-UserCashRecord-Find", "body": [ "List $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCashRecord $3 in $1)", "{", "}" ] }, "查询提现记录列表,并取值": { "prefix": "ym-db-UserCashRecord-FindWithData", "body": [ "List $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCashRecord $3 in $1)", "{", " string CashOrderNo = $3.CashOrderNo; //申请提现单号", " int UserId = $3.UserId; //创客", " string IdCardNo = $3.IdCardNo; //身份证号", " string SettleBankCardNo = $3.SettleBankCardNo; //提现卡号", " string SettleBankName = $3.SettleBankName; //银行名称", " int TradeType = $3.TradeType; //交易类型", " string PayTradeNo = $3.PayTradeNo; //提现服务交易流水号", " string ChannelCode = $3.ChannelCode; //支付渠道编号", " string ChanelName = $3.ChanelName; //支付渠道名称", " decimal TradeAmount = $3.TradeAmount; //交易金额", " decimal ActualTradeAmount = $3.ActualTradeAmount; //实际交易金额", " decimal TradeFee = $3.TradeFee; //交易手续费", " decimal ManageFee = $3.ManageFee; //扣税金额", " string ReqData = $3.ReqData; //请求数据", " string ResData = $3.ResData; //响应数据", " string ReturnCode = $3.ReturnCode; //返回编码", " string ReturnMsg = $3.ReturnMsg; //返回信息", " DateTime PaymentDate = $3.PaymentDate; //支付时间", " string Ip = $3.Ip; //IP地址", " string MediaSource = $3.MediaSource; //媒体来源", " string Remark = $3.Remark; //备注", "}" ] }, "查询提现记录": { "prefix": "ym-db-UserCashRecord-Exist", "body": [ "bool $1 = db.UserCashRecord.Any(m => m.Id == $2);", ] }, "查询某个提现记录,并取值": { "prefix": "ym-db-UserCashRecord-FindByPrimaryKey", "body": [ "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string CashOrderNo = $1.CashOrderNo; //申请提现单号", " int UserId = $1.UserId; //创客", " string IdCardNo = $1.IdCardNo; //身份证号", " string SettleBankCardNo = $1.SettleBankCardNo; //提现卡号", " string SettleBankName = $1.SettleBankName; //银行名称", " int TradeType = $1.TradeType; //交易类型", " string PayTradeNo = $1.PayTradeNo; //提现服务交易流水号", " string ChannelCode = $1.ChannelCode; //支付渠道编号", " string ChanelName = $1.ChanelName; //支付渠道名称", " decimal TradeAmount = $1.TradeAmount; //交易金额", " decimal ActualTradeAmount = $1.ActualTradeAmount; //实际交易金额", " decimal TradeFee = $1.TradeFee; //交易手续费", " decimal ManageFee = $1.ManageFee; //扣税金额", " string ReqData = $1.ReqData; //请求数据", " string ResData = $1.ResData; //响应数据", " string ReturnCode = $1.ReturnCode; //返回编码", " string ReturnMsg = $1.ReturnMsg; //返回信息", " DateTime PaymentDate = $1.PaymentDate; //支付时间", " string Ip = $1.Ip; //IP地址", " string MediaSource = $1.MediaSource; //媒体来源", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个提现记录,并赋值": { "prefix": "ym-db-UserCashRecord-Update", "body": [ "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.CashOrderNo = $2; //申请提现单号", " $1.UserId = $3; //创客", " $1.IdCardNo = $4; //身份证号", " $1.SettleBankCardNo = $5; //提现卡号", " $1.SettleBankName = $6; //银行名称", " $1.TradeType = $7; //交易类型", " $1.PayTradeNo = $8; //提现服务交易流水号", " $1.ChannelCode = $9; //支付渠道编号", " $1.ChanelName = $10; //支付渠道名称", " $1.TradeAmount = $11; //交易金额", " $1.ActualTradeAmount = $12; //实际交易金额", " $1.TradeFee = $13; //交易手续费", " $1.ManageFee = $14; //扣税金额", " $1.ReqData = $15; //请求数据", " $1.ResData = $16; //响应数据", " $1.ReturnCode = $17; //返回编码", " $1.ReturnMsg = $18; //返回信息", " $1.PaymentDate = $19; //支付时间", " $1.Ip = $20; //IP地址", " $1.MediaSource = $21; //媒体来源", " $1.Remark = $22; //备注", "}" ] }, "获取提现记录数量": { "prefix": "ym-db-UserCashRecord-FindAndCount", "body": [ "int $1 = db.UserCashRecord.Count(m => $2);", ] }, "添加提现记录": { "prefix": "ym-db-UserCashRecord-Create", "body": [ "db.UserCashRecord.Add(new UserCashRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " CashOrderNo = $1, //申请提现单号", " UserId = $2, //创客", " IdCardNo = $3, //身份证号", " SettleBankCardNo = $4, //提现卡号", " SettleBankName = $5, //银行名称", " TradeType = $6, //交易类型", " PayTradeNo = $7, //提现服务交易流水号", " ChannelCode = $8, //支付渠道编号", " ChanelName = $9, //支付渠道名称", " TradeAmount = $10, //交易金额", " ActualTradeAmount = $11, //实际交易金额", " TradeFee = $12, //交易手续费", " ManageFee = $13, //扣税金额", " ReqData = $14, //请求数据", " ResData = $15, //响应数据", " ReturnCode = $16, //返回编码", " ReturnMsg = $17, //返回信息", " PaymentDate = $18, //支付时间", " Ip = $19, //IP地址", " MediaSource = $20, //媒体来源", " Remark = $21, //备注", "});" ] },"删除某个提现记录": { "prefix": "ym-db-UserCashRecord-Delete", "body": [ "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCashRecord.Remove($1);", "}" ] }, "查询个人中心常用工具列表": { "prefix": "ym-db-UserCenterIconList-Find", "body": [ "List $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCenterIconList $3 in $1)", "{", "}" ] }, "查询个人中心常用工具列表,并取值": { "prefix": "ym-db-UserCenterIconList-FindWithData", "body": [ "List $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCenterIconList $3 in $1)", "{", " string Icon = $3.Icon; //图标", " string Title = $3.Title; //标题", " string Url = $3.Url; //跳转地址", "}" ] }, "查询个人中心常用工具": { "prefix": "ym-db-UserCenterIconList-Exist", "body": [ "bool $1 = db.UserCenterIconList.Any(m => m.Id == $2);", ] }, "查询某个个人中心常用工具,并取值": { "prefix": "ym-db-UserCenterIconList-FindByPrimaryKey", "body": [ "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Icon = $1.Icon; //图标", " string Title = $1.Title; //标题", " string Url = $1.Url; //跳转地址", "}" ] }, "查询某个个人中心常用工具,并赋值": { "prefix": "ym-db-UserCenterIconList-Update", "body": [ "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Icon = $2; //图标", " $1.Title = $3; //标题", " $1.Url = $4; //跳转地址", "}" ] }, "获取个人中心常用工具数量": { "prefix": "ym-db-UserCenterIconList-FindAndCount", "body": [ "int $1 = db.UserCenterIconList.Count(m => $2);", ] }, "添加个人中心常用工具": { "prefix": "ym-db-UserCenterIconList-Create", "body": [ "db.UserCenterIconList.Add(new UserCenterIconList()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Icon = $1, //图标", " Title = $2, //标题", " Url = $3, //跳转地址", "});" ] },"删除某个个人中心常用工具": { "prefix": "ym-db-UserCenterIconList-Delete", "body": [ "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCenterIconList.Remove($1);", "}" ] }, "查询收藏列表": { "prefix": "ym-db-UserCollection-Find", "body": [ "List $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCollection $3 in $1)", "{", "}" ] }, "查询收藏列表,并取值": { "prefix": "ym-db-UserCollection-FindWithData", "body": [ "List $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserCollection $3 in $1)", "{", " int DataId = $3.DataId; //数据Id", " int Kind = $3.Kind; //类别", " int UserId = $3.UserId; //创客Id", "}" ] }, "查询收藏": { "prefix": "ym-db-UserCollection-Exist", "body": [ "bool $1 = db.UserCollection.Any(m => m.Id == $2);", ] }, "查询某个收藏,并取值": { "prefix": "ym-db-UserCollection-FindByPrimaryKey", "body": [ "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int DataId = $1.DataId; //数据Id", " int Kind = $1.Kind; //类别", " int UserId = $1.UserId; //创客Id", "}" ] }, "查询某个收藏,并赋值": { "prefix": "ym-db-UserCollection-Update", "body": [ "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.DataId = $2; //数据Id", " $1.Kind = $3; //类别", " $1.UserId = $4; //创客Id", "}" ] }, "获取收藏数量": { "prefix": "ym-db-UserCollection-FindAndCount", "body": [ "int $1 = db.UserCollection.Count(m => $2);", ] }, "添加收藏": { "prefix": "ym-db-UserCollection-Create", "body": [ "db.UserCollection.Add(new UserCollection()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " DataId = $1, //数据Id", " Kind = $2, //类别", " UserId = $3, //创客Id", "});" ] },"删除某个收藏": { "prefix": "ym-db-UserCollection-Delete", "body": [ "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserCollection.Remove($1);", "}" ] }, "查询创客数据列表": { "prefix": "ym-db-UserData-Find", "body": [ "List $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserData $3 in $1)", "{", "}" ] }, "查询创客数据列表,并取值": { "prefix": "ym-db-UserData-FindWithData", "body": [ "List $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserData $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int GrowthValue = $3.GrowthValue; //成长值", " decimal CurMoney = $3.CurMoney; //当前余额", " decimal Integral = $3.Integral; //当前积分", " decimal TotalOrderMoney = $3.TotalOrderMoney; //消费总额", " decimal TotalUseIntegral = $3.TotalUseIntegral; //消耗积分总额", " int FollowCount = $3.FollowCount; //关注数", " int FansCount = $3.FansCount; //粉丝数", " int CollectionCount = $3.CollectionCount; //收藏数", " decimal Coupons = $3.Coupons; //卡券包", " int ToPayOrderCount = $3.ToPayOrderCount; //待付款", " int ToSendOrderCount = $3.ToSendOrderCount; //待发货", " int ToReceiveOrderCount = $3.ToReceiveOrderCount; //待收货", " int ToCommentOrderCount = $3.ToCommentOrderCount; //待评价", " int ToRefundOrderCount = $3.ToRefundOrderCount; //退款售后", " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额", " decimal SettleAmount = $3.SettleAmount; //最低结算金额", " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额", " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励", " int MachineCount = $3.MachineCount; //赠机数量", "}" ] }, "查询创客数据": { "prefix": "ym-db-UserData-Exist", "body": [ "bool $1 = db.UserData.Any(m => m.UserId == $2);", ] }, "查询某个创客数据,并取值": { "prefix": "ym-db-UserData-FindByPrimaryKey", "body": [ "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int GrowthValue = $1.GrowthValue; //成长值", " decimal CurMoney = $1.CurMoney; //当前余额", " decimal Integral = $1.Integral; //当前积分", " decimal TotalOrderMoney = $1.TotalOrderMoney; //消费总额", " decimal TotalUseIntegral = $1.TotalUseIntegral; //消耗积分总额", " int FollowCount = $1.FollowCount; //关注数", " int FansCount = $1.FansCount; //粉丝数", " int CollectionCount = $1.CollectionCount; //收藏数", " decimal Coupons = $1.Coupons; //卡券包", " int ToPayOrderCount = $1.ToPayOrderCount; //待付款", " int ToSendOrderCount = $1.ToSendOrderCount; //待发货", " int ToReceiveOrderCount = $1.ToReceiveOrderCount; //待收货", " int ToCommentOrderCount = $1.ToCommentOrderCount; //待评价", " int ToRefundOrderCount = $1.ToRefundOrderCount; //退款售后", " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额", " decimal SettleAmount = $1.SettleAmount; //最低结算金额", " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额", " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励", " int MachineCount = $1.MachineCount; //赠机数量", "}" ] }, "查询某个创客数据,并赋值": { "prefix": "ym-db-UserData-Update", "body": [ "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.GrowthValue = $3; //成长值", " $1.CurMoney = $4; //当前余额", " $1.Integral = $5; //当前积分", " $1.TotalOrderMoney = $6; //消费总额", " $1.TotalUseIntegral = $7; //消耗积分总额", " $1.FollowCount = $8; //关注数", " $1.FansCount = $9; //粉丝数", " $1.CollectionCount = $10; //收藏数", " $1.Coupons = $11; //卡券包", " $1.ToPayOrderCount = $12; //待付款", " $1.ToSendOrderCount = $13; //待发货", " $1.ToReceiveOrderCount = $14; //待收货", " $1.ToCommentOrderCount = $15; //待评价", " $1.ToRefundOrderCount = $16; //退款售后", " $1.ActiveRewardAmount = $17; //激活奖励金额", " $1.SettleAmount = $18; //最低结算金额", " $1.CashFreezeAmt = $19; //提现冻结金额", " $1.ProfitRewardRate = $20; //分润奖励", " $1.MachineCount = $21; //赠机数量", "}" ] }, "获取创客数据数量": { "prefix": "ym-db-UserData-FindAndCount", "body": [ "int $1 = db.UserData.Count(m => $2);", ] }, "添加创客数据": { "prefix": "ym-db-UserData-Create", "body": [ "db.UserData.Add(new UserData()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " GrowthValue = $2, //成长值", " CurMoney = $3, //当前余额", " Integral = $4, //当前积分", " TotalOrderMoney = $5, //消费总额", " TotalUseIntegral = $6, //消耗积分总额", " FollowCount = $7, //关注数", " FansCount = $8, //粉丝数", " CollectionCount = $9, //收藏数", " Coupons = $10, //卡券包", " ToPayOrderCount = $11, //待付款", " ToSendOrderCount = $12, //待发货", " ToReceiveOrderCount = $13, //待收货", " ToCommentOrderCount = $14, //待评价", " ToRefundOrderCount = $15, //退款售后", " ActiveRewardAmount = $16, //激活奖励金额", " SettleAmount = $17, //最低结算金额", " CashFreezeAmt = $18, //提现冻结金额", " ProfitRewardRate = $19, //分润奖励", " MachineCount = $20, //赠机数量", "});" ] },"删除某个创客数据": { "prefix": "ym-db-UserData-Delete", "body": [ "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);", "if ($1 != null)", "{", " db.UserData.Remove($1);", "}" ] }, "查询创客详细信息列表": { "prefix": "ym-db-UserDetail-Find", "body": [ "List $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserDetail $3 in $1)", "{", "}" ] }, "查询创客详细信息列表,并取值": { "prefix": "ym-db-UserDetail-FindWithData", "body": [ "List $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserDetail $3 in $1)", "{", " int Id = $3.Id; //创客Id", " DateTime Birthday = $3.Birthday; //出生日期", " string PostalCode = $3.PostalCode; //邮编", " string Email = $3.Email; //邮箱", " int UserJob = $3.UserJob; //职业", " string OfficePhone = $3.OfficePhone; //办公电话", " string PrivatePhone = $3.PrivatePhone; //私人电话", " DateTime ToShopDate = $3.ToShopDate; //到达时间", " int EduLevel = $3.EduLevel; //教育程度", " int FamilyIncome = $3.FamilyIncome; //家庭收入", " int TrafficTool = $3.TrafficTool; //交通工具", " DateTime CardExpireDate = $3.CardExpireDate; //卡有效期", " int CardAddAddress = $3.CardAddAddress; //办卡地点", " string Note = $3.Note; //备注", " int AddMan = $3.AddMan; //登记创客", " int UpdateMan = $3.UpdateMan; //更新人", " string Interests = $3.Interests; //兴趣爱好", "}" ] }, "查询创客详细信息": { "prefix": "ym-db-UserDetail-Exist", "body": [ "bool $1 = db.UserDetail.Any(m => m.Id == $2);", ] }, "查询某个创客详细信息,并取值": { "prefix": "ym-db-UserDetail-FindByPrimaryKey", "body": [ "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int Id = $1.Id; //创客Id", " DateTime Birthday = $1.Birthday; //出生日期", " string PostalCode = $1.PostalCode; //邮编", " string Email = $1.Email; //邮箱", " int UserJob = $1.UserJob; //职业", " string OfficePhone = $1.OfficePhone; //办公电话", " string PrivatePhone = $1.PrivatePhone; //私人电话", " DateTime ToShopDate = $1.ToShopDate; //到达时间", " int EduLevel = $1.EduLevel; //教育程度", " int FamilyIncome = $1.FamilyIncome; //家庭收入", " int TrafficTool = $1.TrafficTool; //交通工具", " DateTime CardExpireDate = $1.CardExpireDate; //卡有效期", " int CardAddAddress = $1.CardAddAddress; //办卡地点", " string Note = $1.Note; //备注", " int AddMan = $1.AddMan; //登记创客", " int UpdateMan = $1.UpdateMan; //更新人", " string Interests = $1.Interests; //兴趣爱好", "}" ] }, "查询某个创客详细信息,并赋值": { "prefix": "ym-db-UserDetail-Update", "body": [ "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Id = $2; //创客Id", " $1.Birthday = $3; //出生日期", " $1.PostalCode = $4; //邮编", " $1.Email = $5; //邮箱", " $1.UserJob = $6; //职业", " $1.OfficePhone = $7; //办公电话", " $1.PrivatePhone = $8; //私人电话", " $1.ToShopDate = $9; //到达时间", " $1.EduLevel = $10; //教育程度", " $1.FamilyIncome = $11; //家庭收入", " $1.TrafficTool = $12; //交通工具", " $1.CardExpireDate = $13; //卡有效期", " $1.CardAddAddress = $14; //办卡地点", " $1.Note = $15; //备注", " $1.AddMan = $16; //登记创客", " $1.UpdateMan = $17; //更新人", " $1.Interests = $18; //兴趣爱好", "}" ] }, "获取创客详细信息数量": { "prefix": "ym-db-UserDetail-FindAndCount", "body": [ "int $1 = db.UserDetail.Count(m => $2);", ] }, "添加创客详细信息": { "prefix": "ym-db-UserDetail-Create", "body": [ "db.UserDetail.Add(new UserDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Id = $1, //创客Id", " Birthday = $2, //出生日期", " PostalCode = $3, //邮编", " Email = $4, //邮箱", " UserJob = $5, //职业", " OfficePhone = $6, //办公电话", " PrivatePhone = $7, //私人电话", " ToShopDate = $8, //到达时间", " EduLevel = $9, //教育程度", " FamilyIncome = $10, //家庭收入", " TrafficTool = $11, //交通工具", " CardExpireDate = $12, //卡有效期", " CardAddAddress = $13, //办卡地点", " Note = $14, //备注", " AddMan = $15, //登记创客", " UpdateMan = $16, //更新人", " Interests = $17, //兴趣爱好", "});" ] },"删除某个创客详细信息": { "prefix": "ym-db-UserDetail-Delete", "body": [ "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserDetail.Remove($1);", "}" ] }, "查询创客家庭成员列表": { "prefix": "ym-db-UserFamilyMember-Find", "body": [ "List $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserFamilyMember $3 in $1)", "{", "}" ] }, "查询创客家庭成员列表,并取值": { "prefix": "ym-db-UserFamilyMember-FindWithData", "body": [ "List $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserFamilyMember $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " string Name = $3.Name; //姓名", " string Mobile = $3.Mobile; //手机号", " int MemberKind = $3.MemberKind; //关系", " string IdCardNo = $3.IdCardNo; //身份证号", " int Job = $3.Job; //职业", "}" ] }, "查询创客家庭成员": { "prefix": "ym-db-UserFamilyMember-Exist", "body": [ "bool $1 = db.UserFamilyMember.Any(m => m.Id == $2);", ] }, "查询某个创客家庭成员,并取值": { "prefix": "ym-db-UserFamilyMember-FindByPrimaryKey", "body": [ "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " string Name = $1.Name; //姓名", " string Mobile = $1.Mobile; //手机号", " int MemberKind = $1.MemberKind; //关系", " string IdCardNo = $1.IdCardNo; //身份证号", " int Job = $1.Job; //职业", "}" ] }, "查询某个创客家庭成员,并赋值": { "prefix": "ym-db-UserFamilyMember-Update", "body": [ "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.Name = $3; //姓名", " $1.Mobile = $4; //手机号", " $1.MemberKind = $5; //关系", " $1.IdCardNo = $6; //身份证号", " $1.Job = $7; //职业", "}" ] }, "获取创客家庭成员数量": { "prefix": "ym-db-UserFamilyMember-FindAndCount", "body": [ "int $1 = db.UserFamilyMember.Count(m => $2);", ] }, "添加创客家庭成员": { "prefix": "ym-db-UserFamilyMember-Create", "body": [ "db.UserFamilyMember.Add(new UserFamilyMember()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " Name = $2, //姓名", " Mobile = $3, //手机号", " MemberKind = $4, //关系", " IdCardNo = $5, //身份证号", " Job = $6, //职业", "});" ] },"删除某个创客家庭成员": { "prefix": "ym-db-UserFamilyMember-Delete", "body": [ "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserFamilyMember.Remove($1);", "}" ] }, "查询创客编号为主键的关联表列表": { "prefix": "ym-db-UserForMakerCode-Find", "body": [ "List $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForMakerCode $3 in $1)", "{", "}" ] }, "查询创客编号为主键的关联表列表,并取值": { "prefix": "ym-db-UserForMakerCode-FindWithData", "body": [ "List $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForMakerCode $3 in $1)", "{", " string MakerCode = $3.MakerCode; //编号", " int UserId = $3.UserId; //创客", "}" ] }, "查询创客编号为主键的关联表": { "prefix": "ym-db-UserForMakerCode-Exist", "body": [ "bool $1 = db.UserForMakerCode.Any(m => m.MakerCode == $2);", ] }, "查询某个创客编号为主键的关联表,并取值": { "prefix": "ym-db-UserForMakerCode-FindByPrimaryKey", "body": [ "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);", "if ($1 != null)", "{", " string MakerCode = $1.MakerCode; //编号", " int UserId = $1.UserId; //创客", "}" ] }, "查询某个创客编号为主键的关联表,并赋值": { "prefix": "ym-db-UserForMakerCode-Update", "body": [ "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);", "if ($1 != null)", "{", " $1.MakerCode = $2; //编号", " $1.UserId = $3; //创客", "}" ] }, "获取创客编号为主键的关联表数量": { "prefix": "ym-db-UserForMakerCode-FindAndCount", "body": [ "int $1 = db.UserForMakerCode.Count(m => $2);", ] }, "添加创客编号为主键的关联表": { "prefix": "ym-db-UserForMakerCode-Create", "body": [ "db.UserForMakerCode.Add(new UserForMakerCode()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " MakerCode = $1, //编号", " UserId = $2, //创客", "});" ] },"删除某个创客编号为主键的关联表": { "prefix": "ym-db-UserForMakerCode-Delete", "body": [ "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);", "if ($1 != null)", "{", " db.UserForMakerCode.Remove($1);", "}" ] }, "查询创客手机号为主键的关联表列表": { "prefix": "ym-db-UserForMobile-Find", "body": [ "List $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForMobile $3 in $1)", "{", "}" ] }, "查询创客手机号为主键的关联表列表,并取值": { "prefix": "ym-db-UserForMobile-FindWithData", "body": [ "List $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForMobile $3 in $1)", "{", " string Mobile = $3.Mobile; //手机号", " int UserId = $3.UserId; //创客Id", "}" ] }, "查询创客手机号为主键的关联表": { "prefix": "ym-db-UserForMobile-Exist", "body": [ "bool $1 = db.UserForMobile.Any(m => m.Mobile == $2);", ] }, "查询某个创客手机号为主键的关联表,并取值": { "prefix": "ym-db-UserForMobile-FindByPrimaryKey", "body": [ "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " string Mobile = $1.Mobile; //手机号", " int UserId = $1.UserId; //创客Id", "}" ] }, "查询某个创客手机号为主键的关联表,并赋值": { "prefix": "ym-db-UserForMobile-Update", "body": [ "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " $1.Mobile = $2; //手机号", " $1.UserId = $3; //创客Id", "}" ] }, "获取创客手机号为主键的关联表数量": { "prefix": "ym-db-UserForMobile-FindAndCount", "body": [ "int $1 = db.UserForMobile.Count(m => $2);", ] }, "添加创客手机号为主键的关联表": { "prefix": "ym-db-UserForMobile-Create", "body": [ "db.UserForMobile.Add(new UserForMobile()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Mobile = $1, //手机号", " UserId = $2, //创客Id", "});" ] },"删除某个创客手机号为主键的关联表": { "prefix": "ym-db-UserForMobile-Delete", "body": [ "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);", "if ($1 != null)", "{", " db.UserForMobile.Remove($1);", "}" ] }, "查询创客姓名为主键的关联表列表": { "prefix": "ym-db-UserForRealName-Find", "body": [ "List $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForRealName $3 in $1)", "{", "}" ] }, "查询创客姓名为主键的关联表列表,并取值": { "prefix": "ym-db-UserForRealName-FindWithData", "body": [ "List $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserForRealName $3 in $1)", "{", " string RealName = $3.RealName; //姓名", " string UserId = $3.UserId; //创客", "}" ] }, "查询创客姓名为主键的关联表": { "prefix": "ym-db-UserForRealName-Exist", "body": [ "bool $1 = db.UserForRealName.Any(m => m.RealName == $2);", ] }, "查询某个创客姓名为主键的关联表,并取值": { "prefix": "ym-db-UserForRealName-FindByPrimaryKey", "body": [ "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);", "if ($1 != null)", "{", " string RealName = $1.RealName; //姓名", " string UserId = $1.UserId; //创客", "}" ] }, "查询某个创客姓名为主键的关联表,并赋值": { "prefix": "ym-db-UserForRealName-Update", "body": [ "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);", "if ($1 != null)", "{", " $1.RealName = $2; //姓名", " $1.UserId = $3; //创客", "}" ] }, "获取创客姓名为主键的关联表数量": { "prefix": "ym-db-UserForRealName-FindAndCount", "body": [ "int $1 = db.UserForRealName.Count(m => $2);", ] }, "添加创客姓名为主键的关联表": { "prefix": "ym-db-UserForRealName-Create", "body": [ "db.UserForRealName.Add(new UserForRealName()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RealName = $1, //姓名", " UserId = $2, //创客", "});" ] },"删除某个创客姓名为主键的关联表": { "prefix": "ym-db-UserForRealName-Delete", "body": [ "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);", "if ($1 != null)", "{", " db.UserForRealName.Remove($1);", "}" ] }, "查询创客好友关联表列表": { "prefix": "ym-db-UserFriend-Find", "body": [ "List $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserFriend $3 in $1)", "{", "}" ] }, "查询创客好友关联表列表,并取值": { "prefix": "ym-db-UserFriend-FindWithData", "body": [ "List $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserFriend $3 in $1)", "{", " int Id = $3.Id; //Id", " int UserId = $3.UserId; //创客Id", " int FriendId = $3.FriendId; //好友Id", "}" ] }, "查询创客好友关联表": { "prefix": "ym-db-UserFriend-Exist", "body": [ "bool $1 = db.UserFriend.Any(m => m.Id == $2);", ] }, "查询某个创客好友关联表,并取值": { "prefix": "ym-db-UserFriend-FindByPrimaryKey", "body": [ "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int Id = $1.Id; //Id", " int UserId = $1.UserId; //创客Id", " int FriendId = $1.FriendId; //好友Id", "}" ] }, "查询某个创客好友关联表,并赋值": { "prefix": "ym-db-UserFriend-Update", "body": [ "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Id = $2; //Id", " $1.UserId = $3; //创客Id", " $1.FriendId = $4; //好友Id", "}" ] }, "获取创客好友关联表数量": { "prefix": "ym-db-UserFriend-FindAndCount", "body": [ "int $1 = db.UserFriend.Count(m => $2);", ] }, "添加创客好友关联表": { "prefix": "ym-db-UserFriend-Create", "body": [ "db.UserFriend.Add(new UserFriend()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Id = $1, //Id", " UserId = $2, //创客Id", " FriendId = $3, //好友Id", "});" ] },"删除某个创客好友关联表": { "prefix": "ym-db-UserFriend-Delete", "body": [ "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserFriend.Remove($1);", "}" ] }, "查询创客分组列表": { "prefix": "ym-db-UserGroup-Find", "body": [ "List $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserGroup $3 in $1)", "{", "}" ] }, "查询创客分组列表,并取值": { "prefix": "ym-db-UserGroup-FindWithData", "body": [ "List $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserGroup $3 in $1)", "{", " string Name = $3.Name; //名称", " string Details = $3.Details; //描述", "}" ] }, "查询创客分组": { "prefix": "ym-db-UserGroup-Exist", "body": [ "bool $1 = db.UserGroup.Any(m => m.Id == $2);", ] }, "查询某个创客分组,并取值": { "prefix": "ym-db-UserGroup-FindByPrimaryKey", "body": [ "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //名称", " string Details = $1.Details; //描述", "}" ] }, "查询某个创客分组,并赋值": { "prefix": "ym-db-UserGroup-Update", "body": [ "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //名称", " $1.Details = $3; //描述", "}" ] }, "获取创客分组数量": { "prefix": "ym-db-UserGroup-FindAndCount", "body": [ "int $1 = db.UserGroup.Count(m => $2);", ] }, "添加创客分组": { "prefix": "ym-db-UserGroup-Create", "body": [ "db.UserGroup.Add(new UserGroup()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //名称", " Details = $2, //描述", "});" ] },"删除某个创客分组": { "prefix": "ym-db-UserGroup-Delete", "body": [ "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserGroup.Remove($1);", "}" ] }, "查询创客等级设定列表": { "prefix": "ym-db-UserLevelSet-Find", "body": [ "List $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserLevelSet $3 in $1)", "{", "}" ] }, "查询创客等级设定列表,并取值": { "prefix": "ym-db-UserLevelSet-FindWithData", "body": [ "List $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserLevelSet $3 in $1)", "{", " string Name = $3.Name; //等级名称", " string Details = $3.Details; //等级描述", " int UpLevelDays = $3.UpLevelDays; //升级天数", " decimal UpLevelIntegral = $3.UpLevelIntegral; //升级需要积分值", " int UpLevelGrowth = $3.UpLevelGrowth; //升级需要成长值", "}" ] }, "查询创客等级设定": { "prefix": "ym-db-UserLevelSet-Exist", "body": [ "bool $1 = db.UserLevelSet.Any(m => m.Id == $2);", ] }, "查询某个创客等级设定,并取值": { "prefix": "ym-db-UserLevelSet-FindByPrimaryKey", "body": [ "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string Name = $1.Name; //等级名称", " string Details = $1.Details; //等级描述", " int UpLevelDays = $1.UpLevelDays; //升级天数", " decimal UpLevelIntegral = $1.UpLevelIntegral; //升级需要积分值", " int UpLevelGrowth = $1.UpLevelGrowth; //升级需要成长值", "}" ] }, "查询某个创客等级设定,并赋值": { "prefix": "ym-db-UserLevelSet-Update", "body": [ "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.Name = $2; //等级名称", " $1.Details = $3; //等级描述", " $1.UpLevelDays = $4; //升级天数", " $1.UpLevelIntegral = $5; //升级需要积分值", " $1.UpLevelGrowth = $6; //升级需要成长值", "}" ] }, "获取创客等级设定数量": { "prefix": "ym-db-UserLevelSet-FindAndCount", "body": [ "int $1 = db.UserLevelSet.Count(m => $2);", ] }, "添加创客等级设定": { "prefix": "ym-db-UserLevelSet-Create", "body": [ "db.UserLevelSet.Add(new UserLevelSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " Name = $1, //等级名称", " Details = $2, //等级描述", " UpLevelDays = $3, //升级天数", " UpLevelIntegral = $4, //升级需要积分值", " UpLevelGrowth = $5, //升级需要成长值", "});" ] },"删除某个创客等级设定": { "prefix": "ym-db-UserLevelSet-Delete", "body": [ "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserLevelSet.Remove($1);", "}" ] }, "查询创客登录记录列表": { "prefix": "ym-db-UserLoginRecord-Find", "body": [ "List $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserLoginRecord $3 in $1)", "{", "}" ] }, "查询创客登录记录列表,并取值": { "prefix": "ym-db-UserLoginRecord-FindWithData", "body": [ "List $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserLoginRecord $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int Kind = $3.Kind; //类别", "}" ] }, "查询创客登录记录": { "prefix": "ym-db-UserLoginRecord-Exist", "body": [ "bool $1 = db.UserLoginRecord.Any(m => m.Id == $2);", ] }, "查询某个创客登录记录,并取值": { "prefix": "ym-db-UserLoginRecord-FindByPrimaryKey", "body": [ "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int Kind = $1.Kind; //类别", "}" ] }, "查询某个创客登录记录,并赋值": { "prefix": "ym-db-UserLoginRecord-Update", "body": [ "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.Kind = $3; //类别", "}" ] }, "获取创客登录记录数量": { "prefix": "ym-db-UserLoginRecord-FindAndCount", "body": [ "int $1 = db.UserLoginRecord.Count(m => $2);", ] }, "添加创客登录记录": { "prefix": "ym-db-UserLoginRecord-Create", "body": [ "db.UserLoginRecord.Add(new UserLoginRecord()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " Kind = $2, //类别", "});" ] },"删除某个创客登录记录": { "prefix": "ym-db-UserLoginRecord-Delete", "body": [ "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserLoginRecord.Remove($1);", "}" ] }, "查询创客机具数据列表": { "prefix": "ym-db-UserMachineData-Find", "body": [ "List $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserMachineData $3 in $1)", "{", "}" ] }, "查询创客机具数据列表,并取值": { "prefix": "ym-db-UserMachineData-FindWithData", "body": [ "List $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserMachineData $3 in $1)", "{", " string IdBrand = $3.IdBrand; //创客品牌", " int TotalMachineCount = $3.TotalMachineCount; //总机具数", " int UnBindCount = $3.UnBindCount; //未绑定数", " int BindCount = $3.BindCount; //已绑定数", " decimal TradeProfit = $3.TradeProfit; //交易分润", " decimal ActProfit = $3.ActProfit; //激活奖励", " decimal OpenProfit = $3.OpenProfit; //开机奖励", " decimal DividendsProfit = $3.DividendsProfit; //分红奖励", " decimal OtherProfit = $3.OtherProfit; //分润补贴", " decimal FluxProfit = $3.FluxProfit; //流量卡分佣", "}" ] }, "查询创客机具数据": { "prefix": "ym-db-UserMachineData-Exist", "body": [ "bool $1 = db.UserMachineData.Any(m => m.IdBrand == $2);", ] }, "查询某个创客机具数据,并取值": { "prefix": "ym-db-UserMachineData-FindByPrimaryKey", "body": [ "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);", "if ($1 != null)", "{", " string IdBrand = $1.IdBrand; //创客品牌", " int TotalMachineCount = $1.TotalMachineCount; //总机具数", " int UnBindCount = $1.UnBindCount; //未绑定数", " int BindCount = $1.BindCount; //已绑定数", " decimal TradeProfit = $1.TradeProfit; //交易分润", " decimal ActProfit = $1.ActProfit; //激活奖励", " decimal OpenProfit = $1.OpenProfit; //开机奖励", " decimal DividendsProfit = $1.DividendsProfit; //分红奖励", " decimal OtherProfit = $1.OtherProfit; //分润补贴", " decimal FluxProfit = $1.FluxProfit; //流量卡分佣", "}" ] }, "查询某个创客机具数据,并赋值": { "prefix": "ym-db-UserMachineData-Update", "body": [ "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);", "if ($1 != null)", "{", " $1.IdBrand = $2; //创客品牌", " $1.TotalMachineCount = $3; //总机具数", " $1.UnBindCount = $4; //未绑定数", " $1.BindCount = $5; //已绑定数", " $1.TradeProfit = $6; //交易分润", " $1.ActProfit = $7; //激活奖励", " $1.OpenProfit = $8; //开机奖励", " $1.DividendsProfit = $9; //分红奖励", " $1.OtherProfit = $10; //分润补贴", " $1.FluxProfit = $11; //流量卡分佣", "}" ] }, "获取创客机具数据数量": { "prefix": "ym-db-UserMachineData-FindAndCount", "body": [ "int $1 = db.UserMachineData.Count(m => $2);", ] }, "添加创客机具数据": { "prefix": "ym-db-UserMachineData-Create", "body": [ "db.UserMachineData.Add(new UserMachineData()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " IdBrand = $1, //创客品牌", " TotalMachineCount = $2, //总机具数", " UnBindCount = $3, //未绑定数", " BindCount = $4, //已绑定数", " TradeProfit = $5, //交易分润", " ActProfit = $6, //激活奖励", " OpenProfit = $7, //开机奖励", " DividendsProfit = $8, //分红奖励", " OtherProfit = $9, //分润补贴", " FluxProfit = $10, //流量卡分佣", "});" ] },"删除某个创客机具数据": { "prefix": "ym-db-UserMachineData-Delete", "body": [ "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);", "if ($1 != null)", "{", " db.UserMachineData.Remove($1);", "}" ] }, "查询创客商城提大货SN列表": { "prefix": "ym-db-UserMallLargeSn-Find", "body": [ "List $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserMallLargeSn $3 in $1)", "{", "}" ] }, "查询创客商城提大货SN列表,并取值": { "prefix": "ym-db-UserMallLargeSn-FindWithData", "body": [ "List $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserMallLargeSn $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string ProductName = $3.ProductName; //产品名称", " string OrderNo = $3.OrderNo; //订单号", " decimal OrderAmount = $3.OrderAmount; //订单金额", " int OrderNum = $3.OrderNum; //订单数量", " decimal RuleOrderAmt = $3.RuleOrderAmt; //规则订单金额", " int SnStatus = $3.SnStatus; //SN状态", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN类型", " DateTime SnShipDate = $3.SnShipDate; //SN发货时间", " int StoreId = $3.StoreId; //SN发货仓库", " string Remark = $3.Remark; //备注", "}" ] }, "查询创客商城提大货SN": { "prefix": "ym-db-UserMallLargeSn-Exist", "body": [ "bool $1 = db.UserMallLargeSn.Any(m => m.Id == $2);", ] }, "查询某个创客商城提大货SN,并取值": { "prefix": "ym-db-UserMallLargeSn-FindByPrimaryKey", "body": [ "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string ProductName = $1.ProductName; //产品名称", " string OrderNo = $1.OrderNo; //订单号", " decimal OrderAmount = $1.OrderAmount; //订单金额", " int OrderNum = $1.OrderNum; //订单数量", " decimal RuleOrderAmt = $1.RuleOrderAmt; //规则订单金额", " int SnStatus = $1.SnStatus; //SN状态", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN类型", " DateTime SnShipDate = $1.SnShipDate; //SN发货时间", " int StoreId = $1.StoreId; //SN发货仓库", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个创客商城提大货SN,并赋值": { "prefix": "ym-db-UserMallLargeSn-Update", "body": [ "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.ProductName = $4; //产品名称", " $1.OrderNo = $5; //订单号", " $1.OrderAmount = $6; //订单金额", " $1.OrderNum = $7; //订单数量", " $1.RuleOrderAmt = $8; //规则订单金额", " $1.SnStatus = $9; //SN状态", " $1.SnNo = $10; //SN编号", " $1.SnType = $11; //SN类型", " $1.SnShipDate = $12; //SN发货时间", " $1.StoreId = $13; //SN发货仓库", " $1.Remark = $14; //备注", "}" ] }, "获取创客商城提大货SN数量": { "prefix": "ym-db-UserMallLargeSn-FindAndCount", "body": [ "int $1 = db.UserMallLargeSn.Count(m => $2);", ] }, "添加创客商城提大货SN": { "prefix": "ym-db-UserMallLargeSn-Create", "body": [ "db.UserMallLargeSn.Add(new UserMallLargeSn()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " ProductName = $3, //产品名称", " OrderNo = $4, //订单号", " OrderAmount = $5, //订单金额", " OrderNum = $6, //订单数量", " RuleOrderAmt = $7, //规则订单金额", " SnStatus = $8, //SN状态", " SnNo = $9, //SN编号", " SnType = $10, //SN类型", " SnShipDate = $11, //SN发货时间", " StoreId = $12, //SN发货仓库", " Remark = $13, //备注", "});" ] },"删除某个创客商城提大货SN": { "prefix": "ym-db-UserMallLargeSn-Delete", "body": [ "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserMallLargeSn.Remove($1);", "}" ] }, "查询创客线下签到记录列表": { "prefix": "ym-db-UserOfflineSignInRecords-Find", "body": [ "List $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserOfflineSignInRecords $3 in $1)", "{", "}" ] }, "查询创客线下签到记录列表,并取值": { "prefix": "ym-db-UserOfflineSignInRecords-FindWithData", "body": [ "List $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserOfflineSignInRecords $3 in $1)", "{", " int UserId = $3.UserId; //创客Id", " int MerchantId = $3.MerchantId; //商家Id", "}" ] }, "查询创客线下签到记录": { "prefix": "ym-db-UserOfflineSignInRecords-Exist", "body": [ "bool $1 = db.UserOfflineSignInRecords.Any(m => m.Id == $2);", ] }, "查询某个创客线下签到记录,并取值": { "prefix": "ym-db-UserOfflineSignInRecords-FindByPrimaryKey", "body": [ "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客Id", " int MerchantId = $1.MerchantId; //商家Id", "}" ] }, "查询某个创客线下签到记录,并赋值": { "prefix": "ym-db-UserOfflineSignInRecords-Update", "body": [ "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客Id", " $1.MerchantId = $3; //商家Id", "}" ] }, "获取创客线下签到记录数量": { "prefix": "ym-db-UserOfflineSignInRecords-FindAndCount", "body": [ "int $1 = db.UserOfflineSignInRecords.Count(m => $2);", ] }, "添加创客线下签到记录": { "prefix": "ym-db-UserOfflineSignInRecords-Create", "body": [ "db.UserOfflineSignInRecords.Add(new UserOfflineSignInRecords()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客Id", " MerchantId = $2, //商家Id", "});" ] },"删除某个创客线下签到记录": { "prefix": "ym-db-UserOfflineSignInRecords-Delete", "body": [ "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserOfflineSignInRecords.Remove($1);", "}" ] }, "查询创客分润规则列表": { "prefix": "ym-db-UserProfit-Find", "body": [ "List $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfit $3 in $1)", "{", "}" ] }, "查询创客分润规则列表,并取值": { "prefix": "ym-db-UserProfit-FindWithData", "body": [ "List $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfit $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string CardType = $3.CardType; //交易卡类型", " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例", " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比", " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间", " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", " decimal HelpAddOrSubRate = $3.HelpAddOrSubRate; //扶持期浮动空间", " decimal HelpProfitPercent = $3.HelpProfitPercent; //扶持期创客预设分润百分比", " decimal HelpProfitRate = $3.HelpProfitRate; //扶持期创客预设分润比例", " decimal HelpProfitRateBase = $3.HelpProfitRateBase; //扶持期分润比例基数", "}" ] }, "查询创客分润规则": { "prefix": "ym-db-UserProfit-Exist", "body": [ "bool $1 = db.UserProfit.Any(m => m.Id == $2);", ] }, "查询某个创客分润规则,并取值": { "prefix": "ym-db-UserProfit-FindByPrimaryKey", "body": [ "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string CardType = $1.CardType; //交易卡类型", " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例", " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比", " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间", " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", " decimal HelpAddOrSubRate = $1.HelpAddOrSubRate; //扶持期浮动空间", " decimal HelpProfitPercent = $1.HelpProfitPercent; //扶持期创客预设分润百分比", " decimal HelpProfitRate = $1.HelpProfitRate; //扶持期创客预设分润比例", " decimal HelpProfitRateBase = $1.HelpProfitRateBase; //扶持期分润比例基数", "}" ] }, "查询某个创客分润规则,并赋值": { "prefix": "ym-db-UserProfit-Update", "body": [ "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.CardType = $4; //交易卡类型", " $1.ProfitRate = $5; //创客预设分润比例", " $1.ProfitPercent = $6; //创客预设分润百分比", " $1.AddOrSubRate = $7; //浮动空间", " $1.ProfitRateBase = $8; //分润比例基数", " $1.Remark = $9; //备注", " $1.TopUserId = $10; //顶级创客", " $1.HelpAddOrSubRate = $11; //扶持期浮动空间", " $1.HelpProfitPercent = $12; //扶持期创客预设分润百分比", " $1.HelpProfitRate = $13; //扶持期创客预设分润比例", " $1.HelpProfitRateBase = $14; //扶持期分润比例基数", "}" ] }, "获取创客分润规则数量": { "prefix": "ym-db-UserProfit-FindAndCount", "body": [ "int $1 = db.UserProfit.Count(m => $2);", ] }, "添加创客分润规则": { "prefix": "ym-db-UserProfit-Create", "body": [ "db.UserProfit.Add(new UserProfit()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " CardType = $3, //交易卡类型", " ProfitRate = $4, //创客预设分润比例", " ProfitPercent = $5, //创客预设分润百分比", " AddOrSubRate = $6, //浮动空间", " ProfitRateBase = $7, //分润比例基数", " Remark = $8, //备注", " TopUserId = $9, //顶级创客", " HelpAddOrSubRate = $10, //扶持期浮动空间", " HelpProfitPercent = $11, //扶持期创客预设分润百分比", " HelpProfitRate = $12, //扶持期创客预设分润比例", " HelpProfitRateBase = $13, //扶持期分润比例基数", "});" ] },"删除某个创客分润规则": { "prefix": "ym-db-UserProfit-Delete", "body": [ "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserProfit.Remove($1);", "}" ] }, "查询创客预设分润列表": { "prefix": "ym-db-UserProfitSet-Find", "body": [ "List $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfitSet $3 in $1)", "{", "}" ] }, "查询创客预设分润列表,并取值": { "prefix": "ym-db-UserProfitSet-FindWithData", "body": [ "List $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfitSet $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " int CardType = $3.CardType; //交易卡类型", " int HelpFlag = $3.HelpFlag; //扶持期标识", " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例", " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比", " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间", " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询创客预设分润": { "prefix": "ym-db-UserProfitSet-Exist", "body": [ "bool $1 = db.UserProfitSet.Any(m => m.Id == $2);", ] }, "查询某个创客预设分润,并取值": { "prefix": "ym-db-UserProfitSet-FindByPrimaryKey", "body": [ "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " int CardType = $1.CardType; //交易卡类型", " int HelpFlag = $1.HelpFlag; //扶持期标识", " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例", " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比", " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间", " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个创客预设分润,并赋值": { "prefix": "ym-db-UserProfitSet-Update", "body": [ "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.CardType = $4; //交易卡类型", " $1.HelpFlag = $5; //扶持期标识", " $1.ProfitRate = $6; //创客预设分润比例", " $1.ProfitPercent = $7; //创客预设分润百分比", " $1.AddOrSubRate = $8; //浮动空间", " $1.ProfitRateBase = $9; //分润比例基数", " $1.Remark = $10; //备注", " $1.TopUserId = $11; //顶级创客", "}" ] }, "获取创客预设分润数量": { "prefix": "ym-db-UserProfitSet-FindAndCount", "body": [ "int $1 = db.UserProfitSet.Count(m => $2);", ] }, "添加创客预设分润": { "prefix": "ym-db-UserProfitSet-Create", "body": [ "db.UserProfitSet.Add(new UserProfitSet()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " CardType = $3, //交易卡类型", " HelpFlag = $4, //扶持期标识", " ProfitRate = $5, //创客预设分润比例", " ProfitPercent = $6, //创客预设分润百分比", " AddOrSubRate = $7, //浮动空间", " ProfitRateBase = $8, //分润比例基数", " Remark = $9, //备注", " TopUserId = $10, //顶级创客", "});" ] },"删除某个创客预设分润": { "prefix": "ym-db-UserProfitSet-Delete", "body": [ "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserProfitSet.Remove($1);", "}" ] }, "查询创客分润补贴月汇总列表": { "prefix": "ym-db-UserProfitSubsidySummary-Find", "body": [ "List $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfitSubsidySummary $3 in $1)", "{", "}" ] }, "查询创客分润补贴月汇总列表,并取值": { "prefix": "ym-db-UserProfitSubsidySummary-FindWithData", "body": [ "List $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserProfitSubsidySummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string TradeMonth = $3.TradeMonth; //交易月", " string MgrNo = $3.MgrNo; //渠道经理编号", " string MgrName = $3.MgrName; //渠道经理姓名", " decimal SubsidyTotalProfit = $3.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额", " decimal SubsidyJuniorProfit = $3.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额", " decimal SubsidyDirectProfit = $3.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额", " int CheckStatus = $3.CheckStatus; //验证和同步账户状态", "}" ] }, "查询创客分润补贴月汇总": { "prefix": "ym-db-UserProfitSubsidySummary-Exist", "body": [ "bool $1 = db.UserProfitSubsidySummary.Any(m => m.Id == $2);", ] }, "查询某个创客分润补贴月汇总,并取值": { "prefix": "ym-db-UserProfitSubsidySummary-FindByPrimaryKey", "body": [ "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string TradeMonth = $1.TradeMonth; //交易月", " string MgrNo = $1.MgrNo; //渠道经理编号", " string MgrName = $1.MgrName; //渠道经理姓名", " decimal SubsidyTotalProfit = $1.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额", " decimal SubsidyJuniorProfit = $1.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额", " decimal SubsidyDirectProfit = $1.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额", " int CheckStatus = $1.CheckStatus; //验证和同步账户状态", "}" ] }, "查询某个创客分润补贴月汇总,并赋值": { "prefix": "ym-db-UserProfitSubsidySummary-Update", "body": [ "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.TradeMonth = $4; //交易月", " $1.MgrNo = $5; //渠道经理编号", " $1.MgrName = $6; //渠道经理姓名", " $1.SubsidyTotalProfit = $7; //商户(非云闪付)贷记卡交易分润补贴总金额", " $1.SubsidyJuniorProfit = $8; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额", " $1.SubsidyDirectProfit = $9; //直营商户(非云闪付)贷记卡交易分润补贴总金额", " $1.CheckStatus = $10; //验证和同步账户状态", "}" ] }, "获取创客分润补贴月汇总数量": { "prefix": "ym-db-UserProfitSubsidySummary-FindAndCount", "body": [ "int $1 = db.UserProfitSubsidySummary.Count(m => $2);", ] }, "添加创客分润补贴月汇总": { "prefix": "ym-db-UserProfitSubsidySummary-Create", "body": [ "db.UserProfitSubsidySummary.Add(new UserProfitSubsidySummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " TradeMonth = $3, //交易月", " MgrNo = $4, //渠道经理编号", " MgrName = $5, //渠道经理姓名", " SubsidyTotalProfit = $6, //商户(非云闪付)贷记卡交易分润补贴总金额", " SubsidyJuniorProfit = $7, //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额", " SubsidyDirectProfit = $8, //直营商户(非云闪付)贷记卡交易分润补贴总金额", " CheckStatus = $9, //验证和同步账户状态", "});" ] },"删除某个创客分润补贴月汇总": { "prefix": "ym-db-UserProfitSubsidySummary-Delete", "body": [ "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserProfitSubsidySummary.Remove($1);", "}" ] }, "查询创客职级信息列表": { "prefix": "ym-db-UserRank-Find", "body": [ "List $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRank $3 in $1)", "{", "}" ] }, "查询创客职级信息列表,并取值": { "prefix": "ym-db-UserRank-FindWithData", "body": [ "List $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRank $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int Rank = $3.Rank; //当前等级", " int WhiteRank = $3.WhiteRank; //白名单等级", " int NextRank = $3.NextRank; //下个等级", " int StatYear = $3.StatYear; //统计年份", " int StatMonth = $3.StatMonth; //统计月份", " decimal TradeAmt = $3.TradeAmt; //团队交易总额", " int ExceedVal = $3.ExceedVal; //超越值", " ulong UpgradeFlag = $3.UpgradeFlag; //升级标识", " DateTime OperateDate = $3.OperateDate; //操作时间", "}" ] }, "查询创客职级信息": { "prefix": "ym-db-UserRank-Exist", "body": [ "bool $1 = db.UserRank.Any(m => m.Id == $2);", ] }, "查询某个创客职级信息,并取值": { "prefix": "ym-db-UserRank-FindByPrimaryKey", "body": [ "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int Rank = $1.Rank; //当前等级", " int WhiteRank = $1.WhiteRank; //白名单等级", " int NextRank = $1.NextRank; //下个等级", " int StatYear = $1.StatYear; //统计年份", " int StatMonth = $1.StatMonth; //统计月份", " decimal TradeAmt = $1.TradeAmt; //团队交易总额", " int ExceedVal = $1.ExceedVal; //超越值", " ulong UpgradeFlag = $1.UpgradeFlag; //升级标识", " DateTime OperateDate = $1.OperateDate; //操作时间", "}" ] }, "查询某个创客职级信息,并赋值": { "prefix": "ym-db-UserRank-Update", "body": [ "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.Rank = $3; //当前等级", " $1.WhiteRank = $4; //白名单等级", " $1.NextRank = $5; //下个等级", " $1.StatYear = $6; //统计年份", " $1.StatMonth = $7; //统计月份", " $1.TradeAmt = $8; //团队交易总额", " $1.ExceedVal = $9; //超越值", " $1.UpgradeFlag = $10; //升级标识", " $1.OperateDate = $11; //操作时间", "}" ] }, "获取创客职级信息数量": { "prefix": "ym-db-UserRank-FindAndCount", "body": [ "int $1 = db.UserRank.Count(m => $2);", ] }, "添加创客职级信息": { "prefix": "ym-db-UserRank-Create", "body": [ "db.UserRank.Add(new UserRank()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " Rank = $2, //当前等级", " WhiteRank = $3, //白名单等级", " NextRank = $4, //下个等级", " StatYear = $5, //统计年份", " StatMonth = $6, //统计月份", " TradeAmt = $7, //团队交易总额", " ExceedVal = $8, //超越值", " UpgradeFlag = $9, //升级标识", " OperateDate = $10, //操作时间", "});" ] },"删除某个创客职级信息": { "prefix": "ym-db-UserRank-Delete", "body": [ "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserRank.Remove($1);", "}" ] }, "查询创客预设职级列表": { "prefix": "ym-db-UserRankWhite-Find", "body": [ "List $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRankWhite $3 in $1)", "{", "}" ] }, "查询创客预设职级列表,并取值": { "prefix": "ym-db-UserRankWhite-FindWithData", "body": [ "List $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRankWhite $3 in $1)", "{", " int UserId = $3.UserId; //用户", " int Rank = $3.Rank; //当前等级类型", "}" ] }, "查询创客预设职级": { "prefix": "ym-db-UserRankWhite-Exist", "body": [ "bool $1 = db.UserRankWhite.Any(m => m.Id == $2);", ] }, "查询某个创客预设职级,并取值": { "prefix": "ym-db-UserRankWhite-FindByPrimaryKey", "body": [ "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //用户", " int Rank = $1.Rank; //当前等级类型", "}" ] }, "查询某个创客预设职级,并赋值": { "prefix": "ym-db-UserRankWhite-Update", "body": [ "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //用户", " $1.Rank = $3; //当前等级类型", "}" ] }, "获取创客预设职级数量": { "prefix": "ym-db-UserRankWhite-FindAndCount", "body": [ "int $1 = db.UserRankWhite.Count(m => $2);", ] }, "添加创客预设职级": { "prefix": "ym-db-UserRankWhite-Create", "body": [ "db.UserRankWhite.Add(new UserRankWhite()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //用户", " Rank = $2, //当前等级类型", "});" ] },"删除某个创客预设职级": { "prefix": "ym-db-UserRankWhite-Delete", "body": [ "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserRankWhite.Remove($1);", "}" ] }, "查询返利明细表列表": { "prefix": "ym-db-UserRebateDetail-Find", "body": [ "List $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRebateDetail $3 in $1)", "{", "}" ] }, "查询返利明细表列表,并取值": { "prefix": "ym-db-UserRebateDetail-FindWithData", "body": [ "List $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserRebateDetail $3 in $1)", "{", " string TradeMonth = $3.TradeMonth; //交易月份", " string TradeDate = $3.TradeDate; //达标日期", " int UserId = $3.UserId; //创客", " string MgrNo = $3.MgrNo; //渠道经理编号", " string MgrName = $3.MgrName; //渠道经理姓名", " int ProductType = $3.ProductType; //产品类型", " string ProductName = $3.ProductName; //产品名称", " int MerchantId = $3.MerchantId; //商户", " string ChannelMerNo = $3.ChannelMerNo; //渠道商户编号", " int RebateType = $3.RebateType; //返利类型", " int RebateMonthCount = $3.RebateMonthCount; //返利周期数", " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额", " string RebateRewardNo = $3.RebateRewardNo; //达标返利单号", " string Remark = $3.Remark; //备注", "}" ] }, "查询返利明细表": { "prefix": "ym-db-UserRebateDetail-Exist", "body": [ "bool $1 = db.UserRebateDetail.Any(m => m.Id == $2);", ] }, "查询某个返利明细表,并取值": { "prefix": "ym-db-UserRebateDetail-FindByPrimaryKey", "body": [ "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string TradeMonth = $1.TradeMonth; //交易月份", " string TradeDate = $1.TradeDate; //达标日期", " int UserId = $1.UserId; //创客", " string MgrNo = $1.MgrNo; //渠道经理编号", " string MgrName = $1.MgrName; //渠道经理姓名", " int ProductType = $1.ProductType; //产品类型", " string ProductName = $1.ProductName; //产品名称", " int MerchantId = $1.MerchantId; //商户", " string ChannelMerNo = $1.ChannelMerNo; //渠道商户编号", " int RebateType = $1.RebateType; //返利类型", " int RebateMonthCount = $1.RebateMonthCount; //返利周期数", " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额", " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额", " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额", " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额", " string RebateRewardNo = $1.RebateRewardNo; //达标返利单号", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个返利明细表,并赋值": { "prefix": "ym-db-UserRebateDetail-Update", "body": [ "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.TradeMonth = $2; //交易月份", " $1.TradeDate = $3; //达标日期", " $1.UserId = $4; //创客", " $1.MgrNo = $5; //渠道经理编号", " $1.MgrName = $6; //渠道经理姓名", " $1.ProductType = $7; //产品类型", " $1.ProductName = $8; //产品名称", " $1.MerchantId = $9; //商户", " $1.ChannelMerNo = $10; //渠道商户编号", " $1.RebateType = $11; //返利类型", " $1.RebateMonthCount = $12; //返利周期数", " $1.CreditTradeAmt = $13; //贷记卡交易总金额", " $1.DebitTradeAmt = $14; //借记卡交易总金额", " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额", " $1.DebitRewardAmount = $16; //借记卡交易奖励金额", " $1.RebateRewardNo = $17; //达标返利单号", " $1.Remark = $18; //备注", "}" ] }, "获取返利明细表数量": { "prefix": "ym-db-UserRebateDetail-FindAndCount", "body": [ "int $1 = db.UserRebateDetail.Count(m => $2);", ] }, "添加返利明细表": { "prefix": "ym-db-UserRebateDetail-Create", "body": [ "db.UserRebateDetail.Add(new UserRebateDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " TradeMonth = $1, //交易月份", " TradeDate = $2, //达标日期", " UserId = $3, //创客", " MgrNo = $4, //渠道经理编号", " MgrName = $5, //渠道经理姓名", " ProductType = $6, //产品类型", " ProductName = $7, //产品名称", " MerchantId = $8, //商户", " ChannelMerNo = $9, //渠道商户编号", " RebateType = $10, //返利类型", " RebateMonthCount = $11, //返利周期数", " CreditTradeAmt = $12, //贷记卡交易总金额", " DebitTradeAmt = $13, //借记卡交易总金额", " CreditRewardAmount = $14, //贷记卡交易奖励金额", " DebitRewardAmount = $15, //借记卡交易奖励金额", " RebateRewardNo = $16, //达标返利单号", " Remark = $17, //备注", "});" ] },"删除某个返利明细表": { "prefix": "ym-db-UserRebateDetail-Delete", "body": [ "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserRebateDetail.Remove($1);", "}" ] }, "查询创客列表": { "prefix": "ym-db-Users-Find", "body": [ "List $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Users $3 in $1)", "{", "}" ] }, "查询创客列表,并取值": { "prefix": "ym-db-Users-FindWithData", "body": [ "List $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (Users $3 in $1)", "{", " string NickName = $3.NickName; //昵称", " string RealName = $3.RealName; //真实姓名", " int Sex = $3.Sex; //性别", " string CertId = $3.CertId; //身份证号", " string Areas = $3.Areas; //所在地区", " string Address = $3.Address; //详细地址", " string HeadPhoto = $3.HeadPhoto; //头像", " int ParentUserId = $3.ParentUserId; //父级Id", " int UserLevel = $3.UserLevel; //创客等级", " string CardNo = $3.CardNo; //卡号", " string Mobile = $3.Mobile; //手机号", " string GroupId = $3.GroupId; //分组", " string Tags = $3.Tags; //标签", " string ParentNav = $3.ParentNav; //父级集合", " string LoginPwd = $3.LoginPwd; //登录密码", " string PayPwd = $3.PayPwd; //支付密码", " string CarIds = $3.CarIds; //购物车Id集合", " string OpenId = $3.OpenId; //OpenId", " string AlipayUserId = $3.AlipayUserId; //支付宝用户Id", " ulong IsNewUser = $3.IsNewUser; //是否新创客", " string IdCardEndNo = $3.IdCardEndNo; //身份证后四位", " string SettleBankCardNo = $3.SettleBankCardNo; //结算银行卡号", " string SettleBankName = $3.SettleBankName; //结算银行名称", " string ReferenceCode = $3.ReferenceCode; //推荐码", " int ReferralUserId = $3.ReferralUserId; //引荐人", " string CardRecCode = $3.CardRecCode; //办卡分享图片地址", " string ReferenceQrCode = $3.ReferenceQrCode; //推广二维码地址", " string SignImgUrl = $3.SignImgUrl; //特定协议签名图片地址", " int UserType = $3.UserType; //创客类型", " int UserProperty = $3.UserProperty; //创客属性", " int MerchantType = $3.MerchantType; //商户创客类型", " DateTime MerchantDate = $3.MerchantDate; //成为商户型创客时间", " int LoginStatus = $3.LoginStatus; //登录状态", " int AuditStatus = $3.AuditStatus; //审核状态", " ulong LockStatus = $3.LockStatus; //锁定状态", " ulong AuthFlag = $3.AuthFlag; //实名标识", " DateTime AuthDate = $3.AuthDate; //实名时间", " ulong RiskFlag = $3.RiskFlag; //风控标识", " string RiskRemark = $3.RiskRemark; //风控备注", " string RreezeRemark = $3.RreezeRemark; //账户冻结备注信息", " string SettleRemark = $3.SettleRemark; //结算金额调整备注", " string AccessToken = $3.AccessToken; //创客登录授权令牌", " DateTime ExpiredDate = $3.ExpiredDate; //过期时间", " string DeviceId = $3.DeviceId; //设备ID", " string DeviceToken = $3.DeviceToken; //设备令牌", " string CertFrontImage = $3.CertFrontImage; //身份证正面照", " string CertReverseImage = $3.CertReverseImage; //身份证反面照", " string HandCertImage = $3.HandCertImage; //手持身份证", " string BankCardPositiveImage = $3.BankCardPositiveImage; //银行卡正面照", " string Remark = $3.Remark; //备注信息", " string HandPwd = $3.HandPwd; //手势密码", " string MakerCode = $3.MakerCode; //创客编号", " decimal SettleAmount = $3.SettleAmount; //最低结算金额", " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额", " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额", " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励", " DateTime CitySetDate = $3.CitySetDate; //省市设置时间", " DateTime CertValidStartDate = $3.CertValidStartDate; //身份证有效期开始时间", " DateTime CertValidEndDate = $3.CertValidEndDate; //身份证有效期结束时间", " string SettleBankCardName = $3.SettleBankCardName; //结算银行卡户名", " int AgentLevel = $3.AgentLevel; //代理等级", " string AgentAreas = $3.AgentAreas; //代理区域", "}" ] }, "查询创客": { "prefix": "ym-db-Users-Exist", "body": [ "bool $1 = db.Users.Any(m => m.Id == $2);", ] }, "查询某个创客,并取值": { "prefix": "ym-db-Users-FindByPrimaryKey", "body": [ "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string NickName = $1.NickName; //昵称", " string RealName = $1.RealName; //真实姓名", " int Sex = $1.Sex; //性别", " string CertId = $1.CertId; //身份证号", " string Areas = $1.Areas; //所在地区", " string Address = $1.Address; //详细地址", " string HeadPhoto = $1.HeadPhoto; //头像", " int ParentUserId = $1.ParentUserId; //父级Id", " int UserLevel = $1.UserLevel; //创客等级", " string CardNo = $1.CardNo; //卡号", " string Mobile = $1.Mobile; //手机号", " string GroupId = $1.GroupId; //分组", " string Tags = $1.Tags; //标签", " string ParentNav = $1.ParentNav; //父级集合", " string LoginPwd = $1.LoginPwd; //登录密码", " string PayPwd = $1.PayPwd; //支付密码", " string CarIds = $1.CarIds; //购物车Id集合", " string OpenId = $1.OpenId; //OpenId", " string AlipayUserId = $1.AlipayUserId; //支付宝用户Id", " ulong IsNewUser = $1.IsNewUser; //是否新创客", " string IdCardEndNo = $1.IdCardEndNo; //身份证后四位", " string SettleBankCardNo = $1.SettleBankCardNo; //结算银行卡号", " string SettleBankName = $1.SettleBankName; //结算银行名称", " string ReferenceCode = $1.ReferenceCode; //推荐码", " int ReferralUserId = $1.ReferralUserId; //引荐人", " string CardRecCode = $1.CardRecCode; //办卡分享图片地址", " string ReferenceQrCode = $1.ReferenceQrCode; //推广二维码地址", " string SignImgUrl = $1.SignImgUrl; //特定协议签名图片地址", " int UserType = $1.UserType; //创客类型", " int UserProperty = $1.UserProperty; //创客属性", " int MerchantType = $1.MerchantType; //商户创客类型", " DateTime MerchantDate = $1.MerchantDate; //成为商户型创客时间", " int LoginStatus = $1.LoginStatus; //登录状态", " int AuditStatus = $1.AuditStatus; //审核状态", " ulong LockStatus = $1.LockStatus; //锁定状态", " ulong AuthFlag = $1.AuthFlag; //实名标识", " DateTime AuthDate = $1.AuthDate; //实名时间", " ulong RiskFlag = $1.RiskFlag; //风控标识", " string RiskRemark = $1.RiskRemark; //风控备注", " string RreezeRemark = $1.RreezeRemark; //账户冻结备注信息", " string SettleRemark = $1.SettleRemark; //结算金额调整备注", " string AccessToken = $1.AccessToken; //创客登录授权令牌", " DateTime ExpiredDate = $1.ExpiredDate; //过期时间", " string DeviceId = $1.DeviceId; //设备ID", " string DeviceToken = $1.DeviceToken; //设备令牌", " string CertFrontImage = $1.CertFrontImage; //身份证正面照", " string CertReverseImage = $1.CertReverseImage; //身份证反面照", " string HandCertImage = $1.HandCertImage; //手持身份证", " string BankCardPositiveImage = $1.BankCardPositiveImage; //银行卡正面照", " string Remark = $1.Remark; //备注信息", " string HandPwd = $1.HandPwd; //手势密码", " string MakerCode = $1.MakerCode; //创客编号", " decimal SettleAmount = $1.SettleAmount; //最低结算金额", " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额", " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额", " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励", " DateTime CitySetDate = $1.CitySetDate; //省市设置时间", " DateTime CertValidStartDate = $1.CertValidStartDate; //身份证有效期开始时间", " DateTime CertValidEndDate = $1.CertValidEndDate; //身份证有效期结束时间", " string SettleBankCardName = $1.SettleBankCardName; //结算银行卡户名", " int AgentLevel = $1.AgentLevel; //代理等级", " string AgentAreas = $1.AgentAreas; //代理区域", "}" ] }, "查询某个创客,并赋值": { "prefix": "ym-db-Users-Update", "body": [ "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.NickName = $2; //昵称", " $1.RealName = $3; //真实姓名", " $1.Sex = $4; //性别", " $1.CertId = $5; //身份证号", " $1.Areas = $6; //所在地区", " $1.Address = $7; //详细地址", " $1.HeadPhoto = $8; //头像", " $1.ParentUserId = $9; //父级Id", " $1.UserLevel = $10; //创客等级", " $1.CardNo = $11; //卡号", " $1.Mobile = $12; //手机号", " $1.GroupId = $13; //分组", " $1.Tags = $14; //标签", " $1.ParentNav = $15; //父级集合", " $1.LoginPwd = $16; //登录密码", " $1.PayPwd = $17; //支付密码", " $1.CarIds = $18; //购物车Id集合", " $1.OpenId = $19; //OpenId", " $1.AlipayUserId = $20; //支付宝用户Id", " $1.IsNewUser = $21; //是否新创客", " $1.IdCardEndNo = $22; //身份证后四位", " $1.SettleBankCardNo = $23; //结算银行卡号", " $1.SettleBankName = $24; //结算银行名称", " $1.ReferenceCode = $25; //推荐码", " $1.ReferralUserId = $26; //引荐人", " $1.CardRecCode = $27; //办卡分享图片地址", " $1.ReferenceQrCode = $28; //推广二维码地址", " $1.SignImgUrl = $29; //特定协议签名图片地址", " $1.UserType = $30; //创客类型", " $1.UserProperty = $31; //创客属性", " $1.MerchantType = $32; //商户创客类型", " $1.MerchantDate = $33; //成为商户型创客时间", " $1.LoginStatus = $34; //登录状态", " $1.AuditStatus = $35; //审核状态", " $1.LockStatus = $36; //锁定状态", " $1.AuthFlag = $37; //实名标识", " $1.AuthDate = $38; //实名时间", " $1.RiskFlag = $39; //风控标识", " $1.RiskRemark = $40; //风控备注", " $1.RreezeRemark = $41; //账户冻结备注信息", " $1.SettleRemark = $42; //结算金额调整备注", " $1.AccessToken = $43; //创客登录授权令牌", " $1.ExpiredDate = $44; //过期时间", " $1.DeviceId = $45; //设备ID", " $1.DeviceToken = $46; //设备令牌", " $1.CertFrontImage = $47; //身份证正面照", " $1.CertReverseImage = $48; //身份证反面照", " $1.HandCertImage = $49; //手持身份证", " $1.BankCardPositiveImage = $50; //银行卡正面照", " $1.Remark = $51; //备注信息", " $1.HandPwd = $52; //手势密码", " $1.MakerCode = $53; //创客编号", " $1.SettleAmount = $54; //最低结算金额", " $1.CashFreezeAmt = $55; //提现冻结金额", " $1.ActiveRewardAmount = $56; //激活奖励金额", " $1.ProfitRewardRate = $57; //分润奖励", " $1.CitySetDate = $58; //省市设置时间", " $1.CertValidStartDate = $59; //身份证有效期开始时间", " $1.CertValidEndDate = $60; //身份证有效期结束时间", " $1.SettleBankCardName = $61; //结算银行卡户名", " $1.AgentLevel = $62; //代理等级", " $1.AgentAreas = $63; //代理区域", "}" ] }, "获取创客数量": { "prefix": "ym-db-Users-FindAndCount", "body": [ "int $1 = db.Users.Count(m => $2);", ] }, "添加创客": { "prefix": "ym-db-Users-Create", "body": [ "db.Users.Add(new Users()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " NickName = $1, //昵称", " RealName = $2, //真实姓名", " Sex = $3, //性别", " CertId = $4, //身份证号", " Areas = $5, //所在地区", " Address = $6, //详细地址", " HeadPhoto = $7, //头像", " ParentUserId = $8, //父级Id", " UserLevel = $9, //创客等级", " CardNo = $10, //卡号", " Mobile = $11, //手机号", " GroupId = $12, //分组", " Tags = $13, //标签", " ParentNav = $14, //父级集合", " LoginPwd = $15, //登录密码", " PayPwd = $16, //支付密码", " CarIds = $17, //购物车Id集合", " OpenId = $18, //OpenId", " AlipayUserId = $19, //支付宝用户Id", " IsNewUser = $20, //是否新创客", " IdCardEndNo = $21, //身份证后四位", " SettleBankCardNo = $22, //结算银行卡号", " SettleBankName = $23, //结算银行名称", " ReferenceCode = $24, //推荐码", " ReferralUserId = $25, //引荐人", " CardRecCode = $26, //办卡分享图片地址", " ReferenceQrCode = $27, //推广二维码地址", " SignImgUrl = $28, //特定协议签名图片地址", " UserType = $29, //创客类型", " UserProperty = $30, //创客属性", " MerchantType = $31, //商户创客类型", " MerchantDate = $32, //成为商户型创客时间", " LoginStatus = $33, //登录状态", " AuditStatus = $34, //审核状态", " LockStatus = $35, //锁定状态", " AuthFlag = $36, //实名标识", " AuthDate = $37, //实名时间", " RiskFlag = $38, //风控标识", " RiskRemark = $39, //风控备注", " RreezeRemark = $40, //账户冻结备注信息", " SettleRemark = $41, //结算金额调整备注", " AccessToken = $42, //创客登录授权令牌", " ExpiredDate = $43, //过期时间", " DeviceId = $44, //设备ID", " DeviceToken = $45, //设备令牌", " CertFrontImage = $46, //身份证正面照", " CertReverseImage = $47, //身份证反面照", " HandCertImage = $48, //手持身份证", " BankCardPositiveImage = $49, //银行卡正面照", " Remark = $50, //备注信息", " HandPwd = $51, //手势密码", " MakerCode = $52, //创客编号", " SettleAmount = $53, //最低结算金额", " CashFreezeAmt = $54, //提现冻结金额", " ActiveRewardAmount = $55, //激活奖励金额", " ProfitRewardRate = $56, //分润奖励", " CitySetDate = $57, //省市设置时间", " CertValidStartDate = $58, //身份证有效期开始时间", " CertValidEndDate = $59, //身份证有效期结束时间", " SettleBankCardName = $60, //结算银行卡户名", " AgentLevel = $61, //代理等级", " AgentAreas = $62, //代理区域", "});" ] },"删除某个创客": { "prefix": "ym-db-Users-Delete", "body": [ "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.Users.Remove($1);", "}" ] }, "查询机具激活限制信息列表": { "prefix": "ym-db-UserSnActInfo-Find", "body": [ "List $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSnActInfo $3 in $1)", "{", "}" ] }, "查询机具激活限制信息列表,并取值": { "prefix": "ym-db-UserSnActInfo-FindWithData", "body": [ "List $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSnActInfo $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //产品类型", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN机具类型", " DateTime SnShipDate = $3.SnShipDate; //发货时间", " int SnStoreId = $3.SnStoreId; //SN仓库", " string EffectStartActDate = $3.EffectStartActDate; //有效开始激活时间", " string EffectEndActDate = $3.EffectEndActDate; //有效结束激活时间", " string EffectStartCycleDate = $3.EffectStartCycleDate; //有效开始循环时间", " string EffectEndCycleDate = $3.EffectEndCycleDate; //有效结束循环时间", " int ActUserId = $3.ActUserId; //激活奖励创客", " int ActiveStatus = $3.ActiveStatus; //商户激活状态", " string StandardDate = $3.StandardDate; //激活日期", " string SourceSnNo = $3.SourceSnNo; //源SN编号", " int SourceSnType = $3.SourceSnType; //源SN机具类型", " DateTime SourceShipDate = $3.SourceShipDate; //源SN发货时间", " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库", " string Remark = $3.Remark; //备注", "}" ] }, "查询机具激活限制信息": { "prefix": "ym-db-UserSnActInfo-Exist", "body": [ "bool $1 = db.UserSnActInfo.Any(m => m.Id == $2);", ] }, "查询某个机具激活限制信息,并取值": { "prefix": "ym-db-UserSnActInfo-FindByPrimaryKey", "body": [ "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //产品类型", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN机具类型", " DateTime SnShipDate = $1.SnShipDate; //发货时间", " int SnStoreId = $1.SnStoreId; //SN仓库", " string EffectStartActDate = $1.EffectStartActDate; //有效开始激活时间", " string EffectEndActDate = $1.EffectEndActDate; //有效结束激活时间", " string EffectStartCycleDate = $1.EffectStartCycleDate; //有效开始循环时间", " string EffectEndCycleDate = $1.EffectEndCycleDate; //有效结束循环时间", " int ActUserId = $1.ActUserId; //激活奖励创客", " int ActiveStatus = $1.ActiveStatus; //商户激活状态", " string StandardDate = $1.StandardDate; //激活日期", " string SourceSnNo = $1.SourceSnNo; //源SN编号", " int SourceSnType = $1.SourceSnType; //源SN机具类型", " DateTime SourceShipDate = $1.SourceShipDate; //源SN发货时间", " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个机具激活限制信息,并赋值": { "prefix": "ym-db-UserSnActInfo-Update", "body": [ "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //产品类型", " $1.SnNo = $4; //SN编号", " $1.SnType = $5; //SN机具类型", " $1.SnShipDate = $6; //发货时间", " $1.SnStoreId = $7; //SN仓库", " $1.EffectStartActDate = $8; //有效开始激活时间", " $1.EffectEndActDate = $9; //有效结束激活时间", " $1.EffectStartCycleDate = $10; //有效开始循环时间", " $1.EffectEndCycleDate = $11; //有效结束循环时间", " $1.ActUserId = $12; //激活奖励创客", " $1.ActiveStatus = $13; //商户激活状态", " $1.StandardDate = $14; //激活日期", " $1.SourceSnNo = $15; //源SN编号", " $1.SourceSnType = $16; //源SN机具类型", " $1.SourceShipDate = $17; //源SN发货时间", " $1.SourceStoreId = $18; //源SN发货你仓库", " $1.Remark = $19; //备注", "}" ] }, "获取机具激活限制信息数量": { "prefix": "ym-db-UserSnActInfo-FindAndCount", "body": [ "int $1 = db.UserSnActInfo.Count(m => $2);", ] }, "添加机具激活限制信息": { "prefix": "ym-db-UserSnActInfo-Create", "body": [ "db.UserSnActInfo.Add(new UserSnActInfo()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //产品类型", " SnNo = $3, //SN编号", " SnType = $4, //SN机具类型", " SnShipDate = $5, //发货时间", " SnStoreId = $6, //SN仓库", " EffectStartActDate = $7, //有效开始激活时间", " EffectEndActDate = $8, //有效结束激活时间", " EffectStartCycleDate = $9, //有效开始循环时间", " EffectEndCycleDate = $10, //有效结束循环时间", " ActUserId = $11, //激活奖励创客", " ActiveStatus = $12, //商户激活状态", " StandardDate = $13, //激活日期", " SourceSnNo = $14, //源SN编号", " SourceSnType = $15, //源SN机具类型", " SourceShipDate = $16, //源SN发货时间", " SourceStoreId = $17, //源SN发货你仓库", " Remark = $18, //备注", "});" ] },"删除某个机具激活限制信息": { "prefix": "ym-db-UserSnActInfo-Delete", "body": [ "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserSnActInfo.Remove($1);", "}" ] }, "查询创客机具延迟变动明细表列表": { "prefix": "ym-db-UserSnDelayChange-Find", "body": [ "List $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSnDelayChange $3 in $1)", "{", "}" ] }, "查询创客机具延迟变动明细表列表,并取值": { "prefix": "ym-db-UserSnDelayChange-FindWithData", "body": [ "List $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSnDelayChange $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //品牌", " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN机具类型", " int SnStoreId = $3.SnStoreId; //发货仓库", " string InitCycleDate = $3.InitCycleDate; //初始循环截止时间", " string BeforeEndCycleDate = $3.BeforeEndCycleDate; //变动前循环截止时间", " string AfterEndCycleDate = $3.AfterEndCycleDate; //变动后循环截止时间", " int RecUserId = $3.RecUserId; //招募创客", " int SnDelayDay = $3.SnDelayDay; //机具延时天数", " int ActivityRuleId = $3.ActivityRuleId; //拉新活动", " string SourceSnNo = $3.SourceSnNo; //源SN编号", " int SourceSnType = $3.SourceSnType; //源SN类型", " DateTime SourceSnShipDate = $3.SourceSnShipDate; //源SN发货时间", " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库", " string Remark = $3.Remark; //备注", "}" ] }, "查询创客机具延迟变动明细表": { "prefix": "ym-db-UserSnDelayChange-Exist", "body": [ "bool $1 = db.UserSnDelayChange.Any(m => m.Id == $2);", ] }, "查询某个创客机具延迟变动明细表,并取值": { "prefix": "ym-db-UserSnDelayChange-FindByPrimaryKey", "body": [ "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //品牌", " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN机具类型", " int SnStoreId = $1.SnStoreId; //发货仓库", " string InitCycleDate = $1.InitCycleDate; //初始循环截止时间", " string BeforeEndCycleDate = $1.BeforeEndCycleDate; //变动前循环截止时间", " string AfterEndCycleDate = $1.AfterEndCycleDate; //变动后循环截止时间", " int RecUserId = $1.RecUserId; //招募创客", " int SnDelayDay = $1.SnDelayDay; //机具延时天数", " int ActivityRuleId = $1.ActivityRuleId; //拉新活动", " string SourceSnNo = $1.SourceSnNo; //源SN编号", " int SourceSnType = $1.SourceSnType; //源SN类型", " DateTime SourceSnShipDate = $1.SourceSnShipDate; //源SN发货时间", " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个创客机具延迟变动明细表,并赋值": { "prefix": "ym-db-UserSnDelayChange-Update", "body": [ "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //品牌", " $1.ChangeRecordNo = $4; //变更记录单号", " $1.SnNo = $5; //SN编号", " $1.SnType = $6; //SN机具类型", " $1.SnStoreId = $7; //发货仓库", " $1.InitCycleDate = $8; //初始循环截止时间", " $1.BeforeEndCycleDate = $9; //变动前循环截止时间", " $1.AfterEndCycleDate = $10; //变动后循环截止时间", " $1.RecUserId = $11; //招募创客", " $1.SnDelayDay = $12; //机具延时天数", " $1.ActivityRuleId = $13; //拉新活动", " $1.SourceSnNo = $14; //源SN编号", " $1.SourceSnType = $15; //源SN类型", " $1.SourceSnShipDate = $16; //源SN发货时间", " $1.SourceStoreId = $17; //源SN发货你仓库", " $1.Remark = $18; //备注", "}" ] }, "获取创客机具延迟变动明细表数量": { "prefix": "ym-db-UserSnDelayChange-FindAndCount", "body": [ "int $1 = db.UserSnDelayChange.Count(m => $2);", ] }, "添加创客机具延迟变动明细表": { "prefix": "ym-db-UserSnDelayChange-Create", "body": [ "db.UserSnDelayChange.Add(new UserSnDelayChange()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //品牌", " ChangeRecordNo = $3, //变更记录单号", " SnNo = $4, //SN编号", " SnType = $5, //SN机具类型", " SnStoreId = $6, //发货仓库", " InitCycleDate = $7, //初始循环截止时间", " BeforeEndCycleDate = $8, //变动前循环截止时间", " AfterEndCycleDate = $9, //变动后循环截止时间", " RecUserId = $10, //招募创客", " SnDelayDay = $11, //机具延时天数", " ActivityRuleId = $12, //拉新活动", " SourceSnNo = $13, //源SN编号", " SourceSnType = $14, //源SN类型", " SourceSnShipDate = $15, //源SN发货时间", " SourceStoreId = $16, //源SN发货你仓库", " Remark = $17, //备注", "});" ] },"删除某个创客机具延迟变动明细表": { "prefix": "ym-db-UserSnDelayChange-Delete", "body": [ "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserSnDelayChange.Remove($1);", "}" ] }, "查询创客库存变动记录列表": { "prefix": "ym-db-UserStoreChange-Find", "body": [ "List $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserStoreChange $3 in $1)", "{", "}" ] }, "查询创客库存变动记录列表,并取值": { "prefix": "ym-db-UserStoreChange-FindWithData", "body": [ "List $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserStoreChange $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int BrandId = $3.BrandId; //产品类型", " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号", " int TransType = $3.TransType; //交易类型", " string SnNo = $3.SnNo; //SN编号", " int SnType = $3.SnType; //SN机具类型", " int StockOpDirect = $3.StockOpDirect; //库存操作方向", " string DeviceVendor = $3.DeviceVendor; //设备厂商", " string DeviceType = $3.DeviceType; //设备类型", " string DeviceModel = $3.DeviceModel; //设备型号", " int ToUserId = $3.ToUserId; //收货创客", " int ToStoreId = $3.ToStoreId; //创客退货收货仓库", " DateTime ToDate = $3.ToDate; //入库时间", " string ToRemark = $3.ToRemark; //入库备注", " int SourceStoreId = $3.SourceStoreId; //源仓库", " int SnStatus = $3.SnStatus; //SN状态", " string BizBatchNo = $3.BizBatchNo; //业务批次号", " int BindStatus = $3.BindStatus; //绑定状态", " int BindMerchantId = $3.BindMerchantId; //绑定商户", " int ActiveStatus = $3.ActiveStatus; //激活状态", " int ActRewardUserId = $3.ActRewardUserId; //激活奖励创客", " int FromUserId = $3.FromUserId; //出货创客", " DateTime FromDate = $3.FromDate; //出库时间", " string FromRemark = $3.FromRemark; //出库备注", " string BrandType = $3.BrandType; //品牌类型", "}" ] }, "查询创客库存变动记录": { "prefix": "ym-db-UserStoreChange-Exist", "body": [ "bool $1 = db.UserStoreChange.Any(m => m.Id == $2);", ] }, "查询某个创客库存变动记录,并取值": { "prefix": "ym-db-UserStoreChange-FindByPrimaryKey", "body": [ "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int BrandId = $1.BrandId; //产品类型", " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号", " int TransType = $1.TransType; //交易类型", " string SnNo = $1.SnNo; //SN编号", " int SnType = $1.SnType; //SN机具类型", " int StockOpDirect = $1.StockOpDirect; //库存操作方向", " string DeviceVendor = $1.DeviceVendor; //设备厂商", " string DeviceType = $1.DeviceType; //设备类型", " string DeviceModel = $1.DeviceModel; //设备型号", " int ToUserId = $1.ToUserId; //收货创客", " int ToStoreId = $1.ToStoreId; //创客退货收货仓库", " DateTime ToDate = $1.ToDate; //入库时间", " string ToRemark = $1.ToRemark; //入库备注", " int SourceStoreId = $1.SourceStoreId; //源仓库", " int SnStatus = $1.SnStatus; //SN状态", " string BizBatchNo = $1.BizBatchNo; //业务批次号", " int BindStatus = $1.BindStatus; //绑定状态", " int BindMerchantId = $1.BindMerchantId; //绑定商户", " int ActiveStatus = $1.ActiveStatus; //激活状态", " int ActRewardUserId = $1.ActRewardUserId; //激活奖励创客", " int FromUserId = $1.FromUserId; //出货创客", " DateTime FromDate = $1.FromDate; //出库时间", " string FromRemark = $1.FromRemark; //出库备注", " string BrandType = $1.BrandType; //品牌类型", "}" ] }, "查询某个创客库存变动记录,并赋值": { "prefix": "ym-db-UserStoreChange-Update", "body": [ "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.BrandId = $3; //产品类型", " $1.ChangeRecordNo = $4; //变更记录单号", " $1.TransType = $5; //交易类型", " $1.SnNo = $6; //SN编号", " $1.SnType = $7; //SN机具类型", " $1.StockOpDirect = $8; //库存操作方向", " $1.DeviceVendor = $9; //设备厂商", " $1.DeviceType = $10; //设备类型", " $1.DeviceModel = $11; //设备型号", " $1.ToUserId = $12; //收货创客", " $1.ToStoreId = $13; //创客退货收货仓库", " $1.ToDate = $14; //入库时间", " $1.ToRemark = $15; //入库备注", " $1.SourceStoreId = $16; //源仓库", " $1.SnStatus = $17; //SN状态", " $1.BizBatchNo = $18; //业务批次号", " $1.BindStatus = $19; //绑定状态", " $1.BindMerchantId = $20; //绑定商户", " $1.ActiveStatus = $21; //激活状态", " $1.ActRewardUserId = $22; //激活奖励创客", " $1.FromUserId = $23; //出货创客", " $1.FromDate = $24; //出库时间", " $1.FromRemark = $25; //出库备注", " $1.BrandType = $26; //品牌类型", "}" ] }, "获取创客库存变动记录数量": { "prefix": "ym-db-UserStoreChange-FindAndCount", "body": [ "int $1 = db.UserStoreChange.Count(m => $2);", ] }, "添加创客库存变动记录": { "prefix": "ym-db-UserStoreChange-Create", "body": [ "db.UserStoreChange.Add(new UserStoreChange()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " BrandId = $2, //产品类型", " ChangeRecordNo = $3, //变更记录单号", " TransType = $4, //交易类型", " SnNo = $5, //SN编号", " SnType = $6, //SN机具类型", " StockOpDirect = $7, //库存操作方向", " DeviceVendor = $8, //设备厂商", " DeviceType = $9, //设备类型", " DeviceModel = $10, //设备型号", " ToUserId = $11, //收货创客", " ToStoreId = $12, //创客退货收货仓库", " ToDate = $13, //入库时间", " ToRemark = $14, //入库备注", " SourceStoreId = $15, //源仓库", " SnStatus = $16, //SN状态", " BizBatchNo = $17, //业务批次号", " BindStatus = $18, //绑定状态", " BindMerchantId = $19, //绑定商户", " ActiveStatus = $20, //激活状态", " ActRewardUserId = $21, //激活奖励创客", " FromUserId = $22, //出货创客", " FromDate = $23, //出库时间", " FromRemark = $24, //出库备注", " BrandType = $25, //品牌类型", "});" ] },"删除某个创客库存变动记录": { "prefix": "ym-db-UserStoreChange-Delete", "body": [ "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserStoreChange.Remove($1);", "}" ] }, "查询循环返风控明细信息列表": { "prefix": "ym-db-UserSwapDetail-Find", "body": [ "List $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapDetail $3 in $1)", "{", "}" ] }, "查询循环返风控明细信息列表,并取值": { "prefix": "ym-db-UserSwapDetail-FindWithData", "body": [ "List $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapDetail $3 in $1)", "{", " string RecordNo = $3.RecordNo; //单号", " int UserId = $3.UserId; //创客", " string TradeMonth = $3.TradeMonth; //交易月", " string TradeDate = $3.TradeDate; //交易日", " int BrandId = $3.BrandId; //品牌", " string SnNo = $3.SnNo; //风控SN编号", " int SnType = $3.SnType; //风控SN机具类型", " int RiskResult = $3.RiskResult; //循环风控降档状态", " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型", " decimal DirectSnTradeAmt = $3.DirectSnTradeAmt; //直营商户激活sn交易总额", " string UpSourceSnNo = $3.UpSourceSnNo; //上一个兑换来源SN编码", " int UpSourceSnType = $3.UpSourceSnType; //上一个兑换来源SN机具类型", " string SourceSnNo = $3.SourceSnNo; //源SN编号", " int SourceSnType = $3.SourceSnType; //源SN机具类型", " string Remark = $3.Remark; //备注", " int TopUserId = $3.TopUserId; //顶级创客", "}" ] }, "查询循环返风控明细信息": { "prefix": "ym-db-UserSwapDetail-Exist", "body": [ "bool $1 = db.UserSwapDetail.Any(m => m.Id == $2);", ] }, "查询某个循环返风控明细信息,并取值": { "prefix": "ym-db-UserSwapDetail-FindByPrimaryKey", "body": [ "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " string RecordNo = $1.RecordNo; //单号", " int UserId = $1.UserId; //创客", " string TradeMonth = $1.TradeMonth; //交易月", " string TradeDate = $1.TradeDate; //交易日", " int BrandId = $1.BrandId; //品牌", " string SnNo = $1.SnNo; //风控SN编号", " int SnType = $1.SnType; //风控SN机具类型", " int RiskResult = $1.RiskResult; //循环风控降档状态", " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型", " decimal DirectSnTradeAmt = $1.DirectSnTradeAmt; //直营商户激活sn交易总额", " string UpSourceSnNo = $1.UpSourceSnNo; //上一个兑换来源SN编码", " int UpSourceSnType = $1.UpSourceSnType; //上一个兑换来源SN机具类型", " string SourceSnNo = $1.SourceSnNo; //源SN编号", " int SourceSnType = $1.SourceSnType; //源SN机具类型", " string Remark = $1.Remark; //备注", " int TopUserId = $1.TopUserId; //顶级创客", "}" ] }, "查询某个循环返风控明细信息,并赋值": { "prefix": "ym-db-UserSwapDetail-Update", "body": [ "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.RecordNo = $2; //单号", " $1.UserId = $3; //创客", " $1.TradeMonth = $4; //交易月", " $1.TradeDate = $5; //交易日", " $1.BrandId = $6; //品牌", " $1.SnNo = $7; //风控SN编号", " $1.SnType = $8; //风控SN机具类型", " $1.RiskResult = $9; //循环风控降档状态", " $1.SwapExtProductTypes = $10; //可申请循环产品类型", " $1.DirectSnTradeAmt = $11; //直营商户激活sn交易总额", " $1.UpSourceSnNo = $12; //上一个兑换来源SN编码", " $1.UpSourceSnType = $13; //上一个兑换来源SN机具类型", " $1.SourceSnNo = $14; //源SN编号", " $1.SourceSnType = $15; //源SN机具类型", " $1.Remark = $16; //备注", " $1.TopUserId = $17; //顶级创客", "}" ] }, "获取循环返风控明细信息数量": { "prefix": "ym-db-UserSwapDetail-FindAndCount", "body": [ "int $1 = db.UserSwapDetail.Count(m => $2);", ] }, "添加循环返风控明细信息": { "prefix": "ym-db-UserSwapDetail-Create", "body": [ "db.UserSwapDetail.Add(new UserSwapDetail()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " RecordNo = $1, //单号", " UserId = $2, //创客", " TradeMonth = $3, //交易月", " TradeDate = $4, //交易日", " BrandId = $5, //品牌", " SnNo = $6, //风控SN编号", " SnType = $7, //风控SN机具类型", " RiskResult = $8, //循环风控降档状态", " SwapExtProductTypes = $9, //可申请循环产品类型", " DirectSnTradeAmt = $10, //直营商户激活sn交易总额", " UpSourceSnNo = $11, //上一个兑换来源SN编码", " UpSourceSnType = $12, //上一个兑换来源SN机具类型", " SourceSnNo = $13, //源SN编号", " SourceSnType = $14, //源SN机具类型", " Remark = $15, //备注", " TopUserId = $16, //顶级创客", "});" ] },"删除某个循环返风控明细信息": { "prefix": "ym-db-UserSwapDetail-Delete", "body": [ "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserSwapDetail.Remove($1);", "}" ] }, "查询创客循环返风控月汇总列表": { "prefix": "ym-db-UserSwapSummary-Find", "body": [ "List $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapSummary $3 in $1)", "{", "}" ] }, "查询创客循环返风控月汇总列表,并取值": { "prefix": "ym-db-UserSwapSummary-FindWithData", "body": [ "List $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapSummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int TopUserId = $3.TopUserId; //顶级创客", " string TradeMonth = $3.TradeMonth; //交易月", " int BrandId = $3.BrandId; //品牌", " int DirectActMerCount = $3.DirectActMerCount; //上月直营激活商户数", " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户新增激活交易户均总额", " decimal DirAvgTradeAmt = $3.DirAvgTradeAmt; //户均", " int RiskStatus = $3.RiskStatus; //循环风控降档状态", " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型", " int RuleId = $3.RuleId; //规则", "}" ] }, "查询创客循环返风控月汇总": { "prefix": "ym-db-UserSwapSummary-Exist", "body": [ "bool $1 = db.UserSwapSummary.Any(m => m.Id == $2);", ] }, "查询某个创客循环返风控月汇总,并取值": { "prefix": "ym-db-UserSwapSummary-FindByPrimaryKey", "body": [ "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int TopUserId = $1.TopUserId; //顶级创客", " string TradeMonth = $1.TradeMonth; //交易月", " int BrandId = $1.BrandId; //品牌", " int DirectActMerCount = $1.DirectActMerCount; //上月直营激活商户数", " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户新增激活交易户均总额", " decimal DirAvgTradeAmt = $1.DirAvgTradeAmt; //户均", " int RiskStatus = $1.RiskStatus; //循环风控降档状态", " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型", " int RuleId = $1.RuleId; //规则", "}" ] }, "查询某个创客循环返风控月汇总,并赋值": { "prefix": "ym-db-UserSwapSummary-Update", "body": [ "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.TopUserId = $3; //顶级创客", " $1.TradeMonth = $4; //交易月", " $1.BrandId = $5; //品牌", " $1.DirectActMerCount = $6; //上月直营激活商户数", " $1.DirectTradeAmt = $7; //直营商户新增激活交易户均总额", " $1.DirAvgTradeAmt = $8; //户均", " $1.RiskStatus = $9; //循环风控降档状态", " $1.SwapExtProductTypes = $10; //可申请循环产品类型", " $1.RuleId = $11; //规则", "}" ] }, "获取创客循环返风控月汇总数量": { "prefix": "ym-db-UserSwapSummary-FindAndCount", "body": [ "int $1 = db.UserSwapSummary.Count(m => $2);", ] }, "添加创客循环返风控月汇总": { "prefix": "ym-db-UserSwapSummary-Create", "body": [ "db.UserSwapSummary.Add(new UserSwapSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " TopUserId = $2, //顶级创客", " TradeMonth = $3, //交易月", " BrandId = $4, //品牌", " DirectActMerCount = $5, //上月直营激活商户数", " DirectTradeAmt = $6, //直营商户新增激活交易户均总额", " DirAvgTradeAmt = $7, //户均", " RiskStatus = $8, //循环风控降档状态", " SwapExtProductTypes = $9, //可申请循环产品类型", " RuleId = $10, //规则", "});" ] },"删除某个创客循环返风控月汇总": { "prefix": "ym-db-UserSwapSummary-Delete", "body": [ "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserSwapSummary.Remove($1);", "}" ] }, "查询循环返风控白名单列表": { "prefix": "ym-db-UserSwapWhite-Find", "body": [ "List $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapWhite $3 in $1)", "{", "}" ] }, "查询循环返风控白名单列表,并取值": { "prefix": "ym-db-UserSwapWhite-FindWithData", "body": [ "List $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserSwapWhite $3 in $1)", "{", " int UserId = $3.UserId; //创客", " int RiskType = $3.RiskType; //风控类型", " int BrandId = $3.BrandId; //品牌", " DateTime StartEffectTime = $3.StartEffectTime; //生效开始时间", " DateTime EndEffectTime = $3.EndEffectTime; //生效截止时间", " string Remark = $3.Remark; //备注", "}" ] }, "查询循环返风控白名单": { "prefix": "ym-db-UserSwapWhite-Exist", "body": [ "bool $1 = db.UserSwapWhite.Any(m => m.Id == $2);", ] }, "查询某个循环返风控白名单,并取值": { "prefix": "ym-db-UserSwapWhite-FindByPrimaryKey", "body": [ "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " int RiskType = $1.RiskType; //风控类型", " int BrandId = $1.BrandId; //品牌", " DateTime StartEffectTime = $1.StartEffectTime; //生效开始时间", " DateTime EndEffectTime = $1.EndEffectTime; //生效截止时间", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个循环返风控白名单,并赋值": { "prefix": "ym-db-UserSwapWhite-Update", "body": [ "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.RiskType = $3; //风控类型", " $1.BrandId = $4; //品牌", " $1.StartEffectTime = $5; //生效开始时间", " $1.EndEffectTime = $6; //生效截止时间", " $1.Remark = $7; //备注", "}" ] }, "获取循环返风控白名单数量": { "prefix": "ym-db-UserSwapWhite-FindAndCount", "body": [ "int $1 = db.UserSwapWhite.Count(m => $2);", ] }, "添加循环返风控白名单": { "prefix": "ym-db-UserSwapWhite-Create", "body": [ "db.UserSwapWhite.Add(new UserSwapWhite()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " RiskType = $2, //风控类型", " BrandId = $3, //品牌", " StartEffectTime = $4, //生效开始时间", " EndEffectTime = $5, //生效截止时间", " Remark = $6, //备注", "});" ] },"删除某个循环返风控白名单": { "prefix": "ym-db-UserSwapWhite-Delete", "body": [ "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserSwapWhite.Remove($1);", "}" ] }, "查询创客交易日汇总列表": { "prefix": "ym-db-UserTradeDaySummary-Find", "body": [ "List $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserTradeDaySummary $3 in $1)", "{", "}" ] }, "查询创客交易日汇总列表,并取值": { "prefix": "ym-db-UserTradeDaySummary-FindWithData", "body": [ "List $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserTradeDaySummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string TradeDate = $3.TradeDate; //交易日", " string TradeMonth = $3.TradeMonth; //交易月", " int BrandId = $3.BrandId; //品牌", " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户交易总额", " decimal NonDirectTradeAmt = $3.NonDirectTradeAmt; //非直营商户交易总额", " decimal DirectDebitTradeAmt = $3.DirectDebitTradeAmt; //直营商户借记卡交易总额", " int DirectDebitCapNum = $3.DirectDebitCapNum; //直营激活商户数", " decimal NonDirectDebitTradeAmt = $3.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额", " int NonDirectDebitCapNum = $3.NonDirectDebitCapNum; //非直营激活商户数", " string Remark = $3.Remark; //备注", "}" ] }, "查询创客交易日汇总": { "prefix": "ym-db-UserTradeDaySummary-Exist", "body": [ "bool $1 = db.UserTradeDaySummary.Any(m => m.Id == $2);", ] }, "查询某个创客交易日汇总,并取值": { "prefix": "ym-db-UserTradeDaySummary-FindByPrimaryKey", "body": [ "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string TradeDate = $1.TradeDate; //交易日", " string TradeMonth = $1.TradeMonth; //交易月", " int BrandId = $1.BrandId; //品牌", " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户交易总额", " decimal NonDirectTradeAmt = $1.NonDirectTradeAmt; //非直营商户交易总额", " decimal DirectDebitTradeAmt = $1.DirectDebitTradeAmt; //直营商户借记卡交易总额", " int DirectDebitCapNum = $1.DirectDebitCapNum; //直营激活商户数", " decimal NonDirectDebitTradeAmt = $1.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额", " int NonDirectDebitCapNum = $1.NonDirectDebitCapNum; //非直营激活商户数", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个创客交易日汇总,并赋值": { "prefix": "ym-db-UserTradeDaySummary-Update", "body": [ "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.TradeDate = $3; //交易日", " $1.TradeMonth = $4; //交易月", " $1.BrandId = $5; //品牌", " $1.DirectTradeAmt = $6; //直营商户交易总额", " $1.NonDirectTradeAmt = $7; //非直营商户交易总额", " $1.DirectDebitTradeAmt = $8; //直营商户借记卡交易总额", " $1.DirectDebitCapNum = $9; //直营激活商户数", " $1.NonDirectDebitTradeAmt = $10; //非直营商户借记卡交易总额", " $1.NonDirectDebitCapNum = $11; //非直营激活商户数", " $1.Remark = $12; //备注", "}" ] }, "获取创客交易日汇总数量": { "prefix": "ym-db-UserTradeDaySummary-FindAndCount", "body": [ "int $1 = db.UserTradeDaySummary.Count(m => $2);", ] }, "添加创客交易日汇总": { "prefix": "ym-db-UserTradeDaySummary-Create", "body": [ "db.UserTradeDaySummary.Add(new UserTradeDaySummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " TradeDate = $2, //交易日", " TradeMonth = $3, //交易月", " BrandId = $4, //品牌", " DirectTradeAmt = $5, //直营商户交易总额", " NonDirectTradeAmt = $6, //非直营商户交易总额", " DirectDebitTradeAmt = $7, //直营商户借记卡交易总额", " DirectDebitCapNum = $8, //直营激活商户数", " NonDirectDebitTradeAmt = $9, //非直营商户借记卡交易总额", " NonDirectDebitCapNum = $10, //非直营激活商户数", " Remark = $11, //备注", "});" ] },"删除某个创客交易日汇总": { "prefix": "ym-db-UserTradeDaySummary-Delete", "body": [ "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserTradeDaySummary.Remove($1);", "}" ] }, "查询交易按产品汇总列表": { "prefix": "ym-db-UserTradeMonthSummary-Find", "body": [ "List $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserTradeMonthSummary $3 in $1)", "{", "}" ] }, "查询交易按产品汇总列表,并取值": { "prefix": "ym-db-UserTradeMonthSummary-FindWithData", "body": [ "List $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();", "foreach (UserTradeMonthSummary $3 in $1)", "{", " int UserId = $3.UserId; //创客", " string TradeMonth = $3.TradeMonth; //交易月", " int BrandId = $3.BrandId; //品牌", " int StatType = $3.StatType; //交易统计类型", " decimal TradeAmt = $3.TradeAmt; //商户交易总额", " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额", " decimal DebitNotCapTradeAmt = $3.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额", " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额", " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数", " int MallPosOrderStatus = $3.MallPosOrderStatus; //商城购买机具状态", " int ActiveBuddyMerStatus = $3.ActiveBuddyMerStatus; //激活创客同名商户", " string Remark = $3.Remark; //备注", "}" ] }, "查询交易按产品汇总": { "prefix": "ym-db-UserTradeMonthSummary-Exist", "body": [ "bool $1 = db.UserTradeMonthSummary.Any(m => m.Id == $2);", ] }, "查询某个交易按产品汇总,并取值": { "prefix": "ym-db-UserTradeMonthSummary-FindByPrimaryKey", "body": [ "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " int UserId = $1.UserId; //创客", " string TradeMonth = $1.TradeMonth; //交易月", " int BrandId = $1.BrandId; //品牌", " int StatType = $1.StatType; //交易统计类型", " decimal TradeAmt = $1.TradeAmt; //商户交易总额", " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额", " decimal DebitNotCapTradeAmt = $1.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额", " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额", " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数", " int MallPosOrderStatus = $1.MallPosOrderStatus; //商城购买机具状态", " int ActiveBuddyMerStatus = $1.ActiveBuddyMerStatus; //激活创客同名商户", " string Remark = $1.Remark; //备注", "}" ] }, "查询某个交易按产品汇总,并赋值": { "prefix": "ym-db-UserTradeMonthSummary-Update", "body": [ "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " $1.UserId = $2; //创客", " $1.TradeMonth = $3; //交易月", " $1.BrandId = $4; //品牌", " $1.StatType = $5; //交易统计类型", " $1.TradeAmt = $6; //商户交易总额", " $1.CreditTradeAmt = $7; //商户贷记卡交易总金额", " $1.DebitNotCapTradeAmt = $8; //商户非封顶借记卡交易总金额", " $1.DebitCapTradeAmt = $9; //商户借记卡封顶交易总额", " $1.DebitCapTradeNum = $10; //商户借记卡封顶交易总笔数", " $1.MallPosOrderStatus = $11; //商城购买机具状态", " $1.ActiveBuddyMerStatus = $12; //激活创客同名商户", " $1.Remark = $13; //备注", "}" ] }, "获取交易按产品汇总数量": { "prefix": "ym-db-UserTradeMonthSummary-FindAndCount", "body": [ "int $1 = db.UserTradeMonthSummary.Count(m => $2);", ] }, "添加交易按产品汇总": { "prefix": "ym-db-UserTradeMonthSummary-Create", "body": [ "db.UserTradeMonthSummary.Add(new UserTradeMonthSummary()", "{", " CreateDate = DateTime.Now,", " UpdateDate = DateTime.Now,", " UserId = $1, //创客", " TradeMonth = $2, //交易月", " BrandId = $3, //品牌", " StatType = $4, //交易统计类型", " TradeAmt = $5, //商户交易总额", " CreditTradeAmt = $6, //商户贷记卡交易总金额", " DebitNotCapTradeAmt = $7, //商户非封顶借记卡交易总金额", " DebitCapTradeAmt = $8, //商户借记卡封顶交易总额", " DebitCapTradeNum = $9, //商户借记卡封顶交易总笔数", " MallPosOrderStatus = $10, //商城购买机具状态", " ActiveBuddyMerStatus = $11, //激活创客同名商户", " Remark = $12, //备注", "});" ] },"删除某个交易按产品汇总": { "prefix": "ym-db-UserTradeMonthSummary-Delete", "body": [ "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);", "if ($1 != null)", "{", " db.UserTradeMonthSummary.Remove($1);", "}" ] }, }