mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
接口【完善】完善接口端商家转账回调通知。
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2025/7/28 23:08:04
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2025/8/1 23:54:59
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
@@ -29,7 +29,6 @@ namespace CoreCms.Net.Repository
|
||||
public class CoreCmsUserTocashWeChatNotifyRepository : BaseRepository<CoreCmsUserTocashWeChatNotify>, ICoreCmsUserTocashWeChatNotifyRepository
|
||||
{
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
|
||||
public CoreCmsUserTocashWeChatNotifyRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
|
||||
{
|
||||
_unitOfWork = unitOfWork;
|
||||
@@ -37,6 +36,18 @@ namespace CoreCms.Net.Repository
|
||||
|
||||
#region 实现重写增删改查操作==========================================================
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 重写异步插入方法(返回序列)
|
||||
/// </summary>
|
||||
/// <param name="entity">实体数据</param>
|
||||
/// <returns></returns>
|
||||
public async Task<int> ExecuteReturnIdentityAsync(CoreCmsUserTocashWeChatNotify entity)
|
||||
{
|
||||
var id = await DbClient.Insertable(entity).ExecuteReturnIdentityAsync();
|
||||
return id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写异步插入方法
|
||||
/// </summary>
|
||||
@@ -69,7 +80,7 @@ namespace CoreCms.Net.Repository
|
||||
return jm;
|
||||
}
|
||||
//事物处理过程开始
|
||||
oldModel.id = entity.id;
|
||||
//oldModel.id = entity.id;
|
||||
oldModel.callBackId = entity.callBackId;
|
||||
oldModel.create_time = entity.create_time;
|
||||
oldModel.resource_type = entity.resource_type;
|
||||
@@ -77,6 +88,11 @@ namespace CoreCms.Net.Repository
|
||||
oldModel.summary = entity.summary;
|
||||
oldModel.resource = entity.resource;
|
||||
oldModel.createTime = entity.createTime;
|
||||
oldModel.wechatpaySerial = entity.wechatpaySerial;
|
||||
oldModel.wechatpaySignature = entity.wechatpaySignature;
|
||||
oldModel.wechatpayTimestamp = entity.wechatpayTimestamp;
|
||||
oldModel.wechatpayNonce = entity.wechatpayNonce;
|
||||
oldModel.decryptedData = entity.decryptedData;
|
||||
|
||||
//事物处理过程结束
|
||||
var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync();
|
||||
@@ -134,10 +150,9 @@ namespace CoreCms.Net.Repository
|
||||
return jm;
|
||||
}
|
||||
|
||||
#endregion 实现重写增删改查操作==========================================================
|
||||
#endregion
|
||||
|
||||
#region 重写根据条件查询分页数据
|
||||
|
||||
/// <summary>
|
||||
/// 重写根据条件查询分页数据
|
||||
/// </summary>
|
||||
@@ -168,6 +183,12 @@ namespace CoreCms.Net.Repository
|
||||
summary = p.summary,
|
||||
resource = p.resource,
|
||||
createTime = p.createTime,
|
||||
wechatpaySerial = p.wechatpaySerial,
|
||||
wechatpaySignature = p.wechatpaySignature,
|
||||
wechatpayTimestamp = p.wechatpayTimestamp,
|
||||
wechatpayNonce = p.wechatpayNonce,
|
||||
decryptedData = p.decryptedData,
|
||||
|
||||
}).With(SqlWith.NoLock).ToPageListAsync(pageIndex, pageSize, totalCount);
|
||||
}
|
||||
else
|
||||
@@ -184,12 +205,19 @@ namespace CoreCms.Net.Repository
|
||||
summary = p.summary,
|
||||
resource = p.resource,
|
||||
createTime = p.createTime,
|
||||
wechatpaySerial = p.wechatpaySerial,
|
||||
wechatpaySignature = p.wechatpaySignature,
|
||||
wechatpayTimestamp = p.wechatpayTimestamp,
|
||||
wechatpayNonce = p.wechatpayNonce,
|
||||
decryptedData = p.decryptedData,
|
||||
|
||||
}).ToPageListAsync(pageIndex, pageSize, totalCount);
|
||||
}
|
||||
var list = new PageList<CoreCmsUserTocashWeChatNotify>(page, pageIndex, pageSize, totalCount);
|
||||
return list;
|
||||
}
|
||||
|
||||
#endregion 重写根据条件查询分页数据
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user