feat(scheduler): 更新定时任务配置以支持中标与招标分别设置阈值 将原先单一的 threshold 配置项拆分为 winningThreshold 和 bidThreshold, 分别用于控制中标公示和招标公告的金额筛选条件。同时调整了默认值及描述信息, 使配置更清晰灵活。 此外,更新了定时任务状态展示逻辑,支持显示两个独立的阈值及其单位转换(万元/亿元)。 当阈值为 0 时显示“不筛选”,提高用户理解度。 配置文件 config.json 中相关字段已同步修改,并调整了时间范围字段 timeRange 的默认值。 ```
17 lines
382 B
JSON
17 lines
382 B
JSON
{
|
|
"scheduler": {
|
|
"enabled": true,
|
|
"cronTime": "0 9 * * *",
|
|
"winningThreshold": 0,
|
|
"bidThreshold": 0,
|
|
"description": "每天9点采集当日项目",
|
|
"timeRange": "thisMonth"
|
|
},
|
|
"email": {
|
|
"smtpHost": "smtp.qq.com",
|
|
"smtpPort": 587,
|
|
"smtpUser": "1076597680@qq.com",
|
|
"smtpPass": "nfrjdiraqddsjeeh",
|
|
"recipients": "5482498@qq.com"
|
|
}
|
|
} |