| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.common.constant.DictConstant; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.place.entity.PlaceEntity; |
| | |
| | | public Boolean updateHotelReporting(TaskHotelReportingVO taskHotelReporting) throws Exception { |
| | | 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()); |
| | | if (null!=taskHotelReporting.getStatus() |
| | | && taskHotelReporting.getStatus()!=4) { |
| | | taskHotelReporting.setConfirmFlag(taskHotelReporting.getStatus().toString()); |
| | | taskHotelReporting.setConfirmUserId(AuthUtil.getUserId()); |
| | | taskHotelReporting.setConfirmTime(new Date()); |
| | | } |
| | | boolean b = baseMapper.updateById(taskHotelReporting) > 0; |
| | | if (b) { |
| | | return b; |