|
|
@ -3,7 +3,7 @@ package com.yxt.yythmall.biz.empcardgift; |
|
|
|
import cn.hutool.core.date.DateTime; |
|
|
|
import cn.hutool.core.date.DateUnit; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.alibaba.nacos.client.naming.utils.CollectionUtils; |
|
|
|
//import com.alibaba.nacos.client.naming.utils.CollectionUtils;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
@ -1004,7 +1004,8 @@ public class EmpCardGiftService extends MybatisBaseService<EmpCardGiftMapper, Em |
|
|
|
// LocalDate saturday = now.with(firstInMonth(DayOfWeek.SATURDAY));
|
|
|
|
LocalDate saturday = now.with(DayOfWeek.SATURDAY); |
|
|
|
do { |
|
|
|
if (CollectionUtils.isEmpty(weekMap)) { |
|
|
|
// if (CollectionUtils.isEmpty(weekMap)) {
|
|
|
|
if (weekMap.isEmpty()) { |
|
|
|
weekMap.add(saturday.toString()); |
|
|
|
} else { |
|
|
|
weekMap.add(saturday.toString()); |
|
|
@ -1016,7 +1017,8 @@ public class EmpCardGiftService extends MybatisBaseService<EmpCardGiftMapper, Em |
|
|
|
// 第一个星期天
|
|
|
|
LocalDate sunday = now.with(DayOfWeek.SUNDAY); |
|
|
|
do { |
|
|
|
if (CollectionUtils.isEmpty(weekMap)) { |
|
|
|
// if (CollectionUtils.isEmpty(weekMap)) {
|
|
|
|
if (weekMap.isEmpty()) { |
|
|
|
weekMap.add(saturday.toString()); |
|
|
|
} else { |
|
|
|
weekMap.add(sunday.toString()); |
|
|
|