一次合格品仓库,抛光操作记录,抛光仓库修改
This commit is contained in:
71
ZR.Service/mes/wms/WmGp12QualityStatisticsService.cs
Normal file
71
ZR.Service/mes/wms/WmGp12QualityStatisticsService.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using Infrastructure.Attribute;
|
||||
using SqlSugar;
|
||||
using ZR.Model;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
|
||||
namespace ZR.Service.mes.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// GP12质检记录表Service业务层处理
|
||||
/// </summary>
|
||||
[AppService(
|
||||
ServiceType = typeof(IWmGp12QualityStatisticsService),
|
||||
ServiceLifetime = LifeTime.Transient
|
||||
)]
|
||||
public class WmGp12QualityStatisticsService
|
||||
: BaseService<WmGp12QualityStatistics>,
|
||||
IWmGp12QualityStatisticsService
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询GP12质检记录表列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
public PagedInfo<WmGp12QualityStatisticsDto> GetList(WmGp12QualityStatisticsQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<WmGp12QualityStatistics>();
|
||||
|
||||
var response = Queryable()
|
||||
.Where(predicate.ToExpression())
|
||||
.ToPage<WmGp12QualityStatistics, WmGp12QualityStatisticsDto>(parm);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public WmGp12QualityStatistics GetInfo(string Id)
|
||||
{
|
||||
var response = Queryable().Where(x => x.Id == Id).First();
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加GP12质检记录表
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public WmGp12QualityStatistics AddWmGp12QualityStatistics(WmGp12QualityStatistics model)
|
||||
{
|
||||
return Context.Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改GP12质检记录表
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public int UpdateWmGp12QualityStatistics(WmGp12QualityStatistics model)
|
||||
{
|
||||
return Update(model, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user