|
@@ -219,7 +219,9 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
|
|
|
if (ObjectUtil.isNotEmpty(permissionList)) {
|
|
|
//if当前用户的角色 in [运营专员, 运营助理] 页面仅展示产品.管理部门 == 当前用户所在部门的相关数据
|
|
|
if (permissionList.contains("E-commerce operation") || permissionList.contains("Operation assistant")) {
|
|
|
- wrapper.eq("json_unquote( pi.victoriatourist_json -> '$.deptId' )", SecurityUtils.getDeptId());
|
|
|
+ Long userDeptId = SecurityUtils.getDeptId();
|
|
|
+ String userDeptIdStr = ObjectUtil.isNotEmpty(userDeptId) ? userDeptId.toString() : "";
|
|
|
+ wrapper.eq("json_unquote( pi.victoriatourist_json -> '$.deptId' )", userDeptIdStr);
|
|
|
}
|
|
|
}
|
|
|
|