fix: 功能优化完善,统计功能代码提交。
This commit is contained in:
@@ -27,6 +27,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="medicineName" column="medicine_name" />
|
||||
<result property="usage" column="usage" />
|
||||
<result property="ageWeight" column="age_weight" />
|
||||
<result property="packageUnit" column="package_unit" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="totalCount" column="total_count" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthMedicineStockInVo">
|
||||
@@ -51,8 +54,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.left_count,
|
||||
a.used_count,
|
||||
a.purchase_address,
|
||||
a.unit,
|
||||
a.total_price,
|
||||
hmb."name" as medicine_name
|
||||
hmb."name" as medicine_name,
|
||||
a.package_unit,
|
||||
a.total_count
|
||||
from
|
||||
health_medicine_stock_in a
|
||||
left join health_medicine_basic hmb on
|
||||
@@ -110,6 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalPrice != null">total_price,</if>
|
||||
<if test="usage != null">usage,</if>
|
||||
<if test="ageWeight != null">age_weight,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="packageUnit != null">package_unit,</if>
|
||||
<if test="totalCount != null">total_count,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -133,6 +142,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalPrice != null">#{totalPrice},</if>
|
||||
<if test="usage != null">#{usage},</if>
|
||||
<if test="ageWeight != null">#{ageWeight},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="packageUnit != null">#{packageUnit},</if>
|
||||
<if test="totalCount != null">#{packageUnit},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -159,6 +171,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalPrice != null">total_price = #{totalPrice},</if>
|
||||
<if test="usage != null">usage = #{usage},</if>
|
||||
<if test="ageWeight != null">age_weight = #{ageWeight},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="packageUnit != null">package_unit = #{packageUnit},</if>
|
||||
<if test="totalCount != null">total_count = #{packageUnit},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user