|
|
@@ -155,6 +155,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deliveryImportTime != null "> and delivery_import_time = #{deliveryImportTime}</if>
|
|
|
<if test="backendEditProductType != null "> and backend_edit_product_type = #{backendEditProductType}</if>
|
|
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
|
|
+ <if test="videoId != null and videoId != ''"> and video_id = #{videoId}</if>
|
|
|
+ <if test="courseId != null and courseId != ''"> and course_id = #{courseId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -260,6 +262,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="followDoctorId != null">follow_doctor_id,</if>
|
|
|
<if test="cycle != null">cycle,</if>
|
|
|
<if test="backendEditProductType != null">backend_edit_product_type,</if>
|
|
|
+ <if test="videoId != null">video_id,</if>
|
|
|
+ <if test="courseId != null" >course_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderCode != null and orderCode != ''">#{orderCode},</if>
|
|
|
@@ -347,6 +351,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="followDoctorId != null">#{followDoctorId},</if>
|
|
|
<if test="cycle != null">#{cycle},</if>
|
|
|
<if test="backendEditProductType != null">#{backendEditProductType},</if>
|
|
|
+ <if test="videoId != null">#{videoId},</if>
|
|
|
+ <if test="courseId != null" >#{courseId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -441,6 +447,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="cycle != null">cycle = #{cycle},</if>
|
|
|
<if test="orderRemark != null">order_remark = #{orderRemark},</if>
|
|
|
<if test="backendEditProductType != null">backend_edit_product_type = #{backendEditProductType},</if>
|
|
|
+ <if test="videoId != null">video_id = #{videoId},</if>
|
|
|
+ <if test="courseId != null">course_id = #{courseId},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|