mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
### 0.6.0 专业版(大版本升级,破坏性升级,请酌情处理):
【新增】弃用现在sku前端,启用全新sku组件,更加灵活,体验更好。 【新增】新增通过商品序列获取sku全新列表功能。 【新增】仓储层底层增加二级缓存功能,后面将逐步完善底层缓存中心模块。 【新增】0元购,积分兑换模式下,也去计算用户是否科技升级。 【新增】数据及业务仓储增加二级缓存功能。curd可自主控制是否缓存和清除。 【新增】订单导出excel数据增加商品名称+货品sku组合展示的方式。 【新增】自定义交易组件增加【获取商家信息】【更新商家信息】两个接口处理。 【新增】增加公告列表及公告详情页面,首页组件公告点击跳转列表展示。 【新增】个人中心增加【公告中心】入口。 【新增】后台余额变动增加说明录入。 【调整】将前端能进行分包的文件夹都进行分包,减少主包占用,方便进行二开。 【调整】因ckeditor5存在图片不可设置宽度,上传不支持mp4,排版不畅等情况,降级使用ckeditor4版本。 【修复】修复0.5.5版本售后积分返还机制积分模式判断异常的问题。 【修复】修复使用积分全额抵扣,或其他优惠政策导致的0元购,未进行短信提醒及小票打印机未打印的问题。 【修复】修复更换ckeditor4编辑器后接龙添加编辑调用失败的问题。 【修复】修复积分全额抵扣,金额0元购的情况下,进行售后执行完毕,订单未完结的情况。 【优化】去除分销申请面板按钮无用并失效报错的customStyle属性。 【优化】优化部分方法中使用手写字符串的遗留问题,统一采用enum方式。 【优化】优化前端及接口部分命名错误的问题。错将skill误写成seckill。 【优化】去除uniapp端多个客服代码。 【优化】商品详情底部完善购物车数量显示的问题。 【优化】优化团购列表,拼团列表,秒杀页面页面样式布局差异问题。 【优化】调整支付结果界面样式效果,仿微信支付结果界面。更加清晰明朗。 【优化】优化售后提交页面json计算,开放当用户下单后但未发货情况下,可以申请直接售后的操作需求。 【优化】后台商家手机号码支持设置多个,使用小写逗号分隔,方便多个商家管理员接收下单提醒。 【优化】后台售后单审核,调整售后商品为必选项。
This commit is contained in:
@@ -82,7 +82,7 @@ namespace CoreCms.Net.Auth
|
|||||||
ValidateAudience = true, //是否验证Audience
|
ValidateAudience = true, //是否验证Audience
|
||||||
ValidAudience = audience,//订阅人
|
ValidAudience = audience,//订阅人
|
||||||
ValidateLifetime = true,//是否验证失效时间
|
ValidateLifetime = true,//是否验证失效时间
|
||||||
ClockSkew = TimeSpan.FromSeconds(60),
|
ClockSkew = TimeSpan.FromSeconds(4),
|
||||||
RequireExpirationTime = true,
|
RequireExpirationTime = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ namespace CoreCms.Net.Auth
|
|||||||
issuer,//发行人
|
issuer,//发行人
|
||||||
audience,//听众
|
audience,//听众
|
||||||
signingCredentials,//签名凭据
|
signingCredentials,//签名凭据
|
||||||
expiration: TimeSpan.FromSeconds(60 * 60 * 24)//接口的过期时间
|
expiration: TimeSpan.FromSeconds(60 * 60 * 24 * 30)//接口的过期时间
|
||||||
);
|
);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ namespace CoreCms.Net.Auth
|
|||||||
ValidateAudience = true, //是否验证Audience
|
ValidateAudience = true, //是否验证Audience
|
||||||
ValidAudience = audience,//订阅人
|
ValidAudience = audience,//订阅人
|
||||||
ValidateLifetime = true, //是否验证失效时间
|
ValidateLifetime = true, //是否验证失效时间
|
||||||
ClockSkew = TimeSpan.FromSeconds(60),
|
ClockSkew = TimeSpan.FromSeconds(4),
|
||||||
RequireExpirationTime = true,
|
RequireExpirationTime = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace CoreCms.Net.Auth.Policys
|
|||||||
jm.status = false;
|
jm.status = false;
|
||||||
jm.code = 14007;
|
jm.code = 14007;
|
||||||
jm.data = 14007;
|
jm.data = 14007;
|
||||||
jm.msg = "很抱歉,授权失效,请重新登录!";
|
jm.msg = "很抱歉,授权失效401,请重重试!";
|
||||||
await Response.WriteAsync(JsonConvert.SerializeObject(jm));
|
await Response.WriteAsync(JsonConvert.SerializeObject(jm));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ namespace CoreCms.Net.Auth.Policys
|
|||||||
jm.status = false;
|
jm.status = false;
|
||||||
jm.code = 14007;
|
jm.code = 14007;
|
||||||
jm.data = 14007;
|
jm.data = 14007;
|
||||||
jm.msg = "很抱歉,授权失效,请重新登录!";
|
jm.msg = "很抱歉,授权失效403,请重重试!";
|
||||||
await Response.WriteAsync(JsonConvert.SerializeObject(jm));
|
await Response.WriteAsync(JsonConvert.SerializeObject(jm));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace CoreCms.Net.Auth.Policys
|
|||||||
var encodedJwt = new JwtSecurityTokenHandler().WriteToken(jwt);
|
var encodedJwt = new JwtSecurityTokenHandler().WriteToken(jwt);
|
||||||
|
|
||||||
//打包返回前台
|
//打包返回前台
|
||||||
var responseJson = new
|
var responseJson = new JwtTokenResponseJson
|
||||||
{
|
{
|
||||||
success = true,
|
success = true,
|
||||||
token = encodedJwt,
|
token = encodedJwt,
|
||||||
@@ -53,4 +53,18 @@ namespace CoreCms.Net.Auth.Policys
|
|||||||
return responseJson;
|
return responseJson;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// JwtToken生成返回
|
||||||
|
/// </summary>
|
||||||
|
public class JwtTokenResponseJson
|
||||||
|
{
|
||||||
|
public bool success { get; set; }
|
||||||
|
public string token { get; set; }
|
||||||
|
public double expires_in { get; set; }
|
||||||
|
public string token_type { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,13 +9,6 @@
|
|||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Security.Claims;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using CoreCms.Net.Configuration;
|
using CoreCms.Net.Configuration;
|
||||||
using CoreCms.Net.IServices;
|
using CoreCms.Net.IServices;
|
||||||
using CoreCms.Net.Utility.Extensions;
|
using CoreCms.Net.Utility.Extensions;
|
||||||
@@ -24,6 +17,12 @@ using Microsoft.AspNetCore.Authentication;
|
|||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Security.Claims;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace CoreCms.Net.Auth.Policys
|
namespace CoreCms.Net.Auth.Policys
|
||||||
{
|
{
|
||||||
@@ -43,7 +42,7 @@ namespace CoreCms.Net.Auth.Policys
|
|||||||
/// 构造函数注入
|
/// 构造函数注入
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="schemes"></param>
|
/// <param name="schemes"></param>
|
||||||
/// <param name="navigationRepository"></param>
|
/// <param name="sysRoleMenuServices"></param>
|
||||||
/// <param name="accessor"></param>
|
/// <param name="accessor"></param>
|
||||||
public PermissionForAdminHandler(IAuthenticationSchemeProvider schemes
|
public PermissionForAdminHandler(IAuthenticationSchemeProvider schemes
|
||||||
, ISysRoleMenuServices sysRoleMenuServices
|
, ISysRoleMenuServices sysRoleMenuServices
|
||||||
|
|||||||
@@ -12,11 +12,13 @@ namespace CoreCms.Net.Caching.SqlSugar
|
|||||||
{
|
{
|
||||||
public class SqlSugarRedisCache : ICacheService
|
public class SqlSugarRedisCache : ICacheService
|
||||||
{
|
{
|
||||||
readonly RedisCacheManager _service = null;
|
//readonly RedisCacheManager _service = null;
|
||||||
|
|
||||||
|
static readonly RedisCacheManager _service = new RedisCacheManager();
|
||||||
|
|
||||||
public SqlSugarRedisCache()
|
public SqlSugarRedisCache()
|
||||||
{
|
{
|
||||||
_service = new RedisCacheManager(); ;
|
//_service = new RedisCacheManager(); ;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Add<TV>(string key, TV value)
|
public void Add<TV>(string key, TV value)
|
||||||
@@ -65,4 +67,4 @@ namespace CoreCms.Net.Caching.SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
<input name="{{field.DbColumnName}}" id="{{field.DbColumnName}}Input" lay-verType="tips" lay-verify="required" class="layui-input" value="{% raw %}{{{% endraw %}d.params.data.{{field.DbColumnName}} || '' {% raw %}}}{% endraw %}" placeholder="请上传{{field.ColumnDescription}}" lay-reqText="请上传{{field.ColumnDescription}}" />
|
<input name="{{field.DbColumnName}}" id="{{field.DbColumnName}}Input" lay-verType="tips" lay-verify="required" class="layui-input" value="{% raw %}{{{% endraw %}d.params.data.{{field.DbColumnName}} || '' {% raw %}}}{% endraw %}" placeholder="请上传{{field.ColumnDescription}}" lay-reqText="请上传{{field.ColumnDescription}}" />
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<img class="coreshop-upload-img" id="viewImgBox{{field.DbColumnName}}" src="{% raw %}{{{% endraw %}d.params.data.{{field.DbColumnName}} || layui.setter.noImagePicUrl {% raw %}}}{% endraw %}">
|
|
||||||
<button type="button" class="layui-btn" id="upBtn{{field.DbColumnName}}" lay-active="doCropperImg">上传图片</button>
|
<button type="button" class="layui-btn" id="upBtn{{field.DbColumnName}}" lay-active="doCropperImg">上传图片</button>
|
||||||
|
<img class="coreshop-upload-img" id="viewImgBox{{field.DbColumnName}}" src="{% raw %}{{{% endraw %}d.params.data.{{field.DbColumnName}} || layui.setter.noImagePicUrl {% raw %}}}{% endraw %}">
|
||||||
</div>
|
</div>
|
||||||
</div>{% elsif field.DataType == 'nvarchar' %}
|
</div>{% elsif field.DataType == 'nvarchar' %}
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
|
|||||||
@@ -617,7 +617,7 @@ namespace CoreCms.Net.Configuration
|
|||||||
/// 秒杀
|
/// 秒杀
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("秒杀")]
|
[Description("秒杀")]
|
||||||
Skill = 4,
|
Seckill = 4,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 砍价
|
/// 砍价
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -1043,7 +1043,7 @@ namespace CoreCms.Net.Configuration
|
|||||||
/// 秒杀
|
/// 秒杀
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("秒杀")]
|
[Description("秒杀")]
|
||||||
Skill = 4,
|
Seckill = 4,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 砍价
|
/// 砍价
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -431,6 +431,7 @@ namespace CoreCms.Net.Configuration
|
|||||||
public const string Code15611 = "您已超过该活动最大购买量";
|
public const string Code15611 = "您已超过该活动最大购买量";
|
||||||
public const string Code15612 = "货品折扣后价格已经小于0元";
|
public const string Code15612 = "货品折扣后价格已经小于0元";
|
||||||
public const string Code15613 = "您不能参加自己的开团";
|
public const string Code15613 = "您不能参加自己的开团";
|
||||||
|
|
||||||
|
|
||||||
//微信消息
|
//微信消息
|
||||||
public const string Code16001 = "请输入标题";
|
public const string Code16001 = "请输入标题";
|
||||||
@@ -546,6 +547,7 @@ namespace CoreCms.Net.Configuration
|
|||||||
public const string Code21006 = "货品折扣后价格已经小于0";
|
public const string Code21006 = "货品折扣后价格已经小于0";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//会员管理 -21000
|
//会员管理 -21000
|
||||||
|
|
||||||
//商品管理 -22000
|
//商品管理 -22000
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ namespace CoreCms.Net.Core.Config
|
|||||||
c.AddPolicy(AppSettingsConstVars.CorsPolicyName, policy =>
|
c.AddPolicy(AppSettingsConstVars.CorsPolicyName, policy =>
|
||||||
{
|
{
|
||||||
policy.WithOrigins(AppSettingsConstVars.CorsIPs.Split(','));
|
policy.WithOrigins(AppSettingsConstVars.CorsIPs.Split(','));
|
||||||
policy.AllowAnyHeader();//Ensures that the policy allows any header.
|
//policy.AllowAnyOrigin();
|
||||||
|
policy.AllowAnyHeader();
|
||||||
policy.AllowAnyMethod();
|
policy.AllowAnyMethod();
|
||||||
policy.AllowCredentials();
|
policy.AllowCredentials();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ namespace CoreCms.Net.Core.Config
|
|||||||
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||||
// 配置(解析器、计数器密钥生成器)
|
// 配置(解析器、计数器密钥生成器)
|
||||||
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
|
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
|
||||||
|
|
||||||
services.AddSingleton<IProcessingStrategy, AsyncKeyLockProcessingStrategy>();
|
services.AddSingleton<IProcessingStrategy, AsyncKeyLockProcessingStrategy>();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ namespace CoreCms.Net.Core.Config
|
|||||||
m.ConnectionString = AppSettingsConstVars.RedisConfigConnectionString;
|
m.ConnectionString = AppSettingsConstVars.RedisConfigConnectionString;
|
||||||
//对应的订阅者类,需要new一个实例对象,当然你也可以传参,比如日志对象
|
//对应的订阅者类,需要new一个实例对象,当然你也可以传参,比如日志对象
|
||||||
m.ListSubscribe = new List<Type>() {
|
m.ListSubscribe = new List<Type>() {
|
||||||
|
typeof(MessagePushSubscribe),
|
||||||
typeof(OrderAgentOrDistributionSubscribe),
|
typeof(OrderAgentOrDistributionSubscribe),
|
||||||
typeof(OrderAutomaticDeliverySubscribe),
|
typeof(OrderAutomaticDeliverySubscribe),
|
||||||
typeof(OrderFinishCommandSubscribe),
|
typeof(OrderFinishCommandSubscribe),
|
||||||
|
|||||||
@@ -39,18 +39,18 @@ namespace CoreCms.Net.Core.Config
|
|||||||
//判断数据库类型
|
//判断数据库类型
|
||||||
DbType = AppSettingsConstVars.DbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer,
|
DbType = AppSettingsConstVars.DbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer,
|
||||||
//是否开启自动关闭数据库连接-//不设成true要手动close
|
//是否开启自动关闭数据库连接-//不设成true要手动close
|
||||||
IsAutoCloseConnection = true,
|
IsAutoCloseConnection = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
//设置参数
|
//设置参数
|
||||||
services.ConfigurationSugar(db =>
|
services.ConfigurationSugar(db =>
|
||||||
{
|
{
|
||||||
db.CurrentConnectionConfig.InitKeyType = InitKeyType.Attribute;
|
db.CurrentConnectionConfig.InitKeyType = InitKeyType.Attribute;
|
||||||
//db.CurrentConnectionConfig.ConfigureExternalServices = new ConfigureExternalServices()
|
db.CurrentConnectionConfig.ConfigureExternalServices = new ConfigureExternalServices()
|
||||||
//{
|
{
|
||||||
// //判断是否开启redis设置二级缓存方式
|
//判断是否开启redis设置二级缓存方式
|
||||||
// DataInfoCacheService = AppSettingsConstVars.RedisUseCache ? (ICacheService)new SqlSugarRedisCache() : new SqlSugarMemoryCache()
|
DataInfoCacheService = AppSettingsConstVars.RedisUseCache ? (ICacheService)new SqlSugarRedisCache() : new SqlSugarMemoryCache()
|
||||||
//};
|
};
|
||||||
|
|
||||||
//执行SQL 错误事件,可监控sql(暂时屏蔽,需要可开启)
|
//执行SQL 错误事件,可监控sql(暂时屏蔽,需要可开启)
|
||||||
//db.Aop.OnLogExecuting = (sql, p) =>
|
//db.Aop.OnLogExecuting = (sql, p) =>
|
||||||
|
|||||||
@@ -21,14 +21,17 @@ namespace CoreCms.Net.Core.Config
|
|||||||
{
|
{
|
||||||
if (services == null) throw new ArgumentNullException(nameof(services));
|
if (services == null) throw new ArgumentNullException(nameof(services));
|
||||||
|
|
||||||
services.AddYilianyunSdk<DefaultYilianyunSdkHook>(opt =>
|
if (AppSettingsConstVars.YiLianYunConfigEnabled)
|
||||||
{
|
{
|
||||||
// 应用ID请自行前往 dev.10ss.net 获取
|
services.AddYilianyunSdk<DefaultYilianyunSdkHook>(opt =>
|
||||||
opt.ClientId = AppSettingsConstVars.YiLianYunConfigClientId;
|
{
|
||||||
opt.ClientSecret = AppSettingsConstVars.YiLianYunConfigClientSecret;
|
// 应用ID请自行前往 dev.10ss.net 获取
|
||||||
opt.YilianyunClientType = YilianyunClientType.自有应用;
|
opt.ClientId = AppSettingsConstVars.YiLianYunConfigClientId;
|
||||||
opt.SaveTokenDirPath = "./App_Data/YiLianYunLogs";
|
opt.ClientSecret = AppSettingsConstVars.YiLianYunConfigClientSecret;
|
||||||
});
|
opt.YilianyunClientType = YilianyunClientType.自有应用;
|
||||||
|
opt.SaveTokenDirPath = "./App_Data/YiLianYunLogs";
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentGoods>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentGoods>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentGoods, bool>> predicate,
|
Expression<Func<CoreCmsAgentGoods, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
@@ -59,14 +59,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGoods entity, List<CoreCmsAgentProducts> products);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGoods entity, List<CoreCmsAgentProducts> products);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentGoods> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -74,14 +66,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,10 +34,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentGrade>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentGrade>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentGrade, bool>> predicate,
|
Expression<Func<CoreCmsAgentGrade, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsAgentGrade entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsAgentGrade entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -54,15 +54,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGrade entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGrade entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentGrade> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -81,12 +73,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsAgentGrade>> GetCaChe();
|
Task<List<CoreCmsAgentGrade>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsAgentGrade>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,68 +20,10 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 代理佣金明细 工厂接口
|
/// 代理佣金明细 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsAgentOrderDetailsRepository : IBaseRepository<CoreCmsAgentOrderDetails>
|
public interface ICoreCmsAgentOrderDetailsRepository : IBaseRepository<CoreCmsAgentOrderDetails>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsAgentOrderDetails entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentOrderDetails entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentOrderDetails> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsAgentOrderDetails>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsAgentOrderDetails, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsAgentOrderDetails, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentOrder, bool>> predicate,
|
Expression<Func<CoreCmsAgentOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentProducts>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentProducts>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentProducts, bool>> predicate,
|
Expression<Func<CoreCmsAgentProducts, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentProducts, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsAgentProducts, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.DTO.Agent;
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
@@ -34,7 +34,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
Task<IPageList<CoreCmsAgentOrder>> QueryOrderPageAsync(int userId, int pageIndex = 1, int pageSize = 20,
|
Task<IPageList<CoreCmsAgentOrder>> QueryOrderPageAsync(int userId, int pageIndex = 1, int pageSize = 20,
|
||||||
int typeId = 0);
|
int typeId = 0);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -45,7 +44,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgent>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgent>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgent, bool>> predicate,
|
Expression<Func<CoreCmsAgent, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgent, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgent, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsBillDeliveryRepository : IBaseRepository<CoreCmsBillDelivery>
|
public interface ICoreCmsBillDeliveryRepository : IBaseRepository<CoreCmsBillDelivery>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 发货单统计7天统计
|
/// 发货单统计7天统计
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsBillPayments>> QueryPageAsync(
|
Task<IPageList<CoreCmsBillPayments>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsBillPayments, bool>> predicate,
|
Expression<Func<CoreCmsBillPayments, bool>> predicate,
|
||||||
Expression<Func<CoreCmsBillPayments, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsBillPayments, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsBillRefund>> QueryPageAsync(
|
Task<IPageList<CoreCmsBillRefund>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsBillRefund, bool>> predicate,
|
Expression<Func<CoreCmsBillRefund, bool>> predicate,
|
||||||
Expression<Func<CoreCmsBillRefund, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsBillRefund, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 连续签到规则 工厂接口
|
/// 连续签到规则 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsContinuousCheckInRulesRepository : IBaseRepository<CoreCmsContinuousCheckInRules>
|
public interface ICoreCmsContinuousCheckInRulesRepository : IBaseRepository<CoreCmsContinuousCheckInRules>
|
||||||
@@ -31,10 +31,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(List<CoreCmsContinuousCheckInRules> entity);
|
Task<AdminUiCallBack> InsertAsync(List<CoreCmsContinuousCheckInRules> entity);
|
||||||
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的所有数据
|
/// 获取缓存的所有数据
|
||||||
@@ -42,12 +39,5 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsContinuousCheckInRules>> GetCaChe();
|
Task<List<CoreCmsContinuousCheckInRules>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsContinuousCheckInRules>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,57 +25,12 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsCumulativeCheckInRulesRepository : IBaseRepository<CoreCmsCumulativeCheckInRules>
|
public interface ICoreCmsCumulativeCheckInRulesRepository : IBaseRepository<CoreCmsCumulativeCheckInRules>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsCumulativeCheckInRules entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
Task<AdminUiCallBack> InsertAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsCumulativeCheckInRules entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的所有数据
|
/// 获取缓存的所有数据
|
||||||
@@ -83,28 +38,5 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsCumulativeCheckInRules>> GetCaChe();
|
Task<List<CoreCmsCumulativeCheckInRules>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsCumulativeCheckInRules>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsCumulativeCheckInRules>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsCumulativeCheckInRules, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsCumulativeCheckInRules, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserCheckIn>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserCheckIn>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserCheckIn, bool>> predicate,
|
Expression<Func<CoreCmsUserCheckIn, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserCheckIn, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserCheckIn, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionCondition>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionCondition>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionCondition, bool>> predicate,
|
Expression<Func<CoreCmsDistributionCondition, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionCondition, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsDistributionCondition, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionCondition entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionCondition entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -55,15 +55,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionCondition entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionCondition entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionCondition> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -71,31 +63,9 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsDistributionCondition>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionCondition>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,14 +22,14 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionGrade entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionGrade entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
@@ -48,11 +48,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsDistributionGrade>> GetCaChe();
|
Task<List<CoreCmsDistributionGrade>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionGrade>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -66,9 +61,9 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionGrade>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionGrade>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionGrade, bool>> predicate,
|
Expression<Func<CoreCmsDistributionGrade, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsDistributionGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,63 +25,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsDistributionOrderDetailsRepository : IBaseRepository<CoreCmsDistributionOrderDetails>
|
public interface ICoreCmsDistributionOrderDetailsRepository : IBaseRepository<CoreCmsDistributionOrderDetails>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionOrderDetails entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionOrderDetails entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionOrderDetails> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsDistributionOrderDetails>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsDistributionOrderDetails, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsDistributionOrderDetails, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsDistributionOrderRepository : IBaseRepository<CoreCmsDistributionOrder>
|
public interface ICoreCmsDistributionOrderRepository : IBaseRepository<CoreCmsDistributionOrder>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -27,10 +25,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionOrder, bool>> predicate,
|
Expression<Func<CoreCmsDistributionOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsDistributionOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistribution>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistribution>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistribution, bool>> predicate,
|
Expression<Func<CoreCmsDistribution, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistribution, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsDistribution, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 等级佣金表 工厂接口
|
/// 等级佣金表 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsDistributionResultRepository : IBaseRepository<CoreCmsDistributionResult>
|
public interface ICoreCmsDistributionResultRepository : IBaseRepository<CoreCmsDistributionResult>
|
||||||
@@ -22,7 +22,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionResult entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionResult entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -30,15 +30,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionResult entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionResult entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionResult> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -46,7 +38,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -54,26 +46,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsDistributionResult>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionResult>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -84,10 +60,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionResult>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionResult>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionResult, bool>> predicate,
|
Expression<Func<CoreCmsDistributionResult, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionResult, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsDistributionResult, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsInvoice>> QueryPageAsync(
|
Task<IPageList<CoreCmsInvoice>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsInvoice, bool>> predicate,
|
Expression<Func<CoreCmsInvoice, bool>> predicate,
|
||||||
Expression<Func<CoreCmsInvoice, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsInvoice, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,39 +37,21 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsCategory entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsCategory entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法方法
|
/// 重写异步更新方法方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsCategory entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsCategory entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoodsCategory> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,35 +52,19 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoodsComment>> QueryPageAsync(
|
Task<IPageList<CoreCmsGoodsComment>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsGoodsComment, bool>> predicate,
|
Expression<Func<CoreCmsGoodsComment, bool>> predicate,
|
||||||
Expression<Func<CoreCmsGoodsComment, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoodsComment, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsComment entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsComment entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsComment entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoodsComment> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -88,15 +72,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取商品重量
|
/// 获取商品重量
|
||||||
@@ -92,10 +92,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoods>> QueryPageAsync(
|
Task<IPageList<CoreCmsGoods>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsGoods, bool>> predicate,
|
Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -107,8 +107,8 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByType">排序顺序</param>
|
/// <param name="orderByType">排序顺序</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate, int take,
|
Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate, int take,
|
||||||
Expression<Func<CoreCmsGoods, object>> orderByPredicate, OrderByType orderByType, bool blUseNoLock = false);
|
Expression<Func<CoreCmsGoods, object>> orderByPredicate, OrderByType orderByType, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -118,13 +118,13 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderBy">排序</param>
|
/// <param name="orderBy">排序</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns>泛型实体集合</returns>
|
/// <returns>泛型实体集合</returns>
|
||||||
new Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
string orderBy = "",
|
string orderBy = "",
|
||||||
bool blUseNoLock = false);
|
bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件及自定义排序查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="predicate"></param>
|
/// <param name="predicate"></param>
|
||||||
/// <param name="orderBy"></param>
|
/// <param name="orderBy"></param>
|
||||||
@@ -132,9 +132,9 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="pageSize">分布大小</param>
|
/// <param name="pageSize">分布大小</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoods>> QueryPageAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
Task<IPageList<CoreCmsGoods>> QueryPageAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
string orderBy = "", int pageIndex = 1,
|
string orderBy = "", int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -165,7 +165,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取下拉商品数据
|
/// 获取下拉商品数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -31,6 +31,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -40,28 +40,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsForm>> QueryPageAsync(
|
Task<IPageList<CoreCmsForm>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsForm, bool>> predicate,
|
Expression<Func<CoreCmsForm, bool>> predicate,
|
||||||
Expression<Func<CoreCmsForm, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsForm, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsForm entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsForm> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
@@ -70,29 +52,5 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsForm>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsForm>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,8 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
|
||||||
using CoreCms.Net.Model.ViewModels.DTO;
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
@@ -25,12 +25,11 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsFormSubmit>> QueryPageAsync(
|
Task<IPageList<CoreCmsFormSubmit>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsFormSubmit, bool>> predicate,
|
Expression<Func<CoreCmsFormSubmit, bool>> predicate,
|
||||||
Expression<Func<CoreCmsFormSubmit, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsFormSubmit, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表单支付
|
/// 表单支付
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -45,7 +44,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="formId">表单序列</param>
|
/// <param name="formId">表单序列</param>
|
||||||
/// <param name="day">多少天内的数据</param>
|
/// <param name="day">多少天内的数据</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<FormStatisticsViewDto> GetStatisticsByFormid(int formId, int day);
|
Task<FormStatisticsViewDto> GetStatisticsByFormId(int formId, int day);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
@@ -56,45 +55,13 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<int> InsertReturnIdentityAsync(CoreCmsFormSubmit entity);
|
Task<int> InsertReturnIdentityAsync(CoreCmsFormSubmit entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsFormSubmit entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsFormSubmit entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsFormSubmit> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
|
||||||
|
|
||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
public interface ICoreCmsOrderRepository : IBaseRepository<CoreCmsOrder>
|
public interface ICoreCmsOrderRepository : IBaseRepository<CoreCmsOrder>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询团购秒杀下单数量
|
/// 查询团购秒杀下单数量(获取货品的秒杀团购数据)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="productId"></param>
|
/// <param name="productId"></param>
|
||||||
/// <param name="userId"></param>
|
/// <param name="userId"></param>
|
||||||
@@ -37,6 +37,18 @@ namespace CoreCms.Net.IRepository
|
|||||||
int orderType = 0);
|
int orderType = 0);
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询团购秒杀下单数量(获取商品序号的秒杀团购数据)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="goodId"></param>
|
||||||
|
/// <param name="userId"></param>
|
||||||
|
/// <param name="startTime"></param>
|
||||||
|
/// <param name="endTime"></param>
|
||||||
|
/// <param name="orderType"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public FindLimitOrderDto FindLimitOrderByGoodId(int goodId, int userId, DateTime? startTime,
|
||||||
|
DateTime? endTime, int orderType = 0);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据用户id和商品id获取下了多少订单
|
/// 根据用户id和商品id获取下了多少订单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -45,6 +57,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
int GetOrderNum(int userId, int goodId);
|
int GetOrderNum(int userId, int goodId);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件列表数据
|
/// 重写根据条件列表数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -55,6 +68,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
Task<List<CoreCmsOrder>> QueryListAsync(Expression<Func<CoreCmsOrder, bool>> predicate,
|
Task<List<CoreCmsOrder>> QueryListAsync(Expression<Func<CoreCmsOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType);
|
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -65,7 +79,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsOrder, bool>> predicate,
|
Expression<Func<CoreCmsOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsPinTuanRecord>> QueryPageAsync(
|
Task<IPageList<CoreCmsPinTuanRecord>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsPinTuanRecord, bool>> predicate,
|
Expression<Func<CoreCmsPinTuanRecord, bool>> predicate,
|
||||||
Expression<Func<CoreCmsPinTuanRecord, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsPinTuanRecord, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,8 +14,8 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
|
||||||
using CoreCms.Net.Model.ViewModels.DTO;
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsCoupon>> QueryPageAsync(
|
Task<IPageList<CoreCmsCoupon>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsCoupon, bool>> predicate,
|
Expression<Func<CoreCmsCoupon, bool>> predicate,
|
||||||
Expression<Func<CoreCmsCoupon, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsCoupon, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="goodId">商品序列</param>
|
/// <param name="goodId">商品序列</param>
|
||||||
/// <param name="promotionId">关联促销信息</param>
|
/// <param name="promotionId">关联促销信息</param>
|
||||||
|
/// <param name="type">类型</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool IsInGroup(int goodId, out int promotionId);
|
public bool IsInGroup(int goodId, out int promotionId,int type);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -22,50 +22,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsUserServicesOrderRepository : IBaseRepository<CoreCmsUserServicesOrder>
|
public interface ICoreCmsUserServicesOrderRepository : IBaseRepository<CoreCmsUserServicesOrder>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 事务重写异步插入方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> InsertAsync(CoreCmsUserServicesOrder entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(CoreCmsUserServicesOrder entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsUserServicesOrder> entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID的数据
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="id"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="ids"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -76,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserServicesOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserServicesOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserServicesOrder, bool>> predicate,
|
Expression<Func<CoreCmsUserServicesOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserServicesOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserServicesOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -22,49 +22,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsUserServicesTicketRepository : IBaseRepository<CoreCmsUserServicesTicket>
|
public interface ICoreCmsUserServicesTicketRepository : IBaseRepository<CoreCmsUserServicesTicket>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 事务重写异步插入方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> InsertAsync(CoreCmsUserServicesTicket entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(CoreCmsUserServicesTicket entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsUserServicesTicket> entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID的数据
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="id"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="ids"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
@@ -76,7 +33,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserServicesTicket>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserServicesTicket>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserServicesTicket, bool>> predicate,
|
Expression<Func<CoreCmsUserServicesTicket, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserServicesTicket, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserServicesTicket, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -20,50 +20,27 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsAreaRepository : IBaseRepository<CoreCmsArea>
|
public interface ICoreCmsAreaRepository : IBaseRepository<CoreCmsArea>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步插入方法
|
/// 重写异步插入方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsArea entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsArea entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsArea entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsArea entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsArea> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的所有数据
|
/// 获取缓存的所有数据
|
||||||
@@ -71,11 +48,5 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsArea>> GetCaChe();
|
Task<List<CoreCmsArea>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsArea>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 订单配送模式 工厂接口
|
/// 订单配送模式 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsOrderDistributionModelRepository : IBaseRepository<CoreCmsOrderDistributionModel>
|
public interface ICoreCmsOrderDistributionModelRepository : IBaseRepository<CoreCmsOrderDistributionModel>
|
||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsOrderDistributionModel entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsOrderDistributionModel entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -40,31 +40,14 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsOrderDistributionModel entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsOrderDistributionModel entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsOrderDistributionModel> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -76,11 +59,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsOrderDistributionModel>> GetCaChe();
|
Task<List<CoreCmsOrderDistributionModel>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsOrderDistributionModel>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -94,10 +72,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsOrderDistributionModel>> QueryPageAsync(
|
Task<IPageList<CoreCmsOrderDistributionModel>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsOrderDistributionModel, bool>> predicate,
|
Expression<Func<CoreCmsOrderDistributionModel, bool>> predicate,
|
||||||
Expression<Func<CoreCmsOrderDistributionModel, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsOrderDistributionModel, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsPages entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsPages entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsPages entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsPages entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsServiceDescription>> QueryPageAsync(
|
Task<IPageList<CoreCmsServiceDescription>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsServiceDescription, bool>> predicate,
|
Expression<Func<CoreCmsServiceDescription, bool>> predicate,
|
||||||
Expression<Func<CoreCmsServiceDescription, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsServiceDescription, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsServiceDescription entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsServiceDescription entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -55,31 +55,14 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsServiceDescription entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsServiceDescription entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsServiceDescription> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -91,11 +74,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsServiceDescription>> GetCaChe();
|
Task<List<CoreCmsServiceDescription>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsServiceDescription>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsShip>> QueryPageAsync(
|
Task<IPageList<CoreCmsShip>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsShip, bool>> predicate,
|
Expression<Func<CoreCmsShip, bool>> predicate,
|
||||||
Expression<Func<CoreCmsShip, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsShip, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
@@ -53,7 +53,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsShip entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsShip entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -61,7 +61,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsShip entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsShip entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsStore entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsStore entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -36,7 +36,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsStore entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsStore entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 接龙活动商品表 工厂接口
|
/// 接龙活动商品表 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsSolitaireItemsRepository : IBaseRepository<CoreCmsSolitaireItems>
|
public interface ICoreCmsSolitaireItemsRepository : IBaseRepository<CoreCmsSolitaireItems>
|
||||||
@@ -32,59 +32,31 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsSolitaireItems entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsSolitaireItems entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsSolitaireItems entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsSolitaireItems entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsSolitaireItems> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
/// 重写删除指定ID集合的数据(批量删除)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsSolitaireItems>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsSolitaireItems>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询列表数据
|
/// 重写根据条件查询列表数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -93,10 +65,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<List<CoreCmsSolitaireItems>> QueryListByClauseAsync(
|
Task<List<CoreCmsSolitaireItems>> QueryListByClauseAsync(
|
||||||
Expression<Func<CoreCmsSolitaireItems, bool>> predicate,
|
Expression<Func<CoreCmsSolitaireItems, bool>> predicate,
|
||||||
Expression<Func<CoreCmsSolitaireItems, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsSolitaireItems, object>> orderByExpression, OrderByType orderByType,
|
||||||
bool blUseNoLock = false);
|
bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -109,10 +81,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsSolitaireItems>> QueryPageAsync(
|
Task<IPageList<CoreCmsSolitaireItems>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsSolitaireItems, bool>> predicate,
|
Expression<Func<CoreCmsSolitaireItems, bool>> predicate,
|
||||||
Expression<Func<CoreCmsSolitaireItems, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsSolitaireItems, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsSolitaire entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsSolitaire entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -41,50 +41,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsSolitaire entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsSolitaire entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsSolitaire> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsSolitaire>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsSolitaire>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -95,10 +55,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsSolitaire>> QueryPageAsync(
|
Task<IPageList<CoreCmsSolitaire>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsSolitaire, bool>> predicate,
|
Expression<Func<CoreCmsSolitaire, bool>> predicate,
|
||||||
Expression<Func<CoreCmsSolitaire, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsSolitaire, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 取购物车数据的时候,更新价格
|
/// 取购物车数据的时候,更新价格
|
||||||
|
|||||||
@@ -34,52 +34,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsStockLog>> QueryPageAsync(
|
Task<IPageList<CoreCmsStockLog>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsStockLog, bool>> predicate,
|
Expression<Func<CoreCmsStockLog, bool>> predicate,
|
||||||
Expression<Func<CoreCmsStockLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsStockLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsStockLog entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsStockLog entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsStockLog> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,10 +35,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsStock>> QueryPageAsync(
|
Task<IPageList<CoreCmsStock>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsStock, bool>> predicate,
|
Expression<Func<CoreCmsStock, bool>> predicate,
|
||||||
Expression<Func<CoreCmsStock, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsStock, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -57,38 +57,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> InsertAsync(FMCreateStock entity);
|
Task<AdminUiCallBack> InsertAsync(FMCreateStock entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsStock entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsStock> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本更新表 工厂接口
|
/// 版本更新表 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsAppUpdateLogRepository : IBaseRepository<CoreCmsAppUpdateLog>
|
public interface ICoreCmsAppUpdateLogRepository : IBaseRepository<CoreCmsAppUpdateLog>
|
||||||
@@ -32,39 +32,21 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsAppUpdateLog entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsAppUpdateLog entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsAppUpdateLog entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsAppUpdateLog entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAppUpdateLog> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -78,10 +60,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAppUpdateLog>> QueryPageAsync(
|
Task<IPageList<CoreCmsAppUpdateLog>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAppUpdateLog, bool>> predicate,
|
Expression<Func<CoreCmsAppUpdateLog, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAppUpdateLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAppUpdateLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(SysMenu entity);
|
Task<AdminUiCallBack> InsertAsync(SysMenu entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -35,15 +35,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(SysMenu entity);
|
Task<AdminUiCallBack> UpdateAsync(SysMenu entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<SysMenu> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -54,20 +46,5 @@ namespace CoreCms.Net.IRepository
|
|||||||
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<SysMenu>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<SysMenu>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户操作日志 工厂接口
|
/// 用户操作日志 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ISysUserOperationLogRepository : IBaseRepository<SysUserOperationLog>
|
public interface ISysUserOperationLogRepository : IBaseRepository<SysUserOperationLog>
|
||||||
@@ -35,10 +35,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<SysUserOperationLog>> QueryPageAsync(
|
Task<IPageList<SysUserOperationLog>> QueryPageAsync(
|
||||||
Expression<Func<SysUserOperationLog, bool>> predicate,
|
Expression<Func<SysUserOperationLog, bool>> predicate,
|
||||||
Expression<Func<SysUserOperationLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<SysUserOperationLog, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserBalance>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserBalance>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserBalance, bool>> predicate,
|
Expression<Func<CoreCmsUserBalance, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserBalance, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserBalance, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<WebApiCallBack> InsertAsync(CoreCmsUserShip entity);
|
Task<WebApiCallBack> InsertAsync(CoreCmsUserShip entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -32,6 +32,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsUserShip entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsUserShip entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserTocash>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserTocash>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserTocash, bool>> predicate,
|
Expression<Func<CoreCmsUserTocash, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserTocash, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserTocash, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
public interface ICoreCmsUserWeChatInfoRepository : IBaseRepository<CoreCmsUserWeChatInfo>
|
public interface ICoreCmsUserWeChatInfoRepository : IBaseRepository<CoreCmsUserWeChatInfo>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -34,10 +33,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserWeChatInfo>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserWeChatInfo>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserWeChatInfo, bool>> predicate,
|
Expression<Func<CoreCmsUserWeChatInfo, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserWeChatInfo, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserWeChatInfo, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自定义交易组件上传类目资质 工厂接口
|
/// 自定义交易组件上传类目资质 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IWeChatTransactionComponentAuditCategoryRepository : IBaseRepository<WeChatTransactionComponentAuditCategory>
|
public interface IWeChatTransactionComponentAuditCategoryRepository : IBaseRepository<WeChatTransactionComponentAuditCategory>
|
||||||
@@ -33,15 +33,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentAuditCategory entity);
|
Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentAuditCategory entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentAuditCategory> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -49,15 +41,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -72,10 +56,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<WeChatTransactionComponentAuditCategory>> QueryPageAsync(
|
Task<IPageList<WeChatTransactionComponentAuditCategory>> QueryPageAsync(
|
||||||
Expression<Func<WeChatTransactionComponentAuditCategory, bool>> predicate,
|
Expression<Func<WeChatTransactionComponentAuditCategory, bool>> predicate,
|
||||||
Expression<Func<WeChatTransactionComponentAuditCategory, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<WeChatTransactionComponentAuditCategory, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IRepository
|
namespace CoreCms.Net.IRepository
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自定义交易组件上传品牌信息 工厂接口
|
/// 自定义交易组件上传品牌信息 工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IWeChatTransactionComponentBrandAuditRepository : IBaseRepository<WeChatTransactionComponentBrandAudit>
|
public interface IWeChatTransactionComponentBrandAuditRepository : IBaseRepository<WeChatTransactionComponentBrandAudit>
|
||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentBrandAudit entity);
|
Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentBrandAudit entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -40,15 +40,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentBrandAudit entity);
|
Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentBrandAudit entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentBrandAudit> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -56,15 +48,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -79,7 +63,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<WeChatTransactionComponentBrandAudit>> QueryPageAsync(
|
Task<IPageList<WeChatTransactionComponentBrandAudit>> QueryPageAsync(
|
||||||
Expression<Func<WeChatTransactionComponentBrandAudit, bool>> predicate,
|
Expression<Func<WeChatTransactionComponentBrandAudit, bool>> predicate,
|
||||||
Expression<Func<WeChatTransactionComponentBrandAudit, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<WeChatTransactionComponentBrandAudit, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<WeChatTransactionComponentDeliveryCompany>> GetCaChe();
|
Task<List<WeChatTransactionComponentDeliveryCompany>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<WeChatTransactionComponentDeliveryCompany>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -51,10 +46,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<WeChatTransactionComponentDeliveryCompany>> QueryPageAsync(
|
Task<IPageList<WeChatTransactionComponentDeliveryCompany>> QueryPageAsync(
|
||||||
Expression<Func<WeChatTransactionComponentDeliveryCompany, bool>> predicate,
|
Expression<Func<WeChatTransactionComponentDeliveryCompany, bool>> predicate,
|
||||||
Expression<Func<WeChatTransactionComponentDeliveryCompany, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<WeChatTransactionComponentDeliveryCompany, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentGood entity);
|
Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentGood entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -40,31 +40,14 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentGood entity);
|
Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentGood entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentGood> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -78,10 +61,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<WeChatTransactionComponentGood>> QueryPageAsync(
|
Task<IPageList<WeChatTransactionComponentGood>> QueryPageAsync(
|
||||||
Expression<Func<WeChatTransactionComponentGood, bool>> predicate,
|
Expression<Func<WeChatTransactionComponentGood, bool>> predicate,
|
||||||
Expression<Func<WeChatTransactionComponentGood, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<WeChatTransactionComponentGood, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,63 +25,13 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IWeChatTransactionComponentGoodSKURepository : IBaseRepository<WeChatTransactionComponentGoodSKU>
|
public interface IWeChatTransactionComponentGoodSKURepository : IBaseRepository<WeChatTransactionComponentGoodSKU>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentGoodSKU entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentGoodSKU entity);
|
Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentGoodSKU> entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentGoodSKU> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<WeChatTransactionComponentGoodSKU>> QueryPageAsync(
|
|
||||||
Expression<Func<WeChatTransactionComponentGoodSKU, bool>> predicate,
|
|
||||||
Expression<Func<WeChatTransactionComponentGoodSKU, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,64 +25,6 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IWeChatTransactionComponentThirdCategoryRepository : IBaseRepository<WeChatTransactionComponentThirdCategory>
|
public interface IWeChatTransactionComponentThirdCategoryRepository : IBaseRepository<WeChatTransactionComponentThirdCategory>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(WeChatTransactionComponentThirdCategory entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(WeChatTransactionComponentThirdCategory entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<WeChatTransactionComponentThirdCategory> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<WeChatTransactionComponentThirdCategory>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<WeChatTransactionComponentThirdCategory>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
@@ -94,10 +36,10 @@ namespace CoreCms.Net.IRepository
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<WeChatTransactionComponentThirdCategory>> QueryPageAsync(
|
Task<IPageList<WeChatTransactionComponentThirdCategory>> QueryPageAsync(
|
||||||
Expression<Func<WeChatTransactionComponentThirdCategory, bool>> predicate,
|
Expression<Func<WeChatTransactionComponentThirdCategory, bool>> predicate,
|
||||||
Expression<Func<WeChatTransactionComponentThirdCategory, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<WeChatTransactionComponentThirdCategory, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,13 +41,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGoods entity, List<CoreCmsAgentProducts> products);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGoods entity, List<CoreCmsAgentProducts> products);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentGoods> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -55,13 +48,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
Task<AdminUiCallBack> DeleteByIdAsync(int id);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -76,7 +62,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentGoods>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentGoods>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentGoods, bool>> predicate,
|
Expression<Func<CoreCmsAgentGoods, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -30,21 +30,14 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsAgentGrade entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsAgentGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGrade entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentGrade> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
@@ -64,11 +57,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsAgentGrade>> GetCaChe();
|
Task<List<CoreCmsAgentGrade>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsAgentGrade>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
#region 重写根据条件查询分页数据
|
||||||
@@ -82,10 +70,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentGrade>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentGrade>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentGrade, bool>> predicate,
|
Expression<Func<CoreCmsAgentGrade, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentGrade, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,60 +24,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsAgentOrderDetailsServices : IBaseServices<CoreCmsAgentOrderDetails>
|
public interface ICoreCmsAgentOrderDetailsServices : IBaseServices<CoreCmsAgentOrderDetails>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsAgentOrderDetails entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsAgentOrderDetails entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsAgentOrderDetails> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsAgentOrderDetails>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsAgentOrderDetails, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsAgentOrderDetails, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsAgentOrderServices : IBaseServices<CoreCmsAgentOrder>
|
public interface ICoreCmsAgentOrderServices : IBaseServices<CoreCmsAgentOrder>
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -35,12 +34,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentOrder, bool>> predicate,
|
Expression<Func<CoreCmsAgentOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加代理订单关联记录
|
/// 添加代理订单关联记录
|
||||||
@@ -61,7 +58,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="orderId">订单编号</param>
|
/// <param name="orderId">订单编号</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<WebApiCallBack> CancleOrderByOrderId(string orderId);
|
Task<WebApiCallBack> CancelOrderByOrderId(string orderId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
@@ -35,7 +34,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgentProducts>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgentProducts>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgentProducts, bool>> predicate,
|
Expression<Func<CoreCmsAgentProducts, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgentProducts, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgentProducts, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using CoreCms.Net.Model.ViewModels.DTO.Agent;
|
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
@@ -58,17 +58,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<WebApiCallBack> GetStore(int userId);
|
Task<WebApiCallBack> GetStore(int userId);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="userId"></param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<IPageList<CoreCmsAgentOrder>> QueryOrderPageAsync(int userId, int pageIndex = 1, int pageSize = 20);
|
|
||||||
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -79,12 +68,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsAgent>> QueryPageAsync(
|
Task<IPageList<CoreCmsAgent>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsAgent, bool>> predicate,
|
Expression<Func<CoreCmsAgent, bool>> predicate,
|
||||||
Expression<Func<CoreCmsAgent, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsAgent, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取代理商排行
|
/// 获取代理商排行
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ namespace CoreCms.Net.IServices
|
|||||||
WebApiCallBack OrderToAftersales(string orderId, int aftersaleLevel = 0);
|
WebApiCallBack OrderToAftersales(string orderId, int aftersaleLevel = 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 统计用户的售后数量
|
/// 统计用户的售后数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -90,8 +90,6 @@ namespace CoreCms.Net.IServices
|
|||||||
Task<List<StatisticsOut>> Statistics();
|
Task<List<StatisticsOut>> Statistics();
|
||||||
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -102,11 +100,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsBillPayments>> QueryPageAsync(
|
Task<IPageList<CoreCmsBillPayments>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsBillPayments, bool>> predicate,
|
Expression<Func<CoreCmsBillPayments, bool>> predicate,
|
||||||
Expression<Func<CoreCmsBillPayments, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsBillPayments, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsBillRefund>> QueryPageAsync(
|
Task<IPageList<CoreCmsBillRefund>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsBillRefund, bool>> predicate,
|
Expression<Func<CoreCmsBillRefund, bool>> predicate,
|
||||||
Expression<Func<CoreCmsBillRefund, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsBillRefund, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 连续签到规则 服务工厂接口
|
/// 连续签到规则 服务工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsContinuousCheckInRulesServices : IBaseServices<CoreCmsContinuousCheckInRules>
|
public interface ICoreCmsContinuousCheckInRulesServices : IBaseServices<CoreCmsContinuousCheckInRules>
|
||||||
@@ -30,10 +30,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(List<CoreCmsContinuousCheckInRules> entity);
|
Task<AdminUiCallBack> InsertAsync(List<CoreCmsContinuousCheckInRules> entity);
|
||||||
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的所有数据
|
/// 获取缓存的所有数据
|
||||||
@@ -41,12 +38,5 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsContinuousCheckInRules>> GetCaChe();
|
Task<List<CoreCmsContinuousCheckInRules>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsContinuousCheckInRules>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,84 +24,17 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsCumulativeCheckInRulesServices : IBaseServices<CoreCmsCumulativeCheckInRules>
|
public interface ICoreCmsCumulativeCheckInRulesServices : IBaseServices<CoreCmsCumulativeCheckInRules>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsCumulativeCheckInRules entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
Task<AdminUiCallBack> InsertAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsCumulativeCheckInRules entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsCumulativeCheckInRules> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取缓存的所有数据
|
/// 获取缓存的所有数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsCumulativeCheckInRules>> GetCaChe();
|
Task<List<CoreCmsCumulativeCheckInRules>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsCumulativeCheckInRules>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsCumulativeCheckInRules>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsCumulativeCheckInRules, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsCumulativeCheckInRules, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ using SqlSugar;
|
|||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户日历签到统计 服务工厂接口
|
/// 用户日历签到统计 服务工厂接口
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsUserCheckInServices : IBaseServices<CoreCmsUserCheckIn>
|
public interface ICoreCmsUserCheckInServices : IBaseServices<CoreCmsUserCheckIn>
|
||||||
@@ -35,10 +35,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsUserCheckIn>> QueryPageAsync(
|
Task<IPageList<CoreCmsUserCheckIn>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsUserCheckIn, bool>> predicate,
|
Expression<Func<CoreCmsUserCheckIn, bool>> predicate,
|
||||||
Expression<Func<CoreCmsUserCheckIn, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsUserCheckIn, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionCondition>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionCondition>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionCondition, bool>> predicate,
|
Expression<Func<CoreCmsDistributionCondition, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionCondition, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsDistributionCondition, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -51,50 +51,21 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionCondition entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionCondition entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionCondition entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionCondition entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionCondition> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsDistributionCondition>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionCondition>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionGrade>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionGrade>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionGrade, bool>> predicate,
|
Expression<Func<CoreCmsDistributionGrade, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionGrade, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsDistributionGrade, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -51,14 +51,14 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionGrade entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionGrade entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionGrade entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
@@ -78,11 +78,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsDistributionGrade>> GetCaChe();
|
Task<List<CoreCmsDistributionGrade>> GetCaChe();
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionGrade>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,60 +24,5 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICoreCmsDistributionOrderDetailsServices : IBaseServices<CoreCmsDistributionOrderDetails>
|
public interface ICoreCmsDistributionOrderDetailsServices : IBaseServices<CoreCmsDistributionOrderDetails>
|
||||||
{
|
{
|
||||||
#region 重写增删改查操作===========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionOrderDetails entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionOrderDetails entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionOrderDetails> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID的数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="id"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
/// <summary>
|
|
||||||
/// 重写根据条件查询分页数据
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="predicate">判断集合</param>
|
|
||||||
/// <param name="orderByType">排序方式</param>
|
|
||||||
/// <param name="pageIndex">当前页面索引</param>
|
|
||||||
/// <param name="pageSize">分布大小</param>
|
|
||||||
/// <param name="orderByExpression"></param>
|
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<IPageList<CoreCmsDistributionOrderDetails>> QueryPageAsync(
|
|
||||||
Expression<Func<CoreCmsDistributionOrderDetails, bool>> predicate,
|
|
||||||
Expression<Func<CoreCmsDistributionOrderDetails, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionOrder, bool>> predicate,
|
Expression<Func<CoreCmsDistributionOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionOrder, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsDistributionOrder, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistributionResult>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistributionResult>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistributionResult, bool>> predicate,
|
Expression<Func<CoreCmsDistributionResult, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistributionResult, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsDistributionResult, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
@@ -51,52 +51,30 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionResult entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsDistributionResult entity);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionResult entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsDistributionResult entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsDistributionResult> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
/// 重写删除指定ID集合的数据(批量删除)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region 获取缓存的所有数据==========================================================
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取缓存的所有数据
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<List<CoreCmsDistributionResult>> GetCaChe();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 更新cache
|
|
||||||
/// </summary>
|
|
||||||
Task<List<CoreCmsDistributionResult>> UpdateCaChe();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -101,10 +101,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsDistribution>> QueryPageAsync(
|
Task<IPageList<CoreCmsDistribution>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsDistribution, bool>> predicate,
|
Expression<Func<CoreCmsDistribution, bool>> predicate,
|
||||||
Expression<Func<CoreCmsDistribution, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsDistribution, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsInvoice>> QueryPageAsync(
|
Task<IPageList<CoreCmsInvoice>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsInvoice, bool>> predicate,
|
Expression<Func<CoreCmsInvoice, bool>> predicate,
|
||||||
Expression<Func<CoreCmsInvoice, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsInvoice, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<List<CoreCmsGoodsCategory>> GetCaChe();
|
Task<List<CoreCmsGoodsCategory>> GetCaChe();
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断商品分类下面是否有某一个商品分类
|
/// 判断商品分类下面是否有某一个商品分类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -38,8 +36,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="catId"></param>
|
/// <param name="catId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<bool> IsChild(int catParentId, int catId);
|
Task<bool> IsChild(int catParentId, int catId);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断是否含有子类
|
/// 判断是否含有子类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -56,7 +52,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsCategory entity);
|
Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsCategory entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -64,31 +60,14 @@ namespace CoreCms.Net.IServices
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsCategory entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsCategory entity);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoodsCategory> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
|
||||||
using CoreCms.Net.Model.ViewModels.DTO;
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
@@ -65,49 +65,29 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoodsComment>> QueryPageAsync(
|
Task<IPageList<CoreCmsGoodsComment>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsGoodsComment, bool>> predicate,
|
Expression<Func<CoreCmsGoodsComment, bool>> predicate,
|
||||||
Expression<Func<CoreCmsGoodsComment, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoodsComment, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 重写增删改查操作===========================================================
|
#region 重写增删改查操作===========================================================
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步插入方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> InsertAsync(CoreCmsGoodsComment entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写异步更新方法
|
/// 重写异步更新方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="entity"></param>
|
/// <param name="entity"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsComment entity);
|
Task<AdminUiCallBack> UpdateAsync(CoreCmsGoodsComment entity);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写异步更新方法
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="entity"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoodsComment> entity);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="ids"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ using System.Threading.Tasks;
|
|||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.FromBody;
|
using CoreCms.Net.Model.FromBody;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
@@ -111,10 +112,23 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="isPromotion"></param>
|
/// <param name="isPromotion"></param>
|
||||||
/// <param name="type"></param>
|
/// <param name="type"></param>
|
||||||
/// <param name="groupId"></param>
|
/// <param name="groupId"></param>
|
||||||
|
/// <param name="needSku"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<CoreCmsGoods> GetGoodsDetial(int id, int userId = 0, bool isPromotion = false, string type = "goods",
|
Task<CoreCmsGoods> GetGoodsDetail(int id, int userId = 0, bool isPromotion = false, string type = "goods",
|
||||||
int groupId = 0);
|
int groupId = 0, bool needSku = false);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 通过商品序列获取sku列表
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="good"></param>
|
||||||
|
/// <param name="products"></param>
|
||||||
|
/// <param name="userId"></param>
|
||||||
|
/// <param name="isPromotion"></param>
|
||||||
|
/// <param name="type"></param>
|
||||||
|
/// <param name="groupId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Task<CoreCmsProductsView> GetCoreCmsProductsView(CoreCmsGoods good, List<CoreCmsProducts> products,
|
||||||
|
int userId = 0, bool isPromotion = false, string type = "goods", int groupId = 0);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取随机推荐数据
|
/// 获取随机推荐数据
|
||||||
@@ -144,10 +158,10 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoods>> QueryPageAsync(
|
Task<IPageList<CoreCmsGoods>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsGoods, bool>> predicate,
|
Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -159,8 +173,8 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByType">排序顺序</param>
|
/// <param name="orderByType">排序顺序</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate, int take,
|
Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate, int take,
|
||||||
Expression<Func<CoreCmsGoods, object>> orderByPredicate, OrderByType orderByType, bool blUseNoLock = false);
|
Expression<Func<CoreCmsGoods, object>> orderByPredicate, OrderByType orderByType, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -170,9 +184,9 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderBy">排序</param>
|
/// <param name="orderBy">排序</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns>泛型实体集合</returns>
|
/// <returns>泛型实体集合</returns>
|
||||||
new Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
Task<List<CoreCmsGoods>> QueryListByClauseAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
string orderBy = "",
|
string orderBy = "",
|
||||||
bool blUseNoLock = false);
|
bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -184,13 +198,13 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="pageSize">分布大小</param>
|
/// <param name="pageSize">分布大小</param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsGoods>> QueryPageAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
Task<IPageList<CoreCmsGoods>> QueryPageAsync(Expression<Func<CoreCmsGoods, bool>> predicate,
|
||||||
string orderBy = "", int pageIndex = 1,
|
string orderBy = "", int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据条件查询代理池商品分页数据
|
/// 重写根据条件及自定义排序查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="predicate"></param>
|
/// <param name="predicate"></param>
|
||||||
/// <param name="orderBy"></param>
|
/// <param name="orderBy"></param>
|
||||||
@@ -216,6 +230,7 @@ namespace CoreCms.Net.IServices
|
|||||||
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsGoods, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取下拉商品数据
|
/// 获取下拉商品数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -240,28 +255,12 @@ namespace CoreCms.Net.IServices
|
|||||||
Task<AdminUiCallBack> UpdateAsync(FMGoodsInsertModel entity);
|
Task<AdminUiCallBack> UpdateAsync(FMGoodsInsertModel entity);
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoods> entity);
|
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID的数据
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="id"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID集合的数据(批量删除)
|
/// 重写删除指定ID集合的数据(批量删除)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ids"></param>
|
/// <param name="ids"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,29 +37,12 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<AdminUiCallBack> UpdateAsync(FmGoodsTypeSpecUpdate entity);
|
Task<AdminUiCallBack> UpdateAsync(FmGoodsTypeSpecUpdate entity);
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写异步更新方法方法
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="entity"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> UpdateAsync(List<CoreCmsGoodsTypeSpec> entity);
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写删除指定ID的数据
|
/// 重写删除指定ID的数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
Task<AdminUiCallBack> DeleteByIdAsync(object id);
|
||||||
|
|
||||||
|
|
||||||
///// <summary>
|
|
||||||
///// 重写删除指定ID集合的数据(批量删除)
|
|
||||||
///// </summary>
|
|
||||||
///// <param name="ids"></param>
|
|
||||||
///// <returns></returns>
|
|
||||||
//new Task<AdminUiCallBack> DeleteByIdsAsync(int[] ids);
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -44,7 +44,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="mobile"></param>
|
/// <param name="mobile"></param>
|
||||||
/// <param name="contentBody"></param>
|
/// <param name="contentBody"></param>
|
||||||
/// <param name="smsOptions"></param>
|
/// <param name="smsOptions"></param>
|
||||||
Task<string> SendSms(string mobile, string contentBody, SMSOptions smsOptions);
|
Task<string> SendSms(string mobile, string contentBody, SmsOptions smsOptions);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 校验短信验证码
|
/// 校验短信验证码
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace CoreCms.Net.IServices
|
|||||||
public interface ICoreCmsOrderServices : IBaseServices<CoreCmsOrder>
|
public interface ICoreCmsOrderServices : IBaseServices<CoreCmsOrder>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询团购秒杀下单数量
|
/// 查询团购秒杀下单数量(获取货品的秒杀团购数据)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="productId"></param>
|
/// <param name="productId"></param>
|
||||||
/// <param name="userId"></param>
|
/// <param name="userId"></param>
|
||||||
@@ -38,6 +38,18 @@ namespace CoreCms.Net.IServices
|
|||||||
int orderType = 0);
|
int orderType = 0);
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查询团购秒杀下单数量(获取商品序号的秒杀团购数据)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="goodId"></param>
|
||||||
|
/// <param name="userId"></param>
|
||||||
|
/// <param name="startTime"></param>
|
||||||
|
/// <param name="endTime"></param>
|
||||||
|
/// <param name="orderType"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public FindLimitOrderDto FindLimitOrderByGoodId(int goodId, int userId, DateTime? startTime,
|
||||||
|
DateTime? endTime, int orderType = 0);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取税号
|
/// 获取税号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -235,7 +247,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="remark"></param>
|
/// <param name="remark"></param>
|
||||||
/// <param name="source">来源/system(系统)/wxpost(微信消息推送)</param>
|
/// <param name="source">来源/system(系统)/wxpost(微信消息推送)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<WebApiCallBack> CompleteOrder(string orderId, int score = 0, string remark = "后台订单完成操作",string source="system");
|
Task<WebApiCallBack> CompleteOrder(string orderId, int score = 0, string remark = "后台订单完成操作", string source = "system");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 确认签收订单
|
/// 确认签收订单
|
||||||
@@ -309,9 +321,9 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsOrder>> QueryPageAsync(
|
Task<IPageList<CoreCmsOrder>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsOrder, bool>> predicate,
|
Expression<Func<CoreCmsOrder, bool>> predicate,
|
||||||
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsOrder, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,8 +40,6 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="ruleId"></param>
|
/// <param name="ruleId"></param>
|
||||||
/// <param name="goodsId"></param>
|
/// <param name="goodsId"></param>
|
||||||
/// <param name="status"></param>
|
/// <param name="status"></param>
|
||||||
/// <param name="page"></param>
|
|
||||||
/// <param name="limit"></param>
|
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<WebApiCallBack> GetRecord(int ruleId, int goodsId, int status = 0);
|
Task<WebApiCallBack> GetRecord(int ruleId, int goodsId, int status = 0);
|
||||||
|
|
||||||
@@ -59,7 +57,7 @@ namespace CoreCms.Net.IServices
|
|||||||
/// 自动取消到时间的团(定时任务用)
|
/// 自动取消到时间的团(定时任务用)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<WebApiCallBack> AutoCanclePinTuanOrder();
|
Task<WebApiCallBack> AutoCancelPinTuanOrder();
|
||||||
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
#region 重写根据条件查询分页数据
|
||||||
@@ -74,11 +72,11 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsPinTuanRecord>> QueryPageAsync(
|
Task<IPageList<CoreCmsPinTuanRecord>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsPinTuanRecord, bool>> predicate,
|
Expression<Func<CoreCmsPinTuanRecord, bool>> predicate,
|
||||||
Expression<Func<CoreCmsPinTuanRecord, object>> orderByExpression, OrderByType orderByType,
|
Expression<Func<CoreCmsPinTuanRecord, object>> orderByExpression, OrderByType orderByType,
|
||||||
int pageIndex = 1,
|
int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ using System.Linq.Expressions;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Basics;
|
using CoreCms.Net.Model.ViewModels.Basics;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
|
||||||
using CoreCms.Net.Model.ViewModels.DTO;
|
using CoreCms.Net.Model.ViewModels.DTO;
|
||||||
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
|
||||||
namespace CoreCms.Net.IServices
|
namespace CoreCms.Net.IServices
|
||||||
|
|||||||
@@ -109,8 +109,6 @@ namespace CoreCms.Net.IServices
|
|||||||
Task<List<CoreCmsCoupon>> QueryWithAboutAsync(Expression<Func<CoreCmsCoupon, bool>> predicate);
|
Task<List<CoreCmsCoupon>> QueryWithAboutAsync(Expression<Func<CoreCmsCoupon, bool>> predicate);
|
||||||
|
|
||||||
|
|
||||||
#region 重写根据条件查询分页数据
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重写根据条件查询分页数据
|
/// 重写根据条件查询分页数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -121,29 +119,22 @@ namespace CoreCms.Net.IServices
|
|||||||
/// <param name="orderByExpression"></param>
|
/// <param name="orderByExpression"></param>
|
||||||
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
/// <param name="blUseNoLock">是否使用WITH(NOLOCK)</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
new Task<IPageList<CoreCmsCoupon>> QueryPageAsync(
|
Task<IPageList<CoreCmsCoupon>> QueryPageAsync(
|
||||||
Expression<Func<CoreCmsCoupon, bool>> predicate,
|
Expression<Func<CoreCmsCoupon, bool>> predicate,
|
||||||
Expression<Func<CoreCmsCoupon, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
Expression<Func<CoreCmsCoupon, object>> orderByExpression, OrderByType orderByType, int pageIndex = 1,
|
||||||
int pageSize = 20, bool blUseNoLock = false);
|
int pageSize = 20, bool blUseNoLock = false);
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取 我的优惠券可用数量
|
/// 获取 我的优惠券可用数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userId">用户序列</param>
|
/// <param name="userId">用户序列</param>
|
||||||
Task<int> GetMyCouponCount(int userId);
|
Task<int> GetMyCouponCount(int userId);
|
||||||
|
|
||||||
|
|
||||||
#region 优惠券返还
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 优惠券返还
|
/// 优惠券返还
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="couponCodes">优惠券数组</param>
|
/// <param name="couponCodes">优惠券数组</param>
|
||||||
Task<WebApiCallBack> CancelReturnCoupon(string couponCodes);
|
Task<WebApiCallBack> CancelReturnCoupon(string couponCodes);
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user