| | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.model.TBanner; |
| | | import com.ruoyi.system.model.TEmploymentEntrepreneurship; |
| | | import com.ruoyi.system.model.TEmploymentInfo; |
| | | import com.ruoyi.system.service.TEmploymentEntrepreneurshipService; |
| | | import com.ruoyi.system.service.TEmploymentInfoService; |
| | |
| | | return R.ok(employmentInfo); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getEntrepreneurshipList") |
| | | @ApiOperation(value = "创业模块--创业信息列表",response = TEmploymentEntrepreneurship.class) |
| | | public R<Page<TEmploymentEntrepreneurship>> getEntrepreneurshipList(@RequestBody BasePage basePage) { |
| | | Page<TEmploymentEntrepreneurship> page = new Page<>(basePage.getPageNum(), basePage.getPageSize()); |
| | | Page<TEmploymentEntrepreneurship> tEmploymentEntrepreneurshipPage = employmentEntrepreneurshipService.page(page, Wrappers.<TEmploymentEntrepreneurship>lambdaQuery().orderByDesc(TEmploymentEntrepreneurship::getCreateTime)); |
| | | return R.ok(tEmploymentEntrepreneurshipPage); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getEntrepreneurshipDetail/{id}") |
| | | @ApiOperation(value = "创业模块--创业信息详情",response = TEmploymentEntrepreneurship.class) |
| | | public R<TEmploymentEntrepreneurship> getEntrepreneurshipDetail(@PathVariable String id) { |
| | | TEmploymentEntrepreneurship employmentEntrepreneurship = employmentEntrepreneurshipService.getById(id); |
| | | employmentEntrepreneurship.setReadCount(employmentEntrepreneurship.getReadCount() + 1); |
| | | employmentEntrepreneurshipService.updateById(employmentEntrepreneurship); |
| | | return R.ok(employmentEntrepreneurship); |
| | | } |
| | | |
| | | } |