update===>:机构增加标识区分齐鲁名医机构。

This commit is contained in:
haown 2023-11-14 10:22:21 +08:00
parent dde8800b09
commit 21cdddd964
2 changed files with 35 additions and 17 deletions

View File

@ -91,6 +91,9 @@ public class HospitalInfo extends BaseDomain implements Serializable {
@ApiModelProperty(value = "家医机构编号") @ApiModelProperty(value = "家医机构编号")
private String orgCode; private String orgCode;
@ApiModelProperty(value = "医院类别,1:家医机构2齐鲁名医机构")
private String category;
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
@ -101,11 +104,12 @@ public class HospitalInfo extends BaseDomain implements Serializable {
.append("phone", getPhone()) .append("phone", getPhone())
.append("hospitalIntroduce", getHospitalIntroduce()) .append("hospitalIntroduce", getHospitalIntroduce())
.append("hospitalSort", getHospitalSort()) .append("hospitalSort", getHospitalSort())
.append("orgCode", getOrgCode())
.append("category", getCategory())
.append("createBy", getCreateBy()) .append("createBy", getCreateBy())
.append("createTime", getCreateTime()) .append("createTime", getCreateTime())
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("orgCode", getOrgCode())
.toString(); .toString();
} }
} }

View File

@ -12,11 +12,12 @@
<result property="phone" column="phone"/> <result property="phone" column="phone"/>
<result property="hospitalIntroduce" column="hospital_introduce"/> <result property="hospitalIntroduce" column="hospital_introduce"/>
<result property="hospitalSort" column="hospital_sort"/> <result property="hospitalSort" column="hospital_sort"/>
<result property="orgCode" column="org_code"/>
<result property="category" column="category"/>
<result property="createBy" column="create_by"/> <result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="orgCode" column="org_code"/>
</resultMap> </resultMap>
<sql id="selectHospitalInfoVo"> <sql id="selectHospitalInfoVo">
@ -27,11 +28,12 @@
phone, phone,
hospital_introduce, hospital_introduce,
hospital_sort, hospital_sort,
org_code,
category,
create_by, create_by,
create_time, create_time,
update_by, update_by,
update_time, update_time
org_code
from hospital_info from hospital_info
</sql> </sql>
@ -59,6 +61,9 @@
<if test="hospitalSort != null"> <if test="hospitalSort != null">
and hospital_sort = #{hospitalSort} and hospital_sort = #{hospitalSort}
</if> </if>
<if test="category != null and category != ''">
and category = #{category}
</if>
</where> </where>
ORDER BY id DESC ORDER BY id DESC
</select> </select>
@ -85,6 +90,12 @@
</if> </if>
<if test="hospitalSort != null">hospital_sort, <if test="hospitalSort != null">hospital_sort,
</if> </if>
<if test="orgCode != null">
org_code,
</if>
<if test="category != null">
category,
</if>
<if test="createBy != null">create_by, <if test="createBy != null">create_by,
</if> </if>
<if test="createTime != null">create_time, <if test="createTime != null">create_time,
@ -93,9 +104,6 @@
</if> </if>
<if test="updateTime != null">update_time, <if test="updateTime != null">update_time,
</if> </if>
<if test="orgCode != null">
org_code,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="hospitalName != null">#{hospitalName}, <if test="hospitalName != null">#{hospitalName},
@ -110,6 +118,12 @@
</if> </if>
<if test="hospitalSort != null">#{hospitalSort}, <if test="hospitalSort != null">#{hospitalSort},
</if> </if>
<if test="orgCode != null">
#{orgCode},
</if>
<if test="category != null">
#{category},
</if>
<if test="createBy != null">#{createBy}, <if test="createBy != null">#{createBy},
</if> </if>
<if test="createTime != null">#{createTime}, <if test="createTime != null">#{createTime},
@ -118,9 +132,6 @@
</if> </if>
<if test="updateTime != null">#{updateTime}, <if test="updateTime != null">#{updateTime},
</if> </if>
<if test="orgCode != null">
#{orgCode},
</if>
</trim> </trim>
</insert> </insert>
@ -145,6 +156,12 @@
<if test="hospitalSort != null">hospital_sort = <if test="hospitalSort != null">hospital_sort =
#{hospitalSort}, #{hospitalSort},
</if> </if>
<if test="orgCode != null">
org_code = #{orgCode},
</if>
<if test="category != null">
category = #{category},
</if>
<if test="createBy != null">create_by = <if test="createBy != null">create_by =
#{createBy}, #{createBy},
</if> </if>
@ -157,9 +174,6 @@
<if test="updateTime != null">update_time = <if test="updateTime != null">update_time =
#{updateTime}, #{updateTime},
</if> </if>
<if test="orgCode != null">
org_code = #{orgCode},
</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>