patch:日志搜索接口
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 22s

日期判空
This commit is contained in:
xiangZr-hhh 2024-04-22 22:27:08 +08:00
parent 0c559f28ab
commit ca68b6566b
3 changed files with 1 additions and 6 deletions

View File

@ -106,10 +106,6 @@ public class ProjectDailyController {
return ResultUtil.error(ErrorCode.PAGE_NUMBER_IS_NULL);
}
if (projectId == null) {
return ResultUtil.error(ErrorCode.ID_NOT_EXIST);
}
return projectDailyService.searchMyDaily(projectId,
page,
pageSize,

View File

@ -641,7 +641,6 @@ public class ProjectServiceImpl implements ProjectService {
projectDailyDAO.deleteDailyByProject(id1);
}
return ResultUtil.success();
}
}

View File

@ -416,7 +416,7 @@ public class Processing {
* @Param dateString:
**/
public static Date convertStringToDate(String dateString) {
if (dateString.isEmpty()) {
if (dateString == null || dateString.isEmpty()) {
return null; // 如果字符串为空返回空的Date对象
} else {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");