Commit c44066ad by 黄小葱

判断特约店

1 parent 4a410373
...@@ -119,4 +119,16 @@ public class TrialDriveShopController { ...@@ -119,4 +119,16 @@ public class TrialDriveShopController {
return R.ok().data(treeModelList); return R.ok().data(treeModelList);
} }
/**
* 判断是否时特约店
*
* @return
*/
@GetMapping(value = "/isshopuser")
@ApiOperation(value = "判断是否时特约店")
public R isShopUser() {
boolean shopUserFlag = trialDriveShopService.isShopUser();
return R.ok().data(shopUserFlag);
}
} }
...@@ -293,4 +293,14 @@ public class TrialDriveShopService { ...@@ -293,4 +293,14 @@ public class TrialDriveShopService {
return treeModelList; return treeModelList;
} }
/**
* 判断是否是特约店 true 是
* @return
*/
public boolean isShopUser() {
List<Long> shopOrgIds = this.getShopOrgIds();
boolean userFlag = shopOrgIds.contains(ShieldContextHolder.getDepartmentId());
return userFlag;
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!