Commit 39f3f29d by Suvalue

病组调整

parent 2b4323f2
...@@ -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;
} }
......
...@@ -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 dic_disease from dic_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 dic_disease d
from dic_disease d,dic_disease_doc_rs rs where d.STATE = 1
where d.STATE=1 and 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,
......
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