INSERT INTO crm_report (dealer_id, school_id, school_name, product, project_type, description, status, protect_start_date, protect_end_date)
VALUES (#{dealerId}, #{schoolId}, #{schoolName}, #{product}, #{projectType}, #{description}, #{status}, #{protectStartDate}, #{protectEndDate})
UPDATE crm_report
product = #{product},
project_type = #{projectType},
description = #{description},
status = #{status},
reject_reason = #{rejectReason},
cancel_reason = #{cancelReason},
protect_start_date = #{protectStartDate},
protect_end_date = #{protectEndDate},
updated_at = NOW()
WHERE id = #{id}
DELETE FROM crm_report WHERE id = #{id}
UPDATE crm_report
SET status = 3
WHERE id IN
#{id}