diff --git a/src/Shentun.Peis.Application.Contracts/SysParmValues/SysParmValueInputDto.cs b/src/Shentun.Peis.Application.Contracts/SysParmValues/SysParmValueInputDto.cs
new file mode 100644
index 0000000..b22860f
--- /dev/null
+++ b/src/Shentun.Peis.Application.Contracts/SysParmValues/SysParmValueInputDto.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shentun.Peis.SysParmValues
+{
+ public class SysParmValueInputDto
+ {
+ ///
+ /// 系统参数ID
+ ///
+ public string SysParmId { get; set; }
+
+ ///
+ /// 体检中心ID
+ ///
+ public Guid MedicalCenterId { get; set; }
+ }
+}
diff --git a/src/Shentun.Peis.Application/SysParmValues/SysParmValueAppService.cs b/src/Shentun.Peis.Application/SysParmValues/SysParmValueAppService.cs
index d03e5d3..ea3f930 100644
--- a/src/Shentun.Peis.Application/SysParmValues/SysParmValueAppService.cs
+++ b/src/Shentun.Peis.Application/SysParmValues/SysParmValueAppService.cs
@@ -43,18 +43,17 @@ namespace Shentun.Peis.SysParmValues
this._manager = manager;
}
- /////
- ///// 查询值内容 根据系统参数ID 跟组织ID
- /////
- /////
- /////
- /////
- //[RemoteService(false)]
- //public async Task GetAsync(string SysParmId, Guid OrganizationUnitId)
- //{
- // var entity = await _repository.GetAsync(m => m.SysParmId == SysParmId && m.OrganizationUnitId == OrganizationUnitId);
- // return ObjectMapper.Map(entity);
- //}
+ ///
+ /// 查询系统参数值 根据参数ID 跟体检中心
+ ///
+ ///
+ ///
+ [HttpPost("api/app/SysParmValue/GetSysParmValueBySysParmId")]
+ public async Task GetSysParmValueBySysParmIdAsync(SysParmValueInputDto input)
+ {
+ string sysParmValue = await _manager.GetSysParmValueAsync(input.MedicalCenterId, input.SysParmId);
+ return sysParmValue;
+ }
/////
@@ -223,14 +222,14 @@ namespace Shentun.Peis.SysParmValues
// await _repository.DeleteAsync(d => sysParmTypeList.Select(s => s.Id).Contains(d.SysParmId));
//}
var sysParmValueList = (await _repository.GetQueryableAsync()).
- Where(o => sysParmTypeList.Select(s => s.Id).Contains(o.SysParmId)).ToList() ;
+ Where(o => sysParmTypeList.Select(s => s.Id).Contains(o.SysParmId)).ToList();
var addSysParmValues = new List();
var updateSysParmValues = new List();
foreach (var item in input.Details)
{
- var sysParmValue = sysParmValueList.Find(o=>o.SysParmId == item.SysParmId && o.MedicalCenterId == item.MedicalCenterId);
- if(sysParmValue == null)
+ var sysParmValue = sysParmValueList.Find(o => o.SysParmId == item.SysParmId && o.MedicalCenterId == item.MedicalCenterId);
+ if (sysParmValue == null)
{
sysParmValue = new SysParmValue
{