insert into bm_qrcode_box box_code, box_name, box_type, create_by, create_time, #{boxCode}, #{boxName}, #{boxType}, #{createBy}, #{createTime}, update bm_qrcode_box box_code = #{boxCode}, box_type = #{boxType}, box_name = #{boxName}, box_status = #{status} , update_by = #{updateBy}, update_time = #{updateTime}, transfer_user = #{transferUser}, input_user = #{inputUser}, where box_id = #{boxId} update bm_qrcode_box box_type = #{boxType}, box_name = #{boxName}, box_status = #{status}, update_by = #{updateBy}, update_time = #{updateTime}, where box_code = #{boxCode} delete from bm_qrcode_box where box_id = #{boxId} delete from bm_qrcode_box_bind where id = #{id} delete from bm_qrcode_box_bind where ma_id = #{maId} insert into bm_qrcode_box_bind ma_id, box_id, create_by, create_time, #{maId}, #{boxId}, #{createBy}, #{createTime}, update bm_qrcode_box box_status = IF(box_status = 1,#{status},box_status) , where box_id = #{boxId} update purchase_check_details set input_num = IFNULL(input_num,0) + 1 where task_id = #{taskId} and type_id = #{maTypeId} update purchase_check_details set status =19 where task_id = #{taskId} and type_id = #{maTypeId} UPDATE tm_task SET task_status = 22 WHERE task_id = #{taskId} update ma_type set storage_num = ifnull(storage_num,0) + #{inputNum} where type_id = #{maTypeId} update bm_qrcode_box set box_status = 6 where box_id = #{boxId}