fix: 功能优化。

This commit is contained in:
tianyongbao
2024-10-12 10:44:27 +08:00
parent 7b6c701a7a
commit 0504ff0121
4 changed files with 49 additions and 0 deletions

View File

@@ -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>