报价结构化-查询中标中选分配比例
This commit is contained in:
@ -4,6 +4,7 @@ package com.chinaunicom.mall.ebtp.project.bidratio.controller;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
|
||||
import com.chinaunicom.mall.ebtp.common.exception.common.CommonExceptionEnum;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@ -42,5 +43,18 @@ public class BidRatioController{
|
||||
return BaseResponse.success(ibidRatioService.list(queryWrapper));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询中选分配比例
|
||||
*
|
||||
* @param bidRatio
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("查询中选分配比例")
|
||||
@PostMapping("/getBidRatioList")
|
||||
public BaseResponse<List<BidRatio>> getBidRatioList(@ApiParam(value = "标段id", required = true) @RequestBody BidRatio bidRatio){
|
||||
LambdaQueryWrapper<BidRatio> queryWrapper=Wrappers.lambdaQuery(bidRatio);
|
||||
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("查询条件不能为空",queryWrapper.isEmptyOfWhere()) ;
|
||||
return BaseResponse.success(ibidRatioService.list(queryWrapper));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user