using System.Collections.Generic;
using Infrastructure.Attribute;
using SqlSugar;
using ZR.Model.mes.md;
using ZR.Model.mes.md.DTO;
using ZR.Model.System;
using ZR.Service.mes.md.IService;
using ZR.Service.System.IService;
using NotImplementedException = System.NotImplementedException;
namespace ZR.Service.mes.md;
///
/// 文件管理
///
[AppService(ServiceType = typeof(IUnitService), ServiceLifetime = LifeTime.Transient)]
public class UnitService : BaseService, IUnitService
{
///
/// 获取列表
///
///
///
///
public UnitPageDTO GetList(int pageNum,int pageSize)
{
int totalNum = 0;
List data = Context.Queryable().ToPageList(pageNum, pageSize, ref totalNum);
UnitPageDTO unitPageDto = new UnitPageDTO();
unitPageDto.list = data;
unitPageDto.Total = totalNum;
return unitPageDto ;
}
}