-- 新风控二次审批确认有效期配置
-- 幂等：已存在则不重复插入
INSERT INTO appconfig
(
    PGroup,
    PName,
    PValue,
    PType,
    Remark,
    CreateTime,
    OptDate
)
SELECT
    'ProjectConfig',
    'Trade.RiskWarningConfirmExpireSeconds',
    '300',
    'int',
    '新风控二次审批确认有效期(秒)，超过后需重新校验',
    NOW(),
    NOW()
FROM DUAL
WHERE NOT EXISTS
(
    SELECT 1
    FROM appconfig
    WHERE PGroup = 'ProjectConfig'
      AND PName = 'Trade.RiskWarningConfirmExpireSeconds'
);
