..

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