From 8aa5f0e094e6ff51aa7c47d5b4e8331a16eb09ff Mon Sep 17 00:00:00 2001
From: leiqunqing <zhengqifeng@hnkhzn.com>
Date: 星期五, 06 二月 2026 15:19:05 +0800
Subject: [PATCH] 提交ddl
---
代码管理/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs | 64 +++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 1 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
index 5250084..69e0a57 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
@@ -1,8 +1,10 @@
-锘縰sing System;
+锘縰sing SqlSugar.Extensions;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_Model.Models;
@@ -16,5 +18,65 @@
}
public IRepository<Dt_Formula> Repository => BaseDal;
+
+ public override WebResponseContent AddData(SaveModel saveModel)
+ {
+ return base.AddData(saveModel);
+ }
+
+ //public override WebResponseContent UpdateData(SaveModel saveModel)
+ //{
+ // Dt_Formula dt_Formula = new Dt_Formula()
+ // {
+ // Id = saveModel.MainData["id"].ObjToInt(),
+ // ProductCode = saveModel.MainData["productCode"].ToString(),
+ // ProductName = saveModel.MainData["productName"].ToString(),
+ // ProductLength = decimal.Parse(saveModel.MainData["productLength"].ToString()),
+ // ProductWidth = decimal.Parse(saveModel.MainData["productWidth"].ToString()),
+ // ProductHeight = decimal.Parse(saveModel.MainData["productHeight"].ToString()),
+ // ScrewDownsetDistance = decimal.Parse(saveModel.MainData["screwDownsetDistance"].ToString()),
+ // ScrewTorqueOutput = decimal.Parse(saveModel.MainData["screwTorqueOutput"].ToString()),
+ // DintAutoScrewOn = saveModel.MainData["dintAutoScrewOn"].ObjToInt(),
+ // P0P1Width = decimal.Parse(saveModel.MainData["p0P1Width"].ToString()),
+ // P0P2Width = decimal.Parse(saveModel.MainData["p0P2Width"].ToString()),
+ // P0P3Width = decimal.Parse(saveModel.MainData["p0P3Width"].ToString()),
+ // P1P3Height = decimal.Parse(saveModel.MainData["p1P3Height"].ToString()),
+ // P2P3Height = decimal.Parse(saveModel.MainData["p2P3Height"].ToString()),
+
+ // //ScrewTorque = float.Parse(saveModel.MainData["ScrewTorque"].ToString()),
+ // //UpdateBy = saveModel.UpdateBy,
+ // //UpdateTime = DateTime.Now
+ // };
+ // return UpdateData(dt_Formula);
+ // //return base.UpdateData(saveModel);
+ //}
+
+ //public override WebResponseContent UpdateData(Dt_Formula entity)
+ //{
+ // return base.UpdateData(entity);
+ //}
+
+
+ /// <summary>
+ /// 鑾峰彇绔欏彴鎴愬搧
+ /// </summary>
+ /// <returns></returns>
+ public WebResponseContent getEndProductList()
+ {
+ try
+ {
+ List<Dt_Formula> dt_Formulas = BaseDal.QueryData(x => 1 == 1);
+ var resultList = dt_Formulas.Select(item => new
+ {
+ key = item.ProductCode,
+ value = item.ProductCode
+ }).ToList();
+ return WebResponseContent.Instance.OK("鏌ヨ绔欏彴鎴愬搧鎴愬姛", resultList);
+ }
+ catch (Exception ex)
+ {
+ return WebResponseContent.Instance.Error($"鏌ヨ绔欏彴鎴愬搧澶辫触锛歿ex.Message}");
+ }
+ }
}
}
--
Gitblit v1.9.3