Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
12c94131
Commit
12c94131
authored
Feb 02, 2024
by
yukang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
fbbc36a5
91f600bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
309 additions
and
186 deletions
+309
-186
DdynamicEnum.java
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
+7
-1
UserSessionUtils.java
...ava/com/baosight/hpjx/core/security/UserSessionUtils.java
+1
-1
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+4
-4
ServiceHPKC002.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
+2
-2
ServiceHPKC005.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
+2
-2
ServiceHPKC006.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
+4
-4
HPKCTools.java
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
+183
-145
HPPZ009.java
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ009.java
+0
-0
ServiceHPPZ009.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ009.java
+5
-0
HPPZ006.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
+3
-0
HPPZ009.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ009.xml
+16
-10
ServiceHPXSUser.java
...java/com/baosight/hpjx/hp/xs/service/ServiceHPXSUser.java
+29
-3
HPXSUser.xml
src/main/java/com/baosight/hpjx/hp/xs/sql/HPXSUser.xml
+13
-2
SecurityUserStandardImpl.java
.../baosight/xservices/xs/impl/SecurityUserStandardImpl.java
+8
-5
ServiceXS3001.java
...java/com/baosight/xservices/xs/service/ServiceXS3001.java
+4
-0
XSUser.xml
src/main/java/com/baosight/xservices/xs/sql/XSUser.xml
+6
-0
HPPZ009.jsp
src/main/webapp/HP/PZ/HPPZ009.jsp
+1
-0
XSOG0801.jsp
src/main/webapp/XS/OG/XSOG0801.jsp
+9
-3
XS3001.jsp
src/main/webapp/XS/XS3001.jsp
+12
-4
No files found.
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
View file @
12c94131
...
@@ -140,8 +140,14 @@ public enum DdynamicEnum {
...
@@ -140,8 +140,14 @@ public enum DdynamicEnum {
* 用途:项目档案下拉框
* 用途:项目档案下拉框
* 编写:wwl
* 编写:wwl
*/
*/
ORG_RECORD_BLOCK_ID
(
"org_record_block_id"
,
"orgId"
,
"orgCname"
,
"HPXSOrg.queryComboBox"
)
;
ORG_RECORD_BLOCK_ID
(
"org_record_block_id"
,
"orgId"
,
"orgCname"
,
"HPXSOrg.queryComboBox"
)
,
/**
* 模块:用户企业
* 用途:项目档案下拉框
* 编写:wwl
*/
COMPANY_RECORD_BLOCK_ID
(
"company_record_block_id"
,
"companyCode"
,
"companyName"
,
"HPXSUser.queryCompanyComboBox"
);
/** 将结果集放入的块名 */
/** 将结果集放入的块名 */
private
final
String
blockId
;
private
final
String
blockId
;
...
...
src/main/java/com/baosight/hpjx/core/security/UserSessionUtils.java
View file @
12c94131
...
@@ -29,7 +29,7 @@ public class UserSessionUtils extends UserSession {
...
@@ -29,7 +29,7 @@ public class UserSessionUtils extends UserSession {
*/
*/
public
static
User
getUser
()
{
public
static
User
getUser
()
{
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
eiInfo
.
set
(
"
loginName"
,
UserSession
.
getLoginName
());
eiInfo
.
set
(
"
userId"
,
UserSession
.
getUserId
());
eiInfo
.
set
(
EiConstant
.
serviceName
,
"HPXSUser"
);
eiInfo
.
set
(
EiConstant
.
serviceName
,
"HPXSUser"
);
eiInfo
.
set
(
EiConstant
.
methodName
,
"getUser"
);
eiInfo
.
set
(
EiConstant
.
methodName
,
"getUser"
);
EiInfo
outInfo
=
XLocalManager
.
call
(
eiInfo
);
EiInfo
outInfo
=
XLocalManager
.
call
(
eiInfo
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
12c94131
...
@@ -131,9 +131,9 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -131,9 +131,9 @@ public class ServiceHPKC001 extends ServiceBase {
// 入库单号
// 入库单号
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc001
(
otherEnterNos
);
HPKCTools
.
HpKc001
.
lock
(
otherEnterNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC001
>
mapKc001
=
HPKCTools
.
mapKc001
(
otherEnterNos
);
Map
<
String
,
HPKC001
>
mapKc001
=
HPKCTools
.
HpKc001
.
map
(
otherEnterNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC001
fKc001
=
new
HPKC001
();
HPKC001
fKc001
=
new
HPKC001
();
fKc001
.
fromMap
(
resultRows
.
get
(
i
));
fKc001
.
fromMap
(
resultRows
.
get
(
i
));
...
@@ -199,9 +199,9 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -199,9 +199,9 @@ public class ServiceHPKC001 extends ServiceBase {
// 入库单号
// 入库单号
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc001
(
otherEnterNos
);
HPKCTools
.
HpKc001
.
lock
(
otherEnterNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC001
>
mapKc001
=
HPKCTools
.
mapKc001
(
otherEnterNos
);
Map
<
String
,
HPKC001
>
mapKc001
=
HPKCTools
.
HpKc001
.
map
(
otherEnterNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC001
fKc001
=
new
HPKC001
();
HPKC001
fKc001
=
new
HPKC001
();
fKc001
.
fromMap
(
resultRows
.
get
(
i
));
fKc001
.
fromMap
(
resultRows
.
get
(
i
));
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
View file @
12c94131
...
@@ -89,9 +89,9 @@ public class ServiceHPKC002 extends ServiceBase {
...
@@ -89,9 +89,9 @@ public class ServiceHPKC002 extends ServiceBase {
// 销售单号
// 销售单号
List
<
String
>
reqNos
=
ObjectUtils
.
listKey
(
resultRows
,
"reqNo"
);
List
<
String
>
reqNos
=
ObjectUtils
.
listKey
(
resultRows
,
"reqNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc002
(
reqNos
);
HPKCTools
.
HpKc002
.
lock
(
reqNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC002
>
dbMapKc002
=
HPKCTools
.
mapKc002
(
reqNos
);
Map
<
String
,
HPKC002
>
dbMapKc002
=
HPKCTools
.
HpKc002
.
map
(
reqNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC002
fKc002
=
new
HPKC002
();
HPKC002
fKc002
=
new
HPKC002
();
fKc002
.
fromMap
(
resultRows
.
get
(
i
));
fKc002
.
fromMap
(
resultRows
.
get
(
i
));
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
View file @
12c94131
...
@@ -162,9 +162,9 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -162,9 +162,9 @@ public class ServiceHPKC005 extends ServiceBase {
// 盘点单号
// 盘点单号
List
<
String
>
checkNos
=
ObjectUtils
.
listKey
(
resultRows
,
"checkNo"
);
List
<
String
>
checkNos
=
ObjectUtils
.
listKey
(
resultRows
,
"checkNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc005
(
checkNos
);
HPKCTools
.
HpKc005
.
lock
(
checkNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC005
>
mapKc005
=
HPKCTools
.
mapKc005
(
checkNos
);
Map
<
String
,
HPKC005
>
mapKc005
=
HPKCTools
.
HpKc005
.
map
(
checkNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC005
fKc005
=
new
HPKC005
();
HPKC005
fKc005
=
new
HPKC005
();
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
fKc005
.
fromMap
(
resultRows
.
get
(
i
));
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC006.java
View file @
12c94131
...
@@ -133,9 +133,9 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -133,9 +133,9 @@ public class ServiceHPKC006 extends ServiceBase {
// 入库单号
// 入库单号
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc006
(
otherEnterNos
);
HPKCTools
.
HpKc006
.
lock
(
otherEnterNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC006
>
mapKc006
=
HPKCTools
.
mapKc006
(
otherEnterNos
);
Map
<
String
,
HPKC006
>
mapKc006
=
HPKCTools
.
HpKc006
.
map
(
otherEnterNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC006
fKc006
=
new
HPKC006
();
HPKC006
fKc006
=
new
HPKC006
();
fKc006
.
fromMap
(
resultRows
.
get
(
i
));
fKc006
.
fromMap
(
resultRows
.
get
(
i
));
...
@@ -201,9 +201,9 @@ public class ServiceHPKC006 extends ServiceBase {
...
@@ -201,9 +201,9 @@ public class ServiceHPKC006 extends ServiceBase {
// 入库单号
// 入库单号
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
List
<
String
>
otherEnterNos
=
ObjectUtils
.
listKey
(
resultRows
,
"otherEnterNo"
);
// 锁记录
// 锁记录
HPKCTools
.
lockKc006
(
otherEnterNos
);
HPKCTools
.
HpKc006
.
lock
(
otherEnterNos
);
// 查询数据库记录
// 查询数据库记录
Map
<
String
,
HPKC006
>
mapKc006
=
HPKCTools
.
mapKc006
(
otherEnterNos
);
Map
<
String
,
HPKC006
>
mapKc006
=
HPKCTools
.
HpKc006
.
map
(
otherEnterNos
);
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC006
fKc006
=
new
HPKC006
();
HPKC006
fKc006
=
new
HPKC006
();
fKc006
.
fromMap
(
resultRows
.
get
(
i
));
fKc006
.
fromMap
(
resultRows
.
get
(
i
));
...
...
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
View file @
12c94131
...
@@ -23,91 +23,110 @@ import java.util.stream.Collectors;
...
@@ -23,91 +23,110 @@ import java.util.stream.Collectors;
public
class
HPKCTools
{
public
class
HPKCTools
{
/**
/**
*
锁
*
HPKC001公共DAO定义
*
*
* @
param otherEnterNos
* @
author:songx
* @
return
* @
date:2024/2/1,9:09
*/
*/
public
static
void
lockKc001
(
List
<
String
>
otherEnterNos
)
{
public
static
class
HpKc001
{
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
return
;
/**
* 锁
*
* @param otherEnterNos
* @return
*/
public
static
void
lock
(
List
<
String
>
otherEnterNos
)
{
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
return
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC001
.
LOCK
,
queryMap
);
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
/**
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC001
.
LOCK
,
queryMap
);
* 查询其他入库信息
}
*
* @param otherEnterNos
/**
* @return
* 查询其他入库信息
*/
*
public
static
List
<
HPKC001
>
list
(
List
<
String
>
otherEnterNos
)
{
* @param otherEnterNos
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
* @return
return
null
;
*/
}
public
static
List
<
HPKC001
>
listKc001
(
List
<
String
>
otherEnterNos
)
{
Map
queryMap
=
new
HashMap
();
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
return
null
;
return
DaoBase
.
getInstance
().
query
(
HPKC001
.
QUERY
,
queryMap
)
;
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
/**
return
DaoBase
.
getInstance
().
query
(
HPKC001
.
QUERY
,
queryMap
);
* 查询其他入库信息
}
*
* @param otherEnterNos
/**
* @return
* 查询其他入库信息
*/
*
public
static
Map
<
String
,
HPKC001
>
map
(
List
<
String
>
otherEnterNos
)
{
* @param otherEnterNos
List
<
HPKC001
>
results
=
list
(
otherEnterNos
);
* @return
if
(
CollectionUtils
.
isEmpty
(
results
))
{
*/
return
null
;
public
static
Map
<
String
,
HPKC001
>
mapKc001
(
List
<
String
>
otherEnterNos
)
{
}
List
<
HPKC001
>
results
=
listKc001
(
otherEnterNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC001:
:
getPurchaseNo
,
item
->
item
));
if
(
CollectionUtils
.
isEmpty
(
results
))
{
return
null
;
}
}
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC001:
:
getPurchaseNo
,
item
->
item
));
}
}
/**
/**
*
锁
*
HPKC002公共DAO定义
*
*
* @
param reqNos
* @
author:songx
* @
return
* @
date:2024/2/1,9:09
*/
*/
public
static
void
lockKc002
(
List
<
String
>
reqNos
)
{
public
static
class
HpKc002
{
if
(
CollectionUtils
.
isEmpty
(
reqNos
))
{
return
;
/**
* 锁
*
* @param reqNos
* @return
*/
public
static
void
lock
(
List
<
String
>
reqNos
)
{
if
(
CollectionUtils
.
isEmpty
(
reqNos
))
{
return
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"reqNos"
,
reqNos
);
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC002
.
LOCK
,
queryMap
);
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"reqNos"
,
reqNos
);
/**
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC002
.
LOCK
,
queryMap
);
* 查询生产领料信息
}
*
* @param reqNos
/**
* @return
* 查询生产领料信息
*/
*
public
static
List
<
HPKC002
>
list
(
List
<
String
>
reqNos
)
{
* @param reqNos
if
(
CollectionUtils
.
isEmpty
(
reqNos
))
{
* @return
return
null
;
*/
}
public
static
List
<
HPKC002
>
listKc002
(
List
<
String
>
reqNos
)
{
Map
queryMap
=
new
HashMap
();
if
(
CollectionUtils
.
isEmpty
(
reqNos
))
{
queryMap
.
put
(
"reqNos"
,
reqNos
);
return
null
;
return
DaoBase
.
getInstance
().
query
(
HPKC002
.
QUERY
,
queryMap
)
;
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"reqNos"
,
reqNos
);
/**
return
DaoBase
.
getInstance
().
query
(
HPKC002
.
QUERY
,
queryMap
);
* 查询生产领料信息
}
*
* @param reqNos
/**
* @return
* 查询生产领料信息
*/
*
public
static
Map
<
String
,
HPKC002
>
map
(
List
<
String
>
reqNos
)
{
* @param reqNos
List
<
HPKC002
>
results
=
list
(
reqNos
);
* @return
if
(
CollectionUtils
.
isEmpty
(
results
))
{
*/
return
null
;
public
static
Map
<
String
,
HPKC002
>
mapKc002
(
List
<
String
>
reqNos
)
{
}
List
<
HPKC002
>
results
=
listKc002
(
reqNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC002:
:
getReqNo
,
item
->
item
));
if
(
CollectionUtils
.
isEmpty
(
results
))
{
return
null
;
}
}
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC002:
:
getReqNo
,
item
->
item
));
}
}
/**
/**
...
@@ -193,91 +212,111 @@ public class HPKCTools {
...
@@ -193,91 +212,111 @@ public class HPKCTools {
}
}
/**
/**
*
锁
*
HPKC005公共DAO方法定义
*
*
* @
param checkNos
* @
author:songx
* @
return
* @
date:2024/1/31,16:36
*/
*/
public
static
void
lockKc005
(
List
<
String
>
checkNos
)
{
public
static
class
HpKc005
{
if
(
CollectionUtils
.
isEmpty
(
checkNos
))
{
return
;
/**
* 锁
*
* @param checkNos
* @return
*/
public
static
void
lock
(
List
<
String
>
checkNos
)
{
if
(
CollectionUtils
.
isEmpty
(
checkNos
))
{
return
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"checkNos"
,
checkNos
);
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC005
.
LOCK
,
queryMap
);
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"checkNos"
,
checkNos
);
/**
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC005
.
LOCK
,
queryMap
);
* 查询盘点单信息
}
*
* @param checkNos
/**
* @return
* 查询盘点单信息
*/
*
public
static
List
<
HPKC005
>
list
(
List
<
String
>
checkNos
)
{
* @param checkNos
if
(
CollectionUtils
.
isEmpty
(
checkNos
))
{
* @return
return
null
;
*/
}
public
static
List
<
HPKC005
>
listKc005
(
List
<
String
>
checkNos
)
{
Map
queryMap
=
new
HashMap
();
if
(
CollectionUtils
.
isEmpty
(
checkNos
))
{
queryMap
.
put
(
"checkNos"
,
checkNos
);
return
null
;
return
DaoBase
.
getInstance
().
query
(
HPKC005
.
QUERY
,
queryMap
)
;
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"checkNos"
,
checkNos
);
/**
return
DaoBase
.
getInstance
().
query
(
HPKC005
.
QUERY
,
queryMap
);
* 查询盘点单信息
}
*
* @param checkNos
/**
* @return
* 查询盘点单信息
*/
*
public
static
Map
<
String
,
HPKC005
>
map
(
List
<
String
>
checkNos
)
{
* @param checkNos
List
<
HPKC005
>
results
=
list
(
checkNos
);
* @return
if
(
CollectionUtils
.
isEmpty
(
results
))
{
*/
return
null
;
public
static
Map
<
String
,
HPKC005
>
mapKc005
(
List
<
String
>
checkNos
)
{
}
List
<
HPKC005
>
results
=
listKc005
(
checkNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC005:
:
getCheckNo
,
item
->
item
));
if
(
CollectionUtils
.
isEmpty
(
results
))
{
return
null
;
}
}
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC005:
:
getCheckNo
,
item
->
item
));
}
}
/**
/**
*
锁
*
HPKC006公共DAO方法定义
*
*
* @
param otherEnterNos
* @
author:songx
* @
return
* @
date:2024/2/1,9:15
*/
*/
public
static
void
lockKc006
(
List
<
String
>
otherEnterNos
)
{
public
static
class
HpKc006
{
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
return
;
/**
* 锁
*
* @param otherEnterNos
* @return
*/
public
static
void
lock
(
List
<
String
>
otherEnterNos
)
{
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
return
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC006
.
LOCK
,
queryMap
);
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
/**
DaoBase
.
getInstance
().
update
(
HPSqlConstant
.
HPKC006
.
LOCK
,
queryMap
);
* 查询其他入库信息
}
*
* @param otherEnterNos
/**
* @return
* 查询其他入库信息
*/
*
public
static
List
<
HPKC006
>
list
(
List
<
String
>
otherEnterNos
)
{
* @param otherEnterNos
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
* @return
return
null
;
*/
}
public
static
List
<
HPKC006
>
listKc006
(
List
<
String
>
otherEnterNos
)
{
Map
queryMap
=
new
HashMap
();
if
(
CollectionUtils
.
isEmpty
(
otherEnterNos
))
{
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
return
null
;
return
DaoBase
.
getInstance
().
query
(
HPKC006
.
QUERY
,
queryMap
)
;
}
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"otherEnterNos"
,
otherEnterNos
);
/**
return
DaoBase
.
getInstance
().
query
(
HPKC006
.
QUERY
,
queryMap
);
* 查询其他入库信息
}
*
* @param otherEnterNos
/**
* @return
* 查询其他入库信息
*/
*
public
static
Map
<
String
,
HPKC006
>
map
(
List
<
String
>
otherEnterNos
)
{
* @param otherEnterNos
List
<
HPKC006
>
results
=
list
(
otherEnterNos
);
* @return
if
(
CollectionUtils
.
isEmpty
(
results
))
{
*/
return
null
;
public
static
Map
<
String
,
HPKC006
>
mapKc006
(
List
<
String
>
otherEnterNos
)
{
}
List
<
HPKC006
>
results
=
listKc006
(
otherEnterNos
);
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC006:
:
getOtherEnterNo
,
item
->
item
));
if
(
CollectionUtils
.
isEmpty
(
results
))
{
return
null
;
}
}
return
results
.
stream
().
collect
(
Collectors
.
toMap
(
HPKC006:
:
getOtherEnterNo
,
item
->
item
));
}
}
/**
/**
...
@@ -378,7 +417,6 @@ public class HPKCTools {
...
@@ -378,7 +417,6 @@ public class HPKCTools {
}
}
/**
/**
* HPKC011公共DAO方法定义
* HPKC011公共DAO方法定义
*
*
...
...
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ009.java
View file @
12c94131
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ009.java
View file @
12c94131
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ009
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ009
;
import
com.baosight.hpjx.hp.xs.tools.HPXSUserTools
;
import
com.baosight.hpjx.hp.xs.tools.HPXSUserTools
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.RsaUtils
;
import
com.baosight.hpjx.util.RsaUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -18,6 +21,7 @@ import com.baosight.iplat4j.core.web.threadlocal.UserSession;
...
@@ -18,6 +21,7 @@ import com.baosight.iplat4j.core.web.threadlocal.UserSession;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.xservices.xs.constants.LoginConstants
;
import
com.baosight.xservices.xs.constants.LoginConstants
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -102,6 +106,7 @@ public class ServiceHPPZ009 extends ServiceBase {
...
@@ -102,6 +106,7 @@ public class ServiceHPPZ009 extends ServiceBase {
HPPZ009
hppz009
=
new
HPPZ009
();
HPPZ009
hppz009
=
new
HPPZ009
();
hppz009
.
fromMap
(
resultRows
.
get
(
i
));
hppz009
.
fromMap
(
resultRows
.
get
(
i
));
AssertUtils
.
isEmpty
(
hppz009
.
getCompanyName
(),
"企业名称不能为空"
);
AssertUtils
.
isEmpty
(
hppz009
.
getCompanyName
(),
"企业名称不能为空"
);
AssertUtils
.
isEmpty
(
hppz009
.
getLoginPrefix
(),
"登录前缀不能为空"
);
AssertUtils
.
isNull
(
hppz009
.
getValidFlag
(),
"是否启用不能为空"
);
AssertUtils
.
isNull
(
hppz009
.
getValidFlag
(),
"是否启用不能为空"
);
}
}
}
}
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
View file @
12c94131
...
@@ -147,6 +147,9 @@
...
@@ -147,6 +147,9 @@
#status#, #spec#, #length#, #width#, #thick#, #material#, #coefficient#,
#status#, #spec#, #length#, #width#, #thick#, #material#, #coefficient#,
#unit#, #createdBy#, #createdName#, #createdTime#
#unit#, #createdBy#, #createdName#, #createdTime#
)
)
<selectKey
resultClass=
"long"
keyProperty=
"id"
>
SELECT MAX(ID) AS "id" FROM ${hpjxSchema}.T_HPPZ006
</selectKey>
</insert>
</insert>
<!-- 逻辑删除 -->
<!-- 逻辑删除 -->
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ009.xml
View file @
12c94131
...
@@ -2,28 +2,33 @@
...
@@ -2,28 +2,33 @@
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HPPZ009"
>
<sqlMap
namespace=
"HPPZ009"
>
<sql
id=
"column
s
"
>
<sql
id=
"column"
>
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
COMPANY_NAME as "companyName",
<!-- 企业名称 -->
COMPANY_NAME as "companyName",
<!-- 企业名称 -->
VALID_FLAG as "validFlag",
<!-- 是否启用:1.启用,0.停用 -->
VALID_FLAG as "validFlag",
<!-- 是否启用:1.启用,0.停用 -->
LOGIN_PREFIX as "loginPrefix",
<!-- 登录前缀 -->
REMARK as "remark",
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_NAME as "updatedName",
<!-- 更新人名称 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
DELETE_FLAG as "deleteFlag"
<!-- 是否删除:1.是,0.否 -->
</sql>
</sql>
<sql
id=
"condition
s
"
>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
AND DELETE_FLAG = 0
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
COMPANY_CODE = #companyCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"validFlag"
>
VALID_FLAG = #validFlag#
</isNotEmpty>
</sql>
</sql>
<sql
id=
"queryCondition
s
"
>
<sql
id=
"queryCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
COMPANY_NAME LIKE CONCAT('%', #companyName#, '%')
COMPANY_NAME LIKE CONCAT('%', #companyName#, '%')
</isNotEmpty>
</isNotEmpty>
...
@@ -50,11 +55,11 @@
...
@@ -50,11 +55,11 @@
<!-- 查询品种大类配置 -->
<!-- 查询品种大类配置 -->
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ009"
>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ009"
>
SELECT
SELECT
<include
refid=
"column
s
"
/>
<include
refid=
"column"
/>
FROM ${hpjxSchema}.T_HPPZ009
FROM ${hpjxSchema}.T_HPPZ009
WHERE 1=1
WHERE 1=1
<include
refid=
"condition
s
"
/>
<include
refid=
"condition"
/>
<include
refid=
"queryCondition
s
"
/>
<include
refid=
"queryCondition"
/>
<include
refid=
"dynamic"
/>
<include
refid=
"dynamic"
/>
</select>
</select>
...
@@ -63,8 +68,8 @@
...
@@ -63,8 +68,8 @@
SELECT COUNT(1)
SELECT COUNT(1)
FROM ${hpjxSchema}.T_HPPZ009
FROM ${hpjxSchema}.T_HPPZ009
WHERE 1=1
WHERE 1=1
<include
refid=
"condition
s
"
/>
<include
refid=
"condition"
/>
<include
refid=
"queryCondition
s
"
/>
<include
refid=
"queryCondition"
/>
</select>
</select>
<insert
id=
"insert"
>
<insert
id=
"insert"
>
...
@@ -72,12 +77,13 @@
...
@@ -72,12 +77,13 @@
COMPANY_CODE,
<!-- 企业编码 -->
COMPANY_CODE,
<!-- 企业编码 -->
COMPANY_NAME,
<!-- 企业名称 -->
COMPANY_NAME,
<!-- 企业名称 -->
VALID_FLAG,
<!-- 是否启用:1.启用,0.停用 -->
VALID_FLAG,
<!-- 是否启用:1.启用,0.停用 -->
LOGIN_PREFIX,
<!-- 登录前缀 -->
REMARK,
<!-- 备注 -->
REMARK,
<!-- 备注 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME
<!-- 创建时间 -->
CREATED_TIME
<!-- 创建时间 -->
) VALUES (
) VALUES (
#companyCode#, #companyName#, #validFlag#, #remark#, #createdBy#,
#companyCode#, #companyName#, #validFlag#,
#loginPrefix#,
#remark#, #createdBy#,
#createdName#, #createdTime#
#createdName#, #createdTime#
)
)
</insert>
</insert>
...
...
src/main/java/com/baosight/hpjx/hp/xs/service/ServiceHPXSUser.java
View file @
12c94131
package
com
.
baosight
.
hpjx
.
hp
.
xs
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
xs
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.hp.xs.domain.User
;
import
com.baosight.hpjx.hp.xs.domain.User
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.ObjectUtils
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -27,10 +32,10 @@ public class ServiceHPXSUser extends ServiceBase {
...
@@ -27,10 +32,10 @@ public class ServiceHPXSUser extends ServiceBase {
int
status
=
0
;
int
status
=
0
;
String
msg
=
""
;
String
msg
=
""
;
try
{
try
{
String
loginName
=
eiInfo
.
getString
(
"loginName
"
);
String
userId
=
eiInfo
.
getString
(
"userId
"
);
if
(
StringUtils
.
isNotEmpty
(
loginName
))
{
if
(
StringUtils
.
isNotEmpty
(
userId
))
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"
loginName"
,
loginName
);
map
.
put
(
"
userId"
,
userId
);
List
<
User
>
users
=
dao
.
query
(
"HPXSUser.query"
,
map
);
List
<
User
>
users
=
dao
.
query
(
"HPXSUser.query"
,
map
);
if
(
users
!=
null
&&
users
.
size
()
>
0
)
{
if
(
users
!=
null
&&
users
.
size
()
>
0
)
{
status
=
1
;
status
=
1
;
...
@@ -50,4 +55,25 @@ public class ServiceHPXSUser extends ServiceBase {
...
@@ -50,4 +55,25 @@ public class ServiceHPXSUser extends ServiceBase {
return
outInfo
;
return
outInfo
;
}
}
/**
* 查询用户的一页下拉框
*
* @param inInfo
* @return
*/
public
EiInfo
queryCompanyComboBox
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
if
(
ObjectUtils
.
isNullBlank
(
queryMap
.
get
(
"loginName"
)))
{
return
inInfo
;
}
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
COMPANY_RECORD_BLOCK_ID
);
CommonMethod
.
initBlock
(
inInfo
,
list
,
queryMap
,
false
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询企业失败"
);
}
return
inInfo
;
}
}
}
src/main/java/com/baosight/hpjx/hp/xs/sql/HPXSUser.xml
View file @
12c94131
...
@@ -37,14 +37,25 @@
...
@@ -37,14 +37,25 @@
<!-- 查询用户信息 -->
<!-- 查询用户信息 -->
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
SELECT
LOGIN_NAME as "loginName",
<!-- 登录id -->
LOGIN_NAME as "loginName",
<!-- 登录id -->
USER_NAME as "userName"
<!-- 用户名 -->
USER_NAME as "userName"
<!-- 用户名 -->
FROM ${platSchema}.XS_USER
FROM ${platSchema}.XS_USER
WHERE 1=1
WHERE 1=1
AND LOGIN_NAME != 'admin'
AND LOGIN_NAME != 'admin'
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
</select>
</select>
<!-- 查询用户企业 -->
<select
id=
"queryCompanyComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT
A.COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
B.COMPANY_NAME as "companyName"
<!-- 企业名称 -->
FROM ${platSchema}.XS_USER A, ${hpjxSchema}.T_HPPZ009 B
WHERE 1=1
AND A.COMPANY_CODE = B.COMPANY_CODE
AND A.LOGIN_NAME = #loginName#
</select>
<!-- 统计用户 -->
<!-- 统计用户 -->
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(1)
SELECT COUNT(1)
...
...
src/main/java/com/baosight/xservices/xs/impl/SecurityUserStandardImpl.java
View file @
12c94131
...
@@ -60,9 +60,11 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -60,9 +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
loginName
=
eiInfo
.
get
(
"loginName"
).
toString
();
String
companyCode
=
eiInfo
.
getString
(
"companyCode"
);
String
password
=
eiInfo
.
get
(
"password"
).
toString
();
String
loginName
=
eiInfo
.
getString
(
"loginName"
);
String
password
=
eiInfo
.
getString
(
"password"
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"companyCode"
,
companyCode
);
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
;
...
@@ -125,8 +127,8 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -125,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
c
ompanyCode
=
(
String
)
userMap
.
get
(
"companyCode"
);
String
dbC
ompanyCode
=
(
String
)
userMap
.
get
(
"companyCode"
);
if
(
StringUtils
.
isBlank
(
companyCode
)
||
HPPZTools
.
isValid
(
c
ompanyCode
))
{
if
(
StringUtils
.
isBlank
(
dbCompanyCode
)
||
HPPZTools
.
isValid
(
dbC
ompanyCode
))
{
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
();
...
@@ -263,12 +265,13 @@ public class SecurityUserStandardImpl extends ServiceEPBase implements ISecurity
...
@@ -263,12 +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
(
"companyCode"
);
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"
,
companyCode
);
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/service/ServiceXS3001.java
View file @
12c94131
package
com
.
baosight
.
xservices
.
xs
.
service
;
package
com
.
baosight
.
xservices
.
xs
.
service
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ009
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.iplat4j.core.cache.CacheManager
;
import
com.baosight.iplat4j.core.cache.CacheManager
;
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
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.log.Logger
;
import
com.baosight.iplat4j.core.log.Logger
;
import
com.baosight.iplat4j.core.log.LoggerFactory
;
import
com.baosight.iplat4j.core.log.LoggerFactory
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
...
...
src/main/java/com/baosight/xservices/xs/sql/XSUser.xml
View file @
12c94131
...
@@ -57,6 +57,9 @@
...
@@ -57,6 +57,9 @@
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
USER_TYPE = #userType#
USER_TYPE = #userType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -114,6 +117,9 @@
...
@@ -114,6 +117,9 @@
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
<isNotEmpty
prepend=
" AND "
property=
"userType"
>
user_type like ('%$userType$%')
user_type like ('%$userType$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
company_code = #companyCode#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
...
src/main/webapp/HP/PZ/HPPZ009.jsp
View file @
12c94131
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
cname=
"企业编码"
ename=
"companyCode"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
cname=
"企业编码"
ename=
"companyCode"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
cname=
"企业名称"
ename=
"companyName"
width=
"140"
required=
"true"
/>
<EF:EFColumn
cname=
"企业名称"
ename=
"companyName"
width=
"140"
required=
"true"
/>
<EF:EFColumn
cname=
"登录前缀"
ename=
"loginPrefix"
width=
"100"
align=
"center"
readonly=
"true"
/>
<EF:EFComboColumn
cname=
"是否启用"
ename=
"validFlag"
width=
"80"
align=
"center"
required=
"true"
>
<EF:EFComboColumn
cname=
"是否启用"
ename=
"validFlag"
width=
"80"
align=
"center"
required=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hppz.validFlag"
/>
<EF:EFCodeOption
codeName=
"hpjx.hppz.validFlag"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
src/main/webapp/XS/OG/XSOG0801.jsp
View file @
12c94131
<%@ page import="com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext" %>
<%@ page import="com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext" %>
<%@ page import="com.baosight.xservices.xs.constants.LoginConstants" %>
<%@ page import="com.baosight.xservices.xs.constants.LoginConstants" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="com.baosight.hpjx.hp.pz.tools.HPPZTools" %>
<%@ page import="com.baosight.hpjx.core.security.UserSessionUtils" %>
<!DOCTYPE html>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
...
@@ -99,12 +101,14 @@
...
@@ -99,12 +101,14 @@
String passwordDesc = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.desc"), "密码必须包含英文及数字");
String passwordDesc = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.desc"), "密码必须包含英文及数字");
String loginPublicKey = LoginConstants.loginRsaPublicKey;
String loginPublicKey = LoginConstants.loginRsaPublicKey;
String cryptoPasswordEnable = LoginConstants.cryptoPasswordEnable;
String cryptoPasswordEnable = LoginConstants.cryptoPasswordEnable;
String companyCode = UserSessionUtils.getCompanyCode();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.getPz009(companyCode).getLoginPrefix();
%>
%>
<c:set var="pwdRgx" value="<%=passwordRegex%>"/>
<c:set var="pwdRgx" value="<%=passwordRegex%>"/>
<c:set var="pwdDesc" value="<%=passwordDesc%>"/>
<c:set var="pwdDesc" value="<%=passwordDesc%>"/>
<c:set var="login_PublicKey" value="<%=loginPublicKey%>"/>
<c:set var="login_PublicKey" value="<%=loginPublicKey%>"/>
<c:set var="crypto_PasswordEnable" value="<%=cryptoPasswordEnable%>"/>
<c:set var="crypto_PasswordEnable" value="<%=cryptoPasswordEnable%>"/>
<c:set var="loginPrefix" value="<%=loginPrefix%>"/>
<EF:EFPage>
<EF:EFPage>
<script>
<script>
var ctx = "${ctx}";
var ctx = "${ctx}";
...
@@ -343,9 +347,11 @@
...
@@ -343,9 +347,11 @@
</div>
</div>
<div class="col-xs-3">
<div class="col-xs-3">
<EF:EFInput cname="登录账号" ename="details-0-loginName"
<EF:EFInput cname="登录账号" ename="details-0-loginName"
data-regex="/^[_a-zA-Z0-9]{1,64}$/"
value=""
data-regex="/^[_a-zA-Z0-9]{1,64}$/"
data-errorPrompt="对不起,登录账号只能是不超过64位的英文字母或者数字字符或下划线"
data-errorPrompt="对不起,登录账号只能是不超过64位的英文字母或者数字字符或下划线"
validateGroupName="group1" required="required" inline="true"/>
validateGroupName="group1" required="required" inline="true"
value="${loginPrefix}"
oninput="this.value='${loginPrefix}' + this.value.slice(this.value.indexOf('${loginPrefix}')+('${loginPrefix}'.length));"/>
</div>
</div>
<div class="col-xs-7">
<div class="col-xs-7">
<span id="details-0-loginName-prompt">【登录账号只能由不超过64位的英文字母或者数字字符或者下划线组成。】</span>
<span id="details-0-loginName-prompt">【登录账号只能由不超过64位的英文字母或者数字字符或者下划线组成。】</span>
...
...
src/main/webapp/XS/XS3001.jsp
View file @
12c94131
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<%@ page import="com.baosight.xservices.xs.constants.LoginConstants" %>
<%@ page import="com.baosight.xservices.xs.constants.LoginConstants" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ page import="com.baosight.xservices.xs.util.UserSession" %>
<%@ page import="com.baosight.xservices.xs.util.UserSession" %>
<%@ page import="com.baosight.hpjx.core.security.UserSessionUtils" %>
<%@ page import="com.baosight.hpjx.hp.pz.tools.HPPZTools" %>
<!DOCTYPE html>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
...
@@ -18,7 +20,9 @@
...
@@ -18,7 +20,9 @@
} else {
} else {
request.setAttribute("passwordTip", "密码由不超过255位的英文字母或者数字字符或下划线组成。");
request.setAttribute("passwordTip", "密码由不超过255位的英文字母或者数字字符或下划线组成。");
}
}
String username = UserSession.getUser().getUsername();
String companyCode = UserSessionUtils.getCompanyCode();
String loginPrefix = StringUtils.isBlank(companyCode) ? "" : HPPZTools.getPz009(companyCode).getLoginPrefix();
String username = UserSession.getUser().getUsername();
String passwordRegex = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.regex"), "^(?=.*?[a-zA-Z])(?=.*?[0-9]).{1,}$");
String passwordRegex = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.regex"), "^(?=.*?[a-zA-Z])(?=.*?[0-9]).{1,}$");
String passwordDesc = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.desc"), "密码必须包含英文及数字");
String passwordDesc = StringUtils.defaultIfEmpty(PlatApplicationContext.getProperty("xservices.security.checkpassword.desc"), "密码必须包含英文及数字");
String loginPublicKey = LoginConstants.loginRsaPublicKey;
String loginPublicKey = LoginConstants.loginRsaPublicKey;
...
@@ -29,6 +33,7 @@
...
@@ -29,6 +33,7 @@
<c:set var="login_PublicKey" value="<%=loginPublicKey%>"/>
<c:set var="login_PublicKey" value="<%=loginPublicKey%>"/>
<c:set var="crypto_PasswordEnable" value="<%=cryptoPasswordEnable%>"/>
<c:set var="crypto_PasswordEnable" value="<%=cryptoPasswordEnable%>"/>
<c:set var="username" value="<%=username%>"/>
<c:set var="username" value="<%=username%>"/>
<c:set var="loginPrefix" value="<%=loginPrefix%>"/>
<script>
<script>
let username = "${username}"
let username = "${username}"
</script>
</script>
...
@@ -253,12 +258,15 @@
...
@@ -253,12 +258,15 @@
</div>
</div>
<div class="col-xs-3">
<div class="col-xs-3">
<EF:EFInput cname="登录账号" ename="details-0-loginName"
<EF:EFInput cname="登录账号" ename="details-0-loginName"
data-regex="/^[_a-zA-Z0-9]{1,64}$/"
value=""
data-regex="/^[_a-zA-Z0-9]{1,64}$/"
data-errorPrompt="对不起,登录账号只能是不超过64位的英文字母或者数字字符或下划线"
data-errorPrompt="对不起,登录账号只能是不超过64位的英文字母或者数字字符或下划线"
validateGroupName="group1" required="required" inline="true"/>
validateGroupName="group1" required="required" inline="true"
value="${loginPrefix}"
oninput="this.value='${loginPrefix}' + this.value.slice(this.value.indexOf('${loginPrefix}')+('${loginPrefix}'.length));"/>
</div>
</div>
<div class="col-xs-7">
<div class="col-xs-7">
<span id="details-0-loginName-prompt">【登录账号只能由不超过64位的英文字母或者数字字符或者下划线组成。】</span>
<span id="details-0-loginName-prompt">【登录账号只能由不超过64位的英文字母或者数字字符或者下划线组成。】</span><br/>
<span id="details-0-loginName-prompt1" style="color: red">【登录账号由"固定前缀+自定义输入值"组成。】</span>
</div>
</div>
</div>
</div>
</br>
</br>
...
...
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