26 lines
683 B
C#
26 lines
683 B
C#
using DM_Weight.Models;
|
|
using DM_Weight.util;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DM_Weight.Services
|
|
{
|
|
public class CommonService
|
|
{
|
|
//获取抽屉数量
|
|
//public bool FindDrawerCount()
|
|
//{
|
|
//int count = SqlSugarHelper.Db.Queryable<ChannelList>().Where(cs => cs.DrawerType != 3)
|
|
// .Where(cs => cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM1")).GroupBy(cs => cs.DrawerNo).Select(cs => SqlFunc.AggregateCount(cs.DrawerNo)).Count();
|
|
|
|
|
|
|
|
//return count == 16;
|
|
//}
|
|
}
|
|
}
|