提交
This commit is contained in:
parent
b7d2673158
commit
25bac169b0
|
|
@ -286,7 +286,7 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost("save")]
|
[HttpPost("save")]
|
||||||
[ActionPermissionFilter(Permission = "odfports:edit")]
|
[ActionPermissionFilter(Permission = "odfports:edit")]
|
||||||
[Log(Title = "APP更新端口", BusinessType = BusinessType.UPDATE)]
|
[Log(Title = "APP修改端口", BusinessType = BusinessType.UPDATE)]
|
||||||
public IActionResult SaveMOdfPorts([FromBody] OdfPortsMMDto parm)
|
public IActionResult SaveMOdfPorts([FromBody] OdfPortsMMDto parm)
|
||||||
{
|
{
|
||||||
var port = _OdfPortsService.GetById(parm.Id);
|
var port = _OdfPortsService.GetById(parm.Id);
|
||||||
|
|
@ -298,6 +298,8 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
||||||
port.HistoryRemarks = parm.HistoryRemarks;
|
port.HistoryRemarks = parm.HistoryRemarks;
|
||||||
port.Remarks = parm.Remarks;
|
port.Remarks = parm.Remarks;
|
||||||
port.OpticalAttenuation = parm.OpticalAttenuation;
|
port.OpticalAttenuation = parm.OpticalAttenuation;
|
||||||
|
port.UpdatedAt = DateTime.Now;
|
||||||
|
port.OpticalCableOffRemarks = parm.OpticalCableOffRemarks;
|
||||||
if (port.Status == 0)
|
if (port.Status == 0)
|
||||||
{
|
{
|
||||||
port.Remarks = "";
|
port.Remarks = "";
|
||||||
|
|
@ -505,6 +507,7 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
||||||
Remarks = excelItem.Remarks?.Trim(),
|
Remarks = excelItem.Remarks?.Trim(),
|
||||||
OpticalAttenuation = excelItem.OpticalAttenuation?.Trim(),
|
OpticalAttenuation = excelItem.OpticalAttenuation?.Trim(),
|
||||||
HistoryRemarks = excelItem.HistoryRemarks?.Trim(),
|
HistoryRemarks = excelItem.HistoryRemarks?.Trim(),
|
||||||
|
OpticalCableOffRemarks = excelItem.OpticalCableOffRemarks
|
||||||
};
|
};
|
||||||
await _OdfPortsService.InsertAsync(port);
|
await _OdfPortsService.InsertAsync(port);
|
||||||
addPortCount++;
|
addPortCount++;
|
||||||
|
|
@ -515,6 +518,8 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
||||||
port.Remarks = excelItem.Remarks?.Trim();
|
port.Remarks = excelItem.Remarks?.Trim();
|
||||||
port.OpticalAttenuation = excelItem.OpticalAttenuation?.Trim();
|
port.OpticalAttenuation = excelItem.OpticalAttenuation?.Trim();
|
||||||
port.Status = excelItem.Status;
|
port.Status = excelItem.Status;
|
||||||
|
port.OpticalCableOffRemarks = excelItem.OpticalCableOffRemarks;
|
||||||
|
port.UpdatedAt = DateTime.Now;
|
||||||
await _OdfPortsService.UpdateAsync(port);
|
await _OdfPortsService.UpdateAsync(port);
|
||||||
}
|
}
|
||||||
successCount++;
|
successCount++;
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
||||||
{
|
{
|
||||||
Key = it.Id.ToString(),
|
Key = it.Id.ToString(),
|
||||||
Id = it.Id.ToString(),
|
Id = it.Id.ToString(),
|
||||||
Name = it.RoomName,
|
Name = it.RoomName + $"[{it.DeptName}]",
|
||||||
DeptId = it.DeptId ?? 0,
|
DeptId = it.DeptId ?? 0,
|
||||||
Level = 2,
|
Level = 2,
|
||||||
Leaf = false,
|
Leaf = false,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"dbConfigs": [
|
"dbConfigs": [
|
||||||
{
|
{
|
||||||
"Conn": "Data Source=49.233.115.141;User ID=sa;Password=Dbt@com@123;Initial Catalog=OdtAdmin;Encrypt=True;TrustServerCertificate=True;",
|
"Conn": "Data Source=192.168.195.8;User ID=sa;Password=Dbt@com@123;Initial Catalog=OdtAdmin;Encrypt=True;TrustServerCertificate=True;",
|
||||||
"DbType": 1, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
"DbType": 1, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||||
"ConfigId": "0", //多租户唯一标识
|
"ConfigId": "0", //多租户唯一标识
|
||||||
"IsAutoCloseConnection": true
|
"IsAutoCloseConnection": true
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
//代码生成数据库配置 初始化数据:http://localhost:8888/common/initseedData
|
//代码生成数据库配置 初始化数据:http://localhost:8888/common/initseedData
|
||||||
"CodeGenDbConfig": {
|
"CodeGenDbConfig": {
|
||||||
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
|
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
|
||||||
"Conn": "Data Source=49.233.115.141;User ID=sa;Password=Dbt@com@123;Encrypt=True;TrustServerCertificate=True;Initial Catalog={dbName};",
|
"Conn": "Data Source=192.168.195.8;User ID=sa;Password=Dbt@com@123;Encrypt=True;TrustServerCertificate=True;Initial Catalog={dbName};",
|
||||||
"DbType": 1,
|
"DbType": 1,
|
||||||
"IsAutoCloseConnection": true,
|
"IsAutoCloseConnection": true,
|
||||||
"DbName": "OdtAdmin" //代码生成默认连接数据库,Oracle库是实例的名称
|
"DbName": "OdtAdmin" //代码生成默认连接数据库,Oracle库是实例的名称
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -14,6 +14,8 @@ namespace ZR.Model.Business.Dto
|
||||||
public string Remarks { get; set; }
|
public string Remarks { get; set; }
|
||||||
public string OpticalAttenuation { get; set; }
|
public string OpticalAttenuation { get; set; }
|
||||||
public string HistoryRemarks { get; set; }
|
public string HistoryRemarks { get; set; }
|
||||||
|
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -39,6 +41,7 @@ namespace ZR.Model.Business.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string HistoryRemarks { get; set; }
|
public string HistoryRemarks { get; set; }
|
||||||
|
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 机房id
|
/// 机房id
|
||||||
|
|
@ -168,6 +171,12 @@ namespace ZR.Model.Business.Dto
|
||||||
[ExcelColumnName("光衰值(dB)")]
|
[ExcelColumnName("光衰值(dB)")]
|
||||||
public string OpticalAttenuation { get; set; }
|
public string OpticalAttenuation { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[ExcelColumn(Name = "光缆断信息")]
|
||||||
|
[ExcelColumnName("光缆断信息")]
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
|
|
||||||
[ExcelColumn(Name = "历史故障表")]
|
[ExcelColumn(Name = "历史故障表")]
|
||||||
[ExcelColumnName("历史故障表")]
|
[ExcelColumnName("历史故障表")]
|
||||||
public string HistoryRemarks { get; set; }
|
public string HistoryRemarks { get; set; }
|
||||||
|
|
@ -202,6 +211,7 @@ namespace ZR.Model.Business.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ExcelColumn(Name = "部门名称")]
|
[ExcelColumn(Name = "部门名称")]
|
||||||
public string DeptName { get; set; }
|
public string DeptName { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -265,6 +275,13 @@ namespace ZR.Model.Business.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ExcelColumn(Name = "部门名称")]
|
[ExcelColumn(Name = "部门名称")]
|
||||||
public string DeptName { get; set; }
|
public string DeptName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 光缆断信息
|
||||||
|
/// </summary>
|
||||||
|
[ExcelColumn(Name = "光缆断信息")]
|
||||||
|
[ExcelColumnName("光缆断信息")]
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -368,5 +385,10 @@ namespace ZR.Model.Business.Dto
|
||||||
[ExcelColumnName("历史故障表")]
|
[ExcelColumnName("历史故障表")]
|
||||||
public string HistoryRemarks { get; set; }
|
public string HistoryRemarks { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,5 +98,10 @@ namespace ZR.Model.Business
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? UpdatedAt { get; set; }
|
public DateTime? UpdatedAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 光缆断信息
|
||||||
|
/// </summary>
|
||||||
|
public string OpticalCableOffRemarks { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -188,6 +188,10 @@ namespace ZR.Service.Business
|
||||||
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.Remarks), it => it.Remarks.Contains(parm.Remarks));
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.Remarks), it => it.Remarks.Contains(parm.Remarks));
|
||||||
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.OpticalAttenuation), it => it.OpticalAttenuation.Contains(parm.OpticalAttenuation));
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.OpticalAttenuation), it => it.OpticalAttenuation.Contains(parm.OpticalAttenuation));
|
||||||
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.HistoryRemarks), it => it.HistoryRemarks.Contains(parm.HistoryRemarks));
|
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.HistoryRemarks), it => it.HistoryRemarks.Contains(parm.HistoryRemarks));
|
||||||
|
if (!string.IsNullOrEmpty(parm.OpticalCableOffRemarks))
|
||||||
|
{
|
||||||
|
predicate = predicate.And(f => f.OpticalCableOffRemarks.Contains(parm.OpticalCableOffRemarks));
|
||||||
|
}
|
||||||
return predicate;
|
return predicate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -223,6 +227,10 @@ namespace ZR.Service.Business
|
||||||
{
|
{
|
||||||
predicate = predicate.And(f => f.HistoryRemarks.Contains(parm.HistoryRemarks));
|
predicate = predicate.And(f => f.HistoryRemarks.Contains(parm.HistoryRemarks));
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(parm.OpticalCableOffRemarks))
|
||||||
|
{
|
||||||
|
predicate = predicate.And(f => f.OpticalCableOffRemarks.Contains(parm.OpticalCableOffRemarks));
|
||||||
|
}
|
||||||
return predicate;
|
return predicate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user