箱信息去除末尾空格bug

master
zhangxiaofeng 5 months ago
parent 7ce87e3a3b
commit a9fb0776fd

@ -488,10 +488,10 @@ namespace djy.Service.AFR
house.CntrList.ForEach(cntr => house.CntrList.ForEach(cntr =>
{ {
cntr.LastUpdate = nowTime; cntr.LastUpdate = nowTime;
StringTrimmer.TrimStringProperties(cntr);
if (string.IsNullOrEmpty(cntr.GID)) if (string.IsNullOrEmpty(cntr.GID))
{ {
StringTrimmer.TrimStringProperties(cntr);
cntr.GID = Guid.NewGuid().ToString(); cntr.GID = Guid.NewGuid().ToString();
cntr.PID = house.GID; cntr.PID = house.GID;
cntr.CreateTime = nowTime; cntr.CreateTime = nowTime;

Loading…
Cancel
Save