mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 15:35:06 +08:00
crm:code review 数据权限的实现
This commit is contained in:
@ -92,7 +92,7 @@ public class CrmCustomerController {
|
||||
}
|
||||
|
||||
// TODO @puhui999:合并到 receiveCustomer
|
||||
@PutMapping("/receive")
|
||||
@PutMapping("/receive-")
|
||||
@Operation(summary = "领取客户公海数据")
|
||||
@Parameter(name = "id", description = "客户编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('crm:customer:update')")
|
||||
|
@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* Crm 数据权限 DO
|
||||
* CRM 数据权限 DO
|
||||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
|
@ -61,7 +61,7 @@ public interface CrmCustomerMapper extends BaseMapperX<CrmCustomerDO> {
|
||||
//CrmPermissionUtils.builderRightJoinQuery(mpjLambdaWrapperX, CrmBizTypeEnum.CRM_CUSTOMER.getType(), userId);
|
||||
mpjLambdaWrapperX
|
||||
//.rightJoin("(SELECT t1.biz_id FROM crm_permission t1 WHERE (t1.biz_type = 1 AND t1.user_id = 1)) t2 on t.id = t2.biz_id");
|
||||
.rightJoin(CrmPermissionDO.class, CrmPermissionDO::getBizId, CrmCustomerDO::getId)
|
||||
.rightJoin(CrmPermissionDO.class, CrmPermissionDO::getBizId, CrmCustomerDO::getId) // TODO @puhui999:应该是 inner join?
|
||||
.eq(CrmPermissionDO::getBizType, CrmBizTypeEnum.CRM_CUSTOMER.getType())
|
||||
.eq(CrmPermissionDO::getUserId, userId);
|
||||
/** TODO @芋艿:
|
||||
|
Reference in New Issue
Block a user