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
d672bc33
Commit
d672bc33
authored
Jul 04, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
病组调整
parent
0bacb9d7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
bsoft-api/src/main/java/com/bsoft/api/model/SerDisease.java
+3
-3
bsoft-api/src/main/resources/application-test.properties
+1
-1
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
+5
-9
No files found.
bsoft-api/src/main/java/com/bsoft/api/model/SerDisease.java
View file @
d672bc33
...
@@ -24,7 +24,7 @@ public class SerDisease {
...
@@ -24,7 +24,7 @@ public class SerDisease {
private
BigDecimal
level
;
private
BigDecimal
level
;
private
BigDecimal
orgId
;
private
String
orgId
;
private
String
orgName
;
private
String
orgName
;
...
@@ -110,11 +110,11 @@ public class SerDisease {
...
@@ -110,11 +110,11 @@ public class SerDisease {
this
.
level
=
level
;
this
.
level
=
level
;
}
}
public
BigDecimal
getOrgId
()
{
public
String
getOrgId
()
{
return
orgId
;
return
orgId
;
}
}
public
void
setOrgId
(
BigDecimal
orgId
)
{
public
void
setOrgId
(
String
orgId
)
{
this
.
orgId
=
orgId
;
this
.
orgId
=
orgId
;
}
}
...
...
bsoft-api/src/main/resources/application-test.properties
View file @
d672bc33
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
spring.datasource.url
=
jdbc:mysql://192.168.18.17
6
:3306/scml_mzx?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE&serverTimezone=UTC
spring.datasource.url
=
jdbc:mysql://192.168.18.17
9
:3306/scml_mzx?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/mapper/SerDiseaseMapper.xml
View file @
d672bc33
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<result
column=
"MDC_NUM"
jdbcType=
"VARCHAR"
property=
"mdcNum"
/>
<result
column=
"MDC_NUM"
jdbcType=
"VARCHAR"
property=
"mdcNum"
/>
<result
column=
"PARENT_ID"
jdbcType=
"DECIMAL"
property=
"parentId"
/>
<result
column=
"PARENT_ID"
jdbcType=
"DECIMAL"
property=
"parentId"
/>
<result
column=
"LEVEL"
jdbcType=
"DECIMAL"
property=
"level"
/>
<result
column=
"LEVEL"
jdbcType=
"DECIMAL"
property=
"level"
/>
<result
column=
"ORG_ID"
jdbcType=
"
DECIMAL
"
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"
/>
</resultMap>
</resultMap>
...
@@ -59,14 +59,10 @@
...
@@ -59,14 +59,10 @@
from SER_DISEASE
from SER_DISEASE
</select>
</select>
<select
id=
"selectByCode"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByCode"
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 *
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where d.STATE = 1
where d.STATE=1
and d.MDC_CODE = #{code,jdbcType=VARCHAR}
and rs.MDC_CODE=d.MDC_CODE and rs.MDC_CODE = #{code,jdbcType=VARCHAR}
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
</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,
...
...
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