|
@@ -216,6 +216,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateSaleProductsBySaleOrderNo" parameterType="com.zkqy.business.domain.SaleProducts">
|
|
|
+ update {DBNAME}.sale_products
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="saleProductNo != null">sale_product_no = #{saleProductNo},</if>
|
|
|
+ <if test="productNo != null">product_no = #{productNo},</if>
|
|
|
+ <if test="productName != null">product_name = #{productName},</if>
|
|
|
+ <if test="productNumber != null">product_number = #{productNumber},</if>
|
|
|
+ <if test="productWeight != null">product_weight = #{productWeight},</if>
|
|
|
+ <if test="productUnitPrice != null">product_unit_price = #{productUnitPrice},</if>
|
|
|
+ <if test="productAmounts != null">product_amounts = #{productAmounts},</if>
|
|
|
+ <if test="productNotes != null">product_notes = #{productNotes},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="createById != null">create_by_id = #{createById},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateById != null">update_by_id = #{updateById},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
+ <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
+ <if test="processKey != null">process_key = #{processKey},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="productionLineNo != null">production_line_no = #{productionLineNo},</if>
|
|
|
+ <if test="sliceType != null">slice_type = #{sliceType},</if>
|
|
|
+ <if test="colourNumber != null">colour_number = #{colourNumber},</if>
|
|
|
+ <if test="onBoardState != null">on_board_state = #{onBoardState},</if>
|
|
|
+ </trim>
|
|
|
+ where sale_order_no = #{saleOrderNo}
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="deleteSaleProductsById" parameterType="Long">
|
|
|
delete from sale_products where id = #{id}
|
|
|
</delete>
|
|
@@ -231,7 +262,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update {DBNAME}.sale_products
|
|
|
<set>
|
|
|
production_line_no=#{item.productionLineNo},
|
|
|
- lot_number=#{item.lotNumber}
|
|
|
+ lot_number=#{item.lotNumber},
|
|
|
+ on_board_state=#{item.onBoardState}
|
|
|
</set>
|
|
|
where id = #{item.id}
|
|
|
</foreach>
|