yangys
2024-09-27 26f8e5990686bdba2119024a260d986266506757
collect/src/main/java/com/qianwen/mdc/collect/service/WorkstationService.java
@@ -13,9 +13,14 @@
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;
@@ -30,7 +35,8 @@
@Service
public class WorkstationService extends BaseServiceImpl<WorkstationMapper, Workstation>{
    //private final CalendarMapper calendarMapper;
   @Autowired
    private CalendarMapper calendarMapper;
   //BaseEntity a;
    /*
@@ -52,10 +58,10 @@
        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));
@@ -77,5 +83,5 @@
        }
        return result;
    }
    */
}