临时外出申请了上午的,就不能申请下午的了问题修改

This commit is contained in:
cwchen 2025-03-17 18:17:39 +08:00
parent ab87626ef2
commit 4303d2b59f
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.bonus.boot.manager.manager.entity.EvectionBean;
import com.bonus.boot.manager.manager.utils.UserUtil;
import org.apache.catalina.security.SecurityUtil;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@ -29,6 +30,12 @@ public class VerifyDateService {
if(bean.getUserId() == null){
bean.setUserId(Long.parseLong(UserUtil.getLoginUser().getUserId()));
}
if(StringUtils.isBlank(bean.getLeaveStartInterval())){
bean.setLeaveStartInterval("1");
}
if(StringUtils.isBlank(bean.getLeaveEndInterval())){
bean.setLeaveStartInterval("2");
}
List<Map<String, Object>> list = dao.verifyDate(bean,type);
if(CollectionUtils.isNotEmpty(list)){
StringBuilder sb = new StringBuilder();