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
921e6fd4
Commit
921e6fd4
authored
Jul 10, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
病组添加分组字段
parent
c0d10749
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
16 deletions
+40
-16
bsoft-api/src/main/java/com/bsoft/api/model/SerDisease.java
+10
-0
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/DiseaseLevel.java
+12
-2
bsoft-api/src/main/resources/application-test.properties
+1
-1
bsoft-api/src/main/resources/application.properties
+4
-4
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
+13
-9
No files found.
bsoft-api/src/main/java/com/bsoft/api/model/SerDisease.java
View file @
921e6fd4
...
@@ -30,6 +30,8 @@ public class SerDisease {
...
@@ -30,6 +30,8 @@ public class SerDisease {
private
String
parentCode
;
private
String
parentCode
;
private
Integer
groupType
;
public
BigDecimal
getId
()
{
public
BigDecimal
getId
()
{
return
id
;
return
id
;
}
}
...
@@ -126,6 +128,14 @@ public class SerDisease {
...
@@ -126,6 +128,14 @@ public class SerDisease {
this
.
orgName
=
orgName
;
this
.
orgName
=
orgName
;
}
}
public
Integer
getGroupType
()
{
return
groupType
;
}
public
void
setGroupType
(
Integer
groupType
)
{
this
.
groupType
=
groupType
;
}
public
String
getParentCode
()
{
public
String
getParentCode
()
{
return
parentCode
;
return
parentCode
;
}
}
...
...
bsoft-api/src/main/java/com/bsoft/api/model/respmodel/DiseaseLevel.java
View file @
921e6fd4
...
@@ -14,6 +14,7 @@ public class DiseaseLevel {
...
@@ -14,6 +14,7 @@ public class DiseaseLevel {
private
BigDecimal
level
;
private
BigDecimal
level
;
private
String
orgId
;
private
String
orgId
;
private
String
orgName
;
private
String
orgName
;
private
Integer
groupType
;
private
List
<
DiseaseLevel
>
diseaseLevelList
;
private
List
<
DiseaseLevel
>
diseaseLevelList
;
public
BigDecimal
getId
()
{
public
BigDecimal
getId
()
{
...
@@ -88,6 +89,14 @@ public class DiseaseLevel {
...
@@ -88,6 +89,14 @@ public class DiseaseLevel {
this
.
orgName
=
orgName
;
this
.
orgName
=
orgName
;
}
}
public
Integer
getGroupType
()
{
return
groupType
;
}
public
void
setGroupType
(
Integer
groupType
)
{
this
.
groupType
=
groupType
;
}
public
List
<
DiseaseLevel
>
getDiseaseLevelList
()
{
public
List
<
DiseaseLevel
>
getDiseaseLevelList
()
{
return
diseaseLevelList
;
return
diseaseLevelList
;
}
}
...
@@ -103,11 +112,12 @@ public class DiseaseLevel {
...
@@ -103,11 +112,12 @@ public class DiseaseLevel {
", mdcCode='"
+
mdcCode
+
'\''
+
", mdcCode='"
+
mdcCode
+
'\''
+
", mdcName='"
+
mdcName
+
'\''
+
", mdcName='"
+
mdcName
+
'\''
+
", date="
+
date
+
", date="
+
date
+
", mdcNum=
"
+
mdcNum
+
", mdcNum=
'"
+
mdcNum
+
'\''
+
", parentId="
+
parentId
+
", parentId="
+
parentId
+
", level="
+
level
+
", level="
+
level
+
", orgId=
"
+
orgId
+
", orgId=
'"
+
orgId
+
'\''
+
", orgName='"
+
orgName
+
'\''
+
", orgName='"
+
orgName
+
'\''
+
", groupType='"
+
groupType
+
'\''
+
", diseaseLevelList="
+
diseaseLevelList
+
", diseaseLevelList="
+
diseaseLevelList
+
'}'
;
'}'
;
}
}
...
...
bsoft-api/src/main/resources/application-test.properties
View file @
921e6fd4
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
spring.datasource.url
=
jdbc:mysql://192.168.18.176:3306/scml_
sy
_test1.0?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE&serverTimezone=UTC
spring.datasource.url
=
jdbc:mysql://192.168.18.176:3306/scml_
zp
_test1.0?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE&serverTimezone=UTC
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
Suvalue2016
spring.datasource.password
=
Suvalue2016
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
...
...
bsoft-api/src/main/resources/application.properties
View file @
921e6fd4
...
@@ -20,6 +20,6 @@ mybatis.configuration.call-setters-on-nulls=true
...
@@ -20,6 +20,6 @@ mybatis.configuration.call-setters-on-nulls=true
version.number
=
1.01.0707001
version.number
=
1.02.0710001
version.date
=
2020.07.07
version.date
=
2020.07.10
version.remarks
=
\u
767B
\u
5F55
\u
6DFB
\u
52A0
\u
75C5
\u6848\u
4FE1
\u
606F
version.remarks
=
\u
75C5
\u
7EC4
\u
6DFB
\u
52A0
\u5206\u
7EC4
\u
5B57
\u
6BB5
\ No newline at end of file
\ No newline at end of file
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
View file @
921e6fd4
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<result
column=
"ORG_ID"
jdbcType=
"VARCHAR"
property=
"orgId"
/>
<result
column=
"ORG_ID"
jdbcType=
"VARCHAR"
property=
"orgId"
/>
<result
column=
"ORG_NAME"
jdbcType=
"VARCHAR"
property=
"orgName"
/>
<result
column=
"ORG_NAME"
jdbcType=
"VARCHAR"
property=
"orgName"
/>
<result
column=
"PARENT_CODE"
jdbcType=
"VARCHAR"
property=
"parentCode"
/>
<result
column=
"PARENT_CODE"
jdbcType=
"VARCHAR"
property=
"parentCode"
/>
<result
column=
"GROUP_TYPE"
jdbcType=
"VARCHAR"
property=
"groupType"
/>
</resultMap>
</resultMap>
<resultMap
id=
"DiseaseLevel"
type=
"com.bsoft.api.model.respmodel.DiseaseLevel"
>
<resultMap
id=
"DiseaseLevel"
type=
"com.bsoft.api.model.respmodel.DiseaseLevel"
>
<id
column=
"ID"
jdbcType=
"DECIMAL"
property=
"id"
/>
<id
column=
"ID"
jdbcType=
"DECIMAL"
property=
"id"
/>
...
@@ -26,6 +27,7 @@
...
@@ -26,6 +27,7 @@
<result
column=
"LEVEL"
jdbcType=
"DECIMAL"
property=
"level"
/>
<result
column=
"LEVEL"
jdbcType=
"DECIMAL"
property=
"level"
/>
<result
column=
"ORG_ID"
jdbcType=
"VARCHAR"
property=
"orgId"
/>
<result
column=
"ORG_ID"
jdbcType=
"VARCHAR"
property=
"orgId"
/>
<result
column=
"ORG_NAME"
jdbcType=
"VARCHAR"
property=
"orgName"
/>
<result
column=
"ORG_NAME"
jdbcType=
"VARCHAR"
property=
"orgName"
/>
<result
column=
"GROUP_TYPE"
jdbcType=
"VARCHAR"
property=
"groupType"
/>
</resultMap>
</resultMap>
<insert
id=
"insert"
parameterType=
"com.bsoft.api.model.SerDisease"
>
<insert
id=
"insert"
parameterType=
"com.bsoft.api.model.SerDisease"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.math.BigDecimal"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.math.BigDecimal"
>
...
@@ -34,12 +36,13 @@
...
@@ -34,12 +36,13 @@
insert into SER_DISEASE (CREATE_DATE, CREATE_USERID, `STATE`,
insert into SER_DISEASE (CREATE_DATE, CREATE_USERID, `STATE`,
MDC_CODE, MDC_NAME, `DATE`,
MDC_CODE, MDC_NAME, `DATE`,
MDC_NUM, PARENT_ID, `LEVEL`,
MDC_NUM, PARENT_ID, `LEVEL`,
ORG_ID, ORG_NAME, PARENT_CODE
ORG_ID, ORG_NAME, PARENT_CODE
,GROUP_TYPE
)
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{mdcCode,jdbcType=VARCHAR}, #{mdcName,jdbcType=VARCHAR}, #{date,jdbcType=DECIMAL},
#{mdcCode,jdbcType=VARCHAR}, #{mdcName,jdbcType=VARCHAR}, #{date,jdbcType=DECIMAL},
#{mdcNum,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL}, #{level,jdbcType=DECIMAL},
#{mdcNum,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL}, #{level,jdbcType=DECIMAL},
#{orgId,jdbcType=DECIMAL}, #{orgName,jdbcType=VARCHAR}, #{parentCode,jdbcType=VARCHAR}
#{orgId,jdbcType=DECIMAL}, #{orgName,jdbcType=VARCHAR}, #{parentCode,jdbcType=VARCHAR},
#{groupType,jdbcType=VARCHAR}
)
)
</insert>
</insert>
<select
id=
"selectAll"
resultMap=
"BaseResultMap"
>
<select
id=
"selectAll"
resultMap=
"BaseResultMap"
>
...
@@ -55,7 +58,8 @@
...
@@ -55,7 +58,8 @@
`LEVEL`,
`LEVEL`,
ORG_ID,
ORG_ID,
ORG_NAME,
ORG_NAME,
PARENT_CODE
PARENT_CODE,
GROUP_TYPE
from SER_DISEASE
from SER_DISEASE
</select>
</select>
<select
id=
"selectByCode"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByCode"
resultMap=
"BaseResultMap"
>
...
@@ -66,7 +70,7 @@
...
@@ -66,7 +70,7 @@
</select>
</select>
<select
id=
"selectByMdcName"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByMdcName"
resultMap=
"BaseResultMap"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"deptCode!=null"
>
<if
test=
"deptCode!=null"
>
...
@@ -79,7 +83,7 @@
...
@@ -79,7 +83,7 @@
</select>
</select>
<select
id=
"selectByLevel"
resultMap=
"DiseaseLevel"
>
<select
id=
"selectByLevel"
resultMap=
"DiseaseLevel"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d
from SER_DISEASE d
<if
test=
"deptCode!=null"
>
<if
test=
"deptCode!=null"
>
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
...
@@ -102,7 +106,7 @@
...
@@ -102,7 +106,7 @@
</select>
</select>
<select
id=
"selectByLevelNoZBZ"
resultMap=
"DiseaseLevel"
>
<select
id=
"selectByLevelNoZBZ"
resultMap=
"DiseaseLevel"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d
from SER_DISEASE d
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"level!=null"
>
<if
test=
"level!=null"
>
...
@@ -112,7 +116,7 @@
...
@@ -112,7 +116,7 @@
</select>
</select>
<select
id=
"selectByParentId"
resultMap=
"DiseaseLevel"
>
<select
id=
"selectByParentId"
resultMap=
"DiseaseLevel"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d
from SER_DISEASE d
<if
test=
"deptCode!=null"
>
<if
test=
"deptCode!=null"
>
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
...
@@ -135,7 +139,7 @@
...
@@ -135,7 +139,7 @@
</select>
</select>
<select
id=
"selectByParentIdNoZbz"
resultMap=
"DiseaseLevel"
>
<select
id=
"selectByParentIdNoZbz"
resultMap=
"DiseaseLevel"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.`STATE`, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d
from SER_DISEASE d
<if
test=
"deptCode!=null"
>
<if
test=
"deptCode!=null"
>
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
join (select ZBZBM,KSBM,SUM(ZLS) as ZLS
...
@@ -179,7 +183,7 @@
...
@@ -179,7 +183,7 @@
<!-- </select> -->
<!-- </select> -->
<select
id=
"selectSonById"
resultMap=
"DiseaseLevel"
>
<select
id=
"selectSonById"
resultMap=
"DiseaseLevel"
>
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.STATE, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.STATE, d.MDC_CODE, d.MDC_NAME, d.`DATE`,d.MDC_NUM,
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
,d.GROUP_TYPE
from SER_DISEASE d
from SER_DISEASE d
where 1 = 1 and STATE=1 and STATE=1
where 1 = 1 and STATE=1 and STATE=1
<if
test=
"diseaseId!=null"
>
<if
test=
"diseaseId!=null"
>
...
...
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