Commit c3ff947b by ruyun.zhang

取消手工录入列头"HIS科室"

parent 5f01f780
...@@ -1062,8 +1062,8 @@ public ApiResponse SaveGatherHands([FromRoute] int allotId, [FromBody] SaveGathe ...@@ -1062,8 +1062,8 @@ public ApiResponse SaveGatherHands([FromRoute] int allotId, [FromBody] SaveGathe
[HttpPost] [HttpPost]
public ApiResponse GetGather([FromBody] Gather gather) public ApiResponse GetGather([FromBody] Gather gather)
{ {
if (gather.AllotId <= 0 || string.IsNullOrEmpty(gather.Source) || string.IsNullOrEmpty(gather.Category) || string.IsNullOrEmpty(gather.Department)) if (gather.AllotId <= 0 || string.IsNullOrEmpty(gather.Source) || string.IsNullOrEmpty(gather.Category))
return new ApiResponse(ResponseType.Fail, "参数错误", "请检查allotId,source,category,department是否正确"); return new ApiResponse(ResponseType.Fail, "参数错误", "请检查allotId,source,category是否正确");
var result = employeeService.GetGather(gather); var result = employeeService.GetGather(gather);
...@@ -1097,8 +1097,8 @@ public ApiResponse GetGatherTotal([FromBody] Gather gather) ...@@ -1097,8 +1097,8 @@ public ApiResponse GetGatherTotal([FromBody] Gather gather)
[HttpPost] [HttpPost]
public ApiResponse DeleteGather([FromBody] Gather gather) public ApiResponse DeleteGather([FromBody] Gather gather)
{ {
if (gather.AllotId <= 0 || string.IsNullOrEmpty(gather.Source) || string.IsNullOrEmpty(gather.Category) || string.IsNullOrEmpty(gather.Department)) if (gather.AllotId <= 0 || string.IsNullOrEmpty(gather.Source) || string.IsNullOrEmpty(gather.Category))
return new ApiResponse(ResponseType.Fail, "参数错误", "请检查allotId,source,category,department是否正确"); return new ApiResponse(ResponseType.Fail, "参数错误", "请检查allotId,source,category是否正确");
var result = employeeService.DeleteGather(gather); var result = employeeService.DeleteGather(gather);
if (result) return new ApiResponse(ResponseType.OK, "删除成功"); if (result) return new ApiResponse(ResponseType.OK, "删除成功");
...@@ -1134,7 +1134,7 @@ public ApiResponse UploadGatherFile([FromForm] Gather gather, [FromForm] IFormFi ...@@ -1134,7 +1134,7 @@ public ApiResponse UploadGatherFile([FromForm] Gather gather, [FromForm] IFormFi
var dpath = Path.Combine(evn.ContentRootPath, "Files", "GatherFile"); var dpath = Path.Combine(evn.ContentRootPath, "Files", "GatherFile");
FileHelper.CreateDirectory(dpath); FileHelper.CreateDirectory(dpath);
var fileName = string.Concat(gather.Source, gather.Category, gather.Department, Path.GetFileName(file.FileName)); var fileName = string.Concat(gather.Source, gather.Category, Path.GetFileName(file.FileName));
string path = Path.Combine(dpath, fileName); string path = Path.Combine(dpath, fileName);
var result = employeeService.UploadGatherFile(path, gather); var result = employeeService.UploadGatherFile(path, gather);
......
...@@ -4806,11 +4806,6 @@ ...@@ -4806,11 +4806,6 @@
用户Id 用户Id
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.Gather.Department">
<summary>
科室
</summary>
</member>
<member name="P:Performance.DtoModels.Gather.Source"> <member name="P:Performance.DtoModels.Gather.Source">
<summary> <summary>
来源 来源
......
...@@ -57,10 +57,6 @@ public class Gather: PersonParamsRequest ...@@ -57,10 +57,6 @@ public class Gather: PersonParamsRequest
/// </summary> /// </summary>
public int UserId { get; set; } public int UserId { get; set; }
/// <summary> /// <summary>
/// 科室
/// </summary>
public string Department { get; set; }
/// <summary>
/// 来源 /// 来源
/// </summary> /// </summary>
public string Source { get; set; } public string Source { get; set; }
......
...@@ -1665,14 +1665,14 @@ public HandsonTableBase GetGatherHands(int AllotId, GatherRequest request) ...@@ -1665,14 +1665,14 @@ public HandsonTableBase GetGatherHands(int AllotId, GatherRequest request)
public bool DeleteGather(Gather gather) public bool DeleteGather(Gather gather)
{ {
var delete = exresultgatherRepository.GetEntities(t => t.AllotId == gather.AllotId && t.Department == gather.Department && t.Source == gather.Source && t.Category == gather.Category); var delete = exresultgatherRepository.GetEntities(t => t.AllotId == gather.AllotId && t.Source == gather.Source && t.Category == gather.Category);
//exresultgatherRepository.Execute($@"delete from ex_result_gather where allotid = @allotid and department like '%{request.Department}%'and source like '%{request.Source}%' and category like '%{request.Category}%' ", new { allotId }); //exresultgatherRepository.Execute($@"delete from ex_result_gather where allotid = @allotid and department like '%{request.Department}%'and source like '%{request.Source}%' and category like '%{request.Category}%' ", new { allotId });
return exresultgatherRepository.RemoveRange(delete.ToArray()); return exresultgatherRepository.RemoveRange(delete.ToArray());
} }
public GatherInfo GetGather(Gather gather) public GatherInfo GetGather(Gather gather)
{ {
Expression<Func<ex_result_gather, bool>> exp = t => t.AllotId == gather.AllotId && t.Department == gather.Department && t.Source.Contains(gather.Source) && t.Category.Contains(gather.Category); Expression<Func<ex_result_gather, bool>> exp = t => t.AllotId == gather.AllotId && t.Source.Contains(gather.Source) && t.Category.Contains(gather.Category);
if (gather != null && !string.IsNullOrEmpty(gather.SearchQuery)) if (gather != null && !string.IsNullOrEmpty(gather.SearchQuery))
exp = exp.And(t => t.DoctorName.Contains(gather.SearchQuery) || t.PersonnelNumber.Contains(gather.SearchQuery)); exp = exp.And(t => t.DoctorName.Contains(gather.SearchQuery) || t.PersonnelNumber.Contains(gather.SearchQuery));
...@@ -1800,7 +1800,7 @@ public GatherResponse GetGatherTotal(Gather gather) ...@@ -1800,7 +1800,7 @@ public GatherResponse GetGatherTotal(Gather gather)
} }
public string UploadGatherFile(string path, Gather gather) public string UploadGatherFile(string path, Gather gather)
{ {
var datas = exresultgatherRepository.GetEntities(w => w.AllotId == gather.AllotId && w.Department == gather.Department && w.Source == gather.Source && w.Category == gather.Category); var datas = exresultgatherRepository.GetEntities(w => w.AllotId == gather.AllotId && w.Source == gather.Source && w.Category == gather.Category);
if (datas?.Any() != true) if (datas?.Any() != true)
return "未找到核算项目信息"; return "未找到核算项目信息";
...@@ -2107,14 +2107,12 @@ public void AuditGather(List<Gather> gather) ...@@ -2107,14 +2107,12 @@ public void AuditGather(List<Gather> gather)
{ {
g.AllotId, g.AllotId,
g.UserId, g.UserId,
g.Department,
g.Source, g.Source,
g.Category g.Category
}).Select(s => new }).Select(s => new
{ {
s.Key.AllotId, s.Key.AllotId,
s.Key.UserId, s.Key.UserId,
s.Key.Department,
s.Key.Source, s.Key.Source,
s.Key.Category s.Key.Category
}).ToList(); }).ToList();
...@@ -2122,7 +2120,6 @@ public void AuditGather(List<Gather> gather) ...@@ -2122,7 +2120,6 @@ public void AuditGather(List<Gather> gather)
var datas = exresultgatherRepository.GetEntities(t => var datas = exresultgatherRepository.GetEntities(t =>
t.AllotId == audit.FirstOrDefault().AllotId t.AllotId == audit.FirstOrDefault().AllotId
&& audit.Select(a => a.UserId).Contains(t.Submitter) && audit.Select(a => a.UserId).Contains(t.Submitter)
&& audit.Select(a => a.Department).Contains(t.Department)
&& audit.Select(a => a.Source).Contains(t.Source) && audit.Select(a => a.Source).Contains(t.Source)
&& audit.Select(a => a.Category).Contains(t.Category) && audit.Select(a => a.Category).Contains(t.Category)
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment