字符串判空

This commit is contained in:
2025-10-16 18:05:18 +08:00
parent b16237467d
commit fde003728b
3 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
package com.czg;
import com.czg.utils.CzgStrUtils;
import lombok.Data;
/**
@@ -14,7 +15,14 @@ public class TimeQueryParam extends BaseQueryParam {
private String startTime;
/**
* 结束时间 yyyy-MM-dd HH:mm:ss
*
*/
private String endTime;
public String getStartTime() {
return CzgStrUtils.getStrOrNull(startTime);
}
public String getEndTime() {
return CzgStrUtils.getStrOrNull(endTime);
}
}