Commit 3b9683f59855c81181b537c147961b50d67026df

Authored by 房远帅
1 parent d98afe32

业务员报价:是否为未点价逻辑判断

@@ -468,12 +468,12 @@ public class SalesmanQuotationServiceImpl @@ -468,12 +468,12 @@ public class SalesmanQuotationServiceImpl
468 /** 468 /**
469 * 校验点价规则 469 * 校验点价规则
470 * 470 *
471 - * @param priced 是否为点价 471 + * @param priced 是否为点价
472 * @param pricingDeadline 点价截止日期 472 * @param pricingDeadline 点价截止日期
473 */ 473 */
474 private void validatePricingRule(Boolean priced, LocalDate pricingDeadline) { 474 private void validatePricingRule(Boolean priced, LocalDate pricingDeadline) {
475 - if (Boolean.FALSE.equals(priced) && pricingDeadline == null) {  
476 - throw new DefaultClientException("非点价时,点价截止日期不能为空!"); 475 + if (Boolean.TRUE.equals(priced) && pricingDeadline == null) {
  476 + throw new DefaultClientException("未点价时,点价截止日期不能为空!");
477 } 477 }
478 } 478 }
479 479
@@ -481,14 +481,14 @@ public class SalesmanQuotationServiceImpl @@ -481,14 +481,14 @@ public class SalesmanQuotationServiceImpl
481 * 校验报价明细 481 * 校验报价明细
482 * 482 *
483 * @param lineList 明细列表 483 * @param lineList 明细列表
484 - * @param priced 是否为点价 484 + * @param priced 是否为点价
485 */ 485 */
486 private void validateQuotationLines(List<? extends CreateSalesmanQuotationLineVo> lineList, Boolean priced) { 486 private void validateQuotationLines(List<? extends CreateSalesmanQuotationLineVo> lineList, Boolean priced) {
487 if (CollectionUtil.isEmpty(lineList)) { 487 if (CollectionUtil.isEmpty(lineList)) {
488 throw new DefaultClientException("报价明细不能为空!"); 488 throw new DefaultClientException("报价明细不能为空!");
489 } 489 }
490 490
491 - if (!Boolean.TRUE.equals(priced)) { 491 + if (Boolean.TRUE.equals(priced)) {
492 return; 492 return;
493 } 493 }
494 494