|
@@ -108,17 +108,12 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
@Override
|
|
|
public Page<SaleQuotationVo> getPage(SaleQuotationSelectDto dto) {
|
|
|
|
|
|
-// List<Long> authIdList = customerService.getAuthIdList();
|
|
|
-//
|
|
|
-// if (authIdList.size() == 0) {
|
|
|
-// return new Page<>();
|
|
|
-// }
|
|
|
-
|
|
|
IWrapper<SaleQuotation> wrapper = IWrapper.getWrapper();
|
|
|
-// wrapper.eq(ObjectUtil.isNotEmpty(dto.getStatus()), SaleQuotation::getStatus, dto.getStatus());
|
|
|
-// wrapper.orderByDesc(SaleQuotation::getCreateTime);
|
|
|
-// wrapper.in(SaleQuotation::getBuyCorporationId, authIdList);
|
|
|
|
|
|
+ //权限过滤:报价评估自己看自己
|
|
|
+ if (Objects.equals(dto.getIsEstimate(), 1)) {
|
|
|
+ wrapper.eq("sq", SaleQuotation::getCompanyId, SecurityUtils.getCompanyId());
|
|
|
+ }
|
|
|
|
|
|
//报价状态
|
|
|
wrapper.eq(SaleQuotation::getQuotationStatus, dto.getQuotationStatus());
|
|
@@ -127,6 +122,7 @@ public class SaleQuotationServiceImpl extends ServiceImpl<SaleQuotationMapper, S
|
|
|
//报价单类型
|
|
|
wrapper.eq(SaleQuotation::getType, dto.getType());
|
|
|
|
|
|
+
|
|
|
//报价时间-时间范围过滤
|
|
|
wrapper.ge("sq", SaleQuotation::getQuotationTime, dto.getQuotationTimeSta());
|
|
|
wrapper.le("sq", SaleQuotation::getQuotationTime, dto.getQuotationTimeEnd());
|