采集项更改

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
+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)