提交 90e6c2cc 作者: 沈振路

客服活动日期赋值逻辑调整

上级 152a06cb
......@@ -104,21 +104,21 @@ public class CommonReferralBody implements Serializable {
private String h5Content;
public Date getStartTime() {
if (ObjectUtil.isNull(this.startTime) && CollectionUtil.isNotEmpty(this.dateList)) {
if (CollectionUtil.isNotEmpty(this.dateList)) {
return dateList.get(0);
}
return startTime;
}
public Date getEndTime() {
if (ObjectUtil.isNull(this.endTime) && CollectionUtil.isNotEmpty(this.dateList)) {
if (CollectionUtil.isNotEmpty(this.dateList) && this.dateList.size() > 1) {
return dateList.get(1);
}
return endTime;
}
public List<Date> getDateList() {
if (CollectionUtil.isEmpty(this.dateList) && ObjectUtil.isNotNull(this.startTime) && ObjectUtil.isNotNull(this.endTime)) {
if (ObjectUtil.isNotNull(this.startTime) && ObjectUtil.isNotNull(this.endTime)) {
return Arrays.asList(this.startTime, this.endTime);
}
return dateList;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论