DELETE FROM ccdi_purchase_transaction
WHERE purchase_id = 'LSFXMOCKPUR001';

INSERT INTO ccdi_purchase_transaction (
  purchase_id,
  purchase_category,
  project_name,
  subject_name,
  subject_desc,
  purchase_qty,
  budget_amount,
  bid_amount,
  actual_amount,
  contract_amount,
  settlement_amount,
  purchase_method,
  supplier_name,
  contact_person,
  contact_phone,
  supplier_uscc,
  supplier_bank_account,
  apply_date,
  plan_approve_date,
  announce_date,
  bid_open_date,
  contract_sign_date,
  expected_delivery_date,
  actual_delivery_date,
  acceptance_date,
  settlement_date,
  applicant_id,
  applicant_name,
  apply_department,
  purchase_leader_id,
  purchase_leader_name,
  purchase_department,
  created_by,
  updated_by
)
SELECT
  'LSFXMOCKPUR001',
  '设备采购',
  'LSFX Mock 联调',
  '反洗钱终端设备采购',
  '用于命中 LARGE_PURCHASE_TRANSACTION 真实规则',
  1,
  188000.00,
  186000.00,
  186000.00,
  186000.00,
  186000.00,
  '竞争性谈判',
  '兰溪市联调供应链有限公司',
  '联调联系人',
  '13800000000',
  '91330781MOCKPUR001',
  '6222000000001234',
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CURRENT_DATE,
  CAST(s.staff_id AS CHAR),
  s.name,
  '纪检初核部',
  NULL,
  NULL,
  NULL,
  'admin',
  'admin'
FROM ccdi_base_staff s
WHERE COALESCE(TRIM(CAST(s.staff_id AS CHAR)), '') <> ''
  AND COALESCE(TRIM(s.name), '') <> ''
LIMIT 1;
