From 1aa330646ad9f88abc580e17d08d727a0ecaae48 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期五, 15 十一月 2024 11:49:08 +0800
Subject: [PATCH] 核心界面优化整理

---
 BLL/HStation.BLL.Assets.Core/03-localclient/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs |   39 ++++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/BLL/HStation.BLL.Assets.Core/03-localclient/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs b/BLL/HStation.BLL.Assets.Core/03-localclient/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs
index d627472..2d5894d 100644
--- a/BLL/HStation.BLL.Assets.Core/03-localclient/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs
+++ b/BLL/HStation.BLL.Assets.Core/03-localclient/04-PipeLineRoughnessCoefficient/PipeLineRoughnessCoefficient.cs
@@ -1,4 +1,5 @@
-锘縰sing System.Collections.Generic;
+锘縰sing HStation.Dto;
+using System.Collections.Generic;
 using Yw.Dto;
 
 namespace HStation.CAL.LocalClient
@@ -6,7 +7,7 @@
     /// <summary>
     /// 鎶ヨ绛夌骇
     /// </summary>
-    public class PipeLineRoughnessCoefficient : IPipeLineRoughnessCoefficient
+    public class PipeLineRoughnessCoefficient : IAssetsPipeCoefficient
     {
         private readonly HStation.Service.PipeLineRoughnessCoefficient _service = new();
 
@@ -15,12 +16,12 @@
         /// <summary>
         /// 鑾峰彇鎵�鏈�
         /// </summary>
-        public async Task<List<AssetsPipeRoughnessCoefficientDto>> GetAll()
+        public async Task<List<AssetsPipeCoefficientDto>> GetAll()
         {
             return await Task.Factory.StartNew(() =>
             {
                 var list = _service.GetAll();
-                var vm_list = list?.Select(x => new AssetsPipeRoughnessCoefficientDto(x)).ToList();
+                var vm_list = list?.Select(x => new AssetsPipeCoefficientDto(x)).ToList();
                 return vm_list;
             });
         }
@@ -28,24 +29,24 @@
         /// <summary>
         /// 閫氳繃 ID 鑾峰彇
         /// </summary>
-        public async Task<AssetsPipeRoughnessCoefficientDto> GetByID(long ID)
+        public async Task<AssetsPipeCoefficientDto> GetByID(long ID)
         {
             return await Task.Factory.StartNew(() =>
             {
                 var model = _service.GetByID(ID);
-                return model == null ? null : new AssetsPipeRoughnessCoefficientDto(model);
+                return model == null ? null : new AssetsPipeCoefficientDto(model);
             });
         }
 
         /// <summary>
         /// 閫氳繃 绠¢亾ID 鑾峰彇
         /// </summary>
-        public async Task<List<AssetsPipeRoughnessCoefficientDto>> GetByPipeID(long ID)
+        public async Task<List<AssetsPipeCoefficientDto>> GetByPipeID(long ID)
         {
             return await Task.Factory.StartNew(() =>
             {
                 var list = _service.GetByPipeID(ID);
-                var vm_list = list?.Select(x => new AssetsPipeRoughnessCoefficientDto(x)).ToList();
+                var vm_list = list?.Select(x => new AssetsPipeCoefficientDto(x)).ToList();
                 return vm_list;
             });
         }
@@ -53,12 +54,12 @@
         /// <summary>
         /// 閫氳繃 Ids 鑾峰彇
         /// </summary>
-        public async Task<List<AssetsPipeRoughnessCoefficientDto>> GetByIds(List<long> Ids)
+        public async Task<List<AssetsPipeCoefficientDto>> GetByIds(List<long> Ids)
         {
             return await Task.Factory.StartNew(() =>
             {
                 var list = _service.GetByIds(Ids);
-                var vm_list = list?.Select(x => new AssetsPipeRoughnessCoefficientDto(x)).ToList();
+                var vm_list = list?.Select(x => new AssetsPipeCoefficientDto(x)).ToList();
                 return vm_list;
             });
         }
@@ -70,11 +71,11 @@
         /// <summary>
         /// 鎻掑叆涓�鏉�
         /// </summary>
-        public async Task<long> Insert(AddAssetsPipeRoughnessCoefficientInput input)
+        public async Task<long> Insert(AddAssetsPipeCoefficientInput input)
         {
             return await Task.Factory.StartNew(() =>
             {
-                var model = input.Adapt<AddAssetsPipeRoughnessCoefficientInput, Model.AssetsPipeLineCoefficient>();
+                var model = input.Adapt<AddAssetsPipeCoefficientInput, Model.AssetsPipeLineCoefficient>();
                 var id = _service.Insert(model);
                 return id;
             });
@@ -83,11 +84,11 @@
         /// <summary>
         /// 鎵归噺鎻掑叆
         /// </summary>
-        public async Task<bool> Inserts(List<AddAssetsPipeRoughnessCoefficientInput> inputList)
+        public async Task<bool> Inserts(List<AddAssetsPipeCoefficientInput> inputList)
         {
             return await Task.Factory.StartNew(() =>
             {
-                var list = inputList.Select(x => x.Adapt<AddAssetsPipeRoughnessCoefficientInput, Model.AssetsPipeLineCoefficient>()).ToList();
+                var list = inputList.Select(x => x.Adapt<AddAssetsPipeCoefficientInput, Model.AssetsPipeLineCoefficient>()).ToList();
                 var bol = _service.Inserts(list);
                 return bol;
             });
@@ -96,7 +97,7 @@
         /// <summary>
         /// 澶ф壒閲忔彃鍏�
         /// </summary>
-        public async Task<bool> BulkInserts(List<AddAssetsPipeRoughnessCoefficientInput> list)
+        public async Task<bool> BulkInserts(List<AddAssetsPipeCoefficientInput> list)
         {
             return await Task.Factory.StartNew(() =>
             {
@@ -111,7 +112,7 @@
         /// <summary>
         /// 鏇存柊涓�鏉�
         /// </summary>
-        public async Task<bool> Update(UpdateAssetsPipeRoughnessCoefficientInput input)
+        public async Task<bool> Update(UpdateAssetsPipeCoefficientInput input)
         {
             return await Task.Factory.StartNew(() =>
             {
@@ -131,7 +132,7 @@
         /// <summary>
         /// 鎵归噺鏇存柊
         /// </summary>
-        public async Task<bool> Updates(List<UpdateAssetsPipeRoughnessCoefficientInput> inputList)
+        public async Task<bool> Updates(List<UpdateAssetsPipeCoefficientInput> inputList)
         {
             return await Task.Factory.StartNew(() =>
             {
@@ -139,7 +140,7 @@
                 {
                     return false;
                 }
-                var list = inputList.Select(x => x.Adapt<UpdateAssetsPipeRoughnessCoefficientInput, Model.AssetsPipeLineCoefficient>()).ToList();
+                var list = inputList.Select(x => x.Adapt<UpdateAssetsPipeCoefficientInput, Model.AssetsPipeLineCoefficient>()).ToList();
                 var bol = _service.Updates(list);
                 return bol;
             });
@@ -148,7 +149,7 @@
         /// <summary>
         /// 澶ф壒閲忔洿鏂�
         /// </summary>
-        public async Task<bool> BulkUpdates(List<UpdateAssetsPipeRoughnessCoefficientInput> list)
+        public async Task<bool> BulkUpdates(List<UpdateAssetsPipeCoefficientInput> list)
         {
             return await Task.Factory.StartNew(() =>
             {

--
Gitblit v1.9.3