| | |
| | | package com.zy.crm.manager.service.impl; |
| | | |
| | | import com.core.common.Cools; |
| | | import com.zy.crm.manager.mapper.WeeklyMapper; |
| | | import com.zy.crm.manager.entity.Weekly; |
| | | import com.zy.crm.manager.service.WeeklyService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Service("weeklyService") |
| | | public class WeeklyServiceImpl extends ServiceImpl<WeeklyMapper, Weekly> implements WeeklyService { |
| | | |
| | | @Override |
| | | public Integer selectUserStartAndEnd(List<Date> timeList, Long userId){ |
| | | Integer integer = this.baseMapper.selectUserStartAndEnd(timeList.get(0), timeList.get(1), userId); |
| | | return Cools.isEmpty(integer)? 0:integer; |
| | | }; |
| | | |
| | | } |