Commit 921e6fd4 by Suvalue

病组添加分组字段

parent c0d10749
...@@ -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;
} }
......
...@@ -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 +
'}'; '}';
} }
......
#### \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
......
...@@ -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=\u767B\u5F55\u6DFB\u52A0\u75C5\u6848\u4FE1\u606F version.remarks=\u75C5\u7EC4\u6DFB\u52A0\u5206\u7EC4\u5B57\u6BB5
\ No newline at end of file \ No newline at end of file
...@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment