Commit c1317e0a by 丁伟峰

workday直接是字符串方式进行处理

1 parent 0bf9bce8
......@@ -21,5 +21,5 @@ public interface CapacityEngineerCalendarDao extends JpaRepository<CapacityEngin
@Modifying
@Query("delete from CapacityEngineerCalendarEntity a where a.engineerCode in :engineerCodes and a.type = :type and a.workday between :startDate and :endDate")
void deleteByTypeAndEngineerCodesAndBetweenDates(List<String> engineerCodes, String type, LocalDateTime startDate, LocalDateTime endDate);
void deleteByTypeAndEngineerCodesAndBetweenDates(List<String> engineerCodes, String type, String startDate, String endDate);
}
......@@ -311,9 +311,7 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
if (reqDTO.getEngineerCodes().isEmpty()) {
return Result.failed("没有选中工程师");
}
LocalDateTime startDate = DateUtils.localDateFromStr(reqDTO.getStartDate()).atTime(LocalTime.MIDNIGHT);
LocalDateTime endDate = DateUtils.localDateFromStr(reqDTO.getEndDate()).atTime(LocalTime.MIDNIGHT);
capacityEngineerCalendarDao.deleteByTypeAndEngineerCodesAndBetweenDates(reqDTO.getEngineerCodes(), reqDTO.getType(), startDate, endDate);
capacityEngineerCalendarDao.deleteByTypeAndEngineerCodesAndBetweenDates(reqDTO.getEngineerCodes(), reqDTO.getType(), reqDTO.getStartDate(), reqDTO.getEndDate());
return Result.success(null);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!