This commit is contained in:
zpc 2025-09-26 17:57:24 +08:00
parent b53ae616ff
commit 4895fe13b9
2 changed files with 8 additions and 2 deletions

View File

@ -79,7 +79,12 @@ namespace CoreCms.Net.Repository
oldModel.join_time = entity.join_time; oldModel.join_time = entity.join_time;
oldModel.quit_time = entity.quit_time; oldModel.quit_time = entity.quit_time;
oldModel.status = entity.status; oldModel.status = entity.status;
oldModel.is_refund = entity.is_refund;
oldModel.is_evaluation = entity.is_evaluation;
oldModel.important_data = entity.important_data;
oldModel.paymentId = entity.paymentId;
oldModel.is_arrive = entity.is_arrive;
oldModel.remarks = entity.remarks;
//事物处理过程结束 //事物处理过程结束
var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync(); var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync();
jm.code = bl ? 0 : 1; jm.code = bl ? 0 : 1;

View File

@ -141,9 +141,10 @@ namespace CoreCms.Net.Services
{ {
throw new Exception("未找到订单记录"); throw new Exception("未找到订单记录");
} }
if (model.status == 1) if (model.status == 0 && model.is_refund == 1)
{ {
model.is_refund = 2; model.is_refund = 2;
//(oldModel).ExecuteCommandHasChangeAsync();
await _dal.UpdateAsync(model); await _dal.UpdateAsync(model);
} }
else else