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
b63e9257
Commit
b63e9257
authored
May 07, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.企业管理调整为账户account_code
parent
3a408c03
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
151 additions
and
88 deletions
+151
-88
HGPZ009.java
src/main/java/com/baosight/hggp/hg/pz/domain/HGPZ009.java
+2
-2
ServiceHGPZ009.java
.../java/com/baosight/hggp/hg/pz/service/ServiceHGPZ009.java
+15
-15
HGPZ009.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ009.xml
+1
-1
HGPZTools.java
src/main/java/com/baosight/hggp/hg/pz/tools/HGPZTools.java
+60
-0
HGXSTools.java
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
+4
-4
CommonMethod.java
src/main/java/com/baosight/hggp/util/CommonMethod.java
+1
-1
SqlMapDaoLogProxy.java
...sight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
+2
-2
SecurityUserStandardImpl.java
.../baosight/xservices/xs/impl/SecurityUserStandardImpl.java
+12
-11
ServiceXSOG0800.java
...com/baosight/xservices/xs/og/service/ServiceXSOG0800.java
+1
-1
ServiceXSOG0801.java
...com/baosight/xservices/xs/og/service/ServiceXSOG0801.java
+7
-7
ServiceXSOG0801A.java
...om/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
+3
-3
ServiceXSOG0801B.java
...om/baosight/xservices/xs/og/service/ServiceXSOG0801B.java
+1
-1
XSOG01.xml
src/main/java/com/baosight/xservices/xs/og/sql/XSOG01.xml
+6
-6
XSOG0801.xml
src/main/java/com/baosight/xservices/xs/og/sql/XSOG0801.xml
+4
-4
ServiceXS0102.java
...java/com/baosight/xservices/xs/service/ServiceXS0102.java
+2
-2
ServiceXS02.java
...n/java/com/baosight/xservices/xs/service/ServiceXS02.java
+1
-1
ServiceXS0702.java
...java/com/baosight/xservices/xs/service/ServiceXS0702.java
+1
-1
ServiceXS0710.java
...java/com/baosight/xservices/xs/service/ServiceXS0710.java
+1
-1
ServiceXS3002.java
...java/com/baosight/xservices/xs/service/ServiceXS3002.java
+4
-4
ServiceXS40.java
...n/java/com/baosight/xservices/xs/service/ServiceXS40.java
+7
-5
ServiceXS4000.java
...java/com/baosight/xservices/xs/service/ServiceXS4000.java
+1
-1
XS02.xml
src/main/java/com/baosight/xservices/xs/sql/XS02.xml
+6
-6
XS07.xml
src/main/java/com/baosight/xservices/xs/sql/XS07.xml
+2
-2
XS0702.xml
src/main/java/com/baosight/xservices/xs/sql/XS0702.xml
+2
-2
XSUser.xml
src/main/java/com/baosight/xservices/xs/sql/XSUser.xml
+5
-5
No files found.
src/main/java/com/baosight/hggp/hg/pz/domain/H
gpz
009.java
→
src/main/java/com/baosight/hggp/hg/pz/domain/H
GPZ
009.java
View file @
b63e9257
...
@@ -17,7 +17,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -17,7 +17,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
* @version 1.0
* @version 1.0
* @history 2024-05-07 9:05:59 create
* @history 2024-05-07 9:05:59 create
*/
*/
public
class
H
gpz
009
extends
DaoEPBase
{
public
class
H
GPZ
009
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -148,7 +148,7 @@ public class Hgpz009 extends DaoEPBase {
...
@@ -148,7 +148,7 @@ public class Hgpz009 extends DaoEPBase {
/**
/**
* the constructor.
* the constructor.
*/
*/
public
H
gpz
009
()
{
public
H
GPZ
009
()
{
initMetaData
();
initMetaData
();
}
}
...
...
src/main/java/com/baosight/hggp/hg/pz/service/ServiceHGPZ009.java
View file @
b63e9257
...
@@ -4,7 +4,7 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
...
@@ -4,7 +4,7 @@ import com.baosight.hggp.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.pz.domain.H
gpz
009
;
import
com.baosight.hggp.hg.pz.domain.H
GPZ
009
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
...
@@ -41,7 +41,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -41,7 +41,7 @@ public class ServiceHGPZ009 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"企业管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
@OperationLogAnnotation
(
operModul
=
"企业管理"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
H
gpz
009
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
H
GPZ
009
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
}
...
@@ -58,7 +58,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -58,7 +58,7 @@ public class ServiceHGPZ009 extends ServiceBase {
@OperationLogAnnotation
(
operModul
=
"企业管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
@OperationLogAnnotation
(
operModul
=
"企业管理"
,
operType
=
"查询"
,
operDesc
=
"查询"
)
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
try
{
inInfo
=
super
.
query
(
inInfo
,
H
gpz009
.
QUERY
,
new
Hgpz
009
());
inInfo
=
super
.
query
(
inInfo
,
H
GPZ009
.
QUERY
,
new
HGPZ
009
());
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
ACConstants
.
ROW_CODE_0
,
"projectEnv"
,
projectEnv
);
inInfo
.
setCell
(
EiConstant
.
resultBlock
,
ACConstants
.
ROW_CODE_0
,
"projectEnv"
,
projectEnv
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -81,7 +81,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -81,7 +81,7 @@ public class ServiceHGPZ009 extends ServiceBase {
this
.
checkSaveData
(
resultRows
);
this
.
checkSaveData
(
resultRows
);
// 写入数据
// 写入数据
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
H
gpz009
fPz009
=
new
Hgpz
009
();
H
GPZ009
fPz009
=
new
HGPZ
009
();
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
if
(
fPz009
.
getId
()
==
null
||
fPz009
.
getId
()
==
0
)
{
if
(
fPz009
.
getId
()
==
null
||
fPz009
.
getId
()
==
0
)
{
this
.
add
(
fPz009
);
this
.
add
(
fPz009
);
...
@@ -106,7 +106,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -106,7 +106,7 @@ public class ServiceHGPZ009 extends ServiceBase {
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
// 数据校验
// 数据校验
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
H
gpz009
fPz009
=
new
Hgpz
009
();
H
GPZ009
fPz009
=
new
HGPZ
009
();
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
AssertUtils
.
isEmpty
(
fPz009
.
getAccountName
(),
"企业名称不能为空"
);
AssertUtils
.
isEmpty
(
fPz009
.
getAccountName
(),
"企业名称不能为空"
);
AssertUtils
.
isEmpty
(
fPz009
.
getLoginPrefix
(),
"登录前缀不能为空"
);
AssertUtils
.
isEmpty
(
fPz009
.
getLoginPrefix
(),
"登录前缀不能为空"
);
...
@@ -120,7 +120,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -120,7 +120,7 @@ public class ServiceHGPZ009 extends ServiceBase {
* @param fPz009
* @param fPz009
* @throws Exception
* @throws Exception
*/
*/
private
void
add
(
H
gpz
009
fPz009
)
throws
Exception
{
private
void
add
(
H
GPZ
009
fPz009
)
throws
Exception
{
// 生成企业编码
// 生成企业编码
fPz009
.
setAccountCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
COMPANY_CODE
));
fPz009
.
setAccountCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
COMPANY_CODE
));
fPz009
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
fPz009
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
...
@@ -128,7 +128,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -128,7 +128,7 @@ public class ServiceHGPZ009 extends ServiceBase {
fPz009
.
setCreatedName
(
UserSession
.
getLoginCName
());
fPz009
.
setCreatedName
(
UserSession
.
getLoginCName
());
fPz009
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
fPz009
.
setCreatedTime
(
DateUtils
.
shortDateTime
());
// 此处不能使用DaoUtils方法insert
// 此处不能使用DaoUtils方法insert
dao
.
insert
(
H
gpz
009
.
INSERT
,
fPz009
);
dao
.
insert
(
H
GPZ
009
.
INSERT
,
fPz009
);
// 默认新增企业管理员账号
// 默认新增企业管理员账号
String
userId
=
fPz009
.
getLoginPrefix
()
+
"0000"
;
String
userId
=
fPz009
.
getLoginPrefix
()
+
"0000"
;
HGXSTools
.
XsUser
.
addUser
(
fPz009
.
getAccountCode
(),
userId
,
fPz009
.
getAccountName
(),
HGXSTools
.
XsUser
.
addUser
(
fPz009
.
getAccountCode
(),
userId
,
fPz009
.
getAccountName
(),
...
@@ -142,8 +142,8 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -142,8 +142,8 @@ public class ServiceHGPZ009 extends ServiceBase {
*
*
* @param fPz009
* @param fPz009
*/
*/
private
void
modify
(
H
gpz
009
fPz009
)
{
private
void
modify
(
H
GPZ
009
fPz009
)
{
DaoUtils
.
update
(
H
gpz
009
.
UPDATE
,
fPz009
);
DaoUtils
.
update
(
H
GPZ
009
.
UPDATE
,
fPz009
);
}
}
/**
/**
...
@@ -161,7 +161,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -161,7 +161,7 @@ public class ServiceHGPZ009 extends ServiceBase {
this
.
checkSaveData
(
resultRows
);
this
.
checkSaveData
(
resultRows
);
// 数据写入
// 数据写入
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
H
gpz009
fPz009
=
new
Hgpz
009
();
H
GPZ009
fPz009
=
new
HGPZ
009
();
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
this
.
add
(
fPz009
);
this
.
add
(
fPz009
);
}
}
...
@@ -180,7 +180,7 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -180,7 +180,7 @@ public class ServiceHGPZ009 extends ServiceBase {
* @param hgpz009
* @param hgpz009
* @param userId
* @param userId
*/
*/
private
void
insertGroupMember
(
H
gpz
009
hgpz009
,
String
userId
)
{
private
void
insertGroupMember
(
H
GPZ
009
hgpz009
,
String
userId
)
{
Map
inInfoRowMap
=
new
HashMap
();
Map
inInfoRowMap
=
new
HashMap
();
inInfoRowMap
.
put
(
"memberId"
,
userId
);
inInfoRowMap
.
put
(
"memberId"
,
userId
);
inInfoRowMap
.
put
(
"memberName"
,
hgpz009
.
getAccountName
());
inInfoRowMap
.
put
(
"memberName"
,
hgpz009
.
getAccountName
());
...
@@ -211,9 +211,9 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -211,9 +211,9 @@ public class ServiceHGPZ009 extends ServiceBase {
// 数据校验
// 数据校验
this
.
checkSaveData
(
resultRows
);
this
.
checkSaveData
(
resultRows
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
H
gpz009
hppz009
=
new
Hgpz
009
();
H
GPZ009
hppz009
=
new
HGPZ
009
();
hppz009
.
fromMap
(
resultRows
.
get
(
i
));
hppz009
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
update
(
H
gpz
009
.
UPDATE
,
hppz009
);
DaoUtils
.
update
(
H
GPZ
009
.
UPDATE
,
hppz009
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
@@ -235,14 +235,14 @@ public class ServiceHGPZ009 extends ServiceBase {
...
@@ -235,14 +235,14 @@ public class ServiceHGPZ009 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
H
gpz009
fPz009
=
new
Hgpz
009
();
H
GPZ009
fPz009
=
new
HGPZ
009
();
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
fPz009
.
fromMap
(
resultRows
.
get
(
i
));
// 校验企业下是否存在用户
// 校验企业下是否存在用户
int
count
=
HGXSTools
.
XsUser
.
countByCompany
(
fPz009
.
getAccountCode
());
int
count
=
HGXSTools
.
XsUser
.
countByCompany
(
fPz009
.
getAccountCode
());
if
(
count
>
0
)
{
if
(
count
>
0
)
{
throw
new
PlatException
(
String
.
format
(
"企业[%s]已关联用户,请先解除用户"
,
fPz009
.
getAccountName
()));
throw
new
PlatException
(
String
.
format
(
"企业[%s]已关联用户,请先解除用户"
,
fPz009
.
getAccountName
()));
}
}
DaoUtils
.
update
(
H
gpz
009
.
DELETE
,
fPz009
);
DaoUtils
.
update
(
H
GPZ
009
.
DELETE
,
fPz009
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ009.xml
View file @
b63e9257
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</sql>
</sql>
<!-- 查询品种大类配置 -->
<!-- 查询品种大类配置 -->
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.pz.domain.H
gpz
009"
>
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.pz.domain.H
GPZ
009"
>
SELECT
SELECT
<include
refid=
"column"
/>
<include
refid=
"column"
/>
FROM ${metaSchema}.HGPZ009
FROM ${metaSchema}.HGPZ009
...
...
src/main/java/com/baosight/hggp/hg/pz/tools/HGPZTools.java
0 → 100644
View file @
b63e9257
package
com
.
baosight
.
hggp
.
hg
.
pz
.
tools
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.util.AssertUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
lombok.extern.slf4j.Slf4j
;
/**
* @author:songx
* @date:2024/1/16,10:48
*/
@Slf4j
public
class
HGPZTools
{
/**
* HPPZ009 公共DAO定义
*
* @author:songx
* @date:2024/2/6,13:37
*/
public
static
class
HgPz009
{
/**
* 查询企业信息
*
* @param companyCode
* @return
*/
public
static
HGPZ009
getByCode
(
String
companyCode
)
{
AssertUtils
.
isEmpty
(
companyCode
,
"企业编码不能为空"
);
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"companyCode"
,
companyCode
);
List
<
HGPZ009
>
pz009s
=
DaoBase
.
getInstance
().
query
(
HGPZ009
.
QUERY
,
queryMap
);
return
CollectionUtils
.
isEmpty
(
pz009s
)
?
null
:
pz009s
.
get
(
0
);
}
/**
* 企业是否启用
*
* @param accountCode
* @return
*/
public
static
boolean
isValid
(
String
accountCode
)
{
HGPZ009
pz009
=
getByCode
(
accountCode
);
if
(
pz009
==
null
)
{
return
false
;
}
return
CommonConstant
.
YesNo
.
YES_1
.
equals
(
pz009
.
getValidFlag
());
}
}
}
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
View file @
b63e9257
...
@@ -95,26 +95,26 @@ public class HGXSTools {
...
@@ -95,26 +95,26 @@ public class HGXSTools {
/**
/**
* 初始化新增用户
* 初始化新增用户
*
*
* @param
company
Code
* @param
account
Code
* @param userId
* @param userId
* @param userName
* @param userName
* @param gender
* @param gender
* @param mobile
* @param mobile
*/
*/
public
static
void
addUser
(
String
company
Code
,
String
userId
,
String
userName
,
String
gender
,
String
mobile
)
public
static
void
addUser
(
String
account
Code
,
String
userId
,
String
userName
,
String
gender
,
String
mobile
)
throws
Exception
{
throws
Exception
{
Map
inInfoRowMap
=
new
HashMap
();
Map
inInfoRowMap
=
new
HashMap
();
inInfoRowMap
.
put
(
"userId"
,
userId
);
inInfoRowMap
.
put
(
"userId"
,
userId
);
inInfoRowMap
.
put
(
"loginName"
,
userId
);
inInfoRowMap
.
put
(
"loginName"
,
userId
);
inInfoRowMap
.
put
(
"userName"
,
userName
);
inInfoRowMap
.
put
(
"userName"
,
userName
);
// 使用公钥加密密码
// 使用公钥加密密码
String
password
=
RsaUtils
.
encryptByPublicKey
(
LoginConstants
.
rsaPublicKey
,
companyCode
);
String
password
=
RsaUtils
.
encryptByPublicKey
(
LoginConstants
.
rsaPublicKey
,
userId
);
inInfoRowMap
.
put
(
"password"
,
password
);
inInfoRowMap
.
put
(
"password"
,
password
);
inInfoRowMap
.
put
(
"rePass"
,
password
);
inInfoRowMap
.
put
(
"rePass"
,
password
);
inInfoRowMap
.
put
(
"email"
,
" "
);
inInfoRowMap
.
put
(
"email"
,
" "
);
inInfoRowMap
.
put
(
"gender"
,
StringUtils
.
isBlank
(
gender
)
?
" "
:
gender
);
inInfoRowMap
.
put
(
"gender"
,
StringUtils
.
isBlank
(
gender
)
?
" "
:
gender
);
inInfoRowMap
.
put
(
"mobile"
,
StringUtils
.
isBlank
(
mobile
)
?
" "
:
mobile
);
inInfoRowMap
.
put
(
"mobile"
,
StringUtils
.
isBlank
(
mobile
)
?
" "
:
mobile
);
inInfoRowMap
.
put
(
"
companyCode"
,
company
Code
);
inInfoRowMap
.
put
(
"
accountCode"
,
account
Code
);
EiInfo
inInfo
=
new
EiInfo
();
EiInfo
inInfo
=
new
EiInfo
();
inInfo
.
addBlock
(
"details"
).
addRow
(
inInfoRowMap
);
inInfo
.
addBlock
(
"details"
).
addRow
(
inInfoRowMap
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"XS0102"
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"XS0102"
);
...
...
src/main/java/com/baosight/hggp/util/CommonMethod.java
View file @
b63e9257
...
@@ -61,7 +61,7 @@ public class CommonMethod {
...
@@ -61,7 +61,7 @@ public class CommonMethod {
if
(
selectParams
==
null
)
{
if
(
selectParams
==
null
)
{
selectParams
=
new
HashMap
<>();
selectParams
=
new
HashMap
<>();
}
}
selectParams
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
selectParams
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
/* 遍历每个数据源 */
/* 遍历每个数据源 */
for
(
DdynamicEnum
tableParam
:
tableParams
)
{
for
(
DdynamicEnum
tableParam
:
tableParams
)
{
/* 编辑块名称 */
/* 编辑块名称 */
...
...
src/main/java/com/baosight/iplat4j/core/data/ibatis/dao/SqlMapDaoLogProxy.java
View file @
b63e9257
...
@@ -186,7 +186,7 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
...
@@ -186,7 +186,7 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
if
(
StringUtils
.
startsWithAny
(
name
,
serviceFilter
))
{
if
(
StringUtils
.
startsWithAny
(
name
,
serviceFilter
))
{
return
;
return
;
}
}
((
Map
)
parameters
).
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
((
Map
)
parameters
).
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
/**
/**
...
@@ -197,7 +197,7 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
...
@@ -197,7 +197,7 @@ public class SqlMapDaoLogProxy extends SqlMapDao {
*/
*/
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
private
void
setDataAuth
(
String
name
,
Object
parameters
)
{
// 需要过滤部分sql name,否则会形成死循环
// 需要过滤部分sql name,否则会形成死循环
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"H
P
PZ009.query"
,
"HPPZ010.query"
};
String
[]
serviceFilter
=
{
"HGXSUser"
,
"HGXSOrg"
,
"H
G
PZ009.query"
,
"HPPZ010.query"
};
if
(
StringUtils
.
startsWithAny
(
name
,
serviceFilter
))
{
if
(
StringUtils
.
startsWithAny
(
name
,
serviceFilter
))
{
return
;
return
;
}
}
...
...
src/main/java/com/baosight/xservices/xs/impl/SecurityUserStandardImpl.java
View file @
b63e9257
package
com
.
baosight
.
xservices
.
xs
.
impl
;
package
com
.
baosight
.
xservices
.
xs
.
impl
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.iplat4j.core.cache.CacheManager
;
import
com.baosight.iplat4j.core.cache.CacheManager
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.ibatis.dao.Dao
;
import
com.baosight.iplat4j.core.data.ibatis.dao.IbatisDaoUtils
;
import
com.baosight.iplat4j.core.data.ibatis.dao.IbatisDaoUtils
;
...
@@ -59,11 +60,11 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -59,11 +60,11 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
int
status
=
-
1
;
int
status
=
-
1
;
String
msg
=
""
;
String
msg
=
""
;
if
(
eiInfo
.
get
(
"loginName"
)
!=
null
&&
eiInfo
.
get
(
"password"
)
!=
null
)
{
if
(
eiInfo
.
get
(
"loginName"
)
!=
null
&&
eiInfo
.
get
(
"password"
)
!=
null
)
{
String
companyCode
=
eiInfo
.
getString
(
"company
Code"
);
String
accountCode
=
eiInfo
.
getString
(
"account
Code"
);
String
loginName
=
eiInfo
.
getString
(
"loginName"
);
String
loginName
=
eiInfo
.
getString
(
"loginName"
);
String
password
=
eiInfo
.
getString
(
"password"
);
String
password
=
eiInfo
.
getString
(
"password"
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"
companyCode"
,
company
Code
);
map
.
put
(
"
accountCode"
,
account
Code
);
map
.
put
(
"loginName"
,
loginName
);
map
.
put
(
"loginName"
,
loginName
);
List
user
=
dao
.
query
(
"XSUser.queryForLogin"
,
map
);
List
user
=
dao
.
query
(
"XSUser.queryForLogin"
,
map
);
String
hashedPassword
;
String
hashedPassword
;
...
@@ -126,8 +127,8 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -126,8 +127,8 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
msg
=
msgSb
.
toString
();
msg
=
msgSb
.
toString
();
}
else
if
(!
"-1"
.
equals
(
userMap
.
get
(
"isLocked"
))
&&
!
"-1"
.
equals
(
userMap
.
get
(
"status"
)))
{
}
else
if
(!
"-1"
.
equals
(
userMap
.
get
(
"isLocked"
))
&&
!
"-1"
.
equals
(
userMap
.
get
(
"status"
)))
{
// 登录校验增加企业是否启用 modify by songx at 2024-01-16
// 登录校验增加企业是否启用 modify by songx at 2024-01-16
String
db
CompanyCode
=
(
String
)
userMap
.
get
(
"company
Code"
);
String
db
AccountCode
=
(
String
)
userMap
.
get
(
"account
Code"
);
// if (StringUtils.isBlank(dbCompanyCode) || HPPZTools.HpPz009.isValid(dbCompany
Code)) {
if
(
StringUtils
.
isBlank
(
dbAccountCode
)
||
HGPZTools
.
HgPz009
.
isValid
(
dbAccount
Code
))
{
String
pwdExpireDateString
=
(
String
)
userMap
.
get
(
"pwdExpireDate"
);
String
pwdExpireDateString
=
(
String
)
userMap
.
get
(
"pwdExpireDate"
);
String
accountExpireDateString
=
(
String
)
userMap
.
get
(
"accountExpireDate"
);
String
accountExpireDateString
=
(
String
)
userMap
.
get
(
"accountExpireDate"
);
String
nowDateString
=
DateUtils
.
curDateStr8
();
String
nowDateString
=
DateUtils
.
curDateStr8
();
...
@@ -210,11 +211,11 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -210,11 +211,11 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
this
.
failCount
.
remove
(
loginName
);
this
.
failCount
.
remove
(
loginName
);
}
}
}
}
//
} else {
}
else
{
//
msg = "企业被停用,请联系管理员!";
msg
=
"企业被停用,请联系管理员!"
;
//
logger.info(msg);
logger
.
info
(
msg
);
//
status = -2;
status
=
-
2
;
//
}
}
}
else
{
}
else
{
msg
=
"用户被禁用,请联系管理员!"
;
msg
=
"用户被禁用,请联系管理员!"
;
logger
.
info
(
msg
);
logger
.
info
(
msg
);
...
@@ -264,13 +265,13 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -264,13 +265,13 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
Map
resultObject
=
null
;
Map
resultObject
=
null
;
int
status
=
0
;
int
status
=
0
;
String
msg
=
""
;
String
msg
=
""
;
String
companyCode
=
eiInfo
.
getString
(
"company
Code"
);
String
accountCode
=
eiInfo
.
getString
(
"account
Code"
);
String
loginName
=
eiInfo
.
getString
(
"loginName"
);
String
loginName
=
eiInfo
.
getString
(
"loginName"
);
try
{
try
{
if
(
StringUtils
.
isNotEmpty
(
loginName
))
{
if
(
StringUtils
.
isNotEmpty
(
loginName
))
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"loginName"
,
loginName
);
map
.
put
(
"loginName"
,
loginName
);
map
.
put
(
"
companyCode"
,
company
Code
);
map
.
put
(
"
accountCode"
,
account
Code
);
List
user
=
dao
.
query
(
"XSUser.query"
,
map
);
List
user
=
dao
.
query
(
"XSUser.query"
,
map
);
if
(
user
!=
null
&&
user
.
size
()
>
0
)
{
if
(
user
!=
null
&&
user
.
size
()
>
0
)
{
status
=
1
;
status
=
1
;
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0800.java
View file @
b63e9257
...
@@ -49,7 +49,7 @@ public class ServiceXSOG0800 extends TreeService {
...
@@ -49,7 +49,7 @@ public class ServiceXSOG0800 extends TreeService {
queryMap
.
put
(
"node"
,
parentLabel
);
queryMap
.
put
(
"node"
,
parentLabel
);
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
queryMap
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
queryMap
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
List
<
Map
>
ret
=
this
.
dao
.
query
(
"XSOG01.queryOrganiation"
,
queryMap
,
0
,
-
999999
);
List
<
Map
>
ret
=
this
.
dao
.
query
(
"XSOG01.queryOrganiation"
,
queryMap
,
0
,
-
999999
);
Map
parentOrgMap
=
new
HashMap
();
Map
parentOrgMap
=
new
HashMap
();
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801.java
View file @
b63e9257
...
@@ -4,6 +4,8 @@ import com.baosight.hggp.core.constant.CommonConstant;
...
@@ -4,6 +4,8 @@ import com.baosight.hggp.core.constant.CommonConstant;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
...
@@ -248,7 +250,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -248,7 +250,7 @@ public class ServiceXSOG0801 extends ServiceBase {
hashMap
.
put
(
"userName"
,
inInfo
.
get
(
"inqu_status-0-userName"
));
hashMap
.
put
(
"userName"
,
inInfo
.
get
(
"inqu_status-0-userName"
));
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
hashMap
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
hashMap
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
List
<
Map
<
String
,
Object
>>
totalUser
=
this
.
dao
.
query
(
"XSOG0801.queryUserByOrgIdBack"
,
hashMap
);
List
<
Map
<
String
,
Object
>>
totalUser
=
this
.
dao
.
query
(
"XSOG0801.queryUserByOrgIdBack"
,
hashMap
);
List
<
Map
<
String
,
Object
>>
userList
=
new
ArrayList
();
List
<
Map
<
String
,
Object
>>
userList
=
new
ArrayList
();
...
@@ -390,7 +392,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -390,7 +392,7 @@ public class ServiceXSOG0801 extends ServiceBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG0801.queryUserOutOfOrgId"
,
new
XS01
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG0801.queryUserOutOfOrgId"
,
new
XS01
());
r1Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
r1Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
...
@@ -416,7 +418,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -416,7 +418,7 @@ public class ServiceXSOG0801 extends ServiceBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
r2Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
r2Block
.
setRows
(
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
());
...
@@ -436,9 +438,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -436,9 +438,7 @@ public class ServiceXSOG0801 extends ServiceBase {
inInfo
.
setBlock
(
resultBlock
);
inInfo
.
setBlock
(
resultBlock
);
}
}
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
String
accountCode
=
UserSessionUtils
.
getAccountCode
();
// HPPZ009 dbPz009 = StringUtils.isBlank(companyCode) ? null : HPPZTools.HpPz009.getByCode(companyCode);
// final String companyPrefix = dbPz009 == null ? "" : "[" + dbPz009.getLoginPrefix() + "]";
String
orgCode
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
ORG_CODE
);
String
orgCode
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
ORG_CODE
);
resultBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
resultBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
List
rows
=
resultBlock
.
getRows
();
List
rows
=
resultBlock
.
getRows
();
...
@@ -446,7 +446,7 @@ public class ServiceXSOG0801 extends ServiceBase {
...
@@ -446,7 +446,7 @@ public class ServiceXSOG0801 extends ServiceBase {
Map
row
=
(
Map
)
m
;
Map
row
=
(
Map
)
m
;
row
.
put
(
"orgId"
,
orgCode
);
row
.
put
(
"orgId"
,
orgCode
);
row
.
put
(
"orgEname"
,
orgCode
);
row
.
put
(
"orgEname"
,
orgCode
);
row
.
put
(
"
companyCode"
,
company
Code
);
row
.
put
(
"
accountCode"
,
account
Code
);
row
.
put
(
"parentOrgId"
,
inInfo
.
get
(
"inqu_status2-0-parentOrgId"
));
row
.
put
(
"parentOrgId"
,
inInfo
.
get
(
"inqu_status2-0-parentOrgId"
));
row
.
put
(
"recCreator"
,
UserSession
.
getLoginName
());
row
.
put
(
"recCreator"
,
UserSession
.
getLoginName
());
});
});
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801A.java
View file @
b63e9257
...
@@ -78,7 +78,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
...
@@ -78,7 +78,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
queryRow
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
queryRow
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -98,7 +98,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
...
@@ -98,7 +98,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
String
companyCode
=
UserSessionUtils
.
getCompany
Code
();
String
accountCode
=
UserSessionUtils
.
getAccount
Code
();
List
<
Map
>
newRows
=
new
ArrayList
<>();
List
<
Map
>
newRows
=
new
ArrayList
<>();
for
(
Map
row
:
resultRows
)
{
for
(
Map
row
:
resultRows
)
{
// 已存在的数据跳过
// 已存在的数据跳过
...
@@ -109,7 +109,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
...
@@ -109,7 +109,7 @@ public class ServiceXSOG0801A extends ServiceEPBase {
orgId
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
ORG_CODE
);
orgId
=
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
ORG_CODE
);
row
.
put
(
"orgId"
,
orgId
);
row
.
put
(
"orgId"
,
orgId
);
row
.
put
(
"orgEname"
,
orgId
);
row
.
put
(
"orgEname"
,
orgId
);
row
.
put
(
"
companyCode"
,
company
Code
);
row
.
put
(
"
accountCode"
,
account
Code
);
row
.
put
(
"establishDate"
,
DateUtils
.
formatShort
(
MapUtils
.
getString
(
row
,
"establishDate"
)));
row
.
put
(
"establishDate"
,
DateUtils
.
formatShort
(
MapUtils
.
getString
(
row
,
"establishDate"
)));
row
.
put
(
"parentOrgId"
,
queryRow
.
get
(
"parentOrgId"
));
row
.
put
(
"parentOrgId"
,
queryRow
.
get
(
"parentOrgId"
));
row
.
put
(
"recCreator"
,
UserSession
.
getLoginName
());
row
.
put
(
"recCreator"
,
UserSession
.
getLoginName
());
...
...
src/main/java/com/baosight/xservices/xs/og/service/ServiceXSOG0801B.java
View file @
b63e9257
...
@@ -71,7 +71,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
...
@@ -71,7 +71,7 @@ public class ServiceXSOG0801B extends ServiceEPBase {
if
(
""
.
equals
(
orgId
))
{
if
(
""
.
equals
(
orgId
))
{
return
inInfo
;
return
inInfo
;
}
}
queryRow
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
queryRow
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
inInfo
=
super
.
query
(
inInfo
,
"XSOG01.query"
,
new
XSOG01
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
...
src/main/java/com/baosight/xservices/xs/og/sql/XSOG01.xml
View file @
b63e9257
...
@@ -161,8 +161,8 @@
...
@@ -161,8 +161,8 @@
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
<isNotEmpty
prepend=
" AND "
property=
"orgType"
>
ORG_TYPE like ('%$orgType$%')
ORG_TYPE like ('%$orgType$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
COMPANY_CODE = #company
Code#
ACCOUNT_CODE = #account
Code#
</isNotEmpty>
</isNotEmpty>
ORDER BY SORT_INDEX ASC
ORDER BY SORT_INDEX ASC
</select>
</select>
...
@@ -256,8 +256,8 @@
...
@@ -256,8 +256,8 @@
<isNotEmpty
prepend=
" AND "
property=
"node"
>
<isNotEmpty
prepend=
" AND "
property=
"node"
>
PARENT_ORG_ID = #node#
PARENT_ORG_ID = #node#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
COMPANY_CODE = #company
Code#
ACCOUNT_CODE = #account
Code#
</isNotEmpty>
</isNotEmpty>
order by SORT_INDEX asc
order by SORT_INDEX asc
</select>
</select>
...
@@ -291,14 +291,14 @@
...
@@ -291,14 +291,14 @@
REC_REVISE_TIME,
<!-- 记录修改时刻 -->
REC_REVISE_TIME,
<!-- 记录修改时刻 -->
ARCHIVE_FLAG,
<!-- 归档标记 -->
ARCHIVE_FLAG,
<!-- 归档标记 -->
IS_DELETED,
<!-- 逻辑删除(1-已删除|0-正常状态) -->
IS_DELETED,
<!-- 逻辑删除(1-已删除|0-正常状态) -->
COMPANY
_CODE,
<!-- 企业编码 -->
ACCOUNT
_CODE,
<!-- 企业编码 -->
FACTORY_CODE,
FACTORY_CODE,
FACTORY_NAME
FACTORY_NAME
) VALUES (
) VALUES (
#orgId#, #orgEname#, #orgCname#, #orgBriefName#, #orgType#, #parentOrgId#,
#orgId#, #orgEname#, #orgCname#, #orgBriefName#, #orgType#, #parentOrgId#,
#establishDate#, #orgLevel#, #orgNodeType#, #sortIndex#, #recCreator#,
#establishDate#, #orgLevel#, #orgNodeType#, #sortIndex#, #recCreator#,
#recCreateTime#, #recRevisor#, #recReviseTime#, #archiveFlag#, #isDeleted#,
#recCreateTime#, #recRevisor#, #recReviseTime#, #archiveFlag#, #isDeleted#,
#
company
Code#, #factoryCode#, #factoryName#
#
account
Code#, #factoryCode#, #factoryName#
)
)
</insert>
</insert>
...
...
src/main/java/com/baosight/xservices/xs/og/sql/XSOG0801.xml
View file @
b63e9257
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
INNER JOIN ${platSchema}.xs_user xu ON t2.USER_ID = xu.USER_ID
INNER JOIN ${platSchema}.xs_user xu ON t2.USER_ID = xu.USER_ID
WHERE
WHERE
xu.LOGIN_NAME != 'admin'
xu.LOGIN_NAME != 'admin'
<isNotEmpty
prepend=
"AND"
property=
"
company
Code"
>
<isNotEmpty
prepend=
"AND"
property=
"
account
Code"
>
t1.
COMPANY_CODE = #company
Code#
t1.
ACCOUNT_CODE = #account
Code#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"orgCname"
>
<isNotEmpty
prepend=
"AND"
property=
"orgCname"
>
t1.ORG_CNAME LIKE ('%$orgCname$%')
t1.ORG_CNAME LIKE ('%$orgCname$%')
...
@@ -240,8 +240,8 @@
...
@@ -240,8 +240,8 @@
where ORG_ID = #parentOrgId#
where ORG_ID = #parentOrgId#
)
)
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
t1.
company_code = #company
Code#
t1.
account_code = #account
Code#
</isNotEmpty>
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS0102.java
View file @
b63e9257
...
@@ -145,8 +145,8 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
...
@@ -145,8 +145,8 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
inInfoRowMap
.
put
(
"pwdReviseDate"
,
" "
);
inInfoRowMap
.
put
(
"pwdReviseDate"
,
" "
);
inInfoRowMap
.
put
(
"pwdRevisor"
,
" "
);
inInfoRowMap
.
put
(
"pwdRevisor"
,
" "
);
// 设置所属企业 added by songx at 2024-01-15
// 设置所属企业 added by songx at 2024-01-15
if
(
ObjectUtils
.
isEmpty
(
inInfoRowMap
.
get
(
"
company
Code"
)))
{
if
(
ObjectUtils
.
isEmpty
(
inInfoRowMap
.
get
(
"
account
Code"
)))
{
inInfoRowMap
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfoRowMap
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
insertedUser
=
this
.
callAddUserService
(
inInfoRowMap
);
insertedUser
=
this
.
callAddUserService
(
inInfoRowMap
);
buffer
.
append
(
"注册成功\n"
);
buffer
.
append
(
"注册成功\n"
);
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS02.java
View file @
b63e9257
...
@@ -53,7 +53,7 @@ public class ServiceXS02 extends ServiceEPBase {
...
@@ -53,7 +53,7 @@ public class ServiceXS02 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
// 非超级管理只能看到所属企业的信息 added by songx at 2024-01-16
// 非超级管理只能看到所属企业的信息 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS02.query"
,
new
XS02
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS02.query"
,
new
XS02
());
return
outInfo
;
return
outInfo
;
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS0702.java
View file @
b63e9257
...
@@ -38,7 +38,7 @@ public class ServiceXS0702 extends ServiceEPBase {
...
@@ -38,7 +38,7 @@ public class ServiceXS0702 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
// 非超级管理只能看到所属企业的角色 added by songx at 2024-01-16
// 非超级管理只能看到所属企业的角色 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS07.query"
,
new
XS07
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS07.query"
,
new
XS07
());
return
outInfo
;
return
outInfo
;
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS0710.java
View file @
b63e9257
...
@@ -53,7 +53,7 @@ public class ServiceXS0710 extends MenuTreeService {
...
@@ -53,7 +53,7 @@ public class ServiceXS0710 extends MenuTreeService {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
map
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
map
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
resultList
=
this
.
dao
.
query
(
stmt
,
map
,
0
,
-
999999
);
resultList
=
this
.
dao
.
query
(
stmt
,
map
,
0
,
-
999999
);
List
haveAuth
=
ServiceXS0707
.
haveAuthList
;
List
haveAuth
=
ServiceXS0707
.
haveAuthList
;
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS3002.java
View file @
b63e9257
...
@@ -26,14 +26,14 @@ public class ServiceXS3002 extends ServiceEPBase {
...
@@ -26,14 +26,14 @@ public class ServiceXS3002 extends ServiceEPBase {
public
EiInfo
insert
(
EiInfo
inInfo
)
{
public
EiInfo
insert
(
EiInfo
inInfo
)
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
String
companyCode
=
UserSessionUtils
.
getCompany
Code
();
String
accountCode
=
UserSessionUtils
.
getAccount
Code
();
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
++
i
)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
++
i
)
{
Map
<
String
,
Object
>
inInfoRowMap
=
eiBlock
.
getRow
(
i
);
Map
<
String
,
Object
>
inInfoRowMap
=
eiBlock
.
getRow
(
i
);
inInfoRowMap
.
remove
(
"groupId"
);
inInfoRowMap
.
remove
(
"groupId"
);
inInfoRowMap
.
put
(
"recCreator"
,
UserSession
.
getUser
().
getUsername
());
inInfoRowMap
.
put
(
"recCreator"
,
UserSession
.
getUser
().
getUsername
());
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
// 设置所属企业 added by songx at 2024-01-16
// 设置所属企业 added by songx at 2024-01-16
inInfoRowMap
.
put
(
"
companyCode"
,
company
Code
);
inInfoRowMap
.
put
(
"
accountCode"
,
account
Code
);
}
}
eiInfo
.
addBlock
(
inInfo
.
getBlock
(
EiConstant
.
resultBlock
));
eiInfo
.
addBlock
(
inInfo
.
getBlock
(
EiConstant
.
resultBlock
));
...
@@ -45,7 +45,7 @@ public class ServiceXS3002 extends ServiceEPBase {
...
@@ -45,7 +45,7 @@ public class ServiceXS3002 extends ServiceEPBase {
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
// 非管理员仅查询所属企业用户组 added by songx at 2024-01-15
// 非管理员仅查询所属企业用户组 added by songx at 2024-01-15
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS02.query"
,
new
XS02
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS02.query"
,
new
XS02
());
return
outInfo
;
return
outInfo
;
...
@@ -90,7 +90,7 @@ public class ServiceXS3002 extends ServiceEPBase {
...
@@ -90,7 +90,7 @@ public class ServiceXS3002 extends ServiceEPBase {
}
}
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS3002.queryUserOutOfUserGroup"
,
new
XS01
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"XS3002.queryUserOutOfUserGroup"
,
new
XS01
());
EiBlock
eiBlock
=
new
EiBlock
(
"resultC"
);
EiBlock
eiBlock
=
new
EiBlock
(
"resultC"
);
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS40.java
View file @
b63e9257
package
com
.
baosight
.
xservices
.
xs
.
service
;
package
com
.
baosight
.
xservices
.
xs
.
service
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
@@ -197,7 +199,7 @@ public class ServiceXS40 extends ServiceEPBase {
...
@@ -197,7 +199,7 @@ public class ServiceXS40 extends ServiceEPBase {
}
}
// 非超级管理只能看到所属企业的角色 added by songx at 2024-01-16
// 非超级管理只能看到所属企业的角色 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
inInfo
.
set
(
"inqu_status-0-
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
inInfo
.
set
(
"inqu_status-0-
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
List
countList
=
this
.
dao
.
query
(
"XS03.countForMemberGroups"
,
map
);
List
countList
=
this
.
dao
.
query
(
"XS03.countForMemberGroups"
,
map
);
int
count
=
(
Integer
)
countList
.
get
(
0
);
int
count
=
(
Integer
)
countList
.
get
(
0
);
...
@@ -224,14 +226,14 @@ public class ServiceXS40 extends ServiceEPBase {
...
@@ -224,14 +226,14 @@ public class ServiceXS40 extends ServiceEPBase {
EiBlock
eiBlock
=
new
EiBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
new
EiBlock
(
EiConstant
.
resultBlock
);
eiBlock
.
setRows
(
r1Block
.
getRows
());
eiBlock
.
setRows
(
r1Block
.
getRows
());
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
// 非管理员组织机构编码前缀增加企业编码 added by songx at 2024-01-15
String
companyCode
=
UserSessionUtils
.
getCompany
Code
();
String
accountCode
=
UserSessionUtils
.
getAccount
Code
();
// HPPZ009 dbPz009 = StringUtils.isBlank(companyCode) ? null : HPPZTools.HpPz009.getByCode(company
Code);
HGPZ009
dbPz009
=
StringUtils
.
isBlank
(
accountCode
)
?
null
:
HGPZTools
.
HgPz009
.
getByCode
(
account
Code
);
final
String
companyPrefix
=
""
;
//dbPz009 == null ? "" : "[" + dbPz009.getLoginPrefix() + "]
";
final
String
companyPrefix
=
dbPz009
==
null
?
""
:
dbPz009
.
getLoginPrefix
()
+
"_
"
;
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
++
i
)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
++
i
)
{
Map
<
String
,
Object
>
inInfoRowMap
=
eiBlock
.
getRow
(
i
);
Map
<
String
,
Object
>
inInfoRowMap
=
eiBlock
.
getRow
(
i
);
inInfoRowMap
.
remove
(
"groupId"
);
inInfoRowMap
.
remove
(
"groupId"
);
inInfoRowMap
.
put
(
"groupEname"
,
companyPrefix
+
inInfoRowMap
.
get
(
"groupEname"
));
inInfoRowMap
.
put
(
"groupEname"
,
companyPrefix
+
inInfoRowMap
.
get
(
"groupEname"
));
inInfoRowMap
.
put
(
"
companyCode"
,
company
Code
);
inInfoRowMap
.
put
(
"
accountCode"
,
account
Code
);
inInfoRowMap
.
put
(
"recCreator"
,
UserSession
.
getUser
().
getUsername
());
inInfoRowMap
.
put
(
"recCreator"
,
UserSession
.
getUser
().
getUsername
());
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
}
}
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS4000.java
View file @
b63e9257
...
@@ -40,7 +40,7 @@ public class ServiceXS4000 extends MenuTreeService {
...
@@ -40,7 +40,7 @@ public class ServiceXS4000 extends MenuTreeService {
params
.
put
(
"parentId"
,
parentId
);
params
.
put
(
"parentId"
,
parentId
);
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
// 非管理员仅查询所属企业用户 added by songx at 2024-01-16
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
if
(!
LoginUserDetails
.
isUserAdmin
(
UserSessionUtils
.
getLoginName
()))
{
params
.
put
(
"
companyCode"
,
UserSessionUtils
.
getCompany
Code
());
params
.
put
(
"
accountCode"
,
UserSessionUtils
.
getAccount
Code
());
}
}
if
(
"off"
.
equals
(
manageSwitch
))
{
if
(
"off"
.
equals
(
manageSwitch
))
{
ret
=
this
.
dao
.
query
(
"XS03.queryNodes"
,
params
);
ret
=
this
.
dao
.
query
(
"XS03.queryNodes"
,
params
);
...
...
src/main/java/com/baosight/xservices/xs/sql/XS02.xml
View file @
b63e9257
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
REC_REVISOR,
REC_REVISOR,
REC_REVISE_TIME,
REC_REVISE_TIME,
ARCHIVE_FLAG,
ARCHIVE_FLAG,
COMPANY
_CODE
ACCOUNT
_CODE
) VALUES (
) VALUES (
#groupId#,
#groupId#,
#groupEname#,
#groupEname#,
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#recRevisor#,
#recRevisor#,
#recReviseTime#,
#recReviseTime#,
#archiveFlag#,
#archiveFlag#,
#
company
Code#
#
account
Code#
)
)
</insert>
</insert>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
t1.archive_flag as "archiveFlag",
t1.archive_flag as "archiveFlag",
t2.group_cname as "manageGroupCname"
t2.group_cname as "manageGroupCname"
FROM (select id,group_ename,group_cname,manage_group_ename,group_type,sort_index,rec_creator,rec_create_time,
FROM (select id,group_ename,group_cname,manage_group_ename,group_type,sort_index,rec_creator,rec_create_time,
rec_revisor,rec_revise_time,archive_flag,
company
_code from ${platSchema}.XS_USER_GROUP where group_ename != 'ADMIN') t1
rec_revisor,rec_revise_time,archive_flag,
account
_code from ${platSchema}.XS_USER_GROUP where group_ename != 'ADMIN') t1
left join ${platSchema}.XS_USER_GROUP t2 on t1.manage_group_ename=t2.group_ename
left join ${platSchema}.XS_USER_GROUP t2 on t1.manage_group_ename=t2.group_ename
where 1=1
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"groupId"
>
<isNotEmpty
prepend=
" AND "
property=
"groupId"
>
...
@@ -98,8 +98,8 @@
...
@@ -98,8 +98,8 @@
<isNotEmpty
prepend=
" AND "
property=
"manageGroupEname"
>
<isNotEmpty
prepend=
" AND "
property=
"manageGroupEname"
>
t1.manage_group_ename like ('%$manageGroupEname$%')
t1.manage_group_ename like ('%$manageGroupEname$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
t1.
company_code = #company
Code#
t1.
account_code = #account
Code#
</isNotEmpty>
</isNotEmpty>
ORDER BY t1.SORT_INDEX,t1.ID
ORDER BY t1.SORT_INDEX,t1.ID
</select>
</select>
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
t1.archive_flag as "archiveFlag",
t1.archive_flag as "archiveFlag",
t2.group_cname as "manageGroupCname"
t2.group_cname as "manageGroupCname"
FROM (select id,group_ename,group_cname,manage_group_ename,group_type,sort_index,rec_creator,rec_create_time,
FROM (select id,group_ename,group_cname,manage_group_ename,group_type,sort_index,rec_creator,rec_create_time,
rec_revisor,rec_revise_time,archive_flag,
company
_code from ${platSchema}.xs_user_group where group_ename != 'ADMIN') t1
rec_revisor,rec_revise_time,archive_flag,
account
_code from ${platSchema}.xs_user_group where group_ename != 'ADMIN') t1
left join ${platSchema}.xs_user_group t2 on t1.manage_group_ename=t2.group_ename
left join ${platSchema}.xs_user_group t2 on t1.manage_group_ename=t2.group_ename
where 1=1
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"groupId"
>
<isNotEmpty
prepend=
" AND "
property=
"groupId"
>
...
...
src/main/java/com/baosight/xservices/xs/sql/XS07.xml
View file @
b63e9257
...
@@ -127,8 +127,8 @@
...
@@ -127,8 +127,8 @@
<isNotEmpty
prepend=
" AND "
property=
"objectEname"
>
<isNotEmpty
prepend=
" AND "
property=
"objectEname"
>
(t6.resource_group_ename = #objectEname# or t7.resource_ename like concat(#objectEname#, '%'))
(t6.resource_group_ename = #objectEname# or t7.resource_ename like concat(#objectEname#, '%'))
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
t2.
company_code = #company
Code#
t2.
account_code = #account
Code#
</isNotEmpty>
</isNotEmpty>
ORDER BY t1.SORT_INDEX, t1.SUBJECT_ID, t1.OBJECT_ID
ORDER BY t1.SORT_INDEX, t1.SUBJECT_ID, t1.OBJECT_ID
</select>
</select>
...
...
src/main/java/com/baosight/xservices/xs/sql/XS0702.xml
View file @
b63e9257
...
@@ -163,8 +163,8 @@
...
@@ -163,8 +163,8 @@
<isNotEmpty
prepend=
"AND"
property=
"loginName"
>
<isNotEmpty
prepend=
"AND"
property=
"loginName"
>
t1.member_id IN (
<include
refid=
"getAllManagerGroupsByLoginNameDetail"
/>
)
t1.member_id IN (
<include
refid=
"getAllManagerGroupsByLoginNameDetail"
/>
)
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
t2.
COMPANY_CODE = #company
Code#
t2.
account_code = #account
Code#
</isNotEmpty>
</isNotEmpty>
</sql>
</sql>
...
...
src/main/java/com/baosight/xservices/xs/sql/XSUser.xml
View file @
b63e9257
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
USER_TYPE = #userType#
USER_TYPE = #userType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
COMPANY_CODE = #company
Code#
ACCOUNT_CODE = #account
Code#
</isNotEmpty>
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
pwd_revise_date as "pwdReviseDate",
pwd_revise_date as "pwdReviseDate",
pwd_revisor as "pwdRevisor",
pwd_revisor as "pwdRevisor",
archive_flag as "archiveFlag",
archive_flag as "archiveFlag",
company_code as "company
Code"
account_code as "account
Code"
FROM ${platSchema}.XS_USER where 1=1
FROM ${platSchema}.XS_USER where 1=1
<isNotEmpty
prepend=
" AND "
property=
"userId"
>
<isNotEmpty
prepend=
" AND "
property=
"userId"
>
user_id = #userId#
user_id = #userId#
...
@@ -120,8 +120,8 @@
...
@@ -120,8 +120,8 @@
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
user_type like ('%$userType$%')
user_type like ('%$userType$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"
company
Code"
>
<isNotEmpty
prepend=
" AND "
property=
"
account
Code"
>
company_code = #company
Code#
account_code = #account
Code#
</isNotEmpty>
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
...
...
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