|
@ -26,6 +26,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
|
|
|
|
import org.jeecg.modules.popularizeTravel.entity.PopularizeTravel; |
|
|
|
|
|
import org.jeecg.modules.popularizeTravel.service.IPopularizeTravelService; |
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil; |
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
|
|
import org.jeecgframework.poi.excel.entity.ExportParams; |
|
|
import org.jeecgframework.poi.excel.entity.ExportParams; |
|
@ -57,8 +59,11 @@ public class PopularizeRecruitLogController extends JeecgController<PopularizeRe |
|
|
private IPopularizeRecruitLogService popularizeRecruitLogService; |
|
|
private IPopularizeRecruitLogService popularizeRecruitLogService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private IPopularizeActivityService popularizeActivityService; |
|
|
private IPopularizeActivityService popularizeActivityService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private IPopularizeRecruitService popularizeRecruitService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private IPopularizeRecruitService popularizeRecruitService; |
|
|
|
|
|
|
|
|
private IPopularizeTravelService travelService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 分页列表查询 |
|
|
* 分页列表查询 |
|
@ -137,6 +142,16 @@ public class PopularizeRecruitLogController extends JeecgController<PopularizeRe |
|
|
activity.setAdminUser(popularizeRecruitLog.getUserId()); |
|
|
activity.setAdminUser(popularizeRecruitLog.getUserId()); |
|
|
popularizeActivityService.updateById(activity); |
|
|
popularizeActivityService.updateById(activity); |
|
|
} |
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
PopularizeTravel travel = travelService |
|
|
|
|
|
.lambdaQuery() |
|
|
|
|
|
.eq(PopularizeTravel::getId, byId.getTravelId()) |
|
|
|
|
|
.one(); |
|
|
|
|
|
|
|
|
|
|
|
if (ObjectUtils.isNotEmpty(travel)){ |
|
|
|
|
|
travel.setAdminUser(popularizeRecruitLog.getUserId()); |
|
|
|
|
|
travelService.updateById(travel); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
popularizeRecruitLogService.updateById(popularizeRecruitLog); |
|
|
popularizeRecruitLogService.updateById(popularizeRecruitLog); |
|
|