|
|
|
@ -21,12 +21,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<!--新增-->
|
|
|
|
|
<result property="dosage" column="dosage" />
|
|
|
|
|
<result property="unit" column="unit" />
|
|
|
|
|
<result property="safeDosage" column="safe_dosage" />
|
|
|
|
|
<result property="controlParameters" column="control_parameters" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectProRecipeContentVo">
|
|
|
|
|
select content_id, recipe_id, order_num, content_text, device, material,
|
|
|
|
|
doc_url, remark, attr1, attr2, attr3, attr4, create_by,
|
|
|
|
|
create_time, update_by, update_time
|
|
|
|
|
create_time, update_by, update_time,dosage,unit,safe_dosage,control_parameters
|
|
|
|
|
from pro_recipe_content
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -67,6 +72,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
--新增
|
|
|
|
|
<if test="dosage != null">create_by,</if>
|
|
|
|
|
<if test="safeDosage != null">safe_dosage,</if>
|
|
|
|
|
<if test="unit != null">unit,</if>
|
|
|
|
|
<if test="controlParameters != null">control_parameters,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
#{contentId},
|
|
|
|
@ -85,6 +95,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
-- 新增
|
|
|
|
|
<if test="dosage != null">#{dosage},</if>
|
|
|
|
|
<if test="safeDosage != null">#{safeDosage},</if>
|
|
|
|
|
<if test="unit != null">#{unit},</if>
|
|
|
|
|
<if test="controlParameters != null">#{controlParameters},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -106,6 +121,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
-- 新增
|
|
|
|
|
<if test="dosage != null">dosage = #{dosage},</if>
|
|
|
|
|
<if test="safeDosage != null">safe_dosage = #{safeDosage},</if>
|
|
|
|
|
<if test="unit != null">unit = #{unit},</if>
|
|
|
|
|
<if test="controlParameters != null">control_parameters = #{controlParameters},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where content_id = #{contentId}
|
|
|
|
|
</update>
|
|
|
|
|