| | |
| | | import java.util.List; |
| | | import com.qianwen.core.mp.base.BaseServiceImpl; |
| | | import com.qianwen.core.tool.utils.Func; |
| | | import com.qianwen.mdc.collect.constants.CommonConstant; |
| | | import com.qianwen.mdc.collect.dto.CalendarShiftInfoDTO; |
| | | import com.qianwen.mdc.collect.entity.mgr.Workstation; |
| | | import com.qianwen.mdc.collect.mapper.mgr.CalendarMapper; |
| | | import com.qianwen.mdc.collect.mapper.mgr.WorkstationMapper; |
| | | import com.qianwen.mdc.collect.utils.LocalDateTimeUtils; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | /* |
| | | import com.qianwen.posting.cache.WorkstationCache; |
| | | import com.qianwen.posting.constant.CommonConstant; |
| | |
| | | |
| | | @Service |
| | | public class WorkstationService extends BaseServiceImpl<WorkstationMapper, Workstation>{ |
| | | //private final CalendarMapper calendarMapper; |
| | | @Autowired |
| | | private CalendarMapper calendarMapper; |
| | | //BaseEntity a; |
| | | /* |
| | | |
| | |
| | | updateBatchById(workstationList); |
| | | WorkstationCache.clearWorkStationCache(); |
| | | } |
| | | |
| | | @Override |
| | | */ |
| | | |
| | | public CalendarShiftInfoDTO getCalendarShiftInfoForWorkstation(Long workstationId, Date date) { |
| | | Workstation workstationInfo = (Workstation) getById(workstationId); |
| | | Workstation workstationInfo = getById(workstationId); |
| | | CalendarShiftInfoDTO result = null; |
| | | if (Func.isNotEmpty(workstationInfo) && !"#default#".equals(workstationInfo.getCalendarCode())) { |
| | | List<CalendarShiftInfoDTO> calendarShiftInfoDTOList = this.calendarMapper.getCalendarShiftInfoToday(workstationInfo.getCalendarCode(), DateUtil.formatDate(date)); |
| | |
| | | } |
| | | return result; |
| | | } |
| | | */ |
| | | |
| | | } |