Package net.risesoft.service.impl
Class CalendarConfigServiceImpl
- java.lang.Object
-
- net.risesoft.service.impl.CalendarConfigServiceImpl
-
- All Implemented Interfaces:
CalendarConfigService
@Service @Transactional(value="rsTenantTransactionManager", readOnly=true) public class CalendarConfigServiceImpl extends Object implements CalendarConfigService- Author:
- qinman, zhangchongjie
- Date:
- 2022/12/20
-
-
Constructor Summary
Constructors Constructor Description CalendarConfigServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.risesoft.pojo.Y9Result<String>delCalendar(String startDate)删除日历配置CalendarConfigfindByYear(String year)获取年节假期配置信息List<String>getYearHoliday(String years)获取一年所有的周末booleanisWeekend(String date)List<Map<String,Object>>listCalendar(String month)获取日历配置List<String>remove(List<String> list, String date)net.risesoft.pojo.Y9Result<String>saveCalendar(String startDate, Integer type)保存日历配置voidsaveOrUpdate(CalendarConfig calendarConfig)保存日历配置
-
-
-
Method Detail
-
delCalendar
@Transactional public net.risesoft.pojo.Y9Result<String> delCalendar(String startDate)
Description copied from interface:CalendarConfigService删除日历配置- Specified by:
delCalendarin interfaceCalendarConfigService- Returns:
-
findByYear
public CalendarConfig findByYear(String year)
Description copied from interface:CalendarConfigService获取年节假期配置信息- Specified by:
findByYearin interfaceCalendarConfigService- Returns:
-
isWeekend
public boolean isWeekend(String date) throws ParseException
- Throws:
ParseException
-
listCalendar
public List<Map<String,Object>> listCalendar(String month)
Description copied from interface:CalendarConfigService获取日历配置- Specified by:
listCalendarin interfaceCalendarConfigService- Returns:
-
saveCalendar
@Transactional public net.risesoft.pojo.Y9Result<String> saveCalendar(String startDate, Integer type)
Description copied from interface:CalendarConfigService保存日历配置- Specified by:
saveCalendarin interfaceCalendarConfigService- Returns:
-
saveOrUpdate
public void saveOrUpdate(CalendarConfig calendarConfig)
Description copied from interface:CalendarConfigService保存日历配置- Specified by:
saveOrUpdatein interfaceCalendarConfigService
-
-