insert into purchase_macode_info task_id, type_id, ma_code, qr_code, fix_code, code_type, status, create_by, create_time, remark, company_id, out_fac_code, qr_url, del_flag #{taskId}, #{typeId}, #{maCode}, #{qrCode}, #{fixCode}, #{codeType}, #{status}, #{createBy}, #{createTime}, #{remark}, #{companyId}, #{outFacCode}, #{qrUrl}, 0 INSERT INTO purchase_macode_info qr_code, type_id, qr_url, task_id, create_by, create_time, del_flag #{qrCode}, #{typeId}, #{qrUrl}, #{id}, #{createBy}, NOW(), 0 UPDATE purchase_check_details SET input_num = #{purchaseNum} WHERE id = #{id} UPDATE purchase_check_details SET `status` = #{updatedStatus} WHERE id = #{id} UPDATE ma_type SET storage_num = #{inputNum} + IFNULL(storage_num, 0) WHERE type_id = #{typeId} UPDATE purchase_check_details SET is_download = '1' WHERE del_flag = '0' and task_id = #{id} and id = #{purchaseId}