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
66b8b4f3
Commit
66b8b4f3
authored
Jul 16, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
病组接口速度优化
parent
75400fdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
bsoft-api/src/main/resources/application-test.properties
+1
-1
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
+5
-10
No files found.
bsoft-api/src/main/resources/application-test.properties
View file @
66b8b4f3
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
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.url
=
jdbc:mysql://192.168.18.176:3306/scml_
sy_ys
?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE&serverTimezone=UTC
spring.datasource.username
=
root
spring.datasource.password
=
Suvalue2016
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
...
...
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
View file @
66b8b4f3
...
...
@@ -176,11 +176,8 @@
<select
id=
"selectParentByIdNoZbz"
resultMap=
"DiseaseLevel"
>
select d.*,val.ZLS
from SER_DISEASE d
join (select ZBZBM,SUM(ZLS) as ZLS
from val_block_values_1_3_2
where `TIME`=#{date}
group by ZBZBM) val on val.ZBZBM = d.MDC_CODE
where 1 = 1 and d.STATE=1
join val_block_values_1_3_1 val on val.ZBZBM = d.MDC_CODE
where 1 = 1 and d.STATE=1 and val.`TIME`=#{date}
<if
test=
"diseaseId!=null"
>
and d.id=(select PARENT_ID from SER_DISEASE where id = #{diseaseId,jdbcType=DECIMAL} )
</if>
...
...
@@ -189,11 +186,9 @@
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.GROUP_TYPE,val.ZLS
from SER_DISEASE d
left join (select ZBZBM,SUM(ZLS) as ZLS
from val_block_values_1_3_2
where `TIME`=#{date}
group by ZBZBM) val on val.ZBZBM = d.MDC_CODE
where 1 = 1 and STATE=1 and STATE=1
left join val_block_values_1_3_1 val on val.ZBZBM = d.MDC_CODE
where 1 = 1 and d.STATE=1
and val.time=#{date}
<if
test=
"diseaseId!=null"
>
and d.PARENT_ID=#{diseaseId,jdbcType=DECIMAL}
</if>
...
...
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