|
|
@ -70,11 +70,11 @@ namespace BWP.B3ClientService.Tasks.UpdateLoad |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static void ClearDetails(List<long> b3IDs, IDmoSession session) |
|
|
|
|
|
|
|
|
static void DeleteUnSyncDeleteData(IDmoSession session) |
|
|
{ |
|
|
{ |
|
|
var delete = new DQDeleteDom(typeof(OrderDetail)); |
|
|
var delete = new DQDeleteDom(typeof(OrderDetail)); |
|
|
delete.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("B3ID"), b3IDs.Select(x => DQExpression.Value(x)).ToArray())); |
|
|
|
|
|
|
|
|
delete.Where.Conditions.Add(DQCondition.And(DQCondition.IsNull(DQExpression.Field("B3ID")), DQCondition.EQ("DeleteState", true))); |
|
|
|
|
|
session.ExecuteNonQuery(delete); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static IEnumerable<OrderDetail> GetAllNeedSyncBill() |
|
|
private static IEnumerable<OrderDetail> GetAllNeedSyncBill() |
|
|
@ -84,11 +84,10 @@ namespace BWP.B3ClientService.Tasks.UpdateLoad |
|
|
return query.EExecuteList().Cast<OrderDetail>(); |
|
|
return query.EExecuteList().Cast<OrderDetail>(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void DeleteUnSyncDeleteData(IDmoSession session) |
|
|
|
|
|
|
|
|
private static void ClearDetails(List<long> b3IDs, IDmoSession session) |
|
|
{ |
|
|
{ |
|
|
var delete = new DQDeleteDom(typeof(OrderDetail)); |
|
|
var delete = new DQDeleteDom(typeof(OrderDetail)); |
|
|
delete.Where.Conditions.Add(DQCondition.And(DQCondition.IsNull(DQExpression.Field("B3ID")), DQCondition.EQ("DeleteState", true))); |
|
|
|
|
|
session.ExecuteNonQuery(delete); |
|
|
|
|
|
|
|
|
delete.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("B3ID"), b3IDs.Select(x => DQExpression.Value(x)).ToArray())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void Update(CTuple<long, long, long> item, IDmoSession session) |
|
|
static void Update(CTuple<long, long, long> item, IDmoSession session) |
|
|
|