|
|
|
@ -44,11 +44,19 @@ namespace BWP.B3ClientService.Rpcs.BillRpc.TrunksIousOutInStoreRecord_ |
|
|
|
} |
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static long SetWeight(long id,decimal weight) |
|
|
|
public static long SetWeight(long id,decimal weight,string biaoshi,string store) |
|
|
|
{ |
|
|
|
var query = new DQUpdateDom(typeof(TrunksIousOutInStoreRecord)); |
|
|
|
query.Columns.Add(new DQUpdateColumn("Weight", weight)); |
|
|
|
query.Columns.Add(new DQUpdateColumn("IsSubmited", true)); |
|
|
|
if (!string.IsNullOrWhiteSpace(biaoshi)) |
|
|
|
{ |
|
|
|
query.Columns.Add(new DQUpdateColumn("BiaoShi", biaoshi)); |
|
|
|
} |
|
|
|
if (!string.IsNullOrWhiteSpace(store)) |
|
|
|
{ |
|
|
|
query.Columns.Add(new DQUpdateColumn("Store", store)); |
|
|
|
} |
|
|
|
// query.Columns.Add(new DQUpdateColumn("LossWeight", ));
|
|
|
|
//todo 这里要算损耗
|
|
|
|
query.Where.Conditions.Add(DQCondition.EQ("ID", id)); |
|
|
|
|