|
|
|
@ -274,11 +274,24 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
|
//if (secondSplit)
|
|
|
|
// throw new Exception("已进行烫毛计数,不能修改");
|
|
|
|
UpdateOrderDetailPartial(session, id, "PlanNumber", number); |
|
|
|
UpdateSecondOrder(id, session); |
|
|
|
session.Commit(); |
|
|
|
} |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
private static void UpdateSecondOrder(long id, IDmoSessionWithTransaction session) |
|
|
|
{ |
|
|
|
var update = new DQUpdateDom(typeof(SecondOrder)); |
|
|
|
update.Columns.Add(new DQUpdateColumn("Sync", false)); |
|
|
|
update.Columns.Add(new DQUpdateColumn("ModifyTime", DateTime.Now)); |
|
|
|
update.Columns.Add(new DQUpdateColumn("RowVersion", DQExpression.Add(DQExpression.Field("RowVersion"), DQExpression.Value(1)))); |
|
|
|
update.Where.Conditions.Add(DQCondition.EQ("OrderDetail_ID", id)); |
|
|
|
session.ExecuteNonQuery(update); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static int Delete(long id) |
|
|
|
{ |
|
|
|
|