Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfzx-website
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
丁伟
sfzx-website
Commits
f4bc09a7
Commit
f4bc09a7
authored
Feb 21, 2025
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、通知公告管理增加查询条件;
2、修复用户密码发送邮件失败问题。
parent
781e000a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
46 additions
and
27 deletions
+46
-27
.idea/dataSources.xml
+2
-2
src/main/java/org/ccpit/base/orgManage/OrgController.java
+1
-1
src/main/java/org/ccpit/base/utils/StringUtil.java
+1
-1
src/main/java/org/ccpit/business/noticeManage/NoticeController.java
+2
-2
src/main/java/org/ccpit/business/noticeManage/NoticeService.java
+3
-3
src/main/resources/framework.properties
+3
-3
src/main/webapp/WEB-INF/jsp/business/noticePage.jsp
+6
-2
src/main/webapp/WEB-INF/jsp/home.jsp
+3
-3
src/main/webapp/resource/admin/orgManage/orgListPage.js
+1
-1
src/main/webapp/resource/business/noticePage.js
+16
-1
target/classes/framework.properties
+8
-8
No files found.
.idea/dataSources.xml
View file @
f4bc09a7
...
...
@@ -15,11 +15,11 @@
<property
name=
"yearIsDateType"
value=
"false"
/>
</driver-properties>
</data-source>
<data-source
source=
"LOCAL"
name=
"sfzx
Website@localhost"
uuid=
"a69ddf70-6cac-49ce-9296-dba84c6eefc0
"
>
<data-source
source=
"LOCAL"
name=
"sfzx
_website@localhost"
uuid=
"d6e72dfc-b1e7-4ef9-9cec-6c86bdaf7493
"
>
<driver-ref>
mysql.8
</driver-ref>
<synchronize>
true
</synchronize>
<jdbc-driver>
com.mysql.cj.jdbc.Driver
</jdbc-driver>
<jdbc-url>
jdbc:mysql://localhost:3306/sfzx
W
ebsite
</jdbc-url>
<jdbc-url>
jdbc:mysql://localhost:3306/sfzx
_w
ebsite
</jdbc-url>
<driver-properties>
<property
name=
"autoReconnect"
value=
"true"
/>
</driver-properties>
...
...
src/main/java/org/ccpit/base/orgManage/OrgController.java
View file @
f4bc09a7
...
...
@@ -246,7 +246,7 @@ public class OrgController extends BaseController {
PageRequest
pageRequest
=
this
.
getPage
(
request
);
Page
<
User
>
users
=
new
Page
<
User
>(
pageRequest
);
boolean
flag
=
false
;
if
(
null
!=
orgId
){
if
(
null
!=
orgId
){
OrgInfo
org
=
orgService
.
getOrgById
(
Long
.
valueOf
(
orgId
));
Set
<
User
>
userSet
=
org
.
getUsers
();
List
<
User
>
userList
=
new
ArrayList
<
User
>(
userSet
);
...
...
src/main/java/org/ccpit/base/utils/StringUtil.java
View file @
f4bc09a7
...
...
@@ -749,7 +749,7 @@ public class StringUtil {
* @since JDK 1.6
*/
public
static
String
getRandomString
(
int
length
)
{
String
base
=
"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^
&*()<>?
"
;
String
base
=
"abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^"
;
Random
random
=
new
Random
();
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
length
;
i
++)
{
...
...
src/main/java/org/ccpit/business/noticeManage/NoticeController.java
View file @
f4bc09a7
...
...
@@ -66,8 +66,8 @@ public class NoticeController extends BaseController {
public
Object
queryAllNotice
(
HttpServletRequest
request
,
Notice
Notice
)
{
PageRequest
pageRequest
=
getPage
(
request
);
String
title
=
request
.
getParameter
(
"noticeTitle"
);
String
n
ewsType
=
request
.
getParameter
(
"news
Type"
);
Page
<
Notice
>
pageInformation
=
noticeService
.
queryNotices
(
pageRequest
,
title
,
n
ews
Type
);
String
n
oticeType
=
request
.
getParameter
(
"notice
Type"
);
Page
<
Notice
>
pageInformation
=
noticeService
.
queryNotices
(
pageRequest
,
title
,
n
otice
Type
);
// pageInformation.getRows().forEach(Notice -> {
// noticeService.createNoticesIndex(Notice);
// });
...
...
src/main/java/org/ccpit/business/noticeManage/NoticeService.java
View file @
f4bc09a7
...
...
@@ -127,13 +127,13 @@ public class NoticeService {
}
public
Page
<
Notice
>
queryNotices
(
PageRequest
pageRequest
,
String
noticeTitle
,
String
n
ews
Type
)
{
String
n
otice
Type
)
{
StringBuffer
hql
=
new
StringBuffer
(
"from Notice where 1=1"
);
if
(
noticeTitle
!=
null
&&
!
""
.
equals
(
noticeTitle
))
{
hql
.
append
(
" and noticeTitle like '%"
+
noticeTitle
+
"%'"
);
}
if
(
n
ewsType
!=
null
&&
!
""
.
equals
(
news
Type
))
{
hql
.
append
(
" and noticeType = "
+
Integer
.
parseInt
(
n
ews
Type
));
if
(
n
oticeType
!=
null
&&
!
""
.
equals
(
notice
Type
))
{
hql
.
append
(
" and noticeType = "
+
Integer
.
parseInt
(
n
otice
Type
));
}
hql
.
append
(
" order by createTime desc"
);
return
noticeDao
.
findPage
(
pageRequest
,
hql
.
toString
(),
null
);
...
...
src/main/resources/framework.properties
View file @
f4bc09a7
# jdbc.X
jdbc.driverClassName
=
com.mysql.jdbc.Driver
#dev model
#jdbc.url=jdbc:mysql://localhost:3306/sfzx
W
ebsite?createDatabaseIfNotExist=true&characterEncoding=utf-8
#jdbc.url=jdbc:mysql://localhost:3306/sfzx
_w
ebsite?createDatabaseIfNotExist=true&characterEncoding=utf-8
#jdbc.user=ccpit
#jdbc.pass=ccpit1516
#server model
...
...
@@ -26,11 +26,11 @@ system.telphone=010-88077376
file.maxSize
=
100
#chinese
system.name
=
\u
4E2D
\u
56FD
\u
8D38
\u
4FC3
\u
4F1A
\u
53
F0
\u
6E2F
\u
6FB3
\u
4F01
\u
4E1A
\u
670D
\u
52A1
\u
4E2D
\u
5FC3
\u
5B98
\u
7F51
\u
7CFB
\u
7EDF
system.name
=
\u
4E2D
\u
56FD
\u
8D38
\u
4FC3
\u
4F1A
\u
53
9F
\u
4EA7
\u5730\u
8BC1
\u
5B98
\u
7F51
\u
7CFB
\u
7EDF
# dev server address
#system.visit_url=http://localhost:86/admin/login
# test server address
system.visit_url
=
system.visit_url
=
https://co.ccpit.org
# official server address
#upload File save path
...
...
src/main/webapp/WEB-INF/jsp/business/noticePage.jsp
View file @
f4bc09a7
...
...
@@ -19,8 +19,12 @@
<form
method=
"post"
id=
"queryFormId2"
name=
"queryForm"
>
<table
class=
"querytable"
align=
"center"
width=
"100%"
border=
"0"
>
<tr>
<td
width=
"25%"
align=
"right"
><span>
通知公告标题:
</span></td>
<td
width=
"35%"
align=
"left"
><input
id=
"titleId00"
name=
'noticeTitle'
title=
"50字以内"
class=
"easyui-textbox"
/>
<td
width=
"15%"
align=
"right"
><span>
标题:
</span></td>
<td
width=
"25%"
align=
"left"
><input
id=
"titleId00"
name=
'noticeTitle'
title=
"50字以内"
class=
"easyui-textbox"
/>
<td
width=
"15%"
align=
"right"
><span>
类型:
</span></td>
<td
width=
"25%"
align=
"left"
>
<input
id=
"noticeTypeId00"
name=
"noticeType"
class=
"easyui-combobox"
>
</td>
<td>
<a
id=
"saveButtonId01"
href=
"#"
class=
"easyui-linkbutton"
iconCls=
"icon-search"
onclick=
"queryData()"
>
查询
</a>
...
...
src/main/webapp/WEB-INF/jsp/home.jsp
View file @
f4bc09a7
...
...
@@ -102,12 +102,12 @@
</div>
</security:url>
<security:url
uri=
"/org/ccpit/business/noticeManage"
>
<div
title=
"通知公告管理"
data-options=
"collapsible:true"
>
<div
title=
"通知公告
及政策
管理"
data-options=
"collapsible:true"
>
<ul>
<li><security:url
uri=
"/business/noticeManage/goinNoticePage"
><div>
<a
href=
"#"
rel=
"/business/noticeManage/goinNoticePage"
>
<span
class=
"huiyuanxinxi"
>
</span>
<span
class=
"nav"
>
通知公告信息
</span>
<span
class=
"nav"
>
通知公告
及政策
信息
</span>
</a>
</div></security:url></li>
<li>
...
...
@@ -115,7 +115,7 @@
</div>
</security:url>
<security:url
uri=
"/org/ccpit/business/questionManage"
>
<div
title=
"问题管理"
data-options=
"collapsible:true"
>
<div
title=
"
常见
问题管理"
data-options=
"collapsible:true"
>
<ul>
<li><security:url
uri=
"/business/questionManage/goinQuestionPage"
><div>
<a
href=
"#"
rel=
"/business/questionManage/goinQuestionPage"
>
...
...
src/main/webapp/resource/admin/orgManage/orgListPage.js
View file @
f4bc09a7
...
...
@@ -701,7 +701,7 @@ function sendMail(){
"ids"
:
jsonIds
},
function
(
result
){
if
(
result
.
flag
){
$
.
messager
.
alert
(
'提示'
,
result
.
info
,
'ok'
);
initUserList
();
//
initUserList();
closeWindow1
();
}
else
{
$
.
messager
.
alert
(
'提示'
,
result
.
info
,
'error'
);
...
...
src/main/webapp/resource/business/noticePage.js
View file @
f4bc09a7
...
...
@@ -48,6 +48,19 @@ function initInputWidth(){
}
}
});
$
(
"#noticeTypeId00"
).
combobox
({
url
:
'/admin/metadataManage/getMetadatasList?dataType='
+
encodeURI
(
encodeURI
(
dataType_infoStatus
)),
width
:
fixShortWidth
(),
panelHeight
:
'auto'
,
panelHeight
:
'auto'
,
valueField
:
'id'
,
textField
:
'text'
,
onLoadSuccess
:
function
()
{
$
(
"#noticeTypeId00"
).
combobox
(
"select"
,
"通知公告"
);
$
(
"#noticeTypeId00"
).
combobox
(
"setValue"
,
1
);
}
});
$
(
"#infotatusId"
).
combobox
({
url
:
'/admin/metadataManage/getMetadatasList?dataType='
+
encodeURI
(
encodeURI
(
infoStatus
)),
width
:
fixShortWidth
(),
...
...
@@ -351,10 +364,12 @@ function arrayTojson(arr) {
//查询
function
queryData
()
{
var
noticeTitle
=
$
(
"#titleId00"
).
val
();
var
noticeType
=
$
(
"#noticeTypeId00"
).
combobox
(
'getValue'
);
var
queryParams
=
null
;
$
(
"#noticeTable"
).
datagrid
({
queryParams
:
{
noticeTitle
:
noticeTitle
noticeTitle
:
noticeTitle
,
noticeType
:
noticeType
}
});
}
...
...
target/classes/framework.properties
View file @
f4bc09a7
# jdbc.X
jdbc.driverClassName
=
com.mysql.jdbc.Driver
#dev model
jdbc.url
=
jdbc:mysql://localhost:3306/sfzxW
ebsite?createDatabaseIfNotExist=true&characterEncoding=utf-8
jdbc.user
=
ccpit
jdbc.pass
=
ccpit1516
#jdbc.url=jdbc:mysql://localhost:3306/sfzx_w
ebsite?createDatabaseIfNotExist=true&characterEncoding=utf-8
#
jdbc.user=ccpit
#
jdbc.pass=ccpit1516
#server model
#
jdbc.url=jdbc:mysql://mysql:3306/sfzx_website?createDatabaseIfNotExist=true&characterEncoding=utf-8
#
jdbc.user=root
#
jdbc.pass=root
jdbc.url
=
jdbc:mysql://mysql:3306/sfzx_website?createDatabaseIfNotExist=true&characterEncoding=utf-8
jdbc.user
=
root
jdbc.pass
=
root
# hibernate.X
hibernate.dialect
=
org.hibernate.dialect.MySQL5Dialect
hibernate.show_sql
=
false
...
...
@@ -26,11 +26,11 @@ system.telphone=010-88077376
file.maxSize
=
100
#chinese
system.name
=
\u
4E2D
\u
56FD
\u
8D38
\u
4FC3
\u
4F1A
\u
53
F0
\u
6E2F
\u
6FB3
\u
4F01
\u
4E1A
\u
670D
\u
52A1
\u
4E2D
\u
5FC3
\u
5B98
\u
7F51
\u
7CFB
\u
7EDF
system.name
=
\u
4E2D
\u
56FD
\u
8D38
\u
4FC3
\u
4F1A
\u
53
9F
\u
4EA7
\u5730\u
8BC1
\u
5B98
\u
7F51
\u
7CFB
\u
7EDF
# dev server address
#system.visit_url=http://localhost:86/admin/login
# test server address
system.visit_url
=
system.visit_url
=
https://co.ccpit.org
# official server address
#upload File save path
...
...
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