优化售后单命名规则 产品入库时删除原商品详情内容节约空间

This commit is contained in:
wule committed 2026-06-27 13:37:38 +08:00
1 parent 257262517b
commit 381332b7c8
19 files changed
+636 -49

No files matched your search

@@ -23,7 +23,7 @@ namespace TemuKJD.WXForms.TalkForms
public partial class OtherBuyerOrderListForm : BaseForms.BaseGeneralForm
{
public static OtherBuyerOrderListForm Instance { get; set; } = null;
ConcurrentList<PddBuyerOrderInfoLite> lstOtherBuyerOrderInfoLite { get; set; } = new ConcurrentList<PddBuyerOrderInfoLite>();
ConcurrentList<PddBuyerOrderLiteInfo> lstOtherBuyerOrderInfoLite { get; set; } = new ConcurrentList<PddBuyerOrderLiteInfo>();
bool isInitOrder = false;
public OtherBuyerOrderListForm()
@@ -34,9 +34,9 @@ namespace TemuKJD.WXForms.TalkForms
private void OtherBuyerOrderListForm_Load(object sender, EventArgs e)
{
lstOtherBuyerOrderInfoLite = NaiBa.Util.Helper.ConfigHelper.LoadConfig<ConcurrentList<PddBuyerOrderInfoLite>>("other_buyer_order_list");
lstOtherBuyerOrderInfoLite = NaiBa.Util.Helper.ConfigHelper.LoadConfig<ConcurrentList<PddBuyerOrderLiteInfo>>("other_buyer_order_list");
if (lstOtherBuyerOrderInfoLite == null)
lstOtherBuyerOrderInfoLite = new ConcurrentList<PddBuyerOrderInfoLite>();
lstOtherBuyerOrderInfoLite = new ConcurrentList<PddBuyerOrderLiteInfo>();
lstOtherBuyerOrderInfoLite.RemoveAll(o => o.order_time < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddMonths(-1)));
foreach (var buyer in lstOtherBuyerOrderInfoLite.Select(o => o.buyerName).Where(o => !o.IsNullOrEmpty()).Distinct().ToList())
@@ -65,7 +65,7 @@ namespace TemuKJD.WXForms.TalkForms
//});
}
void ShowOrder(PddBuyerOrderInfoLite order)
void ShowOrder(PddBuyerOrderLiteInfo order)
{
if (order == null)
return;
@@ -162,7 +162,7 @@ namespace TemuKJD.WXForms.TalkForms
private void btnSendOrder_Click(object sender, EventArgs e)
{
PddBuyerOrderInfoLite order = new PddBuyerOrderInfoLite();
PddBuyerOrderLiteInfo order = new PddBuyerOrderLiteInfo();
order.buyerName = cmbBuyerName.Text.Trim();
order.order_amount = (txtOrderAmount.Text.Trim().ParseToDecimal() * 100).ParseToInt();
order.order_sn = txtBuyerOrderSn.Text.Trim();
@@ -198,13 +198,13 @@ namespace TemuKJD.WXForms.TalkForms
SendOrderE57(order, true);
}
ConcurrentList<PddBuyerOrderInfoLite> tempWaitOrderLst = new ConcurrentList<PddBuyerOrderInfoLite>();
ConcurrentList<PddBuyerOrderLiteInfo> tempWaitOrderLst = new ConcurrentList<PddBuyerOrderLiteInfo>();
/// <summary>
/// 调用e57接口更新web端订单数据信息
/// </summary>
/// <param name="order"></param>
/// <param name="resetSendStatus">手动强制重置状态,一定重新发送</param>
public void SendOrderE57(PddBuyerOrderInfoLite order, bool resetSendStatus = false)
public void SendOrderE57(PddBuyerOrderLiteInfo order, bool resetSendStatus = false)
{
if (tempWaitOrderLst.Any(o => o.order_sn == order.order_sn))
return;