Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
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
bsoft
sv-springboot
Commits
ae650235
Commit
ae650235
authored
Oct 31, 2019
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加医生疾病接口
parent
6a05b908
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
201 additions
and
44 deletions
+201
-44
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
+23
-8
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseDocController.java
+23
-0
bsoft-api/src/main/java/com/bsoft/api/controller/TestController.java
+0
-31
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/Disease.java
+3
-5
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/DiseaseDoc.java
+43
-0
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/DiseaseLevel.java
+109
-0
No files found.
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
View file @
ae650235
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.Result
;
import
com.bsoft.api.common.annotations.Token
;
import
com.bsoft.api.model.SerDisease
;
import
com.bsoft.api.model.reqmodel.Disease
;
import
com.bsoft.api.model.respmodel.DiseaseLevel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.
Ge
tMapping
;
import
org.springframework.web.bind.annotation.
Pos
tMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
@Api
(
tags
=
"疾病信息Api"
)
@RestController
public
class
SerDiseaseController
{
...
...
@@ -17,25 +22,35 @@ public class SerDiseaseController {
* @return
* @throws Exception
*/
@
Ge
tMapping
(
"disease/level"
)
@
Pos
tMapping
(
"disease/level"
)
@Token
@ApiOperation
(
"根据等级查询疾病信息"
)
public
Object
getDiseaseByLevel
(
@RequestBody
Disease
.
DiseaseByLevel
disease
)
throws
InterruptedException
{
return
null
;
public
Object
getDiseaseByLevel
(
@RequestBody
Disease
.
DiseaseByLevel
disease
)
throws
InterruptedException
{
return
Result
.
success
(
new
ArrayList
<
DiseaseLevel
>(){
{
add
(
new
DiseaseLevel
(){{
setDiseaseLevelList
(
new
ArrayList
<
DiseaseLevel
>(){
{
add
(
new
DiseaseLevel
());
}
});
}});
}
}
);
}
@
Ge
tMapping
(
"disease/name"
)
@
Pos
tMapping
(
"disease/name"
)
@Token
@ApiOperation
(
"根据疾病名称查询疾病信息"
)
public
Object
getDiseaseByMdcName
(
@RequestBody
Disease
.
DiseaseByName
disease
)
throws
InterruptedException
{
return
null
;
return
Result
.
success
(
new
SerDisease
())
;
}
@
Ge
tMapping
(
"disease/level/info"
)
@
Pos
tMapping
(
"disease/level/info"
)
@Token
@ApiOperation
(
"查询特定等级下所有数据以及子数据"
)
public
Object
getDiseaseByLevelSon
(
@RequestBody
Disease
.
DiseaseByLevelSon
disease
)
throws
InterruptedException
{
return
null
;
return
Result
.
success
(
new
SerDisease
())
;
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseDocController.java
0 → 100644
View file @
ae650235
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.Result
;
import
com.bsoft.api.common.annotations.Token
;
import
com.bsoft.api.model.SerDiseaseDocRs
;
import
com.bsoft.api.model.reqmodel.DiseaseDoc
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
tags
=
"疾病与医生关系信息Api"
)
@RestController
public
class
SerDiseaseDocController
{
@PostMapping
(
"diseasedoc"
)
// @Token
@ApiOperation
(
"根据疾病名称查询疾病信息"
)
public
Object
getDiseaseDoc
(
@RequestBody
DiseaseDoc
disease
)
throws
InterruptedException
{
return
Result
.
success
(
new
SerDiseaseDocRs
());
}
}
bsoft-api/src/main/java/com/bsoft/api/controller/TestController.java
deleted
100644 → 0
View file @
6a05b908
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.service.TestService
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.concurrent.Future
;
@ApiIgnore
@RestController
public
class
TestController
{
@Resource
TestService
testServiceImpl
;
@GetMapping
(
"test"
)
public
Object
test
()
throws
InterruptedException
{
// List<Future<String>> list = new ArrayList<>();
// for(int i = 0; i<4;i++){
// Future<String> future = testServiceImpl.test(String.valueOf(i));
// list.add(future);
// }
testServiceImpl
.
test
(
1
);
return
1
;
}
}
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/Disease.java
View file @
ae650235
...
...
@@ -5,12 +5,10 @@ import io.swagger.annotations.ApiModelProperty;
import
java.math.BigDecimal
;
public
class
Disease
{
/**
* 等级查询疾病实体
*/
public
class
DiseaseByLevel
{
public
static
class
DiseaseByLevel
{
@ApiModelProperty
(
value
=
"等级"
,
required
=
true
)
private
BigDecimal
level
;
@ApiModelProperty
(
value
=
"时间"
,
required
=
true
)
...
...
@@ -46,7 +44,7 @@ public class Disease {
/**
* 名称查询疾病实体
*/
public
class
DiseaseByName
{
public
static
class
DiseaseByName
{
@ApiModelProperty
(
value
=
"时间"
,
required
=
true
)
private
BigDecimal
date
;
...
...
@@ -73,7 +71,7 @@ public class Disease {
/**
* 特定等级下所有数据以及子数据实体
*/
public
class
DiseaseByLevelSon
{
public
static
class
DiseaseByLevelSon
{
@ApiModelProperty
(
value
=
"等级"
,
required
=
true
)
private
BigDecimal
level
;
@ApiModelProperty
(
value
=
"时间"
,
required
=
true
)
...
...
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/DiseaseDoc.java
0 → 100644
View file @
ae650235
package
com
.
bsoft
.
api
.
model
.
reqmodel
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.math.BigDecimal
;
/**
* 医生疾病关系入参实体
*/
public
class
DiseaseDoc
{
@ApiModelProperty
(
"医生编码"
)
private
String
docCode
;
@ApiModelProperty
(
"疾病编码"
)
private
String
mdcCode
;
@ApiModelProperty
(
"科室编码"
)
private
String
deptCode
;
public
String
getDocCode
()
{
return
docCode
;
}
public
void
setDocCode
(
String
docCode
)
{
this
.
docCode
=
docCode
;
}
public
String
getMdcCode
()
{
return
mdcCode
;
}
public
void
setMdcCode
(
String
mdcCode
)
{
this
.
mdcCode
=
mdcCode
;
}
public
String
getDeptCode
()
{
return
deptCode
;
}
public
void
setDeptCode
(
String
deptCode
)
{
this
.
deptCode
=
deptCode
;
}
}
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/DiseaseLevel.java
0 → 100644
View file @
ae650235
package
com
.
bsoft
.
api
.
model
.
respmodel
;
import
java.math.BigDecimal
;
import
java.util.List
;
public
class
DiseaseLevel
{
private
BigDecimal
id
;
private
BigDecimal
state
;
private
String
mdcCode
;
private
String
mdcName
;
private
BigDecimal
date
;
private
BigDecimal
mdcNum
;
private
BigDecimal
parentId
;
private
BigDecimal
level
;
private
BigDecimal
orgId
;
private
String
orgName
;
private
List
<
DiseaseLevel
>
diseaseLevelList
;
public
BigDecimal
getId
()
{
return
id
;
}
public
void
setId
(
BigDecimal
id
)
{
this
.
id
=
id
;
}
public
BigDecimal
getState
()
{
return
state
;
}
public
void
setState
(
BigDecimal
state
)
{
this
.
state
=
state
;
}
public
String
getMdcCode
()
{
return
mdcCode
;
}
public
void
setMdcCode
(
String
mdcCode
)
{
this
.
mdcCode
=
mdcCode
;
}
public
String
getMdcName
()
{
return
mdcName
;
}
public
void
setMdcName
(
String
mdcName
)
{
this
.
mdcName
=
mdcName
;
}
public
BigDecimal
getDate
()
{
return
date
;
}
public
void
setDate
(
BigDecimal
date
)
{
this
.
date
=
date
;
}
public
BigDecimal
getMdcNum
()
{
return
mdcNum
;
}
public
void
setMdcNum
(
BigDecimal
mdcNum
)
{
this
.
mdcNum
=
mdcNum
;
}
public
BigDecimal
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
BigDecimal
parentId
)
{
this
.
parentId
=
parentId
;
}
public
BigDecimal
getLevel
()
{
return
level
;
}
public
void
setLevel
(
BigDecimal
level
)
{
this
.
level
=
level
;
}
public
BigDecimal
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
BigDecimal
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getOrgName
()
{
return
orgName
;
}
public
void
setOrgName
(
String
orgName
)
{
this
.
orgName
=
orgName
;
}
public
List
<
DiseaseLevel
>
getDiseaseLevelList
()
{
return
diseaseLevelList
;
}
public
void
setDiseaseLevelList
(
List
<
DiseaseLevel
>
diseaseLevelList
)
{
this
.
diseaseLevelList
=
diseaseLevelList
;
}
}
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