| | |
| | | import org.springblade.modules.house.service.IHouseService; |
| | | import org.springblade.modules.place.entity.PlaceEntity; |
| | | import org.springblade.modules.place.service.IPlaceService; |
| | | import org.springblade.modules.task.entity.TaskEntity; |
| | | import org.springblade.modules.task.entity.TaskPlaceRecordEntity; |
| | | import org.springblade.modules.task.entity.TaskReportForRepairsEntity; |
| | | import org.springblade.modules.task.entity.TaskResidencePermitApplyEntity; |
| | | import org.springblade.modules.task.entity.*; |
| | | import org.springblade.modules.task.service.ITaskPlaceRecordService; |
| | | import org.springblade.modules.task.service.ITaskService; |
| | | import org.springblade.modules.task.vo.TaskPlaceRecordVO; |
| | |
| | | } |
| | | return b; |
| | | } |
| | | |
| | | /** |
| | | * 居住证申请 删除 |
| | | * @param toLongList |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean removeTaskResidencePermitApplyBatchByIds(List<Long> toLongList) { |
| | | boolean flag = false; |
| | | for (Long id : toLongList) { |
| | | // 先查询对应的任务id |
| | | TaskResidencePermitApplyEntity taskResidencePermitApplyEntity = getById(id); |
| | | // 删除居住证 |
| | | flag = removeById(id); |
| | | if (flag) { |
| | | // 删除对应的任务 |
| | | flag = taskService.removeById(taskResidencePermitApplyEntity.getTaskId()); |
| | | } |
| | | } |
| | | // 返回 |
| | | return flag; |
| | | } |
| | | } |