|
|
@ -3,14 +3,22 @@ package com.kms.earlyStage.controller; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.jianwei.common.core.controller.BaseController; |
|
|
|
import com.jianwei.common.core.domain.SearchParam; |
|
|
|
import com.jianwei.common.utils.poi.ExcelUtil; |
|
|
|
import com.kms.common.utils.BaseEntityUtils; |
|
|
|
|
|
|
|
|
|
|
|
import com.kms.earlyStage.domain.ProjectBidDetails; |
|
|
|
import com.kms.earlyStage.domain.ProjectBidWinner; |
|
|
|
import com.kms.earlyStage.domain.SpecialProjectBidInfo; |
|
|
|
import com.kms.earlyStage.domain.vo.BidInfoVO; |
|
|
|
import com.kms.earlyStage.domain.vo.BidWinnerVO; |
|
|
|
import com.kms.earlyStage.mapper.ProjectBidWinnerMapper; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
@ -45,6 +53,9 @@ public class ProjectBidWiningController extends BaseController |
|
|
|
@Autowired |
|
|
|
private ProjectBidWiningService projectBidWiningService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ProjectBidWinnerMapper projectBidWinnerMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询中标候选人公示基本信息列表 |
|
|
|
*/ |
|
|
@ -111,4 +122,53 @@ public class ProjectBidWiningController extends BaseController |
|
|
|
{ |
|
|
|
return toAjax(projectBidWiningService.removeByIds(Arrays.asList(ids))); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/addVO") |
|
|
|
public AjaxResult addVO(@RequestBody BidWinnerVO bidWinnerVO) { |
|
|
|
|
|
|
|
ProjectBidWining projectBidWining = bidWinnerVO.getProjectBidWining(); |
|
|
|
ProjectBidWinner projectBidWinner = bidWinnerVO.getProjectBidWinner(); |
|
|
|
|
|
|
|
BaseEntityUtils.preInsert(projectBidWinner); |
|
|
|
BaseEntityUtils.preInsert(projectBidWining); |
|
|
|
|
|
|
|
return toAjax(projectBidWiningService.saveVO(projectBidWining, projectBidWinner)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@PutMapping("editVO") |
|
|
|
public AjaxResult editVO(@RequestBody BidWinnerVO bidWinnerVO) { |
|
|
|
|
|
|
|
return toAjax(projectBidWiningService.editVO(bidWinnerVO)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/delVO/{ids}") |
|
|
|
public AjaxResult delVO(@PathVariable String[] ids) { |
|
|
|
return toAjax(projectBidWiningService.delVO(ids)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/listVO/{id}") |
|
|
|
public AjaxResult getVO(@PathVariable String id) { |
|
|
|
ProjectBidWining byId = projectBidWiningService.getById(id); |
|
|
|
|
|
|
|
String noticeId = byId.getNoticeId(); |
|
|
|
|
|
|
|
QueryWrapper<ProjectBidWinner> detailsQueryWrapper = new QueryWrapper<>(); |
|
|
|
detailsQueryWrapper.eq("NOTICE_ID", noticeId); |
|
|
|
ProjectBidWinner projectBidWinner = projectBidWinnerMapper.selectOne(detailsQueryWrapper); |
|
|
|
|
|
|
|
BidWinnerVO bidWinnerVO = new BidWinnerVO(); |
|
|
|
|
|
|
|
/*bidInfoVO.setSpecialProjectBidInfo(bidInfo); |
|
|
|
bidInfoVO.setProjectBidDetails(projectBidDetails);*/ |
|
|
|
bidWinnerVO.setProjectBidWining(byId); |
|
|
|
bidWinnerVO.setProjectBidWinner(projectBidWinner); |
|
|
|
|
|
|
|
return AjaxResult.success(bidWinnerVO); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|