Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
4df7d620
Commit
4df7d620
authored
Jun 20, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组织机构&用户角色bugfix
parent
ced9d72c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletions
+21
-1
CommonMethod.java
src/main/java/com/baosight/hggp/util/CommonMethod.java
+13
-0
ServiceXSOG0801A.java
...om/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
+4
-1
ServiceXS3002.java
...java/com/baosight/xservices/xs/service/ServiceXS3002.java
+2
-0
XS3002.js
src/main/webapp/XS/XS3002.js
+2
-0
No files found.
src/main/java/com/baosight/hggp/util/CommonMethod.java
View file @
4df7d620
...
...
@@ -319,4 +319,17 @@ public class CommonMethod {
eiBlock
.
setRows
(
rows
);
inInfo
.
setBlock
(
eiBlock
);
}
public
static
void
joinTextField
(
EiInfo
inInfo
,
String
blockId
,
String
prefixValueName
){
List
rows
=
inInfo
.
getBlock
(
blockId
).
getRows
();
List
newRows
=
new
ArrayList
(){{
rows
.
forEach
(
o
->
{
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
o
;
map
.
put
(
HGConstants
.
TEXT_FIELD
,
String
.
format
(
"[%s]%s"
,
map
.
get
(
prefixValueName
),
map
.
get
(
HGConstants
.
TEXT_FIELD
)));
add
(
o
);
});
}};
inInfo
.
getBlock
(
blockId
).
setRows
(
newRows
);
}
}
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
View file @
4df7d620
...
...
@@ -53,7 +53,10 @@ public class ServiceXSOG0801A extends ServiceEPBase {
}
else
{
// 查询组织
Org
org
=
HGXSTools
.
XsOrg
.
get
(
parentOrgId
);
if
(
OrgTypeEnum
.
COMPANY
.
getCode
().
equals
(
org
.
getOrgType
()))
{
if
(
CommonConstant
.
Field
.
ROOT
.
equals
(
org
.
getParentOrgId
()))
{
condition
=
String
.
format
(
" ITEM_CODE IN ('%s', '%s')"
,
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
DEPT
.
getCode
());
}
else
if
(
OrgTypeEnum
.
COMPANY
.
getCode
().
equals
(
org
.
getOrgType
()))
{
condition
=
String
.
format
(
" ITEM_CODE IN ('%s', '%s', '%s')"
,
OrgTypeEnum
.
COMPANY
.
getCode
(),
OrgTypeEnum
.
FACTORY
.
getCode
(),
OrgTypeEnum
.
DEPT
.
getCode
());
}
else
if
(
OrgTypeEnum
.
FACTORY
.
getCode
().
equals
(
org
.
getOrgType
()))
{
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS3002.java
View file @
4df7d620
package
com
.
baosight
.
xservices
.
xs
.
service
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.HGConstants
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
...
...
@@ -49,6 +50,7 @@ public class ServiceXS3002 extends ServiceEPBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
DEPT_CODE_BLOCK_ID
));
CommonMethod
.
joinTextField
(
inInfo
,
DdynamicEnum
.
DEPT_CODE_BLOCK_ID
.
getBlockId
(),
HGConstants
.
PARAM4_FIELD
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
FACTORY_CODE_BLOCK_ID
));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
COMPANY_CODE_BLOCK_ID
));
}
catch
(
PlatException
e
)
{
...
...
src/main/webapp/XS/XS3002.js
View file @
4df7d620
...
...
@@ -252,7 +252,9 @@ let deptCodeChange = function (e) {
}
function
refreshQuery
()
{
if
(
resultGrid
.
dataSource
)
{
resultGrid
.
dataSource
.
page
(
1
);
}
}
const
flashUser
=
(
userGroup
)
=>
{
...
...
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