啊鑫
2024-07-18 29de86cadafc88d13b51ab4d07aa2d12de6dcab0
MES.Service/service/BasicData/ShipmentNoticeManager.cs
@@ -1,7 +1,6 @@
using MES.Service.DB;
using MES.Service.Dto.webApi;
using MES.Service.Modes;
using SqlSugar;
namespace MES.Service.service.BasicData;
@@ -21,23 +20,19 @@
    private ShipmentNotice GetShipmentNotice(ErpShipmentNotice notice)
    {
        ShipmentNotice entity = new ShipmentNotice();
        var entity = new ShipmentNotice();
        entity.Creator = notice.FCreatorId;
        entity.DocId = notice.FBillNo;
        entity.Approver = notice.FApproverID;
        if (notice.FCreateDate != null)
        {
            entity.CreateDate = DateTime.ParseExact(notice.FCreateDate,
                "yyyy-MM-dd HH:mm:ss", null);
        }
        if (notice.FApproveDate != null)
        {
            entity.ApproveDate = DateTime.ParseExact(notice.FApproveDate,
                "yyyy-MM-dd HH:mm:ss", null);
        }
        
        entity.DeptCode = notice.FSaleDeptId;
        entity.CustCode = notice.FCustomerID;