Commit bda2c538 authored by cq990612's avatar cq990612

优化代码结构

parent edbe54fe
...@@ -87,7 +87,6 @@ public class WorkHolidayServiceImpl implements WorkHolidayService { ...@@ -87,7 +87,6 @@ public class WorkHolidayServiceImpl implements WorkHolidayService {
if (isItRedundant(workHoliday, null)) { if (isItRedundant(workHoliday, null)) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.REPEAT_WITH_OLDTIME); throw new BaseCustomException(BASE_RESP_CODE_ENUM.REPEAT_WITH_OLDTIME);
} }
workHoliday.setDayType(1);
int insert = workHolidayMapper.insert(workHoliday); int insert = workHolidayMapper.insert(workHoliday);
return insert > 0; return insert > 0;
} }
...@@ -102,7 +101,6 @@ public class WorkHolidayServiceImpl implements WorkHolidayService { ...@@ -102,7 +101,6 @@ public class WorkHolidayServiceImpl implements WorkHolidayService {
if (null == workHoliday.getId()) { if (null == workHoliday.getId()) {
return addHoliday(workHoliday); return addHoliday(workHoliday);
} else { } else {
workHoliday.setDayType(1);
verificationDate(workHoliday); verificationDate(workHoliday);
if (null == workHoliday.getId()) { if (null == workHoliday.getId()) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL); throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment