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
6f6f6fb9
Commit
6f6f6fb9
authored
Oct 31, 2019
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口返回格式修改
parent
b55ed9da
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
93 additions
and
14 deletions
+93
-14
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
+26
-0
bsoft-api/src/main/java/com/bsoft/api/mapper/SerDiseaseDocRsMapper.java
+18
-0
bsoft-api/src/main/java/com/bsoft/api/mapper/SerDiseaseMapper.java
+19
-0
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/BlockValues.java
+11
-11
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/Disease.java
+10
-0
bsoft-api/src/main/java/com/bsoft/api/service/Impl/AsynBlockValuesServiceImpl.java
+1
-1
bsoft-api/src/test/resources/generatorConfig.xml
+8
-2
No files found.
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
0 → 100644
View file @
6f6f6fb9
package
com
.
bsoft
.
api
.
controller
;
import
com.bsoft.api.common.annotations.Token
;
import
com.bsoft.api.model.SerDisease
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
@Api
(
tags
=
"疾病信息Api"
)
@RestController
public
class
SerDiseaseController
{
/**
* 根据pageId查询板块数值
* @return
* @throws Exception
*/
@GetMapping
(
"disease"
)
@Token
@ApiOperation
(
"根据条件查询疾病信息"
)
public
Object
getBlockValuesByPageID
(
@RequestBody
SerDisease
blockValues
)
throws
InterruptedException
{
return
null
;
}
}
bsoft-api/src/main/java/com/bsoft/api/mapper/SerDiseaseDocRsMapper.java
0 → 100644
View file @
6f6f6fb9
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerDiseaseDocRs
;
import
java.util.List
;
public
interface
SerDiseaseDocRsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SerDiseaseDocRs
record
);
SerDiseaseDocRs
selectByPrimaryKey
(
Long
id
);
List
<
SerDiseaseDocRs
>
selectAll
();
int
updateByPrimaryKey
(
SerDiseaseDocRs
record
);
}
bsoft-api/src/main/java/com/bsoft/api/mapper/SerDiseaseMapper.java
0 → 100644
View file @
6f6f6fb9
package
com
.
bsoft
.
api
.
mapper
;
import
com.bsoft.api.model.SerDisease
;
import
java.util.List
;
public
interface
SerDiseaseMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SerDisease
record
);
SerDisease
selectByPrimaryKey
(
Long
id
);
List
<
SerDisease
>
selectAll
();
int
updateByPrimaryKey
(
SerDisease
record
);
}
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/BlockValues.java
View file @
6f6f6fb9
...
@@ -7,6 +7,17 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -7,6 +7,17 @@ import io.swagger.annotations.ApiModelProperty;
public
class
BlockValues
{
public
class
BlockValues
{
@ApiModelProperty
(
value
=
"pageCode"
,
required
=
true
)
private
Integer
pageCode
;
@ApiModelProperty
(
"病组"
)
private
Integer
disease
;
@ApiModelProperty
(
"科室"
)
private
Integer
department
;
@ApiModelProperty
(
"医生"
)
private
Integer
doctor
;
@ApiModelProperty
(
"时间"
)
private
Integer
time
;
public
Integer
getPageCode
()
{
public
Integer
getPageCode
()
{
return
pageCode
;
return
pageCode
;
}
}
...
@@ -46,15 +57,4 @@ public class BlockValues {
...
@@ -46,15 +57,4 @@ public class BlockValues {
public
void
setTime
(
Integer
time
)
{
public
void
setTime
(
Integer
time
)
{
this
.
time
=
time
;
this
.
time
=
time
;
}
}
@ApiModelProperty
(
value
=
"pageCode"
,
required
=
true
)
private
Integer
pageCode
;
@ApiModelProperty
(
"病组"
)
private
Integer
disease
;
@ApiModelProperty
(
"科室"
)
private
Integer
department
;
@ApiModelProperty
(
"医生"
)
private
Integer
doctor
;
@ApiModelProperty
(
"时间"
)
private
Integer
time
;
}
}
bsoft-api/src/main/java/com/bsoft/api/model/reqmodel/Disease.java
0 → 100644
View file @
6f6f6fb9
package
com
.
bsoft
.
api
.
model
.
reqmodel
;
import
java.math.BigDecimal
;
public
class
Disease
{
private
String
mdcCode
;
private
String
mdcName
;
private
BigDecimal
date
;
}
bsoft-api/src/main/java/com/bsoft/api/service/Impl/AsynBlockValuesServiceImpl.java
View file @
6f6f6fb9
...
@@ -28,7 +28,7 @@ public class AsynBlockValuesServiceImpl implements AsynBlockValuesService {
...
@@ -28,7 +28,7 @@ public class AsynBlockValuesServiceImpl implements AsynBlockValuesService {
List
<
Map
<
String
,
Object
>>
dataList
=
blockValuesMapper
.
selectByWhere
(
tableName
,
whereClause
);
List
<
Map
<
String
,
Object
>>
dataList
=
blockValuesMapper
.
selectByWhere
(
tableName
,
whereClause
);
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>(){
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>(){
{
{
put
(
blockId
,
dataList
);
put
(
"mdl"
+
blockId
,
dataList
);
}
}
};
};
synchronized
(
obj
){
synchronized
(
obj
){
...
...
bsoft-api/src/test/resources/generatorConfig.xml
View file @
6f6f6fb9
...
@@ -42,8 +42,14 @@
...
@@ -42,8 +42,14 @@
<!-- <!– 主键生成方式 –>-->
<!-- <!– 主键生成方式 –>-->
<!-- <generatedKey column="id" sqlStatement="select SEQ_SYS_USER_ID.nextval from dual" identity="true" />-->
<!-- <generatedKey column="id" sqlStatement="select SEQ_SYS_USER_ID.nextval from dual" identity="true" />-->
<!-- </table>-->
<!-- </table>-->
<table
tableName=
"DIC_DIM"
schema=
"ll"
>
<!-- <table tableName="DIC_DIM" schema="ll" >-->
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_DIC_DIM_ID.nextval from dual"
identity=
"true"
/>
<!-- <generatedKey column="id" sqlStatement="select SEQ_DIC_DIM_ID.nextval from dual" identity="true" />-->
<!-- </table>-->
<table
tableName=
"SER_DISEASE"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_DISEASE_ID.nextval from dual"
identity=
"true"
/>
</table>
<table
tableName=
"SER_DISEASE_DOC_RS"
schema=
"ll"
>
<generatedKey
column=
"id"
sqlStatement=
"select SEQ_SER_DISEASE_DOC_RS_ID.nextval from dual"
identity=
"true"
/>
</table>
</table>
<!-- <table tableName="DIC_IND" schema="ll" >-->
<!-- <table tableName="DIC_IND" schema="ll" >-->
<!-- <generatedKey column="id" sqlStatement="select SEQ_DIC_IND_ID.nextval from dual" identity="true" />-->
<!-- <generatedKey column="id" sqlStatement="select SEQ_DIC_IND_ID.nextval from dual" identity="true" />-->
...
...
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