agentsclimarketplace

Mysql应付账款到期及逾期统计

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/mysql应付账款到期及逾期统计

用于生成MySQL应付账款统计查询,按到期时间(当前、1个月内、3个月内)分组统计金额,并确保时间范围互不重叠。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill mysql应付账款到期及逾期统计

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 531 tokens by cl100k_base, as published. Nobody here has run it

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 账款 分组统计

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.