快乐的昕的电脑
5 天以前 cc0c486c83e857c6ee3943ebc5a830c941faa411
MES.Service/service/BasicData/MesCustomerManager.cs
@@ -173,6 +173,20 @@
            Fumbrella = string.IsNullOrEmpty(customer.FCreateOrgId) ? "1" : customer.FCreateOrgId,
        };
        //销售员编码转ID,Fseller = customer.Fseller,
        var entityFseller = Db.Queryable<MesStaff>()
        .Where(x => x.StaffNo == customer.Fseller)
        .Select(x => x.Id.ToString())
        .First();
        if (!string.IsNullOrWhiteSpace(entityFseller))
        {
            entity.Fseller = entityFseller;
        }
        else
        {
            entity.Fseller = "0";
        }
        // ERP: 0=未禁用, 1=禁用
        // MES: A=未禁用, B=禁用
        if (customer.FForbidStatus.IsNullOrEmpty())