采集项更改

This commit is contained in:
liming 蔡
2026-08-14 13:38:34 +08:00
parent 8e9656a2b5
commit c89efa6461
10 changed files with 218 additions and 250 deletions
+2 -2
View File
@@ -393,12 +393,12 @@ namespace JY.DAL
foreach (var propName in ConstValue.CCD_FDict.Keys)
{
sb.Append($",[{propName}] '{ConstValue.CCD_SDict[propName]}'");
sb.Append($",[{propName}] '{ConstValue.CCD_FDict[propName]}'");
}
foreach (var propName in ConstValue.CCD_IDict.Keys)
{
sb.Append($",[{propName}] '{ConstValue.CCD_SDict[propName]}'");
sb.Append($",[{propName}] '{ConstValue.CCD_IDict[propName]}'");
}
string formatSql = sb.ToString();
+4 -1
View File
@@ -1,5 +1,7 @@
using JY.DAL.Repository;
using JY.Model;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
namespace JY.DAL.Service
@@ -19,7 +21,8 @@ namespace JY.DAL.Service
public List<FeedingData> GetFeedingData(string barCode)
{
return _repository.GetList(x => x.BarCode == barCode);
return _repository.Db.Queryable<FeedingData>().Where(x => x.BarCode == barCode)
.OrderByDescending(x => x.CreateTime).ToList();
}
public int AddFeedingData(FeedingData data)