refactor(service): 修改统计记录检查方法返回类型

- 将 checkExistsByStatTypeToday 方法返回值从 Boolean 改为 Long
- 服务层实现中返回存在的记录ID,不存在则返回null
- 控制器接口同步更新返回类型和文档注释
- 优化查询逻辑直接返回记录ID而不是布尔值
This commit is contained in:
2026-03-10 16:50:08 +08:00
parent 9e5e7cf0af
commit 1862908eb1
3 changed files with 8 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ public interface IWmsCoilStatisticsSummaryService {
/**
* 检查当天是否存在指定类型的统计记录
* @param statType 统计类型
* @return true-存在false-不存在
* @return 存在的记录ID不存在则返回null
*/
Boolean checkExistsByStatTypeToday(String statType);
Long checkExistsByStatTypeToday(String statType);
}