浏览代码

待建产品权限过滤

yzc 1 年之前
父节点
当前提交
705725f4c6

+ 2 - 0
hx-sale/src/main/java/com/fjhx/sale/entity/ext/dto/ExtQuotationProductSelectDto.java

@@ -14,4 +14,6 @@ import lombok.Setter;
 @Setter
 public class ExtQuotationProductSelectDto extends BaseSelectDto {
 
+    private Long companyId;
+
 }

+ 4 - 0
hx-sale/src/main/java/com/fjhx/sale/service/ext/impl/ExtQuotationProductServiceImpl.java

@@ -72,6 +72,10 @@ public class ExtQuotationProductServiceImpl extends ServiceImpl<ExtQuotationProd
 
         wrapper.keyword(dto.getKeyword(), new SqlField("eq.code"));
 
+        //权限过滤:待建产品
+        wrapper.in("eq.company_id", SecurityUtils.getCompanyIds());
+        wrapper.eq("eq.company_id", dto.getCompanyId());
+
         Page<ExtQuotationProductVo> page = baseMapper.waitCreateProductPage(dto.getPage(), wrapper);
         List<ExtQuotationProductVo> records = page.getRecords();
         if (ObjectUtil.isEmpty(records)) {