linwei
2024-01-31 b3b566ebdfed4005aaa513da3d5d2fd3924903cc
src/main/java/org/springblade/modules/task/service/impl/TaskHotelReportingServiceImpl.java
@@ -23,6 +23,7 @@
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.modules.place.entity.PlaceEntity;
import org.springblade.modules.place.service.IPlaceService;
import org.springblade.modules.system.entity.Dict;
import org.springblade.modules.task.dto.TaskHotelReportingDTO;
import org.springblade.modules.task.entity.TaskHotelReportingEntity;
import org.springblade.modules.task.mapper.TaskHotelReportingMapper;
@@ -61,11 +62,13 @@
   @Override
   public boolean saveHotelReporting(TaskHotelReportingDTO taskHotelReporting) {
      String name = DictConstant.HOTEL_SECURITY;
      // 九小场所
      if (taskHotelReporting.getEventType().equals(1)) {
         taskHotelReporting.setReportType(7);
         name = DictConstant.FIRE_CHECK;
      }
      Long aLong = taskService.saveTask(2, DictConstant.HOTEL_SECURITY, 1, "", AuthUtil.getUserId(), taskHotelReporting.getHouseCode(), taskHotelReporting.getReportType());
      Long aLong = taskService.saveTask(2, name, 1, "", AuthUtil.getUserId(), taskHotelReporting.getHouseCode(), taskHotelReporting.getReportType());
      if (aLong > 0) {
         // 通过houseCode 获取场所id
         QueryWrapper<PlaceEntity> queryWrapper = new QueryWrapper<>();