Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
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
管理员
jfV5portal
Commits
8f9733c3
Commit
8f9733c3
authored
Sep 17, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/zhutc' into develop
parents
1d9b615e
537b47f1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
88 additions
and
55 deletions
+88
-55
logTab.js
WebContent/jwapp/pages/log/js/logTab.js
+1
-0
replyTab.js
WebContent/jwapp/pages/log/js/replyTab.js
+1
-0
replyTabDetail.jsp
WebContent/jwapp/pages/log/replyTabDetail.jsp
+0
-13
meetingTab.js
WebContent/jwapp/pages/meeting/js/meetingTab.js
+4
-5
meetingTabDetail.jsp
WebContent/jwapp/pages/meeting/meetingTabDetail.jsp
+22
-0
voteTab.js
WebContent/jwapp/pages/vote/js/voteTab.js
+1
-6
MeetingBusinessImpl.java
...wapp/com/jw/app/business/meeting/MeetingBusinessImpl.java
+41
-25
meetingDAO.java
src_jwapp/com/jw/app/business/meeting/meetingDAO.java
+2
-0
meetingDAO.xml
src_jwapp/com/jw/app/business/meeting/meetingDAO.xml
+6
-0
actAction.java
src_jwapp/com/jw/app/log/action/actAction.java
+10
-6
No files found.
WebContent/jwapp/pages/log/js/logTab.js
View file @
8f9733c3
...
@@ -228,6 +228,7 @@ function replySaveRow(){
...
@@ -228,6 +228,7 @@ function replySaveRow(){
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
if
(
v_result
.
NAME
==
'999'
){
if
(
v_result
.
NAME
==
'999'
){
$
(
'#logItemInputForm'
).
datagrid
(
'reload'
);
$
(
'#logItemInputForm'
).
datagrid
(
'reload'
);
$
(
'#USER_REPLY_CONTENT'
).
textbox
(
"setValue"
,
""
);
}
}
}
}
}
}
...
...
WebContent/jwapp/pages/log/js/replyTab.js
View file @
8f9733c3
...
@@ -151,6 +151,7 @@ function replySaveRow(){
...
@@ -151,6 +151,7 @@ function replySaveRow(){
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
if
(
v_result
.
NAME
==
'999'
){
if
(
v_result
.
NAME
==
'999'
){
$
(
'#logItemInputForm'
).
datagrid
(
'reload'
);
$
(
'#logItemInputForm'
).
datagrid
(
'reload'
);
$
(
'#USER_REPLY_CONTENT'
).
textbox
(
"setValue"
,
""
);
}
}
}
}
}
}
...
...
WebContent/jwapp/pages/log/replyTabDetail.jsp
View file @
8f9733c3
<%@page contentType="text/html; charset=UTF-8"%>
<%@page contentType="text/html; charset=UTF-8"%>
<style type="text/css">
<style type="text/css">
.datagrid-header {
position: absolute;
visibility: hidden;
}
#inputForm {
#inputForm {
position: relative;
position: relative;
}
}
.log_reply_list{
.log_reply_list{
position:absolute;
position:absolute;
bottom:7%;}
bottom:7%;}
.log_item_list div div{
float:left;
}
.log_item_info{
margin-left: 26px;
}
.log_item_index input{
width:120px;
}
.tableStyle span,.log_item_one span{
.tableStyle span,.log_item_one span{
border:none;
border:none;
}
}
...
...
WebContent/jwapp/pages/meeting/js/meetingTab.js
View file @
8f9733c3
...
@@ -45,12 +45,11 @@ var is_column = [ [
...
@@ -45,12 +45,11 @@ var is_column = [ [
{
field
:
'MEETING_NAME'
,
title
:
'会议名称'
,
width
:
100
,
align
:
'center'
},
{
field
:
'MEETING_NAME'
,
title
:
'会议名称'
,
width
:
100
,
align
:
'center'
},
{
field
:
'MEETING_CONTENT'
,
title
:
'会议内容'
,
width
:
300
,
align
:
'center'
},
{
field
:
'MEETING_CONTENT'
,
title
:
'会议内容'
,
width
:
300
,
align
:
'center'
},
{
field
:
'VENUE'
,
title
:
'会议地址'
,
width
:
300
,
align
:
'center'
},
{
field
:
'VENUE'
,
title
:
'会议地址'
,
width
:
300
,
align
:
'center'
},
{
field
:
'HOST'
,
title
:
'主持人'
,
width
:
80
,
align
:
'center'
},
{
field
:
'START_TIME'
,
title
:
'开始时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'START_TIME'
,
title
:
'开始时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'END_TIME'
,
title
:
'结束时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'END_TIME'
,
title
:
'结束时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CREATE_ID'
,
title
:
'创建人'
,
width
:
80
,
align
:
'center'
},
{
field
:
'CHECK_START_TIME'
,
title
:
'签到开始时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CREATE_TIME'
,
title
:
'创建时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CHECK_END_TIME'
,
title
:
'签到结束时间'
,
width
:
150
,
align
:
'center'
}
{
field
:
'UPDATE_ID'
,
title
:
'修改人'
,
width
:
80
,
align
:
'center'
},
{
field
:
'UPDATE_TIME'
,
title
:
'修改时间'
,
width
:
150
,
align
:
'center'
}
]
];
]
];
//列表加载完成回调
//列表加载完成回调
function
dataOnLoadSuccess
(){
function
dataOnLoadSuccess
(){
...
@@ -140,7 +139,7 @@ function editRow(index) {
...
@@ -140,7 +139,7 @@ function editRow(index) {
//加载修改子页面成功后的回调
//加载修改子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
function
updateUrlOnloadCallback
(
is_row
){
initDateBox
();
}
}
//保存
//保存
...
...
WebContent/jwapp/pages/meeting/meetingTabDetail.jsp
View file @
8f9733c3
...
@@ -11,6 +11,15 @@
...
@@ -11,6 +11,15 @@
<input class="easyui-textbox" id="MEETING_NAME" name="FIELD_MEETING_NAME" style="width:600px" required=true value="${is_row.MEETING_NAME}"/>
<input class="easyui-textbox" id="MEETING_NAME" name="FIELD_MEETING_NAME" style="width:600px" required=true value="${is_row.MEETING_NAME}"/>
</td>
</td>
</tr>
</tr>
<tr>
<td style="width: 15%;" class="tableStyleLable">
<span>主持人:</span>
</td>
<td style="width: 85%">
<input class="easyui-textbox" id="HOST" name="FIELD_HOST" style="width:600px" required=true value="${is_row.HOST}"/>
</td>
</tr>
<tr>
<tr>
<tr>
<td class="tableStyleLable" valign="top" style="height:160px">
<td class="tableStyleLable" valign="top" style="height:160px">
<span>会议内容:</span>
<span>会议内容:</span>
...
@@ -39,5 +48,17 @@
...
@@ -39,5 +48,17 @@
<input id="END_TIME" name="FIELD_END_TIME" type="text" value="${is_row.END_TIME}" >
<input id="END_TIME" name="FIELD_END_TIME" type="text" value="${is_row.END_TIME}" >
</td>
</td>
</tr>
</tr>
<tr>
<td style="width: 20%;" class="tableStyleLable">
<span>
会议签到时间:
</span>
</td>
<td style="width: 80%">
<input class="easyui-datetimebox" required id="CHECK_START_TIME" name="FIELD_CHECK_START_TIME" value="${is_row.CHECK_START_TIME}" />
<span>到</span>
<input class="easyui-datetimebox" required id="CHECK_END_TIME" name="FIELD_CHECK_END_TIME" type="text" value="${is_row.CHECK_END_TIME}" >
</td>
</tr>
</table>
</table>
</form>
</form>
\ No newline at end of file
WebContent/jwapp/pages/vote/js/voteTab.js
View file @
8f9733c3
...
@@ -67,12 +67,7 @@ var is_column = [ [
...
@@ -67,12 +67,7 @@ var is_column = [ [
},
},
{
field
:
'REALLY_END_TIME'
,
title
:
'实际结束时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'REALLY_END_TIME'
,
title
:
'实际结束时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'START_TIME'
,
title
:
'开始时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'START_TIME'
,
title
:
'开始时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'END_TIME'
,
title
:
'结束时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'END_TIME'
,
title
:
'结束时间'
,
width
:
150
,
align
:
'center'
}
{
field
:
'CREATE_ID'
,
title
:
'创建人'
,
width
:
80
,
align
:
'center'
},
{
field
:
'CREATE_TIME'
,
title
:
'创建时间'
,
width
:
150
,
align
:
'center'
},
{
field
:
'UPDATE_ID'
,
title
:
'修改人'
,
width
:
80
,
align
:
'center'
},
{
field
:
'UPDATE_TIME'
,
title
:
'修改时间'
,
width
:
150
,
align
:
'center'
},
]
];
]
];
//列表加载完成回调
//列表加载完成回调
function
dataOnLoadSuccess
(){
function
dataOnLoadSuccess
(){
...
...
src_jwapp/com/jw/app/business/meeting/MeetingBusinessImpl.java
View file @
8f9733c3
package
com
.
jw
.
app
.
business
.
meeting
;
package
com
.
jw
.
app
.
business
.
meeting
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -13,6 +16,7 @@ import org.apache.ibatis.session.RowBounds;
...
@@ -13,6 +16,7 @@ import org.apache.ibatis.session.RowBounds;
import
com.jw.app.business.MeetingBusiness
;
import
com.jw.app.business.MeetingBusiness
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.QueryParamUtil
;
import
com.gaowj.business.util.SessionUtil
;
import
com.gaowj.business.util.SessionUtil
;
import
com.gaowj.standard.utils.CacheKit
;
import
com.gaowj.standard.utils.CacheKit
;
...
@@ -55,31 +59,44 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -55,31 +59,44 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
@Override
public
void
insert_check_in
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
public
void
insert_check_in
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
List
<
Map
<
String
,
Object
>>
items
=
meetingDAO
.
list_check_in
(
entity
);
List
<
Map
<
String
,
Object
>>
timeList
=
meetingDAO
.
list_checkTime
(
entity
);
if
(
items
.
size
()
==
0
)
{
Map
<
String
,
Object
>
timeMap
=
timeList
.
get
(
0
);
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
SimpleDateFormat
sf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
entity
.
put
(
"PARTICIPANTS_ID"
,
SessionUtil
.
getCode
());
try
{
entity
.
put
(
"PARTICIPANTS_NAME"
,
SessionUtil
.
getEmname
());
Date
startTime
=
sf
.
parse
((
String
)
timeMap
.
get
(
"CHECK_START_TIME"
));
entity
.
put
(
"CHECK_IN_TIME"
,
new
Date
());
Date
endTime
=
sf
.
parse
((
String
)
timeMap
.
get
(
"CHECK_END_TIME"
));
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
Date
thistime
=
new
Date
();
entity
.
put
(
"CREATE_TIME"
,
new
Date
());
if
(
thistime
.
after
(
startTime
)
&&
thistime
.
before
(
endTime
))
{
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
List
<
Map
<
String
,
Object
>>
items
=
meetingDAO
.
list_check_in
(
entity
);
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
if
(
items
.
size
()
==
0
)
{
// 动态传值插入
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
entity
.
put
(
"PARTICIPANTS_ID"
,
SessionUtil
.
getCode
());
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
entity
.
put
(
"PARTICIPANTS_NAME"
,
SessionUtil
.
getEmname
());
if
(
entity
.
keySet
()
!=
null
)
{
entity
.
put
(
"CHECK_IN_TIME"
,
new
Date
());
Set
<
String
>
key
=
entity
.
keySet
();
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
// 将map集合中的key和value 取出来分别放到list集合里
entity
.
put
(
"CREATE_TIME"
,
new
Date
());
for
(
String
str
:
key
)
{
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
infoList
.
add
(
entity
.
get
(
str
));
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
infoListKey
.
add
(
str
);
// 动态传值插入
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
if
(
entity
.
keySet
()
!=
null
)
{
Set
<
String
>
key
=
entity
.
keySet
();
// 将map集合中的key和value 取出来分别放到list集合里
for
(
String
str
:
key
)
{
infoList
.
add
(
entity
.
get
(
str
));
infoListKey
.
add
(
str
);
}
entity
.
put
(
"infoListKey"
,
infoListKey
);
entity
.
put
(
"infoList"
,
infoList
);
// 插入
meetingDAO
.
insert_check_in
(
entity
);
}
}
}
entity
.
put
(
"infoListKey"
,
infoListKey
);
entity
.
put
(
"infoList"
,
infoList
);
// 插入
meetingDAO
.
insert_check_in
(
entity
);
}
}
}
catch
(
ParseException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
}
}
...
@@ -173,10 +190,9 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -173,10 +190,9 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
List
<
Map
<
String
,
Object
>>
list_data
=
CacheKit
.
get
(
"ehcache10"
,
"meeting"
+
query
)
;
List
<
Map
<
String
,
Object
>>
list_data
=
null
;
if
(
list_data
==
null
||
list_data
.
size
()
==
0
)
{
if
(
list_data
==
null
||
list_data
.
size
()
==
0
)
{
list_data
=
meetingDAO
.
list_meeting
(
query
);
list_data
=
meetingDAO
.
list_meeting
(
query
);
CacheKit
.
put
(
"ehcache10"
,
"kqmk"
+
query
,
list_data
);
}
}
return
list_data
;
return
list_data
;
}
}
...
...
src_jwapp/com/jw/app/business/meeting/meetingDAO.java
View file @
8f9733c3
...
@@ -30,5 +30,7 @@ public interface meetingDAO {
...
@@ -30,5 +30,7 @@ public interface meetingDAO {
List
<
Map
<
String
,
Object
>>
list_check_in
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_check_in
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_check_in
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_check_in
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_checkTime
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
}
src_jwapp/com/jw/app/business/meeting/meetingDAO.xml
View file @
8f9733c3
...
@@ -166,6 +166,12 @@
...
@@ -166,6 +166,12 @@
) f
) f
<include
refid=
"WHERE"
></include>
<include
refid=
"WHERE"
></include>
</select>
</select>
<select
id=
"list_checkTime"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
select *
from MEETING_MANAGE
where UUID=#{MEETING_ID}
</select>
<select
id=
"list_check_in"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<select
id=
"list_check_in"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
select check_in.*,info.real_name,unit.name,info.telephone
select check_in.*,info.real_name,unit.name,info.telephone
...
...
src_jwapp/com/jw/app/log/action/actAction.java
View file @
8f9733c3
...
@@ -13,6 +13,7 @@ import com.gaowj.business.comp.BusinessManager;
...
@@ -13,6 +13,7 @@ import com.gaowj.business.comp.BusinessManager;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.QueryParamUtil
;
import
com.gaowj.business.util.QueryParamUtil
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.RequestUtils
;
import
com.gaowj.business.util.SessionUtil
;
import
com.gaowj.business.util.Status
;
import
com.gaowj.business.util.Status
;
import
com.gaowj.standard.utils.CacheKit
;
import
com.gaowj.standard.utils.CacheKit
;
...
@@ -164,13 +165,16 @@ public class actAction extends BasicAction {
...
@@ -164,13 +165,16 @@ public class actAction extends BasicAction {
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
String
deletekey
=
(
String
)
entity
.
get
(
"CODE"
);
String
deletekey
=
(
String
)
entity
.
get
(
"CODE"
);
List
<
String
>
ListKey
=
QueryParamUtil
.
StringToList
(
deletekey
);
List
<
String
>
ListKey
=
QueryParamUtil
.
StringToList
(
deletekey
);
String
thiscode
=
(
String
)
entity
.
get
(
"THISCODE"
);
String
sessioncode
=
SessionUtil
.
getCode
();
try
{
try
{
business
.
delete_reply
(
ListKey
);
if
(
thiscode
==
null
||
thiscode
.
equals
(
sessioncode
))
{
// 操作日志
business
.
delete_reply
(
ListKey
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
// 操作日志
sysbusiness
.
insert_logBusiness
(
"deleteLog"
,
""
+
ListKey
,
"删除测试数据"
,
deletekey
,
"多个流水号"
,
"logdemo1"
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"删除成功"
));
sysbusiness
.
insert_logBusiness
(
"deleteLog"
,
""
+
ListKey
,
"删除测试数据"
,
deletekey
,
"多个流水号"
,
"logdemo1"
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"删除成功"
));
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"删除失败"
));
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"删除失败"
));
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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