From 86f5db51a5fd895dcae671d01b28cd0d4948af0e Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 29 十二月 2025 11:12:01 +0800
Subject: [PATCH] 1
---
代码管理/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