SELECT id, record_date, dept_name, dept_id, team_name, team_id, group_name, group_id, area_id,
location, position, position_id,
inspector_name, inspector_id, channel_no, item_name, item_quantity,
problem_level, check_personnel, evidence_file,
deduct_score, add_score, score_dimension, score_indicator,
import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
FROM ledger_realtime_interception
WHERE del_flag = '0'
update ledger_realtime_interception
set sync_flag = '1'
where sync_flag = '0'