fix: 健康管理档案,功能优化完善。
This commit is contained in:
@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="partner" column="partner" />
|
||||
<result property="costDetail" column="cost_detail" />
|
||||
<result property="type" column="type" />
|
||||
<result property="diagnosis" column="diagnosis" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthDoctorRecordVo">
|
||||
@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.total_cost,
|
||||
a.partner,
|
||||
a.cost_detail,
|
||||
a.diagnosis,
|
||||
hp."name" as person_name ,
|
||||
hr."name" as health_record_name
|
||||
from
|
||||
@@ -106,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="partner != null">partner,</if>
|
||||
<if test="costDetail != null">cost_detail,</if>
|
||||
<if test="type != null and type != ''">type,</if>
|
||||
<if test="diagnosis != null and diagnosis != ''">diagnosis,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -126,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="partner != null">#{partner},</if>
|
||||
<if test="costDetail != null">#{costDetail},</if>
|
||||
<if test="type != null and type != ''">#{type},</if>
|
||||
<if test="diagnosis != null and diagnosis != ''">#{diagnosis},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -149,6 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="partner != null">partner = #{partner},</if>
|
||||
<if test="costDetail != null">cost_detail = #{costDetail},</if>
|
||||
<if test="type != null and type != ''">type = #{type},</if>
|
||||
<if test="diagnosis != null and diagnosis != ''">diagnosis = #{diagnosis},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user