Commit 76ca9d26deddc7f900e03b18a1f4a2d7226ae338

Authored by yeqianyong
1 parent ffea2fe6

楚江ERP-客户开发列表增加权限控制

@@ -42,7 +42,7 @@ public class TransactorHandler { @@ -42,7 +42,7 @@ public class TransactorHandler {
42 for (String id : userIdList) { 42 for (String id : userIdList) {
43 log.info("================== listTransactorsByRoleCode roleUserId:{}", id); 43 log.info("================== listTransactorsByRoleCode roleUserId:{}", id);
44 List<String> userIds = userIdMap.get(id); 44 List<String> userIds = userIdMap.get(id);
45 - log.info("================== listTransactorsByRoleCode userDeptUserId:{}", JsonUtil.toJsonString(userIds)); 45 + log.info("================== listTransactorsByRoleCode userDeptUserId size:{}", userIds.size());
46 if (CollectionUtils.isNotEmpty(userIds) && userIds.contains(userId)) { 46 if (CollectionUtils.isNotEmpty(userIds) && userIds.contains(userId)) {
47 result.add(id); 47 result.add(id);
48 } 48 }
@@ -48,10 +48,6 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe @@ -48,10 +48,6 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe
48 48
49 49
50 @Resource 50 @Resource
51 - private FlowDefinitionWrapperService flowDefinitionWrapperService;  
52 - @Resource  
53 - private InsService insService;  
54 - @Resource  
55 private FlowTaskWrapperMapper flowTaskWrapperMapper; 51 private FlowTaskWrapperMapper flowTaskWrapperMapper;
56 @Resource 52 @Resource
57 private FlowInstanceWrapperService flowInstanceWrapperService; 53 private FlowInstanceWrapperService flowInstanceWrapperService;
1 package com.lframework.xingyun.sc.mappers; 1 package com.lframework.xingyun.sc.mappers;
2 2
  3 +import com.lframework.starter.web.core.annotations.permission.DataPermission;
  4 +import com.lframework.starter.web.core.annotations.permission.DataPermissions;
3 import com.lframework.starter.web.core.annotations.sort.Sort; 5 import com.lframework.starter.web.core.annotations.sort.Sort;
4 import com.lframework.starter.web.core.annotations.sort.Sorts; 6 import com.lframework.starter.web.core.annotations.sort.Sorts;
  7 +import com.lframework.starter.web.inner.components.permission.OrderDataPermissionDataPermissionType;
5 import com.lframework.xingyun.sc.entity.CustomerDevelopPlan; 8 import com.lframework.xingyun.sc.entity.CustomerDevelopPlan;
6 import com.lframework.starter.web.core.mapper.BaseMapper; 9 import com.lframework.starter.web.core.mapper.BaseMapper;
7 import com.lframework.xingyun.sc.vo.customer.develop.QueryCustomerDevelopPlanVo; 10 import com.lframework.xingyun.sc.vo.customer.develop.QueryCustomerDevelopPlanVo;
@@ -27,5 +30,8 @@ public interface CustomerDevelopPlanMapper extends BaseMapper<CustomerDevelopPla @@ -27,5 +30,8 @@ public interface CustomerDevelopPlanMapper extends BaseMapper<CustomerDevelopPla
27 @Sort(value = "tb.createTime", autoParse = true), 30 @Sort(value = "tb.createTime", autoParse = true),
28 @Sort(value = "tb.updateTime", autoParse = true), 31 @Sort(value = "tb.updateTime", autoParse = true),
29 }) 32 })
  33 + @DataPermissions(type = OrderDataPermissionDataPermissionType.class, value = {
  34 + @DataPermission(template = "order", alias = "tb")
  35 + })
30 List<CustomerDevelopPlan> query(@Param("vo") QueryCustomerDevelopPlanVo vo); 36 List<CustomerDevelopPlan> query(@Param("vo") QueryCustomerDevelopPlanVo vo);
31 } 37 }