Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
7fa8137a
Commit
7fa8137a
authored
Oct 22, 2018
by
HuangBingGui
Browse files
no commit message
parent
6c859da2
Changes
202
Hide whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/java/com/jeespring/modules/test/service/one/FormLeaveService.java
View file @
7fa8137a
...
...
@@ -37,16 +37,20 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
@Autowired
private
RedisUtils
redisUtils
;
@Override
public
FormLeave
get
(
String
id
)
{
//获取数据库数据
FormLeave
formLeave
=
super
.
get
(
id
);
return
formLeave
;
}
@Override
public
FormLeave
getCache
(
String
id
)
{
//获取缓存数据
FormLeave
formLeave
=(
FormLeave
)
redisUtils
.
get
(
RedisUtils
.
getIdKey
(
FormLeaveService
.
class
.
getName
(),
id
));
if
(
formLeave
!=
null
)
return
formLeave
;
if
(
formLeave
!=
null
)
{
return
formLeave
;
}
//获取数据库数据
formLeave
=
super
.
get
(
id
);
//设置缓存数据
...
...
@@ -54,17 +58,21 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
return
formLeave
;
}
@Override
public
List
<
FormLeave
>
total
(
FormLeave
formLeave
)
{
//获取数据库数据
List
<
FormLeave
>
formLeaveList
=
super
.
total
(
formLeave
);
return
formLeaveList
;
}
@Override
public
List
<
FormLeave
>
totalCache
(
FormLeave
formLeave
)
{
//获取缓存数据
String
totalKey
=
RedisUtils
.
getTotalKey
(
FormLeaveService
.
class
.
getName
(),
JSON
.
toJSONString
(
formLeave
));
List
<
FormLeave
>
formLeaveList
=(
List
<
FormLeave
>)
redisUtils
.
get
(
totalKey
);
if
(
formLeaveList
!=
null
)
return
formLeaveList
;
if
(
formLeaveList
!=
null
)
{
return
formLeaveList
;
}
//获取数据库数据
formLeaveList
=
super
.
total
(
formLeave
);
//设置缓存数据
...
...
@@ -72,6 +80,7 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
return
formLeaveList
;
}
@Override
public
List
<
FormLeave
>
findList
(
FormLeave
formLeave
)
{
//获取数据库数据
List
<
FormLeave
>
formLeaveList
=
super
.
findList
(
formLeave
);
...
...
@@ -79,11 +88,14 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
return
formLeaveList
;
}
@Override
public
List
<
FormLeave
>
findListCache
(
FormLeave
formLeave
)
{
//获取缓存数据
String
findListKey
=
RedisUtils
.
getFindListKey
(
FormLeaveService
.
class
.
getName
(),
JSON
.
toJSONString
(
formLeave
));
List
<
FormLeave
>
formLeaveList
=(
List
<
FormLeave
>)
redisUtils
.
get
(
findListKey
);
if
(
formLeaveList
!=
null
)
return
formLeaveList
;
if
(
formLeaveList
!=
null
)
{
return
formLeaveList
;
}
//获取数据库数据
formLeaveList
=
super
.
findList
(
formLeave
);
//设置缓存数据
...
...
@@ -94,7 +106,9 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
public
FormLeave
findListFirst
(
FormLeave
formLeave
)
{;
//获取数据库数据
List
<
FormLeave
>
formLeaveList
=
super
.
findList
(
formLeave
);
if
(
formLeaveList
.
size
()>
0
)
formLeave
=
formLeaveList
.
get
(
0
);
if
(
formLeaveList
.
size
()>
0
)
{
formLeave
=
formLeaveList
.
get
(
0
);
}
return
formLeave
;
}
...
...
@@ -102,27 +116,36 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
//获取缓存数据
String
findListFirstKey
=
RedisUtils
.
getFindListFirstKey
(
FormLeaveService
.
class
.
getName
(),
JSON
.
toJSONString
(
formLeave
));
FormLeave
formLeaveRedis
=(
FormLeave
)
redisUtils
.
get
(
findListFirstKey
);
if
(
formLeaveRedis
!=
null
)
return
formLeaveRedis
;
if
(
formLeaveRedis
!=
null
)
{
return
formLeaveRedis
;
}
//获取数据库数据
List
<
FormLeave
>
formLeaveList
=
super
.
findList
(
formLeave
);
if
(
formLeaveList
.
size
()>
0
)
formLeave
=
formLeaveList
.
get
(
0
);
else
formLeave
=
new
FormLeave
();
if
(
formLeaveList
.
size
()>
0
)
{
formLeave
=
formLeaveList
.
get
(
0
);
}
else
{
formLeave
=
new
FormLeave
();
}
//设置缓存数据
redisUtils
.
set
(
findListFirstKey
,
formLeave
);
return
formLeave
;
}
@Override
public
Page
<
FormLeave
>
findPage
(
Page
<
FormLeave
>
page
,
FormLeave
formLeave
)
{
//获取数据库数据
Page
<
FormLeave
>
pageReuslt
=
super
.
findPage
(
page
,
formLeave
);
return
pageReuslt
;
}
@Override
public
Page
<
FormLeave
>
findPageCache
(
Page
<
FormLeave
>
page
,
FormLeave
formLeave
)
{
//获取缓存数据
String
findPageKey
=
RedisUtils
.
getFindPageKey
(
FormLeaveService
.
class
.
getName
(),
JSON
.
toJSONString
(
page
)+
JSON
.
toJSONString
(
formLeave
));
Page
<
FormLeave
>
pageReuslt
=(
Page
<
FormLeave
>)
redisUtils
.
get
(
findPageKey
);
if
(
pageReuslt
!=
null
)
return
pageReuslt
;
if
(
pageReuslt
!=
null
)
{
return
pageReuslt
;
}
//获取数据库数据
pageReuslt
=
super
.
findPage
(
page
,
formLeave
);
//设置缓存数据
...
...
@@ -130,6 +153,7 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
return
pageReuslt
;
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
save
(
FormLeave
formLeave
)
{
//保存数据库记录
...
...
@@ -141,6 +165,7 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
FormLeaveService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
delete
(
FormLeave
formLeave
)
{
//清除记录缓存数据
...
...
@@ -152,6 +177,7 @@ public class FormLeaveService extends AbstractBaseService<FormLeaveDao, FormLeav
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
FormLeaveService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
deleteByLogic
(
FormLeave
formLeave
)
{
//清除记录缓存数据
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/test/service/onetomany/TestDataMainService.java
View file @
7fa8137a
...
...
@@ -49,23 +49,31 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
@Autowired
private
TestDataChild3Dao
testDataChild3Dao
;
@Override
public
TestDataMain
get
(
String
id
)
{
//获取数据库数据
TestDataMain
testDataMain
=
super
.
get
(
id
);
if
(
testDataMain
==
null
)
return
new
TestDataMain
();
if
(
testDataMain
==
null
)
{
return
new
TestDataMain
();
}
testDataMain
.
setTestDataChildList
(
testDataChildDao
.
findList
(
new
TestDataChild
(
testDataMain
)));
testDataMain
.
setTestDataChild2List
(
testDataChild2Dao
.
findList
(
new
TestDataChild2
(
testDataMain
)));
testDataMain
.
setTestDataChild3List
(
testDataChild3Dao
.
findList
(
new
TestDataChild3
(
testDataMain
)));
return
testDataMain
;
}
@Override
public
TestDataMain
getCache
(
String
id
)
{
//获取缓存数据
TestDataMain
testDataMain
=(
TestDataMain
)
redisUtils
.
get
(
RedisUtils
.
getIdKey
(
TestDataMainService
.
class
.
getName
(),
id
));
if
(
testDataMain
!=
null
)
return
testDataMain
;
if
(
testDataMain
!=
null
)
{
return
testDataMain
;
}
//获取数据库数据
testDataMain
=
super
.
get
(
id
);
if
(
testDataMain
==
null
)
return
new
TestDataMain
();
if
(
testDataMain
==
null
)
{
return
new
TestDataMain
();
}
testDataMain
.
setTestDataChildList
(
testDataChildDao
.
findList
(
new
TestDataChild
(
testDataMain
)));
testDataMain
.
setTestDataChild2List
(
testDataChild2Dao
.
findList
(
new
TestDataChild2
(
testDataMain
)));
testDataMain
.
setTestDataChild3List
(
testDataChild3Dao
.
findList
(
new
TestDataChild3
(
testDataMain
)));
...
...
@@ -74,17 +82,21 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
return
testDataMain
;
}
@Override
public
List
<
TestDataMain
>
total
(
TestDataMain
testDataMain
)
{
//获取数据库数据
List
<
TestDataMain
>
testDataMainList
=
super
.
total
(
testDataMain
);
return
testDataMainList
;
}
@Override
public
List
<
TestDataMain
>
totalCache
(
TestDataMain
testDataMain
)
{
//获取缓存数据
String
totalKey
=
RedisUtils
.
getTotalKey
(
TestDataMainService
.
class
.
getName
(),
JSON
.
toJSONString
(
testDataMain
));
List
<
TestDataMain
>
testDataMainList
=(
List
<
TestDataMain
>)
redisUtils
.
get
(
totalKey
);
if
(
testDataMainList
!=
null
)
return
testDataMainList
;
if
(
testDataMainList
!=
null
)
{
return
testDataMainList
;
}
//获取数据库数据
testDataMainList
=
super
.
total
(
testDataMain
);
//设置缓存数据
...
...
@@ -95,7 +107,9 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
public
TestDataMain
findListFirst
(
TestDataMain
testDataMain
)
{
//获取数据库数据
List
<
TestDataMain
>
testDataMainList
=
super
.
findList
(
testDataMain
);
if
(
testDataMainList
.
size
()>
0
)
testDataMain
=
testDataMainList
.
get
(
0
);
if
(
testDataMainList
.
size
()>
0
)
{
testDataMain
=
testDataMainList
.
get
(
0
);
}
return
testDataMain
;
}
...
...
@@ -103,21 +117,29 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
//获取缓存数据
String
findListFirstKey
=
RedisUtils
.
getFindListFirstKey
(
TestDataMainService
.
class
.
getName
(),
JSON
.
toJSONString
(
testDataMain
));
TestDataMain
testDataMainRedis
=(
TestDataMain
)
redisUtils
.
get
(
findListFirstKey
);
if
(
testDataMainRedis
!=
null
)
return
testDataMainRedis
;
if
(
testDataMainRedis
!=
null
)
{
return
testDataMainRedis
;
}
//获取数据库数据
List
<
TestDataMain
>
testDataMainList
=
super
.
findList
(
testDataMain
);
if
(
testDataMainList
.
size
()>
0
)
testDataMain
=
testDataMainList
.
get
(
0
);
else
testDataMain
=
new
TestDataMain
();
if
(
testDataMainList
.
size
()>
0
)
{
testDataMain
=
testDataMainList
.
get
(
0
);
}
else
{
testDataMain
=
new
TestDataMain
();
}
//设置缓存数据
redisUtils
.
set
(
findListFirstKey
,
testDataMain
);
return
testDataMain
;
}
@Override
public
List
<
TestDataMain
>
findList
(
TestDataMain
testDataMain
)
{
//获取缓存数据
String
findListKey
=
RedisUtils
.
getFindListKey
(
TestDataMainService
.
class
.
getName
(),
JSON
.
toJSONString
(
testDataMain
));
List
<
TestDataMain
>
testDataMainList
=(
List
<
TestDataMain
>)
redisUtils
.
get
(
findListKey
);
if
(
testDataMainList
!=
null
)
return
testDataMainList
;
if
(
testDataMainList
!=
null
)
{
return
testDataMainList
;
}
//获取数据库数据
testDataMainList
=
super
.
findList
(
testDataMain
);
//设置缓存数据
...
...
@@ -125,11 +147,14 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
return
testDataMainList
;
}
@Override
public
List
<
TestDataMain
>
findListCache
(
TestDataMain
testDataMain
)
{
//获取缓存数据
String
findListKey
=
RedisUtils
.
getFindListKey
(
TestDataMainService
.
class
.
getName
(),
JSON
.
toJSONString
(
testDataMain
));
List
<
TestDataMain
>
testDataMainList
=(
List
<
TestDataMain
>)
redisUtils
.
get
(
findListKey
);
if
(
testDataMainList
!=
null
)
return
testDataMainList
;
if
(
testDataMainList
!=
null
)
{
return
testDataMainList
;
}
//获取数据库数据
testDataMainList
=
super
.
findList
(
testDataMain
);
//设置缓存数据
...
...
@@ -137,17 +162,21 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
return
testDataMainList
;
}
@Override
public
Page
<
TestDataMain
>
findPage
(
Page
<
TestDataMain
>
page
,
TestDataMain
testDataMain
)
{
//获取数据库数据
Page
<
TestDataMain
>
pageReuslt
=
super
.
findPage
(
page
,
testDataMain
);
return
pageReuslt
;
}
@Override
public
Page
<
TestDataMain
>
findPageCache
(
Page
<
TestDataMain
>
page
,
TestDataMain
testDataMain
)
{
//获取缓存数据
String
findPageKey
=
RedisUtils
.
getFindPageKey
(
TestDataMainService
.
class
.
getName
(),
JSON
.
toJSONString
(
page
)+
JSON
.
toJSONString
(
testDataMain
));
Page
<
TestDataMain
>
pageReuslt
=(
Page
<
TestDataMain
>)
redisUtils
.
get
(
findPageKey
);
if
(
pageReuslt
!=
null
)
return
pageReuslt
;
if
(
pageReuslt
!=
null
)
{
return
pageReuslt
;
}
//获取数据库数据
pageReuslt
=
super
.
findPage
(
page
,
testDataMain
);
//设置缓存数据
...
...
@@ -155,6 +184,7 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
return
pageReuslt
;
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
save
(
TestDataMain
testDataMain
)
{
//保存数据库记录
...
...
@@ -217,6 +247,7 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
TestDataMainService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
delete
(
TestDataMain
testDataMain
)
{
//清除记录缓存数据
...
...
@@ -231,6 +262,7 @@ public class TestDataMainService extends AbstractBaseService<TestDataMainDao, Te
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
TestDataMainService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
deleteByLogic
(
TestDataMain
testDataMain
)
{
//清除记录缓存数据
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/test/service/tree/TestTreeService.java
View file @
7fa8137a
...
...
@@ -22,23 +22,27 @@ import com.jeespring.modules.test.dao.tree.TestTreeDao;
@Transactional
(
readOnly
=
true
)
public
class
TestTreeService
extends
TreeService
<
TestTreeDao
,
TestTree
>
{
public
TestTree
get
(
String
id
)
{
@Override
public
TestTree
get
(
String
id
)
{
return
super
.
get
(
id
);
}
public
List
<
TestTree
>
findList
(
TestTree
testTree
)
{
@Override
public
List
<
TestTree
>
findList
(
TestTree
testTree
)
{
if
(
StringUtils
.
isNotBlank
(
testTree
.
getParentIds
())){
testTree
.
setParentIds
(
","
+
testTree
.
getParentIds
()+
","
);
}
return
super
.
findList
(
testTree
);
}
@Transactional
(
readOnly
=
false
)
@Override
@Transactional
(
readOnly
=
false
)
public
void
save
(
TestTree
testTree
)
{
super
.
save
(
testTree
);
}
@Transactional
(
readOnly
=
false
)
@Override
@Transactional
(
readOnly
=
false
)
public
void
delete
(
TestTree
testTree
)
{
super
.
delete
(
testTree
);
}
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/test/web/one/FormLeaveController.java
View file @
7fa8137a
...
...
@@ -164,8 +164,9 @@ public class FormLeaveController extends AbstractBaseController {
public
String
form
(
FormLeave
formLeave
,
Model
model
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
model
.
addAttribute
(
"action"
,
request
.
getParameter
(
"action"
));
model
.
addAttribute
(
"formLeave"
,
formLeave
);
if
(
request
.
getParameter
(
"ViewFormType"
)!=
null
&&
request
.
getParameter
(
"ViewFormType"
).
equals
(
"FormTwo"
))
return
"modules/test/one/formLeaveFormTwo"
;
if
(
request
.
getParameter
(
"ViewFormType"
)!=
null
&&
"FormTwo"
.
equals
(
request
.
getParameter
(
"ViewFormType"
)))
{
return
"modules/test/one/formLeaveFormTwo"
;
}
return
"modules/test/one/formLeaveForm"
;
}
...
...
@@ -211,7 +212,7 @@ public class FormLeaveController extends AbstractBaseController {
@RequiresPermissions
(
"test:one:formLeave:del"
)
@RequestMapping
(
value
=
"deleteAll"
)
public
String
deleteAll
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
formLeaveService
.
delete
(
formLeaveService
.
get
(
id
));
}
...
...
@@ -225,7 +226,7 @@ public class FormLeaveController extends AbstractBaseController {
@RequiresPermissions
(
value
={
"test:one:formLeave:del"
,
"test:one:formLeave:delByLogic"
},
logical
=
Logical
.
OR
)
@RequestMapping
(
value
=
"deleteAllByLogic"
)
public
String
deleteAllByLogic
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
formLeaveService
.
deleteByLogic
(
formLeaveService
.
get
(
id
));
}
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/test/web/onetomany/TestDataMainController.java
View file @
7fa8137a
...
...
@@ -164,8 +164,9 @@ public class TestDataMainController extends AbstractBaseController {
public
String
form
(
TestDataMain
testDataMain
,
Model
model
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
model
.
addAttribute
(
"action"
,
request
.
getParameter
(
"action"
));
model
.
addAttribute
(
"testDataMain"
,
testDataMain
);
if
(
request
.
getParameter
(
"ViewFormType"
)!=
null
&&
request
.
getParameter
(
"ViewFormType"
).
equals
(
"FormTwo"
))
return
"modules/test/onetomany/testDataMainFormTwo"
;
if
(
request
.
getParameter
(
"ViewFormType"
)!=
null
&&
"FormTwo"
.
equals
(
request
.
getParameter
(
"ViewFormType"
)))
{
return
"modules/test/onetomany/testDataMainFormTwo"
;
}
return
"modules/test/onetomany/testDataMainForm"
;
}
...
...
@@ -211,7 +212,7 @@ public class TestDataMainController extends AbstractBaseController {
@RequiresPermissions
(
"test:onetomany:testDataMain:del"
)
@RequestMapping
(
value
=
"deleteAll"
)
public
String
deleteAll
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
testDataMainService
.
delete
(
testDataMainService
.
get
(
id
));
}
...
...
@@ -225,7 +226,7 @@ public class TestDataMainController extends AbstractBaseController {
@RequiresPermissions
(
value
={
"test:onetomany:testDataMain:del"
,
"test:onetomany:testDataMain:delByLogic"
},
logical
=
Logical
.
OR
)
@RequestMapping
(
value
=
"deleteAllByLogic"
)
public
String
deleteAllByLogic
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
testDataMainService
.
deleteByLogic
(
testDataMainService
.
get
(
id
));
}
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/usercenter/rest/SysUserCenterRestController.java
View file @
7fa8137a
...
...
@@ -238,7 +238,7 @@ public class SysUserCenterRestController extends AbstractBaseController {
@ApiOperation
(
value
=
"批量删除用户中心(Content-Type为text/html)"
,
notes
=
"批量删除用户中心(Content-Type为text/html)"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"用户中心ids,用,隔开"
,
required
=
false
,
dataType
=
"String"
,
paramType
=
"query"
)
public
Result
deleteAll
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
delete
(
sysUserCenterService
.
get
(
id
));
}
...
...
@@ -253,7 +253,7 @@ public class SysUserCenterRestController extends AbstractBaseController {
@ApiOperation
(
value
=
"逻辑批量删除用户中心(Content-Type为text/html)"
,
notes
=
"逻辑批量删除用户中心(Content-Type为text/html)"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"用户中心ids,用,隔开"
,
required
=
false
,
dataType
=
"String"
,
paramType
=
"query"
)
public
Result
deleteAllByLogic
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
deleteByLogic
(
sysUserCenterService
.
get
(
id
));
}
...
...
@@ -265,7 +265,7 @@ public class SysUserCenterRestController extends AbstractBaseController {
@ApiOperation
(
value
=
"批量删除用户中心(Content-Type为application/json)"
,
notes
=
"批量删除用户中心(Content-Type为application/json)"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"用户中心ids,用,隔开"
,
required
=
false
,
dataType
=
"String"
,
paramType
=
"body"
)
public
Result
deleteAllJson
(
@RequestBody
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
delete
(
sysUserCenterService
.
get
(
id
));
}
...
...
@@ -280,7 +280,7 @@ public class SysUserCenterRestController extends AbstractBaseController {
@ApiOperation
(
value
=
"逻辑批量删除用户中心(Content-Type为application/json)"
,
notes
=
"逻辑批量删除用户中心(Content-Type为application/json)"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"用户中心ids,用,隔开"
,
required
=
false
,
dataType
=
"String"
,
paramType
=
"body"
)
public
Result
deleteAllByLogicJson
(
@RequestBody
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
deleteByLogic
(
sysUserCenterService
.
get
(
id
));
}
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/usercenter/service/SysUserCenterService.java
View file @
7fa8137a
...
...
@@ -31,10 +31,13 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
@Autowired
private
RedisUtils
redisUtils
;
@Override
public
SysUserCenter
get
(
String
id
)
{
//获取缓存数据
SysUserCenter
sysUserCenter
=(
SysUserCenter
)
redisUtils
.
get
(
RedisUtils
.
getIdKey
(
SysUserCenterService
.
class
.
getName
(),
id
));
if
(
sysUserCenter
!=
null
)
return
sysUserCenter
;
if
(
sysUserCenter
!=
null
)
{
return
sysUserCenter
;
}
//获取数据库数据
sysUserCenter
=
super
.
get
(
id
);
//设置缓存数据
...
...
@@ -52,11 +55,14 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
return
null
;
}
@Override
public
List
<
SysUserCenter
>
findList
(
SysUserCenter
sysUserCenter
)
{
//获取缓存数据
String
findListKey
=
RedisUtils
.
getFindListKey
(
SysUserCenterService
.
class
.
getName
(),
JSON
.
toJSONString
(
sysUserCenter
));
List
<
SysUserCenter
>
sysUserCenterList
=(
List
<
SysUserCenter
>)
redisUtils
.
get
(
findListKey
);
if
(
sysUserCenterList
!=
null
)
return
sysUserCenterList
;
if
(
sysUserCenterList
!=
null
)
{
return
sysUserCenterList
;
}
//获取数据库数据
sysUserCenterList
=
super
.
findList
(
sysUserCenter
);
//设置缓存数据
...
...
@@ -69,11 +75,14 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
return
null
;
}
@Override
public
Page
<
SysUserCenter
>
findPage
(
Page
<
SysUserCenter
>
page
,
SysUserCenter
sysUserCenter
)
{
//获取缓存数据
String
findPageKey
=
RedisUtils
.
getFindPageKey
(
SysUserCenterService
.
class
.
getName
(),
JSON
.
toJSONString
(
page
)+
JSON
.
toJSONString
(
sysUserCenter
));
Page
<
SysUserCenter
>
pageReuslt
=(
Page
<
SysUserCenter
>)
redisUtils
.
get
(
findPageKey
);
if
(
pageReuslt
!=
null
)
return
pageReuslt
;
if
(
pageReuslt
!=
null
)
{
return
pageReuslt
;
}
//获取数据库数据
pageReuslt
=
super
.
findPage
(
page
,
sysUserCenter
);
//设置缓存数据
...
...
@@ -86,6 +95,7 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
return
null
;
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
save
(
SysUserCenter
sysUserCenter
)
{
//保存数据库记录
...
...
@@ -97,6 +107,7 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
SysUserCenterService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
delete
(
SysUserCenter
sysUserCenter
)
{
//清除记录缓存数据
...
...
@@ -108,6 +119,7 @@ public class SysUserCenterService extends AbstractBaseService<SysUserCenterDao,
redisUtils
.
removePattern
(
RedisUtils
.
getFinPageKeyPattern
(
SysUserCenterService
.
class
.
getName
()));
}
@Override
@Transactional
(
readOnly
=
false
)
public
void
deleteByLogic
(
SysUserCenter
sysUserCenter
)
{
//清除记录缓存数据
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/usercenter/web/SysUserCenterController.java
View file @
7fa8137a
...
...
@@ -126,7 +126,7 @@ public class SysUserCenterController extends AbstractBaseController {
//RequiresPermissions("usercenter:sysUserCenter:del")
@RequestMapping
(
value
=
"deleteAll"
)
public
String
deleteAll
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
delete
(
sysUserCenterService
.
get
(
id
));
}
...
...
@@ -140,7 +140,7 @@ public class SysUserCenterController extends AbstractBaseController {
//RequiresPermissions("usercenter:sysUserCenter:delByLogic")
@RequestMapping
(
value
=
"deleteAllByLogic"
)
public
String
deleteAllByLogic
(
String
ids
,
RedirectAttributes
redirectAttributes
)
{
String
idArray
[]
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
for
(
String
id
:
idArray
){
sysUserCenterService
.
deleteByLogic
(
sysUserCenterService
.
get
(
id
));
}
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/utils/rest/MapApiRestController.java
View file @
7fa8137a
...
...
@@ -58,8 +58,12 @@ public class MapApiRestController extends AbstractBaseController {
@ApiImplicitParam
(
name
=
"lng"
,
value
=
"纬度"
,
required
=
false
,
dataType
=
"String"
,
paramType
=
"query"
),
})
public
ModelAndView
getMap
(
@RequestParam
(
required
=
false
)
String
lat
,
@RequestParam
(
required
=
false
)
String
lng
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
){
if
(
lat
==
""
||
lat
==
null
)
lng
=
"113.24712"
;
if
(
lng
==
""
||
lng
==
null
)
lat
=
"23.098878"
;
if
(
lat
==
""
||
lat
==
null
)
{
lng
=
"113.24712"
;
}
if
(
lng
==
""
||
lng
==
null
)
{
lat
=
"23.098878"
;
}
model
.
addAttribute
(
"lat"
,
lat
);
model
.
addAttribute
(
"lng"
,
lng
);
ModelAndView
mv
=
new
ModelAndView
(
"modules/utils/map"
);
...
...
@@ -88,19 +92,27 @@ public class MapApiRestController extends AbstractBaseController {
}
catch
(
Exception
e
){}
List
<
SysUserCenter
>
sysUserCenterList
=
sysUserCenterService
.
findList
(
sysUserCenter
);
for
(
SysUserCenter
item:
sysUserCenterList
)
{
if
(
item
.
getUserName
()==
null
)
continue
;
if
(
item
.
getUserPhone
()==
null
)
item
.
setUserPhone
(
""
);
if
(
item
.
getUserName
().
indexOf
(
"\""
)>
0
)
item
.
setUserName
(
item
.
getUserName
().
replaceAll
(
"\""
,
""
));
if
(
item
.
getUserName
()==
null
)
{
continue
;
}
if
(
item
.
getUserPhone
()==
null
)
{
item
.
setUserPhone
(
""
);
}
if
(
item
.
getUserName
().
indexOf
(
"\""
)>
0
)
{
item
.
setUserName
(
item
.
getUserName
().
replaceAll
(
"\""
,
""
));
}
if
(
item
.
getLat
()==
null
||
item
.
getAddress
()==
null
)
{
item
.
setLat
(
"0"
);
item
.
setLng
(
"0"
);
item
.
setAddress
(
"-"
);
item
.
setCity
(
"-"
);
}
if
(
item
.
getLat
().
indexOf
(
"."
)<=
0
||
item
.
getAddress
().
length
()<=
6
)
continue
;
if
(
item
.
getLat
().
indexOf
(
"."
)<=
0
||
item
.
getAddress
().
length
()<=
6
)
{
continue
;
}
if
(
item
.
getLat
().
substring
(
item
.
getLat
().
indexOf
(
"."
)).
length
()<=
10
&&
item
.
getAddress
().
length
()>
6
){
Result
result
=
mapApiService
.
getLocation
(
""
,
""
,
item
.
getAddress
(),
item
.
getCity
());
if
(
result
.
getResultCoe
().
toString
()
.
equals
(
"0"
)){
if
(
"0"
.
equals
(
result
.
getResultCoe
().
toString
())){
int
index
=
result
.
getResultObject
().
toString
().
indexOf
(
"|"
);
int
size
=
result
.
getResultObject
().
toString
().
length
();
if
(
index
>
0
){
...
...
JeeSpringCloud/src/main/java/com/jeespring/modules/utils/service/MapApiService.java
View file @
7fa8137a
...
...
@@ -19,10 +19,18 @@ public class MapApiService {
//获取地址经纬度
public
Result
getLocation
(
@RequestParam
(
required
=
false
)
String
ak
,
@RequestParam
(
required
=
false
)
String
output
,
@RequestParam
(
required
=
false
)
String
address
,
@RequestParam
(
required
=
false
)
String
city
)
{
if
(
ak
==
""
||
ak
==
null
)
ak
=
"2ae1130ce176b453fb29e59a69b18407"
;
if
(
output
==
""
||
output
==
null
)
output
=
"json"
;
if
(
address
==
""
||
address
==
null
)
address
=
"广州"
;
if
(
city
==
""
||
city
==
null
)
city
=
"广州"
;
if
(
ak
==
""
||
ak
==
null
)
{
ak
=
"2ae1130ce176b453fb29e59a69b18407"
;
}
if
(
output
==
""
||
output
==
null
)
{
output
=
"json"
;
}
if
(
address
==
""
||
address
==
null
)
{
address
=
"广州"
;
}
if
(
city
==
""
||
city
==
null
)
{
city
=
"广州"
;
}
String
url
=
"http://api.map.baidu.com/geocoder/v2/?ak="
+
ak
+
"&callback=renderOption&output="
+
output
+
"&address="
+
address
+
"&city="
+
city
;
Result
result
;
try
{
...
...
JeeSpringCloud/src/main/resources/application.yml
View file @
7fa8137a
...
...
@@ -18,6 +18,7 @@ server:
key-store-password
:
jeespring
keyStoreType
:
PKCS12
keyAlias
:
tomcat
#启动热部署
jsp-servlet.init-parameters.development
:
true
http
:
port
:
8888
...
...
@@ -158,7 +159,7 @@ job:
#run: 0 0 10,14,16 * * ? 每天上午10点,下午2点,4点
#run: 0 0 12 * * ?" 每天中午12点触发
demoMode
:
tru
e
demoMode
:
fals
e
demoModeDescription
:
演示版启用,为系统能正常演示,暂时不允许操作!系统配置可开启正式版!功能全开源!每周周一再更新!
# Shiro权限配置
shiro
:
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/base/home.jsp
View file @
7fa8137a
...
...
@@ -36,7 +36,7 @@
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
target=
"_blank"
>
JeeSpringCloud中级培训文档.docx
</a><br><br>
<video
id=
"vid1"
loop=
"loop"
width=
"100%"
height=
"100%"
onended=
""
muted=
"muted"
autobuffer=
"autobuffer"
preload=
"auto"
oncontextmenu=
"return false"
data-hasaudio=
""
style=
"background-color: white;opacity: 1;visibility: visible;height: 100%;width: 100%;object-fit:cover;object-position: center center;"
src=
"../static
/common/login
/images/flat-avatar1.mp4"
controls
></video>
src=
"../static
Views/index
/images/flat-avatar1.mp4"
controls
></video>
</div>
</div>
</div>
...
...
@@ -51,7 +51,7 @@
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
target=
"_blank"
>
JeeSpringCloud部署高级.docx
</a><br><br>
<video
id=
"vid2"
loop=
"loop"
width=
"100%"
height=
"100%"
onended=
""
muted=
"muted"
autobuffer=
"autobuffer"
preload=
"auto"
oncontextmenu=
"return false"
data-hasaudio=
""
style=
"background-color: white;opacity: 1;visibility: visible;height: 100%;width: 100%;object-fit:cover;object-position: center center;"
src=
"../static
/document/JeeSpring部署初级
.mp4"
controls
></video>
src=
"../static
Views/index/images/flat-avatar1
.mp4"
controls
></video>
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
target=
"_blank"
>
JeeSpring部署初级.mp4
</a><br><br>
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
target=
"_blank"
>
JeeSpring部署高级.mp4
</a><br><br>
</div>
...
...
@@ -66,7 +66,7 @@
<div
class=
"ibox-content"
>
<video
id=
"vid3"
loop=
"loop"
width=
"100%"
height=
"100%"
onended=
""
muted=
"muted"
autobuffer=
"autobuffer"
preload=
"auto"
oncontextmenu=
"return false"
data-hasaudio=
""
style=
"background-color: white;opacity: 1;visibility: visible;height: 100%;width: 100%;object-fit:cover;object-position: center center;"
src=
"../static
/common/login
/images/flat-avatar1
13
.mp4"
controls
></video>
src=
"../static
Views/index
/images/flat-avatar1.mp4"
controls
></video>
</div>
</div>
</div>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/base/index.jsp
View file @
7fa8137a
...
...
@@ -42,9 +42,9 @@
<!-- Logo -->
<a
class=
"logo"
>
<!-- mini logo for sidebar mini 50x50 pixels -->
<span
class=
"logo-mini"
><img
id=
"logo"
class=
"img-circle"
src=
"/static
/common/login
/images/flat-avatar
3
.png"
>
${fns:getConfig('productName')}
</span>
<span
class=
"logo-mini"
><img
id=
"logo"
class=
"img-circle"
src=
"/static
Views/index
/images/flat-avatar
1
.png"
>
${fns:getConfig('productName')}
</span>
<!-- logo for regular state and mobile devices -->
<span
class=
"logo-lg"
><img
id=
"logo"
class=
"img-circle"
src=
"/static
/common/login
/images/flat-avatar
3
.png"
>
${fns:getConfig('productName')}
</span>
<span
class=
"logo-lg"
><img
id=
"logo"
class=
"img-circle"
src=
"/static
Views/index
/images/flat-avatar
1
.png"
>
${fns:getConfig('productName')}
</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
...
...
@@ -57,6 +57,12 @@
<!-- Navbar Right Menu -->
<div
class=
"navbar-custom-menu"
>
<ul
class=
"nav navbar-nav"
>
<li>
<a
href=
"/cms"
target=
"_blank"
>
<i
class=
"fa fa-home"
></i>
<span
class=
"hidden-xs"
>
网站首页
</span>
</a>
</li>
<!-- Messages: style can be found in dropdown.less-->
<li
class=
"dropdown messages-menu"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
aria-expanded=
"false"
>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/base/login.jsp
View file @
7fa8137a
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ page
import=
"org.apache.shiro.web.filter.authc.FormAuthenticationFilter"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ page
import=
"org.apache.shiro.web.filter.authc.FormAuthenticationFilter"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<!DOCTYPE html>
<html
style=
"overflow: auto;"
class=
" js csstransforms3d csstransitions csstransformspreserve3d"
><head><meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
${fns:getConfig('productName')} 登录
</title>
<meta
name=
"author"
content=
"http://www.jeespring.org/"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=9,IE=10"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-store"
>
<!-- 移动端禁止缩放事件 -->
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
>
<script
src=
"${ctxStatic}/jquery/jquery-2.1.1.min.js"
type=
"text/javascript"
></script>
<script
src=
"${ctxStatic}/jquery/jquery-migrate-1.1.1.min.js"
type=
"text/javascript"
></script>
<script
src=
"${ctxStatic}/jquery-validation/1.14.0/jquery.validate.js"
type=
"text/javascript"
></script>
<script
src=
"${ctxStatic}/jquery-validation/1.14.0/localization/messages_zh.min.js"
type=
"text/javascript"
></script>
<script
src=
"${ctxStatic}/bootstrap/3.3.4/js/bootstrap.min.js"
type=
"text/javascript"
></script>
<!-- 设置浏览器图标 -->
<link
rel=
"shortcut icon"
href=
"../static/favicon.ico"
>
<link
rel=
"stylesheet"
id=
"theme"
href=
"${ctxStatic}/common/login/app-midnight-blue.css"
>
<meta
name=
"decorator"
content=
"ani"
>
<style>
/* Validation */
label
.error
{
color
:
#cc5965
;
display
:
inline-block
;
margin-left
:
5px
;
}
</style>
<script
type=
"text/javascript"
>
if
(
window
.
top
!==
window
.
self
)
{
window
.
top
.
location
=
window
.
location
;
}
$
(
document
).
ready
(
function
()
{
readyInfo
();
$
(
"
#loginForm
"
).
validate
({
rules
:
{
validateCode
:
{
remote
:
"
/servlet/validateCodeServlet
"
}
},
messages
:
{
username
:
{
required
:
"
请填写用户名!
"
},
password
:
{
required
:
"
请填写密码!
"
},
validateCode
:
{
remote
:
"
验证码不正确!
"
,
required
:
"
请填写验证码!
"
}
},
//errorLabelContainer: "#messageBox",
errorPlacement
:
function
(
error
,
element
)
{
error
.
insertAfter
(
element
);
}
});
});
// 如果在框架或在对话框中,则弹出提示并跳转到首页
if
(
self
.
frameElement
&&
self
.
frameElement
.
tagName
==
"
IFRAME
"
||
$
(
'
#left
'
).
length
>
0
||
$
(
'
.jbox
'
).
length
>
0
){
alert
(
'
未登录或登录超时。请重新登录,谢谢!
'
);
top
.
location
=
"
/admin
"
;
}
function
readyInfo
(){
$
(
'
#vid
'
).
hide
();
//$('#loginPage').hide();
var
loginImgUrl
=
"
${loginImgUrl}
"
;
var
hplaTtl
=
[
"
侏罗纪海岸<br>英国南部英吉利海峡
"
,
"
短耳朵的大兔子<br>肯尼亚,马拉北部保护区
"
,
"
超质感流线型身躯<br>美国,克里斯特尔里弗
"
,
"
跃动的蒙德里安<br>美国,纽约
"
,
"
纯净之地<br>美国,苏必利尔湖
"
,
"
历史积淀雄厚的城市<br>挪威,特隆赫姆
"
,
"
牦牛<br>西藏
"
,
"
金毛<br>昆虫
"
,
"
岩洞<br>美国岩洞
"
,
"
彩蛋农场<br>法国农场
"
,
"
温顺可人的大家伙 <br>美国,林恩运河
"
,
"
我愿迷失在这阑珊灯火中<br>葡萄牙,辛特拉市
"
,
"
舒缓湖景<br>中国
"
,
"
足球界的最高表彰<br>挪威,亨宁斯韦尔
"
,
"
圣洁之地<br>德国,赖兴瑙岛
"
,
"
终极旅行目的地<br>南极洲,佩诺拉海峡
"
];
var
random
=
1
;
if
(
loginImgUrl
==
""
){
random
=
Math
.
floor
(
Math
.
random
()
*
(
16
-
1
+
1
)
+
1
);
loginImgUrl
=
"
../static/common/login/images/loginImg
"
+
random
+
"
.jpg
"
;
}
$
(
"
.login-page
"
).
css
(
"
background-image
"
,
"
url(
"
+
loginImgUrl
+
"
)
"
);
$
(
"
.login-page
"
).
css
(
"
background-size
"
,
"
cover
"
);
if
(
hplaTtl
.
length
>=
random
){
$
(
"
#hplaTtl
"
).
html
(
hplaTtl
[
random
-
1
]);
$
(
"
.search
"
).
attr
(
"
href
"
,
"
https://cn.bing.com/search?q=
"
+
hplaTtl
[
random
-
1
].
replace
(
"
<br>
"
,
"
"
));
}
$
(
"
#logo
"
).
attr
(
"
src
"
,
"
../static/common/login/images/flat-avatar
"
+
Math
.
floor
(
Math
.
random
()
*
(
4
-
1
+
1
)
+
1
)
+
"
.png
"
);
//random=Math.floor(Math.random() * (4 - 1 + 1) + 1);
random
=
1
;
$
(
"
#vid
"
).
attr
(
"
src
"
,
"
../static/common/login/images/flat-avatar
"
+
random
+
"
.mp4
"
);
//$('#loginPage').show(1000);
}
setTimeout
(
function
(){
$
(
'
#vid
'
).
show
(
888
);
},
3000
);
</script>
<html
style=
"overflow: auto;"
class=
" js csstransforms3d csstransitions csstransformspreserve3d"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
${fns:getConfig('productName')} 登录
</title>
<meta
name=
"author"
content=
"http://www.jeespring.org/"
>
<meta
name=
"renderer"
content=
"webkit"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=9,IE=10"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-store"
>
<meta
name=
"decorator"
content=
"ani"
>
<!-- 移动端禁止缩放事件 -->
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
>
<script
src=
"/static/jquery/jquery-2.1.1.min.js"
type=
"text/javascript"
></script>
<script
src=
"/static/jquery-validation/1.14.0/jquery.validate.js"
type=
"text/javascript"
></script>
<script
src=
"/static/jquery-validation/1.14.0/localization/messages_zh.min.js"
type=
"text/javascript"
></script>
<!-- 设置浏览器图标 -->
<link
rel=
"shortcut icon"
href=
"../static/favicon.ico"
>
<link
rel=
"stylesheet"
id=
"theme"
href=
"/staticViews/index/app-midnight-blue.css"
>
<script
src=
"/staticViews/index/login.js"
type=
"text/javascript"
></script>
<link
rel=
"stylesheet"
href=
"/staticViews/index/login.css"
>
</head>
<body
id=
""
class=
""
style=
""
>
<div
class=
"login-page"
style=
"overflow: hidden;padding:0px;background-position: center;"
>
<video
id=
"vid"
width=
"100%"
height=
"100%"
onended=
"setTimeout(function(){$('#vid').hide(1000)},3000);"
autoplay=
"autoplay"
muted=
"muted"
autobuffer=
"autobuffer"
preload=
"auto"
oncontextmenu=
"return false"
data-hasaudio=
""
style=
"display:none;background-color: white;opacity: 1;visibility: visible;position: absolute;top: 0px;bottom: 0px;left: 0px;right: 0px;height: 100%;width: 100%;object-fit:cover;object-position: center center;"
src=
"../static/common/login/images/flat-avatar1.mp4"
></video>
<div
id=
"menu"
style=
"z-index: 10000;position: absolute;top: 0px;left: 0px;border-radius: 3px;padding: 10px;width: 100%;margin: auto 50px;"
>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud"
style=
"float: left;color: #fff;"
class=
"btn"
>
介绍
</a>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/wikis/pages"
style=
"float: left;color: #fff;"
class=
"btn"
>
在线文档
</a>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
style=
"float: left;color: #fff;"
class=
"btn"
>
帮助
</a>
</div>
<div
class=
"row"
id=
"loginPage"
style=
"padding: 3em;"
>
<div
class=
"col-md-4 col-lg-4 col-md-offset-4 col-lg-offset-4"
>
<img
id=
"logo"
class=
"img-circle hidden-xs"
src=
"../static/common/login/images/flat-avatar.png"
style=
"width: 150px;height: 150px;"
>
<h1>
${fns:getConfig('productName')}-${systemMode}-${version}
</h1>
<sys:message
content=
"
${
message
}
"
/>
<!-- 0:隐藏tip, 1隐藏box,不设置显示全部 -->
<form
id=
"loginForm"
role=
"form"
action=
"${ctx}/login"
method=
"post"
novalidate=
"novalidate"
style=
"background: rgba(255,255,255,.2);border: 1px solid rgba(255,255,255,.3);border-radius: 3px;padding: 30px;"
>
<div
class=
"form-content"
style=
"padding:0px"
>
<div
class=
"form-group"
>
<input
type=
"text"
id=
"username"
name=
"username"
class=
"form-control input-underline input-lg required"
value=
"admin"
placeholder=
"用户名"
>
</div>
<div
class=
"form-group"
>
<input
type=
"password"
id=
"password"
name=
"password"
value=
"admin"
class=
"form-control input-underline input-lg required"
placeholder=
"密码"
>
</div>
<c:if
test=
"
${
validateCode
==
'true'
}
"
>
<div
class=
"input-group m-b text-muted validateCode"
>
<sys:validateCode
name=
"validateCode"
inputCssStyle=
"margin-bottom:5px;"
/>
</div>
</c:if>
<label
class=
"inline"
>
<input
type=
"checkbox"
id=
"rememberMe"
name=
"rememberMe"
${
rememberMe
?
'
checked
'
:
''}
class=
"ace"
/>
<span
class=
"lbl"
>
记住我
</span>
</label>
</div>
<a
href=
"${ctx}/register"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
>
注册
</a>
<input
type=
"submit"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
value=
"登录"
>
<div
style=
"padding-top: 20px;"
>
© 2018 All Rights Reserved.
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud"
style=
"color:white;"
>
JeeSpring
</a></div>
</form>
</div>
</div>
<div
id=
"hplaT"
class=
"hidden-xs"
style=
"position: absolute;bottom: 0px;right: 0px;/* background: rgba(255,255,255,.2); */border: 1px solid rgba(255,255,255,.3);border-radius: 3px;padding: 10px;width: 30%;"
>
<a
class=
"search"
target=
"_blank"
href=
"https://cn.bing.com/search?q=jeespring"
style=
"color:#fff;text-decoration:none;"
><div
id=
"hplaTtl"
></div></a>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"刷新"
style=
"float: right;"
onclick=
"readyInfo()"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"播放"
style=
"float: right;"
onclick=
"$('#vid').show(1000);document.getElementById('vid').play()"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"停止"
style=
"float: right;"
onclick=
"$('#vid').hide(1000);document.getElementById('vid').pause()"
>
<a
class=
"search btn btn-white btn-outline btn-rounded"
style=
"float: right;"
href=
"https://cn.bing.com/search?q=jeespring"
>
搜索
</a>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"显示"
style=
"float: left;"
onclick=
"$('#loginPage').show(1000);"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"隐藏"
style=
"float: left;"
onclick=
"$('#loginPage').hide(1000);"
>
</div>
</div>
<body>
<div
class=
"login-page"
>
<video
id=
"vid"
width=
"100%"
height=
"100%"
onended=
"setTimeout(function(){$('#vid').hide(1000)},3000);"
autoplay=
"autoplay"
muted=
"muted"
autobuffer=
"autobuffer"
preload=
"auto"
oncontextmenu=
"return false"
data-hasaudio=
""
></video>
<div
id=
"menu"
>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud"
style=
"float: left;color: #fff;"
class=
"btn"
>
介绍
</a>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/wikis/pages"
style=
"float: left;color: #fff;"
class=
"btn"
>
在线文档
</a>
<a
target=
"_blank"
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud/attach_files"
style=
"float: left;color: #fff;"
class=
"btn"
>
帮助
</a>
</div>
<div
class=
"row"
id=
"loginPage"
style=
"padding: 3em;"
>
<div
class=
"col-md-4 col-lg-4 col-md-offset-4 col-lg-offset-4"
>
<img
id=
"logo"
class=
"img-circle hidden-xs"
src=
"../staticViews/index/images/flat-avatar1.png"
>
<h1>
${fns:getConfig('productName')}-${systemMode}-${version}
</h1>
<sys:message
content=
"
${
message
}
"
/>
<!-- 0:隐藏tip, 1隐藏box,不设置显示全部 -->
<form
id=
"loginForm"
role=
"form"
action=
"${ctx}/login"
method=
"post"
novalidate=
"novalidate"
>
<div
class=
"form-content"
style=
"padding:0px"
>
<div
class=
"form-group"
>
<input
type=
"text"
id=
"username"
name=
"username"
class=
"form-control input-underline input-lg required"
value=
"admin"
placeholder=
"用户名"
>
</div>
<div
class=
"form-group"
>
<input
type=
"password"
id=
"password"
name=
"password"
value=
"admin"
class=
"form-control input-underline input-lg required"
placeholder=
"密码"
>
</div>
<c:if
test=
"
${
validateCode
==
'true'
}
"
>
<div
class=
"input-group m-b text-muted validateCode"
>
<sys:validateCode
name=
"validateCode"
inputCssStyle=
"margin-bottom:5px;"
/>
</div>
</c:if>
<label
class=
"inline"
>
<input
type=
"checkbox"
id=
"rememberMe"
name=
"rememberMe"
${
rememberMe
?
'
checked
'
:
''}
class=
"ace"
/>
<span
class=
"lbl"
>
记住我
</span>
</label>
</div>
<a
href=
"${ctx}/register"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
>
注册
</a>
<input
type=
"submit"
class=
"btn btn-white btn-outline btn-lg btn-rounded progress-login"
value=
"登录"
>
<div
style=
"padding-top: 20px;"
>
© 2018 All Rights Reserved.
<a
href=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud"
style=
"color:white;"
>
JeeSpring
</a>
</div>
</form>
</div>
</div>
<div
id=
"hplaT"
class=
"hidden-xs"
>
<a
class=
"search"
target=
"_blank"
href=
"https://cn.bing.com/search?q=jeespring"
style=
"color:#fff;text-decoration:none;"
>
<div
id=
"hplaTtl"
></div>
</a>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"刷新"
style=
"float: right;"
onclick=
"readyInfo()"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"播放"
style=
"float: right;"
onclick=
"$('#vid').show(1000);document.getElementById('vid').play()"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"停止"
style=
"float: right;"
onclick=
"$('#vid').hide(1000);document.getElementById('vid').pause()"
>
<a
class=
"search btn btn-white btn-outline btn-rounded"
style=
"float: right;"
href=
"https://cn.bing.com/search?q=jeespring"
>
搜索
</a>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"显示"
style=
"float: left;"
onclick=
"$('#loginPage').show(1000);"
>
<input
type=
"button"
class=
"btn btn-white btn-outline btn-rounded"
value=
"隐藏"
style=
"float: left;"
onclick=
"$('#loginPage').hide(1000);"
>
</div>
</div>
<c:if
test=
"
${
systemMode
eq
'演示版'
}
"
>
<iframe
src=
"https://gitee.com/JeeHuangBingGui/jeeSpringCloud"
style=
"height:50%;width:50%;display:none"
></iframe>
<iframe
src=
"https://www.oschina.net/p/jeeSpringCloud"
style=
"height:50%;width:50%;display:none"
></iframe>
</c:if>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/src/main/webapp/WEB-INF/views/include/headJs.jsp
View file @
7fa8137a
...
...
@@ -8,10 +8,10 @@
<link
href=
"${ctxJeeSpringStatic}/bower_components/PACE/themes/blue/pace-theme-bounce.css"
rel=
"stylesheet"
/>
<script
src=
"/jeeSpringStatic/jeeSpring.js"
></script>
<!-- jQuery 3 {ctxJeeSpringStatic} -->
<script
src=
"/jeeSpringStatic/bower_components/bootstrap/dist/js/bootstrap.js"
></script>
<script
src=
"/jeeSpringStatic/bower_components/bootstrap/dist/js/bootstrap.
min.
js"
></script>
<script
src=
"/jeeSpringStatic/plugs/layer-v3.1.1/layer/layer.js"
></script>
<script
src=
"/jeeSpringStatic/plugs/jquery-toastr/2.0/toastr.js"
></script>
<link
href=
"/jeeSpringStatic/plugs/jquery-toastr/2.0/toastr.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
src=
"/jeeSpringStatic/plugs/jquery-toastr/2.0/toastr.
min.
js"
></script>
<link
href=
"/jeeSpringStatic/plugs/jquery-toastr/2.0/toastr.
min.
css"
rel=
"stylesheet"
type=
"text/css"
/>
<!-- 引入iCheck插件 -->
<script
src=
"/jeeSpringStatic/plugs/iCheck/icheck.min.js"
></script>
<script
src=
"/jeeSpringStatic/plugs/iCheck/icheck-init.js"
></script>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/layouts/blank.jsp
View file @
7fa8137a
...
...
@@ -4,7 +4,7 @@
<!DOCTYPE html>
<html
style=
"overflow-x:auto;overflow-y:auto;"
>
<head>
<title><sitemesh:title/></title>
<!-- - Powered By JeeS
ite
-->
<title><sitemesh:title/></title>
<!-- - Powered By JeeS
pring
-->
<%@include
file=
"/webpage/include/head.jsp"
%>
<!-- Baidu tongji analytics -->
<script>
var
_hmt
=
_hmt
||
[];(
function
(){
var
hm
=
document
.
createElement
(
"
script
"
);
hm
.
src
=
"
//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f
"
;
var
s
=
document
.
getElementsByTagName
(
"
script
"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);})();
</script>
<sitemesh:head/>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/layouts/default.jsp
View file @
7fa8137a
...
...
@@ -4,7 +4,7 @@
<!DOCTYPE html>
<html
style=
"overflow-x:auto;overflow-y:auto;"
>
<head>
<title><sitemesh:title/>
- Powered By JeeS
ite
</title>
<title><sitemesh:title/>
- Powered By JeeS
pring
</title>
<%@include
file=
"/webpage/include/head.jsp"
%>
<!-- Baidu tongji analytics -->
<script>
var
_hmt
=
_hmt
||
[];(
function
(){
var
hm
=
document
.
createElement
(
"
script
"
);
hm
.
src
=
"
//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f
"
;
var
s
=
document
.
getElementsByTagName
(
"
script
"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);})();
</script>
<sitemesh:head/>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/modules/cms/front/themes/basic/frontGuestbook.jsp
View file @
7fa8137a
...
...
@@ -5,8 +5,8 @@
<head>
<title>
留言板
</title>
<meta
name=
"decorator"
content=
"cms_default_${site.theme}"
/>
<meta
name=
"description"
content=
"JeeS
ite
${site.description}"
/>
<meta
name=
"keywords"
content=
"JeeS
ite
${site.keywords}"
/>
<meta
name=
"description"
content=
"JeeS
pring
${site.description}"
/>
<meta
name=
"keywords"
content=
"JeeS
pring
${site.keywords}"
/>
<%@include
file=
"/WEB-INF/views/modules/cms/front/include/head.jsp"
%>
<link
href=
"${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.css"
type=
"text/css"
rel=
"stylesheet"
/>
<script
src=
"${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.js"
type=
"text/javascript"
></script>
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/modules/cms/front/themes/basic/frontIndex.jsp
View file @
7fa8137a
...
...
@@ -27,11 +27,11 @@
<body>
<!-- PRE LOADER -->
<div
class=
"preloader"
>
<
!--
div class="preloader"
style="display:none"
>
<div class="spinner">
<span class="sk-inner-circle"></span>
</div>
</div>
</div
--
>
<!-- MENU -->
...
...
JeeSpringCloud/src/main/webapp/WEB-INF/views/modules/cms/front/themes/basic/frontIndex_back.jsp
View file @
7fa8137a
...
...
@@ -5,8 +5,8 @@
<head>
<title>
首页
</title>
<meta
name=
"decorator"
content=
"cms_default_${site.theme}"
/>
<meta
name=
"description"
content=
"JeeS
ite
${site.description}"
/>
<meta
name=
"keywords"
content=
"JeeS
ite
${site.keywords}"
/>
<meta
name=
"description"
content=
"JeeS
pring
${site.description}"
/>
<meta
name=
"keywords"
content=
"JeeS
pring
${site.keywords}"
/>
<%@include
file=
"/WEB-INF/views/modules/cms/front/include/head.jsp"
%>
<link
href=
"${ctxStaticView}/cms/front/theme.css"
type=
"text/css"
rel=
"stylesheet"
/>
</head>
...
...
Prev
1
…
5
6
7
8
9
10
11
Next
Write
Preview
Supports
Markdown
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