INSERT INTO esn_work_history (tenant_code, store_id, work_type, work_content,
worker_name, status, remarks, started_at)
VALUES (#{tenantCode}, #{storeId}, #{workType}, #{workContent},
#{workerName}, #{status}, #{remarks}, #{startedAt})
UPDATE esn_work_history SET
work_type = #{workType},
work_content = #{workContent},
worker_name = #{workerName},
status = #{status},
remarks = #{remarks},
started_at = #{startedAt},
completed_at = #{completedAt}
WHERE id = #{id}
DELETE FROM esn_work_history WHERE id = #{id}