Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanmw
tagManager
Commits
8af744fd
Commit
8af744fd
authored
Jan 10, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询个人标签接口
parent
b21d0483
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+9
-2
No files found.
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
8af744fd
...
@@ -409,9 +409,12 @@ public class TagService {
...
@@ -409,9 +409,12 @@ public class TagService {
for
(
String
companyOrgId
:
companyOrgIdList
)
{
for
(
String
companyOrgId
:
companyOrgIdList
)
{
Criteria
criteriaDim
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
Criteria
criteriaDim
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
.
and
(
"dimensionType"
).
is
(
Constants
.
TAG_DIMENSION_TRUE
);
//标签是维度管理员机构的
.
and
(
"dimensionType"
).
is
(
Constants
.
TAG_DIMENSION_TRUE
);
//标签是维度管理员机构的
criteriaOr
.
orOperator
(
criteriaDim
);
}
for
(
String
companyOrgId
:
companyOrgIdList
)
{
Criteria
criteriaShare
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
Criteria
criteriaShare
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
.
and
(
"isOpen"
).
is
(
Constants
.
TAG_OPEN_STATUS
);
//公司机构id是companyId和是共享状态的
.
and
(
"isOpen"
).
is
(
Constants
.
TAG_OPEN_STATUS
);
//公司机构id是companyId和是共享状态的
criteriaOr
.
orOperator
(
criteria
Dim
,
criteria
Share
);
criteriaOr
.
orOperator
(
criteriaShare
);
}
}
for
(
String
orgId
:
orgIds
)
{
for
(
String
orgId
:
orgIds
)
{
Criteria
criteriaUser
=
Criteria
.
where
(
"dept"
).
is
(
orgId
).
and
(
"tagUser"
).
is
(
userId
);
Criteria
criteriaUser
=
Criteria
.
where
(
"dept"
).
is
(
orgId
).
and
(
"tagUser"
).
is
(
userId
);
...
@@ -430,9 +433,13 @@ public class TagService {
...
@@ -430,9 +433,13 @@ public class TagService {
for
(
String
companyOrgId
:
companyOrgIdList
)
{
for
(
String
companyOrgId
:
companyOrgIdList
)
{
Criteria
criteriaDim
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
Criteria
criteriaDim
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
.
and
(
"dimensionType"
).
is
(
Constants
.
TAG_DIMENSION_TRUE
);
//标签是维度管理员机构的
.
and
(
"dimensionType"
).
is
(
Constants
.
TAG_DIMENSION_TRUE
);
//标签是维度管理员机构的
criteria
.
orOperator
(
criteriaDim
);
}
for
(
String
companyOrgId
:
companyOrgIdList
)
{
Criteria
criteriaShare
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
Criteria
criteriaShare
=
Criteria
.
where
(
"proDept"
).
is
(
companyOrgId
)
.
and
(
"isOpen"
).
is
(
Constants
.
TAG_OPEN_STATUS
);
//公司机构id是companyId和是共享状态的
.
and
(
"isOpen"
).
is
(
Constants
.
TAG_OPEN_STATUS
);
//公司机构id是companyId和是共享状态的
criteria
.
orOperator
(
criteria
Dim
,
criteria
Share
);
criteria
.
orOperator
(
criteriaShare
);
}
}
for
(
String
orgId
:
orgIds
)
{
for
(
String
orgId
:
orgIds
)
{
Criteria
criteriaUser
=
Criteria
.
where
(
"dept"
).
is
(
orgId
).
and
(
"tagUser"
).
is
(
userId
);
Criteria
criteriaUser
=
Criteria
.
where
(
"dept"
).
is
(
orgId
).
and
(
"tagUser"
).
is
(
userId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment