INSERT INTO question (
id,
category,
type,
question,
order_field,
company_id
)
VALUES (
#{id},
#{category},
#{type},
#{question},
#{orderField},
#{companyId}
)
INSERT INTO question (
id,
category,
type,
question,
order_field,
company_id
)
VALUES
(
#{item.id},
#{item.category},
#{item.type},
#{item.question},
#{item.orderField},
#{item.companyId}
)
UPDATE question
category = #{category},
type = #{type},
question = #{question},
order_field = #{orderField},
WHERE id=#{id}
UPDATE question
category = #{category},
type = #{type},
question = #{question},
order_field = #{orderField},
WHERE id=#{id}
delete from question where id in
#{item}
DELETE FROM question
where id=#{id}
DELETE FROM question
where 1=1
and id = #{record.id}
and category = #{record.category}
and type = #{record.type}
and question = #{record.question}
and order_field = #{record.orderField}