Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foc_manage
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
首航-临时账号
foc_manage
Commits
044665ec
Commit
044665ec
authored
Jun 08, 2020
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改role 名称校验接口
parent
9f6ea048
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
11 deletions
+9
-11
roleForm.jsp
WebContent/WEB-INF/views/modules/sys/roleForm.jsp
+0
-0
ejweb.properties
resources/ejweb.properties
+1
-1
jdbc.properties
resources/jdbc.properties
+3
-5
mybatis-config.xml
resources/mybatis-config.xml
+1
-1
RoleController.java
src/com/ejweb/modules/sys/web/RoleController.java
+4
-4
No files found.
WebContent/WEB-INF/views/modules/sys/roleForm.jsp
View file @
044665ec
This diff is collapsed.
Click to expand it.
resources/ejweb.properties
View file @
044665ec
...
...
@@ -95,7 +95,7 @@ female.user.default.avatar=/images/user/avatar/female_avatar.png
# \u7537\u751F\u5934\u50CF
male.user.default.avatar
=
/images/user/avatar/male_avatar.png
foc.api.url
=
http://
123.56.146.7
/
foc.api.url
=
http://
localhost:8080
/
foc.sound.records.url
=
http://218.241.234.135:8080/ab/jsonData/cdrDataPage
...
...
resources/jdbc.properties
View file @
044665ec
#MySQL Database Config(The All Config Is Must)
db.table.prefix
=
foc_
jdbc.type
=
mysql
jdbc.driver.class
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://106.75.97.50:3306/jd_foc?useUnicode=true&characterEncoding=utf-8
jdbc.username
=
focuser
jdbc.password
=
FOC@2016
jdbc.url
=
jdbc:mysql://106.75.105.96:5508/jd_foc?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
jdbc.username
=
sms_develop
jdbc.password
=
Develop2018!@#
#\u521d\u59cb\u5316\u8fde\u63a5
jdbc.initialSize
=
0
#\u8fde\u63a5\u6c60\u7684\u6700\u5927\u6d3b\u52a8\u4e2a\u6570
...
...
resources/mybatis-config.xml
View file @
044665ec
...
...
@@ -37,7 +37,7 @@
<!-- 设置但JDBC类型为空时,某些驱动程序 要指定值,default:OTHER,插入空值时不需要指定类型 -->
<setting
name=
"jdbcTypeForNull"
value=
"NULL"
/>
<
setting
name=
"logImpl"
value=
"STDOUT_LOGGING"
/
>
<
!--<setting name="logImpl" value="STDOUT_LOGGING" />--
>
</settings>
...
...
src/com/ejweb/modules/sys/web/RoleController.java
View file @
044665ec
...
...
@@ -264,16 +264,16 @@ public class RoleController extends BaseController {
* 验证角色英文名是否有效
*
* @param oldEnName
* @param en
N
ame
* @param en
n
ame
* @return
*/
@RequiresPermissions
(
"user"
)
@ResponseBody
@RequestMapping
(
value
=
"checkEnname"
)
public
String
checkEnName
(
String
oldEnName
,
String
en
N
ame
)
{
if
(
en
Name
!=
null
&&
enN
ame
.
equals
(
oldEnName
))
{
public
String
checkEnName
(
String
oldEnName
,
String
en
n
ame
)
{
if
(
en
name
!=
null
&&
enn
ame
.
equals
(
oldEnName
))
{
return
"true"
;
}
else
if
(
en
Name
!=
null
&&
systemService
.
getRoleByEnname
(
enN
ame
)
==
null
)
{
}
else
if
(
en
name
!=
null
&&
systemService
.
getRoleByEnname
(
enn
ame
)
==
null
)
{
return
"true"
;
}
return
"false"
;
...
...
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