insert into bns_smz_own_read(worker_id, ann_id, is_read, create_time, update_time, is_active) VALUES (#{workerId}, #{notifyId}, '0', NOW(), NOW(), '0') insert into bns_smz_own_read(worker_id, ann_id, is_read, create_time, update_time, is_active) VALUES (#{workerId}, #{notifyId}, '1', NOW(), NOW(), '1') UPDATE bns_smz_own_read set is_active='0', update_time=NOW() WHERE worker_id = #{workerId} and ann_id = #{notifyId}