231
This commit is contained in:
parent
b53ae616ff
commit
4895fe13b9
|
|
@ -79,7 +79,12 @@ namespace CoreCms.Net.Repository
|
|||
oldModel.join_time = entity.join_time;
|
||||
oldModel.quit_time = entity.quit_time;
|
||||
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();
|
||||
jm.code = bl ? 0 : 1;
|
||||
|
|
|
|||
|
|
@ -141,9 +141,10 @@ namespace CoreCms.Net.Services
|
|||
{
|
||||
throw new Exception("未找到订单记录");
|
||||
}
|
||||
if (model.status == 1)
|
||||
if (model.status == 0 && model.is_refund == 1)
|
||||
{
|
||||
model.is_refund = 2;
|
||||
//(oldModel).ExecuteCommandHasChangeAsync();
|
||||
await _dal.UpdateAsync(model);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user