fix: 功能优化。
This commit is contained in:
@@ -21,6 +21,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="personId" column="person_id" />
|
||||
<result property="personName" column="person_name" />
|
||||
<result property="healthRecordName" column="health_record_name" />
|
||||
<result property="totalCost" column="total_cost" />
|
||||
<result property="partner" column="partner" />
|
||||
<result property="costDetail" column="cost_detail" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthDoctorRecordVo">
|
||||
@@ -39,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.visiting_time,
|
||||
a.prescribe,
|
||||
a.person_id,
|
||||
a.total_cost,
|
||||
a.partner,
|
||||
a.cost_detail,
|
||||
hp."name" as person_name ,
|
||||
hr."name" as health_record_name
|
||||
from
|
||||
@@ -93,6 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="visitingTime != null">visiting_time,</if>
|
||||
<if test="prescribe != null and prescribe != ''">prescribe,</if>
|
||||
<if test="personId != null">person_id,</if>
|
||||
<if test="totalCost != null">total_cost,</if>
|
||||
<if test="partner != null">partner,</if>
|
||||
<if test="costDetail != null">cost_detail,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -109,6 +118,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="visitingTime != null">#{visitingTime},</if>
|
||||
<if test="prescribe != null and prescribe != ''">#{prescribe},</if>
|
||||
<if test="personId != null">#{personId},</if>
|
||||
<if test="totalCost != null">#{totalCost},</if>
|
||||
<if test="partner != null">#{partner},</if>
|
||||
<if test="costDetail != null">#{costDetail},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -128,6 +140,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="visitingTime != null">visiting_time = #{visitingTime},</if>
|
||||
<if test="prescribe != null and prescribe != ''">prescribe = #{prescribe},</if>
|
||||
<if test="personId != null">person_id = #{personId},</if>
|
||||
<if test="totalCost != null">total_cost = #{totalCost},</if>
|
||||
<if test="partner != null">partner = #{partner},</if>
|
||||
<if test="costDetail != null">cost_detail = #{costDetail},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
@@ -25,6 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="purchaseAddress" column="purchase_address" />
|
||||
<result property="totalPrice" column="total_price" />
|
||||
<result property="medicineName" column="medicine_name" />
|
||||
<result property="usage" column="usage" />
|
||||
<result property="ageWeight" column="age_weight" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMedicineStockInVo">
|
||||
@@ -32,6 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.id,
|
||||
a.medicine_id,
|
||||
a.quantity,
|
||||
a.usage,
|
||||
a.age_weight,
|
||||
a.production_date,
|
||||
a.expiring_date,
|
||||
a.purchase_date,
|
||||
@@ -104,6 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="usedCount != null">used_count,</if>
|
||||
<if test="purchaseAddress != null">purchase_address,</if>
|
||||
<if test="totalPrice != null">total_price,</if>
|
||||
<if test="usage != null">usage,</if>
|
||||
<if test="ageWeight != null">age_weight,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -125,6 +131,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="usedCount != null">#{usedCount},</if>
|
||||
<if test="purchaseAddress != null">#{purchaseAddress},</if>
|
||||
<if test="totalPrice != null">#{totalPrice},</if>
|
||||
<if test="usage != null">#{usage},</if>
|
||||
<if test="ageWeight != null">#{ageWeight},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -149,6 +157,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="usedCount != null">used_count = #{usedCount},</if>
|
||||
<if test="purchaseAddress != null">purchase_address = #{purchaseAddress},</if>
|
||||
<if test="totalPrice != null">total_price = #{totalPrice},</if>
|
||||
<if test="usage != null">usage = #{usage},</if>
|
||||
<if test="ageWeight != null">age_weight = #{ageWeight},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user