加销售数据权限控制
This commit is contained in:
+2
@@ -2,6 +2,7 @@ package com.ruoyi.customer.customerinfo.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.annotation.DataScope;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
@@ -64,6 +65,7 @@ public class BmsCustomerServiceImpl implements IBmsCustomerService
|
||||
* @return 客户主
|
||||
*/
|
||||
@Override
|
||||
@DataScope(deptAlias = "su", deptField = "dept_id", userAlias = "c", userField = "sales_user_id")
|
||||
public List<BmsCustomer> selectBmsCustomerList(BmsCustomer bmsCustomer)
|
||||
{
|
||||
return bmsCustomerMapper.selectBmsCustomerList(bmsCustomer);
|
||||
|
||||
+2
@@ -2,6 +2,7 @@ package com.ruoyi.customer.supplierinfo.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.annotation.DataScope;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
@@ -47,6 +48,7 @@ public class BmsSupplierServiceImpl implements IBmsSupplierService
|
||||
}
|
||||
|
||||
@Override
|
||||
@DataScope(deptAlias = "su", deptField = "dept_id", userAlias = "s", userField = "purchaser_user_id")
|
||||
public List<BmsSupplier> selectBmsSupplierList(BmsSupplier bmsSupplier)
|
||||
{
|
||||
return bmsSupplierMapper.selectBmsSupplierList(bmsSupplier);
|
||||
|
||||
Reference in New Issue
Block a user