安灯报警设置
This commit is contained in:
parent
07103094d3
commit
cd60096fe9
@ -0,0 +1,109 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
using ZR.Service.mes.andon.Iservice;
|
||||
|
||||
//创建时间:2025-12-23
|
||||
namespace ZR.Admin.WebApi.Controllers.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
[Route("mes/AndonAlarmAreaLightDic")]
|
||||
[AllowAnonymous]
|
||||
public class AndonAlarmAreaLightDicController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典接口
|
||||
/// </summary>
|
||||
private readonly IAndonAlarmAreaLightDicService _AndonAlarmAreaLightDicService;
|
||||
|
||||
public AndonAlarmAreaLightDicController(IAndonAlarmAreaLightDicService AndonAlarmAreaLightDicService)
|
||||
{
|
||||
_AndonAlarmAreaLightDicService = AndonAlarmAreaLightDicService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询安灯警报区三色灯IP字典列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmarealightdic:list")]
|
||||
public IActionResult QueryAndonAlarmAreaLightDic([FromQuery] AndonAlarmAreaLightDicQueryDto parm)
|
||||
{
|
||||
var response = _AndonAlarmAreaLightDicService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询安灯警报区三色灯IP字典详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmarealightdic:query")]
|
||||
public IActionResult GetAndonAlarmAreaLightDic(int Id)
|
||||
{
|
||||
var response = _AndonAlarmAreaLightDicService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<AndonAlarmAreaLightDic>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmarealightdic:add")]
|
||||
[Log(Title = "安灯警报区三色灯IP字典", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddAndonAlarmAreaLightDic([FromBody] AndonAlarmAreaLightDicDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<AndonAlarmAreaLightDic>().ToCreate(HttpContext);
|
||||
|
||||
var response = _AndonAlarmAreaLightDicService.AddAndonAlarmAreaLightDic(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmarealightdic:edit")]
|
||||
[Log(Title = "安灯警报区三色灯IP字典", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateAndonAlarmAreaLightDic([FromBody] AndonAlarmAreaLightDicDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<AndonAlarmAreaLightDic>().ToUpdate(HttpContext);
|
||||
var response = _AndonAlarmAreaLightDicService.UpdateAndonAlarmAreaLightDic(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmarealightdic:delete")]
|
||||
[Log(Title = "安灯警报区三色灯IP字典", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteAndonAlarmAreaLightDic(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _AndonAlarmAreaLightDicService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
using ZR.Service.mes.andon.Iservice;
|
||||
|
||||
//创建时间:2025-12-23
|
||||
namespace ZR.Admin.WebApi.Controllers.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
[Route("mes/AndonAlarmReceiverWatchDic")]
|
||||
[AllowAnonymous]
|
||||
|
||||
public class AndonAlarmReceiverWatchDicController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典接口
|
||||
/// </summary>
|
||||
private readonly IAndonAlarmReceiverWatchDicService _AndonAlarmReceiverWatchDicService;
|
||||
|
||||
public AndonAlarmReceiverWatchDicController(IAndonAlarmReceiverWatchDicService AndonAlarmReceiverWatchDicService)
|
||||
{
|
||||
_AndonAlarmReceiverWatchDicService = AndonAlarmReceiverWatchDicService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询安灯报警联系人手表IP字典列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmreceiverwatchdic:list")]
|
||||
public IActionResult QueryAndonAlarmReceiverWatchDic([FromQuery] AndonAlarmReceiverWatchDicQueryDto parm)
|
||||
{
|
||||
var response = _AndonAlarmReceiverWatchDicService.GetList(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询安灯报警联系人手表IP字典详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmreceiverwatchdic:query")]
|
||||
public IActionResult GetAndonAlarmReceiverWatchDic(int Id)
|
||||
{
|
||||
var response = _AndonAlarmReceiverWatchDicService.GetInfo(Id);
|
||||
|
||||
var info = response.Adapt<AndonAlarmReceiverWatchDic>();
|
||||
return SUCCESS(info);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmreceiverwatchdic:add")]
|
||||
[Log(Title = "安灯报警联系人手表IP字典", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddAndonAlarmReceiverWatchDic([FromBody] AndonAlarmReceiverWatchDicDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<AndonAlarmReceiverWatchDic>().ToCreate(HttpContext);
|
||||
|
||||
var response = _AndonAlarmReceiverWatchDicService.AddAndonAlarmReceiverWatchDic(modal);
|
||||
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmreceiverwatchdic:edit")]
|
||||
[Log(Title = "安灯报警联系人手表IP字典", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateAndonAlarmReceiverWatchDic([FromBody] AndonAlarmReceiverWatchDicDto parm)
|
||||
{
|
||||
var modal = parm.Adapt<AndonAlarmReceiverWatchDic>().ToUpdate(HttpContext);
|
||||
var response = _AndonAlarmReceiverWatchDicService.UpdateAndonAlarmReceiverWatchDic(modal);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{ids}")]
|
||||
[ActionPermissionFilter(Permission = "business:andonalarmreceiverwatchdic:delete")]
|
||||
[Log(Title = "安灯报警联系人手表IP字典", BusinessType = BusinessType.DELETE)]
|
||||
public IActionResult DeleteAndonAlarmReceiverWatchDic(string ids)
|
||||
{
|
||||
int[] idsArr = Tools.SpitIntArrary(ids);
|
||||
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
|
||||
|
||||
var response = _AndonAlarmReceiverWatchDicService.Delete(idsArr);
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
56
ZR.Model/MES/andon/AndonAlarmAreaLightDic.cs
Normal file
56
ZR.Model/MES/andon/AndonAlarmAreaLightDic.cs
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
namespace ZR.Model.MES.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
[SugarTable("andon_alarm_area_light_dic")]
|
||||
public class AndonAlarmAreaLightDic
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区域
|
||||
/// </summary>
|
||||
public string Area1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 区域下设备
|
||||
/// </summary>
|
||||
public string Area2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 三色灯ip
|
||||
/// </summary>
|
||||
public string Lightip { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_by")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_time")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_by")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_time")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
56
ZR.Model/MES/andon/AndonAlarmReceiverWatchDic.cs
Normal file
56
ZR.Model/MES/andon/AndonAlarmReceiverWatchDic.cs
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
namespace ZR.Model.MES.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
[SugarTable("andon_alarm_receiver_watch_dic")]
|
||||
public class AndonAlarmReceiverWatchDic
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警联系人ID
|
||||
/// </summary>
|
||||
public string Receiverid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警联系人名称
|
||||
/// </summary>
|
||||
public string Receivername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手表ip
|
||||
/// </summary>
|
||||
public string Watchip { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_by")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_time")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_by")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_time")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
37
ZR.Model/MES/andon/Dto/AndonAlarmAreaLightDicDto.cs
Normal file
37
ZR.Model/MES/andon/Dto/AndonAlarmAreaLightDicDto.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.MES.andon.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典查询对象
|
||||
/// </summary>
|
||||
public class AndonAlarmAreaLightDicQueryDto : PagerInfo
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典输入输出对象
|
||||
/// </summary>
|
||||
public class AndonAlarmAreaLightDicDto
|
||||
{
|
||||
[Required(ErrorMessage = "主键不能为空")]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Area1 { get; set; }
|
||||
|
||||
public string Area2 { get; set; }
|
||||
|
||||
public string Lightip { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
37
ZR.Model/MES/andon/Dto/AndonAlarmReceiverWatchDicDto.cs
Normal file
37
ZR.Model/MES/andon/Dto/AndonAlarmReceiverWatchDicDto.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.MES.andon.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典查询对象
|
||||
/// </summary>
|
||||
public class AndonAlarmReceiverWatchDicQueryDto : PagerInfo
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典输入输出对象
|
||||
/// </summary>
|
||||
public class AndonAlarmReceiverWatchDicDto
|
||||
{
|
||||
[Required(ErrorMessage = "主键不能为空")]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Receiverid { get; set; }
|
||||
|
||||
public string Receivername { get; set; }
|
||||
|
||||
public string Watchip { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
81
ZR.Service/mes/andon/AndonAlarmAreaLightDicService.cs
Normal file
81
ZR.Service/mes/andon/AndonAlarmAreaLightDicService.cs
Normal file
@ -0,0 +1,81 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Infrastructure.Model;
|
||||
using SqlSugar;
|
||||
using ZR.Model;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.mes.andon.Iservice;
|
||||
|
||||
namespace ZR.Service.mes.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典Service业务层处理
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IAndonAlarmAreaLightDicService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class AndonAlarmAreaLightDicService : BaseService<AndonAlarmAreaLightDic>, IAndonAlarmAreaLightDicService
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询安灯警报区三色灯IP字典列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
public PagedInfo<AndonAlarmAreaLightDicDto> GetList(AndonAlarmAreaLightDicQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<AndonAlarmAreaLightDic>();
|
||||
|
||||
var response = Queryable()
|
||||
.Where(predicate.ToExpression())
|
||||
.ToPage<AndonAlarmAreaLightDic, AndonAlarmAreaLightDicDto>(parm);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public AndonAlarmAreaLightDic GetInfo(int Id)
|
||||
{
|
||||
var response = Queryable()
|
||||
.Where(x => x.Id == Id)
|
||||
.First();
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public AndonAlarmAreaLightDic AddAndonAlarmAreaLightDic(AndonAlarmAreaLightDic model)
|
||||
{
|
||||
return Context.Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改安灯警报区三色灯IP字典
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public int UpdateAndonAlarmAreaLightDic(AndonAlarmAreaLightDic model)
|
||||
{
|
||||
//var response = Update(w => w.Id == model.Id, it => new AndonAlarmAreaLightDic()
|
||||
//{
|
||||
// Area1 = model.Area1,
|
||||
// Area2 = model.Area2,
|
||||
// Lightip = model.Lightip,
|
||||
// CreatedBy = model.CreatedBy,
|
||||
// CreatedTime = model.CreatedTime,
|
||||
// UpdatedBy = model.UpdatedBy,
|
||||
// UpdatedTime = model.UpdatedTime,
|
||||
//});
|
||||
//return response;
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
80
ZR.Service/mes/andon/AndonAlarmReceiverWatchDicService.cs
Normal file
80
ZR.Service/mes/andon/AndonAlarmReceiverWatchDicService.cs
Normal file
@ -0,0 +1,80 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Mapster;
|
||||
using SqlSugar;
|
||||
using ZR.Model;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.mes.andon.Iservice;
|
||||
|
||||
namespace ZR.Service.mes.andon
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典Service业务层处理
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IAndonAlarmReceiverWatchDicService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class AndonAlarmReceiverWatchDicService : BaseService<AndonAlarmReceiverWatchDic>, IAndonAlarmReceiverWatchDicService
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询安灯报警联系人手表IP字典列表
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
public PagedInfo<AndonAlarmReceiverWatchDicDto> GetList(AndonAlarmReceiverWatchDicQueryDto parm)
|
||||
{
|
||||
var predicate = Expressionable.Create<AndonAlarmReceiverWatchDic>();
|
||||
|
||||
var response = Queryable()
|
||||
.Where(predicate.ToExpression())
|
||||
.ToPage<AndonAlarmReceiverWatchDic, AndonAlarmReceiverWatchDicDto>(parm);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public AndonAlarmReceiverWatchDic GetInfo(int Id)
|
||||
{
|
||||
var response = Queryable()
|
||||
.Where(x => x.Id == Id)
|
||||
.First();
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public AndonAlarmReceiverWatchDic AddAndonAlarmReceiverWatchDic(AndonAlarmReceiverWatchDic model)
|
||||
{
|
||||
return Context.Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改安灯报警联系人手表IP字典
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public int UpdateAndonAlarmReceiverWatchDic(AndonAlarmReceiverWatchDic model)
|
||||
{
|
||||
//var response = Update(w => w.Id == model.Id, it => new AndonAlarmReceiverWatchDic()
|
||||
//{
|
||||
// Receivername = model.Receivername,
|
||||
// Watchip = model.Watchip,
|
||||
// CreatedBy = model.CreatedBy,
|
||||
// CreatedTime = model.CreatedTime,
|
||||
// UpdatedBy = model.UpdatedBy,
|
||||
// UpdatedTime = model.UpdatedTime,
|
||||
//});
|
||||
//return response;
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using ZR.Model;
|
||||
using System.Collections.Generic;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
using Infrastructure.Model;
|
||||
|
||||
namespace ZR.Service.mes.andon.Iservice
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯警报区三色灯IP字典service接口
|
||||
/// </summary>
|
||||
public interface IAndonAlarmAreaLightDicService : IBaseService<AndonAlarmAreaLightDic>
|
||||
{
|
||||
PagedInfo<AndonAlarmAreaLightDicDto> GetList(AndonAlarmAreaLightDicQueryDto parm);
|
||||
|
||||
AndonAlarmAreaLightDic GetInfo(int Id);
|
||||
|
||||
AndonAlarmAreaLightDic AddAndonAlarmAreaLightDic(AndonAlarmAreaLightDic parm);
|
||||
|
||||
int UpdateAndonAlarmAreaLightDic(AndonAlarmAreaLightDic parm);
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using ZR.Model;
|
||||
using System.Collections.Generic;
|
||||
using ZR.Model.MES.andon;
|
||||
using ZR.Model.MES.andon.Dto;
|
||||
|
||||
namespace ZR.Service.mes.andon.Iservice
|
||||
{
|
||||
/// <summary>
|
||||
/// 安灯报警联系人手表IP字典service接口
|
||||
/// </summary>
|
||||
public interface IAndonAlarmReceiverWatchDicService : IBaseService<AndonAlarmReceiverWatchDic>
|
||||
{
|
||||
PagedInfo<AndonAlarmReceiverWatchDicDto> GetList(AndonAlarmReceiverWatchDicQueryDto parm);
|
||||
|
||||
AndonAlarmReceiverWatchDic GetInfo(int Id);
|
||||
|
||||
AndonAlarmReceiverWatchDic AddAndonAlarmReceiverWatchDic(AndonAlarmReceiverWatchDic parm);
|
||||
|
||||
int UpdateAndonAlarmReceiverWatchDic(AndonAlarmReceiverWatchDic parm);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user