From ee67c9e74f6af07d3ffc09bd122a139713054727 Mon Sep 17 00:00:00 2001
From: leiqunqing <2136261457@qq.com>
Date: 星期五, 26 十二月 2025 17:09:35 +0800
Subject: [PATCH] 完善PLC
---
代码管理/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs"
index 8e41532..dd8c472 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs"
@@ -16,5 +16,40 @@
}
public IRepository<Dt_BoxingDetail> Repository => BaseDal;
+
+
+ /// <summary>
+ /// 姣旇緝闆朵欢鏄惁榻愬叏
+ /// </summary>
+ /// <param name="boxingDetails"></param>
+ /// <param name="formulaDetails"></param>
+ /// <returns></returns>
+ public bool IsComponentCodesEqual(List<Dt_BoxingDetail> boxingDetails, List<Dt_FormulaDetail> formulaDetails)
+ {
+ if (boxingDetails == null || formulaDetails == null || boxingDetails.Count != formulaDetails.Count)
+ {
+ return false;
+ }
+
+ List<string> BoxingIdList = new List<string>();
+ List<string> FormulaIdList = new List<string>();
+
+ for (int i = 0; i < boxingDetails.Count; i++)
+ {
+ BoxingIdList.Add(boxingDetails[i].ComponentCode);
+ FormulaIdList.Add(formulaDetails[i].ComponentCode);
+ }
+ BoxingIdList.Sort();
+ FormulaIdList.Sort();
+
+ for (int i = 0; i < BoxingIdList.Count; i++)
+ {
+ if (BoxingIdList[i] != FormulaIdList[i])
+ {
+ return false;
+ }
+ }
+ return true;
+ }
}
}
--
Gitblit v1.9.3