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
c277c5ba
Commit
c277c5ba
authored
Jul 22, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-22 用户管理新增身份证号码字段,电子邮箱非必填
parent
2458165b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
11 deletions
+68
-11
User.java
src/main/java/com/baosight/hggp/hg/xs/domain/User.java
+15
-1
ServiceXS0102.java
...java/com/baosight/xservices/xs/service/ServiceXS0102.java
+3
-2
ServiceXSUserManage.java
...om/baosight/xservices/xs/service/ServiceXSUserManage.java
+2
-2
XS01.xml
src/main/java/com/baosight/xservices/xs/sql/XS01.xml
+30
-6
XS3001.js
src/main/webapp/XS/XS3001.js
+1
-0
XS3001.jsp
src/main/webapp/XS/XS3001.jsp
+17
-0
No files found.
src/main/java/com/baosight/hggp/hg/xs/domain/User.java
View file @
c277c5ba
...
@@ -45,6 +45,7 @@ public class User extends DaoEPBase {
...
@@ -45,6 +45,7 @@ public class User extends DaoEPBase {
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 帐套编码*/
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 帐套编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_DEP_NAME
=
"depName"
;
/* 部门名称*/
public
static
final
String
FIELD_DEP_NAME
=
"depName"
;
/* 部门名称*/
public
static
final
String
FIELD_ID_CODE
=
"idCode"
;
public
static
final
String
COL_USER_ID
=
"USER_ID"
;
/* 用户ID*/
public
static
final
String
COL_USER_ID
=
"USER_ID"
;
/* 用户ID*/
public
static
final
String
COL_LOGIN_NAME
=
"LOGIN_NAME"
;
public
static
final
String
COL_LOGIN_NAME
=
"LOGIN_NAME"
;
...
@@ -97,7 +98,7 @@ public class User extends DaoEPBase {
...
@@ -97,7 +98,7 @@ public class User extends DaoEPBase {
private
String
accountCode
=
" "
;
/* 帐套编码*/
private
String
accountCode
=
" "
;
/* 帐套编码*/
private
String
depCode
=
""
;
/* 部门编码*/
private
String
depCode
=
""
;
/* 部门编码*/
private
String
depName
=
""
;
/* 部门名称*/
private
String
depName
=
""
;
/* 部门名称*/
private
String
idCode
=
""
;
/**
/**
* initialize the metadata.
* initialize the metadata.
*/
*/
...
@@ -197,6 +198,10 @@ public class User extends DaoEPBase {
...
@@ -197,6 +198,10 @@ public class User extends DaoEPBase {
eiColumn
.
setDescName
(
"部门名称"
);
eiColumn
.
setDescName
(
"部门名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ID_CODE
);
eiColumn
.
setDescName
(
"身份证号码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
}
/**
/**
...
@@ -564,6 +569,13 @@ public class User extends DaoEPBase {
...
@@ -564,6 +569,13 @@ public class User extends DaoEPBase {
this
.
depName
=
depName
;
this
.
depName
=
depName
;
}
}
public
String
getIdCode
()
{
return
idCode
;
}
public
void
setIdCode
(
String
idCode
)
{
this
.
idCode
=
idCode
;
}
/**
/**
* get the value from Map.
* get the value from Map.
*
*
...
@@ -595,6 +607,7 @@ public class User extends DaoEPBase {
...
@@ -595,6 +607,7 @@ public class User extends DaoEPBase {
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
setDepName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_NAME
)),
depName
));
setDepName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_NAME
)),
depName
));
setIdCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID_CODE
)),
idCode
));
}
}
/**
/**
...
@@ -627,6 +640,7 @@ public class User extends DaoEPBase {
...
@@ -627,6 +640,7 @@ public class User extends DaoEPBase {
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_CODE
)));
map
.
put
(
FIELD_DEP_NAME
,
StringUtils
.
toString
(
depName
,
eiMetadata
.
getMeta
(
FIELD_DEP_NAME
)));
map
.
put
(
FIELD_DEP_NAME
,
StringUtils
.
toString
(
depName
,
eiMetadata
.
getMeta
(
FIELD_DEP_NAME
)));
map
.
put
(
FIELD_ID_CODE
,
StringUtils
.
toString
(
idCode
,
eiMetadata
.
getMeta
(
FIELD_ID_CODE
)));
return
map
;
return
map
;
}
}
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXS0102.java
View file @
c277c5ba
...
@@ -61,6 +61,7 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
...
@@ -61,6 +61,7 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
String
rePass
=
(
String
)
inInfoRowMap
.
get
(
"rePass"
);
String
rePass
=
(
String
)
inInfoRowMap
.
get
(
"rePass"
);
String
mobile
=
(
String
)
inInfoRowMap
.
get
(
"mobile"
);
String
mobile
=
(
String
)
inInfoRowMap
.
get
(
"mobile"
);
String
email
=
(
String
)
inInfoRowMap
.
get
(
"email"
);
String
email
=
(
String
)
inInfoRowMap
.
get
(
"email"
);
String
idCard
=
(
String
)
inInfoRowMap
.
get
(
"idCard"
);
if
(
"on"
.
equals
(
StringUtils
.
defaultIfEmpty
(
if
(
"on"
.
equals
(
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.cryptoPasswordEnable"
),
"on"
)))
{
PlatApplicationContext
.
getProperty
(
"xservices.security.cryptoPasswordEnable"
),
"on"
)))
{
password
=
LoginRsaKeyUtil
.
decrypt
(
password
);
password
=
LoginRsaKeyUtil
.
decrypt
(
password
);
...
@@ -72,10 +73,10 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
...
@@ -72,10 +73,10 @@ public class ServiceXS0102 extends ServiceEPBase implements LoginConstants {
}
}
boolean
flag
=
""
.
equals
(
userName
)
||
""
.
equals
(
loginName
)
||
""
.
equals
(
password
)
||
""
.
equals
(
rePass
)
boolean
flag
=
""
.
equals
(
userName
)
||
""
.
equals
(
loginName
)
||
""
.
equals
(
password
)
||
""
.
equals
(
rePass
)
||
""
.
equals
(
mobile
)
||
""
.
equals
(
email
);
||
""
.
equals
(
mobile
)
||
""
.
equals
(
idCard
);
if
(
flag
)
{
if
(
flag
)
{
inInfo
.
setStatus
(-
1
);
inInfo
.
setStatus
(-
1
);
inInfo
.
setMsg
(
"注册失败!登录账号,用户姓名,密码,确认密码,手机及
邮箱
信息都必须填写"
);
inInfo
.
setMsg
(
"注册失败!登录账号,用户姓名,密码,确认密码,手机及
身份证
信息都必须填写"
);
return
inInfo
;
return
inInfo
;
}
}
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXSUserManage.java
View file @
c277c5ba
...
@@ -108,9 +108,9 @@ public class ServiceXSUserManage extends ServiceEPBase {
...
@@ -108,9 +108,9 @@ public class ServiceXSUserManage extends ServiceEPBase {
inInfoRowMap
.
put
(
"gender"
,
" "
);
inInfoRowMap
.
put
(
"gender"
,
" "
);
}
}
if
(!
com
.
baosight
.
iplat4j
.
core
.
util
.
StringUtils
.
isNotEmpty
(
mobile
))
{
/*
if (!com.baosight.iplat4j.core.util.StringUtils.isNotEmpty(mobile)) {
inInfoRowMap.put("mobile", " ");
inInfoRowMap.put("mobile", " ");
}
}
*/
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
inInfoRowMap
.
put
(
"recCreateTime"
,
DateUtils
.
curDateTimeStr14
());
accountExpireDays
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.accountExpireDays"
),
"90"
);
accountExpireDays
=
StringUtils
.
defaultIfEmpty
(
PlatApplicationContext
.
getProperty
(
"xservices.security.accountExpireDays"
),
"90"
);
...
...
src/main/java/com/baosight/xservices/xs/sql/XS01.xml
View file @
c277c5ba
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
PWD_REVISOR,
PWD_REVISOR,
ARCHIVE_FLAG,
ARCHIVE_FLAG,
USER_GROUP_ENAME,
USER_GROUP_ENAME,
ACCOUNT_CODE
ACCOUNT_CODE,
ID_CARD
) VALUES (
) VALUES (
#userId#,
#userId#,
#loginName#,
#loginName#,
...
@@ -48,7 +49,8 @@
...
@@ -48,7 +49,8 @@
#pwdRevisor#,
#pwdRevisor#,
#archiveFlag#,
#archiveFlag#,
#userGroupEname#,
#userGroupEname#,
#accountCode#
#accountCode#,
#idCard#
)
)
</insert>
</insert>
<select
id=
"query"
resultClass=
"java.util.HashMap"
>
<select
id=
"query"
resultClass=
"java.util.HashMap"
>
...
@@ -74,7 +76,8 @@
...
@@ -74,7 +76,8 @@
t1.archive_flag as "archiveFlag",
t1.archive_flag as "archiveFlag",
t1.USER_GROUP_ENAME as "userGroupEname",
t1.USER_GROUP_ENAME as "userGroupEname",
t1.ACCOUNT_CODE as "accountCode",
t1.ACCOUNT_CODE as "accountCode",
t2.group_cname as "userGroupCname"
t2.group_cname as "userGroupCname",
t1.ID_CARD as "idCard"
FROM ${platSchema}.XS_USER t1
FROM ${platSchema}.XS_USER t1
left join ${platSchema}.XS_USER_GROUP t2 on t2.group_ename=t1.USER_GROUP_ENAME
left join ${platSchema}.XS_USER_GROUP t2 on t2.group_ename=t1.USER_GROUP_ENAME
where t1.login_name != 'admin'
where t1.login_name != 'admin'
...
@@ -102,6 +105,9 @@
...
@@ -102,6 +105,9 @@
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
t1.account_code = #accountCode#
t1.account_code = #accountCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"idCard"
>
t1.ID_CARD LIKE CONCAT('%',#idCard#,'%')
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -175,6 +181,9 @@
...
@@ -175,6 +181,9 @@
<isNotEmpty
prepend=
" AND "
property=
"isLocked"
>
<isNotEmpty
prepend=
" AND "
property=
"isLocked"
>
t1.is_locked = #isLocked#
t1.is_locked = #isLocked#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"idCard"
>
t1.ID_CARD LIKE CONCAT('%',#idCard#,'%')
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -207,6 +216,9 @@
...
@@ -207,6 +216,9 @@
<isNotEmpty
prepend=
","
property=
"email"
>
<isNotEmpty
prepend=
","
property=
"email"
>
email = #email#
email = #email#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
","
property=
"idCard"
>
ID_CARD = #idCard#
</isNotEmpty>
<isNotEmpty
prepend=
","
property=
"userType"
>
<isNotEmpty
prepend=
","
property=
"userType"
>
user_type = #userType#
user_type = #userType#
</isNotEmpty>
</isNotEmpty>
...
@@ -332,7 +344,8 @@
...
@@ -332,7 +344,8 @@
JOB_ID,
JOB_ID,
JOB_NAME,
JOB_NAME,
EHR_ORG_ID,
EHR_ORG_ID,
ACCOUNT_CODE
ACCOUNT_CODE,
ID_CARD
) VALUES (
) VALUES (
#userId#,
#userId#,
#loginName#,
#loginName#,
...
@@ -358,7 +371,8 @@
...
@@ -358,7 +371,8 @@
#jobId#,
#jobId#,
#jobName#,
#jobName#,
#ehrOrgId#,
#ehrOrgId#,
#accountCode#
#accountCode#,
#idCard#
)
)
</insert>
</insert>
...
@@ -387,7 +401,8 @@
...
@@ -387,7 +401,8 @@
t1.pwd_revisor as "pwdRevisor",
t1.pwd_revisor as "pwdRevisor",
t1.archive_flag as "archiveFlag",
t1.archive_flag as "archiveFlag",
t1.USER_GROUP_ENAME as "userGroupEname",
t1.USER_GROUP_ENAME as "userGroupEname",
t2.group_cname as "userGroupCname"
t2.group_cname as "userGroupCname",
t1.id_card as "idCard"
FROM ${platSchema}.XS_USER t1
FROM ${platSchema}.XS_USER t1
left join ${platSchema}.XS_USER_GROUP t2 on t2.group_ename=t1.USER_GROUP_ENAME
left join ${platSchema}.XS_USER_GROUP t2 on t2.group_ename=t1.USER_GROUP_ENAME
where t1.login_name != 'admin'
where t1.login_name != 'admin'
...
@@ -421,6 +436,9 @@
...
@@ -421,6 +436,9 @@
<isNotEmpty
prepend=
" AND "
property=
"ehrOrgId"
>
<isNotEmpty
prepend=
" AND "
property=
"ehrOrgId"
>
t1.ehr_org_id = #ehrOrgId#
t1.ehr_org_id = #ehrOrgId#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"idCard"
>
t1.id_card = #idCard#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -464,6 +482,9 @@
...
@@ -464,6 +482,9 @@
<isNotEmpty
prepend=
" AND "
property=
"ehrOrgId"
>
<isNotEmpty
prepend=
" AND "
property=
"ehrOrgId"
>
t1.ehr_org_id = #ehrOrgId#
t1.ehr_org_id = #ehrOrgId#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"idCard"
>
t1.id_card = #idCard#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
$orderBy$
...
@@ -532,6 +553,9 @@
...
@@ -532,6 +553,9 @@
<isNotEmpty
prepend=
","
property=
"ehrOrgId"
>
<isNotEmpty
prepend=
","
property=
"ehrOrgId"
>
EHR_ORG_ID = #ehrOrgId#
EHR_ORG_ID = #ehrOrgId#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
","
property=
"idCard"
>
id_card = #idCard#
</isNotEmpty>
</dynamic>
</dynamic>
WHERE user_id = #userId#
WHERE user_id = #userId#
</update>
</update>
...
...
src/main/webapp/XS/XS3001.js
View file @
c277c5ba
...
@@ -193,6 +193,7 @@ $(function () {
...
@@ -193,6 +193,7 @@ $(function () {
$
(
"#details-0-rePass"
).
val
(
""
);
$
(
"#details-0-rePass"
).
val
(
""
);
$
(
"#details-0-mobile"
).
val
(
""
);
$
(
"#details-0-mobile"
).
val
(
""
);
$
(
"#details-0-email"
).
val
(
""
);
$
(
"#details-0-email"
).
val
(
""
);
$
(
"#details-0-idCard"
).
val
(
""
);
IPLAT
.
EFSelect
.
value
(
$
(
"#details-0-gender"
),
1
)
IPLAT
.
EFSelect
.
value
(
$
(
"#details-0-gender"
),
1
)
}
}
});
});
...
...
src/main/webapp/XS/XS3001.jsp
View file @
c277c5ba
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
<EF:EFCodeOption codeName="xservices.xs.sex"/>
<EF:EFCodeOption codeName="xservices.xs.sex"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="mobile" style="text-align:right;" cname="手机" data-rules="mobile_phone"/>
<EF:EFColumn ename="mobile" style="text-align:right;" cname="手机" data-rules="mobile_phone"/>
<EF:EFColumn ename="idCard" style="text-align:right;" cname="身份证号码" />
<EF:EFColumn ename="email" cname="邮箱" data-rules="email" style="text-align:left;"/>
<EF:EFColumn ename="email" cname="邮箱" data-rules="email" style="text-align:left;"/>
<EF:EFColumn ename="userId" cname="用户ID" readonly="false" primaryKey="true" hidden="true"/>
<EF:EFColumn ename="userId" cname="用户ID" readonly="false" primaryKey="true" hidden="true"/>
<EF:EFColumn ename="password" cname="用户密码" hidden="true"/>
<EF:EFColumn ename="password" cname="用户密码" hidden="true"/>
...
@@ -334,6 +335,22 @@
...
@@ -334,6 +335,22 @@
<div class="row">
<div class="row">
<div class="col-xs-2 control-label" style="text-align:right">
<div class="col-xs-2 control-label" style="text-align:right">
<span class="i-input-required">*</span>
<span class="i-input-required">*</span>
<span>身份证号码</span>
</div>
<div class="col-xs-3">
<EF:EFInput blockId="details" cname="身份证号码" ename="idCard" row="0" trim="false"
data-regex="/^\d{17}(\d|X|x)$/" data-errorPrompt="身份证号码只能是15 或 18 位"
validateGroupName="group1" inline="true" value=""/>
</div>
<div class="col-xs-7">
<span id="details-0-idCard-prompt">【请输入身份证号码】</span>
</div>
</div>
</br>
<div class="row">
<div class="col-xs-2 control-label" style="text-align:right">
<span class="i-input-required"></span>
<span>电子邮件</span>
<span>电子邮件</span>
</div>
</div>
<div class="col-xs-3">
<div class="col-xs-3">
...
...
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