Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
queryPlatform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
唐仲阳
queryPlatform
Commits
5f65c899
Commit
5f65c899
authored
Nov 30, 2021
by
DESKTOP-FORROT8\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
84545835
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
api/Health.Api/Controllers/ResourceController.cs
+4
-16
api/Health.Api/Infrastructure/Models/SYS_Hospital.cs
+11
-4
No files found.
api/Health.Api/Controllers/ResourceController.cs
View file @
5f65c899
...
@@ -157,29 +157,17 @@ public void PullData(int indexs,string DatabaseName,string tableName)
...
@@ -157,29 +157,17 @@ 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
{
{
...
...
api/Health.Api/Infrastructure/Models/SYS_Hospital.cs
View file @
5f65c899
...
@@ -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
;
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment