日期判空
This commit is contained in:
parent
0c559f28ab
commit
ca68b6566b
|
@ -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,
|
||||
|
|
|
@ -641,7 +641,6 @@ public class ProjectServiceImpl implements ProjectService {
|
|||
projectDailyDAO.deleteDailyByProject(id1);
|
||||
}
|
||||
|
||||
|
||||
return ResultUtil.success();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user