郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.gkhy.safePlatform.account.service.baseService.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.safePlatform.account.entity.schedule.ScheduleAllYearDateInfo;
import com.gkhy.safePlatform.account.model.dto.resp.ScheduleAllYearDateRespDTO;
import com.gkhy.safePlatform.account.repository.schedule.ScheduleAllYearDateRepository;
import com.gkhy.safePlatform.account.service.baseService.ScheduleAllYearDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("scheduleAllYearDateService")
public class ScheduleAllYearDateServiceImpl extends ServiceImpl<ScheduleAllYearDateRepository, ScheduleAllYearDateInfo> implements ScheduleAllYearDateService {
    @Autowired
    private ScheduleAllYearDateRepository scheduleAllYearDateRepository;
 
    /**
     * 更新
     * @param scheduleAllYearDateInfo
     * @return
     */
    @Override
    public int updateScheduleAllYearDate(ScheduleAllYearDateInfo scheduleAllYearDateInfo) {
        return scheduleAllYearDateRepository.updateById(scheduleAllYearDateInfo);
    }
    /**
     * 条件查询日期信息
     */
    public List<ScheduleAllYearDateRespDTO> getScheduleAllYearDate(ScheduleAllYearDateInfo scheduleAllYearDateInfo){
        return scheduleAllYearDateRepository.getScheduleAllYearDate(scheduleAllYearDateInfo);
    }
}