| | |
| | | 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; |
| | |
| | | |
| | | @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<>(); |