..

parent 84545835
...@@ -157,30 +157,18 @@ public void PullData(int indexs,string DatabaseName,string tableName) ...@@ -157,30 +157,18 @@ public void PullData(int indexs,string DatabaseName,string tableName)
} }
/// <summary> /// <summary>
/// 查询平台 /// 药品疾病查询平台
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost("Inquire")] [HttpPost("Inquire")]
[AllowAnonymous] [AllowAnonymous]
public void Inquire(SYS_QueryConditions sYS_Query) public void Inquire(SYS_QueryConditions sYS_Query)
{ {
int type = 0; if(sYS_Query.icd.Length>1||sYS_Query.diseaseName.Length > 1 )
if((!string.IsNullOrEmpty(sYS_Query.icd) || !string.IsNullOrEmpty(sYS_Query.diseaseName))&&string.IsNullOrEmpty(sYS_Query.drugName))
{ {
type = 1; sYS_Query.type = 1; //疾病查询
} resourceQueries.DiagInquire(sYS_Query.icd, sYS_Query.diseaseName);
else if (string.IsNullOrEmpty(sYS_Query.icd) && string.IsNullOrEmpty(sYS_Query.diseaseName) && !string.IsNullOrEmpty(sYS_Query.drugName)) }
{
type = 2;
}
else if((!string.IsNullOrEmpty(sYS_Query.icd) || !string.IsNullOrEmpty(sYS_Query.diseaseName))&& !string.IsNullOrEmpty(sYS_Query.drugName))
{
}
else if (string.IsNullOrEmpty(sYS_Query.icd) &&string.IsNullOrEmpty(sYS_Query.diseaseName) &&string.IsNullOrEmpty(sYS_Query.drugName) && string.IsNullOrEmpty(sYS_Query.materialName))
{
}
else else
{ {
throw new DomainException($@"材料费只支持单独查询!"); throw new DomainException($@"材料费只支持单独查询!");
......
...@@ -12,10 +12,17 @@ public class SYS_Hospital ...@@ -12,10 +12,17 @@ public class SYS_Hospital
public class SYS_QueryConditions public class SYS_QueryConditions
{ {
//查询类型 1:疾病 or icd 2:drugName 3:材料
public int type { get; set; } public int type { get; set; }
public string icd { get; set; } //icd
public string diseaseName { get; set; } public string[] icd { get; set; }
public string drugName { get; set; } //疾病
public string materialName { get; set; } public string[] diseaseName { get; set; }
//药品
public string[] drugName { get; set; }
//材料费
public string[] materialName { get; set; }
} }
} }
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