| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 旅馆安全自查任务 服务实现类 |
| | |
| | | public Boolean updateHotelReporting(TaskHotelReportingEntity taskHotelReporting) { |
| | | Long aLong = taskService.updateTask(null, null, null, "", AuthUtil.getUserId(), taskHotelReporting.getTaskId(), taskHotelReporting.getStatus()); |
| | | if (aLong > 0) { |
| | | taskHotelReporting.setConfirmFlag(taskHotelReporting.getStatus().toString()); |
| | | taskHotelReporting.setConfirmUserId(AuthUtil.getUserId()); |
| | | taskHotelReporting.setConfirmTime(new Date()); |
| | | return baseMapper.updateById(taskHotelReporting) > 0 ? true : false; |
| | | } |
| | | return false; |