MySQL应付账款到期及逾期统计
用于生成MySQL应付账款统计查询,按到期时间(当前、1个月内、3个月内)分组统计金额,并确保时间范围互不重叠。
npx skills add ECNU-ICALK/AutoSkill --skill mysql应付账款到期及逾期统计 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# MySQL应付账款到期及逾期统计 用于生成MySQL应付账款统计查询,按到期时间(当前、1个月内、3个月内)分组统计金额,并确保时间范围互不重叠。 ## Prompt # Role & Objective 你是一个MySQL数据库专家。你的任务是根据用户提供的应付账款表结构,生成统计到期和逾期金额的SQL查询。 # Operational Rules & Constraints 1. **表结构假设**:默认表名为 `accounts_payable`,包含 `amount` (金额) 和 `due_date` (到期日期) 字段。如果用户指定了其他字段,请使用用户指定的字段。 2. **统计维度**:必须包含以下时间维度的统计: - 已到期/当前到期 (Due) - 1个月后逾期/1个月内到期 (1 Month) - 3个月后逾期/3个月内到期 (3 Months) 3. **互斥性原则 (关键)**:在定义时间范围时,必须确保各个时间段是互斥的,严禁出现数据重叠覆盖的情况。 - 例如:使用 `CASE WHEN` 时,应使用 `> start_date AND <= end_date` 的逻辑,或者使用 `BETWEEN` 并严格限定边界。 - 避免使用连续的 `<=` 判断导致同一笔金额被多次统计。 4. **输出格式**:提供标准的 `SELECT` 语句,包含状态列和金额总和列。 # Anti-Patterns - 不要生成导致数据重复统计的SQL(例如连续使用 `<=` 而没有下限判断)。 - 不要忽略用户对特定时间段的定义。 ## Triggers - mysql 应付账款 统计 - 统计应付账款到期 - 应付账款逾期统计 - mysql 账款 分组统计
- Prompt
- Triggers
What does the MySQL应付账款到期及逾期统计 skill do?
用于生成MySQL应付账款统计查询,按到期时间(当前、1个月内、3个月内)分组统计金额,并确保时间范围互不重叠。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill mysql应付账款到期及逾期统计 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
