refactor(service): 修改统计记录检查方法返回类型
- 将 checkExistsByStatTypeToday 方法返回值从 Boolean 改为 Long - 服务层实现中返回存在的记录ID,不存在则返回null - 控制器接口同步更新返回类型和文档注释 - 优化查询逻辑直接返回记录ID而不是布尔值
This commit is contained in:
@@ -101,10 +101,10 @@ public class WmsCoilStatisticsSummaryController extends BaseController {
|
||||
* 检查当天是否存在指定类型的统计记录
|
||||
*
|
||||
* @param statType 统计类型
|
||||
* @return true-存在,false-不存在
|
||||
* @return 存在的记录ID,不存在则返回null
|
||||
*/
|
||||
@GetMapping("/checkToday")
|
||||
public R<Boolean> checkTodayExists(@RequestParam String statType) {
|
||||
public R<Long> checkTodayExists(@RequestParam String statType) {
|
||||
return R.ok(iWmsCoilStatisticsSummaryService.checkExistsByStatTypeToday(statType));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user