采集项更改
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user