feat: 药品基础信息,就医记录,活动记录,新增附件上传功能。
This commit is contained in:
@@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="totalCost" column="total_cost" />
|
||||
<result property="partner" column="partner" />
|
||||
<result property="costDetail" column="cost_detail" />
|
||||
<result property="attachment" column="attachment" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHealthActivityVo">
|
||||
select a.id, a.name, a.type, a.place, a.activity_volume, a.exercise_time, a.start_time, a.end_time, a.harvest, a.foods, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.total_cost, a.partner, a.cost_detail from health_activity a
|
||||
select a.id, a.name, a.type, a.place, a.activity_volume, a.exercise_time, a.start_time, a.end_time, a.harvest, a.foods, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.total_cost, a.partner, a.cost_detail, a.attachment from health_activity a
|
||||
</sql>
|
||||
|
||||
<select id="selectHealthActivityList" parameterType="HealthActivityDto" resultMap="HealthActivityResult">
|
||||
@@ -73,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalCost != null">total_cost,</if>
|
||||
<if test="partner != null">partner,</if>
|
||||
<if test="costDetail != null">cost_detail,</if>
|
||||
<if test="attachment != null">attachment,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -94,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalCost != null">#{totalCost},</if>
|
||||
<if test="partner != null">#{partner},</if>
|
||||
<if test="costDetail != null">#{costDetail},</if>
|
||||
<if test="attachment != null">#{attachment},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -118,6 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="totalCost != null">total_cost = #{totalCost},</if>
|
||||
<if test="partner != null">partner = #{partner},</if>
|
||||
<if test="costDetail != null">cost_detail = #{costDetail},</if>
|
||||
<if test="attachment != null">attachment = #{attachment},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user