修改VOLTA

dev
jianghaiqing 4 weeks ago
parent c8705f7966
commit 4697d4de68

@ -1041,19 +1041,30 @@ namespace DS.WMS.Core.Op.EDI
Shipping = formatEdiStr("txt", bill.MARKS);
ShippingList = formatlengthStr(Shipping, 35);
for (var i = 0; i < Math.Ceiling(Convert.ToDecimal(Convert.ToDecimal(ShippingList.Count) / Convert.ToDecimal(10))); i++)
//for (var i = 0; i < Math.Ceiling(Convert.ToDecimal(Convert.ToDecimal(ShippingList.Count) / Convert.ToDecimal(10))); i++)
//{
// var tempstr = "44:";
// for (var z = 0; z < 10; z++)
// {
// if ((i * 10 + z) < ShippingList.Count)
// tempstr = tempstr + ShippingList[i * 10 + z];
// if (z < 9) tempstr = tempstr + ":";
// }
// if (tempstr != "44:")
// {
// r.WriteLine(tempstr + "'");
// icount++;
// }
//}
if (ShippingList.Count != 0 && Shipping.Length > 0)
{
var tempstr = "44:";
for (var z = 0; z < 10; z++)
for (var i = 0; i < ShippingList.Count; i++)
{
if ((i * 10 + z) < ShippingList.Count)
tempstr = tempstr + ShippingList[i * 10 + z];
if (z < 9) tempstr = tempstr + ":";
}
if (tempstr != "44:")
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
{
r.WriteLine(tempstr + "'");
icount++;
r.WriteLine("44:" + ShippingList[i] + "'");
icount = icount + 1;
}
}
}
@ -1069,7 +1080,7 @@ namespace DS.WMS.Core.Op.EDI
{
if (!string.IsNullOrWhiteSpace(ShippingList[i]))
{
r.WriteLine("47:" + ShippingList[i]);
r.WriteLine("47:" + ShippingList[i]+ "'");
icount = icount + 1;
//if (m <= 5)

@ -140,10 +140,12 @@ namespace DS.WMS.Core.Op.Method
string feeUserId = webAccountConfig.AppKey;
string feeUserKey = webAccountConfig.AppSecret;
var c = tenantDb.Queryable<DJYChargeFee>().Filter(null, true).Count(x => x.Id == id);
string feeType = $"{(int)model.BSType}_{(int)model.SendType}";
var c = tenantDb.Queryable<DJYChargeFee>().Filter(null, true).Count(x => x.Id == id && x.FeeType == feeType);
if (c > 0)
{
Logger.Log(NLog.LogLevel.Info, $"{batchId}-已存在扣费记录id{id},提单号:{orderInfo.MBLNO}");
Logger.Log(NLog.LogLevel.Info, $"{batchId}-已存在扣费记录id{id},提单号:{orderInfo.MBLNO} feeType={feeType}");
continue;
}

Loading…
Cancel
Save