29 lines
748 B
C#
29 lines
748 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using WX.CRM.Common.Layui;
|
|
using WX.CRM.IBLL.Wx;
|
|
using WX.CRM.Model.DTO;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace WX.CRM.BLL.Wx
|
|
{
|
|
public class WX_SZZYORDERREFUND_BL : DbContextRepository<WX_SZZYORDERREFUND>, IWX_SZZYORDERREFUND
|
|
{
|
|
|
|
public bool RefundCancel(decimal id, DateTime time)
|
|
{
|
|
using (var db = new crmContext())
|
|
{
|
|
var entry = db.WX_SZZYORDERREFUND.FirstOrDefault(m => m.ID == id);
|
|
entry.AUDITSTATUS = 2;
|
|
entry.CUSTOMER_CANCEL_TIME = time;
|
|
db.SaveChanges();
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|