|
|
|
@ -765,11 +765,13 @@ public class QuotationInformationServiceImpl extends ServiceImpl<QuotationInform |
|
|
|
|
|
|
|
private void checkProcessControl(Integer roleId, String site, String quotationBatchNo) { |
|
|
|
if (roleId.equals(3)){ |
|
|
|
// 判断是的存在报价明细 |
|
|
|
// 判断是的存在报价明细 通过询价批次号获得报价中询价单号分组条数 |
|
|
|
List<String> quoteList = baseMapper.queryQuoteByQuotationBatchNo(site,quotationBatchNo); |
|
|
|
|
|
|
|
// 查询改询价批次号的询价条数 |
|
|
|
int count = baseMapper.queryQuotationByQuotationBatchNo(site,quotationBatchNo); |
|
|
|
|
|
|
|
// 不相等即条目不匹配,有询价单号未产生报价 |
|
|
|
if (count != quoteList.size()){ |
|
|
|
throw new RuntimeException("该询价单的报价明细不全,不能提交!"); |
|
|
|
} |
|
|
|
|