This commit is contained in:
zpc 2025-09-22 21:01:27 +08:00
parent c07aacc08e
commit f84d8cf3c9

View File

@ -386,6 +386,34 @@ namespace ZR.Admin.WebApi.Controllers.Business
port.Remarks = "";
port.OpticalCableOffRemarks = "";
}
else
{
if (string.IsNullOrEmpty(parm.EquipmentModel))
{
var t = parm.Remarks.Split(",");
if (t.Length > 0 && t.Length > 2)
{
parm.EquipmentModel = t[1].Trim();
}
}
if (string.IsNullOrEmpty(parm.BusinessType))
{
var t = parm.Remarks.Split(" ");
if (t.Length > 0 && t.Length > 2)
{
parm.EquipmentModel = t[2].Trim();
}
}
if (string.IsNullOrEmpty(parm.BusinessType) && parm.Remarks.Length > 0)
{
parm.BusinessType = parm.Remarks.Substring(0, 1);
}
}
port.EquipmentModel = parm.EquipmentModel;
port.BusinessType = parm.BusinessType;
port.HistoryRemarks = ToHistoryString(parm.HistoryFault);