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
c32feafd
Commit
c32feafd
authored
Sep 06, 2018
by
朱天成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志
parent
5a8be4b2
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
663 additions
and
571 deletions
+663
-571
logTab.js
WebContent/jwapp/pages/log/js/logTab.js
+107
-49
replyTab.js
WebContent/jwapp/pages/log/js/replyTab.js
+27
-12
check_inTab.js
WebContent/jwapp/pages/meeting/js/check_inTab.js
+1
-1
meetingTab.js
WebContent/jwapp/pages/meeting/js/meetingTab.js
+90
-99
endedVoteTab.js
WebContent/jwapp/pages/vote/js/endedVoteTab.js
+2
-2
ongoingVoteTab.js
WebContent/jwapp/pages/vote/js/ongoingVoteTab.js
+46
-45
voteTab.js
WebContent/jwapp/pages/vote/js/voteTab.js
+48
-48
LogBusiness.java
src_jwapp/com/jw/app/business/LogBusiness.java
+28
-11
MeetingBusiness.java
src_jwapp/com/jw/app/business/MeetingBusiness.java
+19
-8
VoteBusiness.java
src_jwapp/com/jw/app/business/VoteBusiness.java
+4
-32
LogBusinessImpl.java
src_jwapp/com/jw/app/business/log/LogBusinessImpl.java
+31
-12
logDAO.java
src_jwapp/com/jw/app/business/log/logDAO.java
+1
-1
logDAO.xml
src_jwapp/com/jw/app/business/log/logDAO.xml
+12
-10
MeetingBusinessImpl.java
...wapp/com/jw/app/business/meeting/MeetingBusinessImpl.java
+23
-21
meetingDAO.java
src_jwapp/com/jw/app/business/meeting/meetingDAO.java
+9
-9
meetingDAO.xml
src_jwapp/com/jw/app/business/meeting/meetingDAO.xml
+20
-9
VoteBusinessImpl.java
src_jwapp/com/jw/app/business/vote/VoteBusinessImpl.java
+13
-53
voteDAO.java
src_jwapp/com/jw/app/business/vote/voteDAO.java
+10
-11
voteDAO.xml
src_jwapp/com/jw/app/business/vote/voteDAO.xml
+9
-4
actAction.java
src_jwapp/com/jw/app/log/action/actAction.java
+1
-2
dataAction.java
src_jwapp/com/jw/app/log/action/dataAction.java
+49
-31
viewAction.java
src_jwapp/com/jw/app/log/action/viewAction.java
+0
-1
actAction.java
src_jwapp/com/jw/app/meeting/action/actAction.java
+0
-0
dataAction.java
src_jwapp/com/jw/app/meeting/action/dataAction.java
+37
-32
viewAction.java
src_jwapp/com/jw/app/meeting/action/viewAction.java
+0
-1
actAction.java
src_jwapp/com/jw/app/vote/action/actAction.java
+25
-22
dataAction.java
src_jwapp/com/jw/app/vote/action/dataAction.java
+42
-35
viewAction.java
src_jwapp/com/jw/app/vote/action/viewAction.java
+9
-10
No files found.
WebContent/jwapp/pages/log/js/logTab.js
View file @
c32feafd
/**
/**
* 序号:
1
* 序号:
* 功能:定义分页(EasyUI)
* 功能:定义分页(EasyUI)
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -29,20 +29,9 @@ var ls_module_id='2';
...
@@ -29,20 +29,9 @@ var ls_module_id='2';
var
ls_ywlx
=
'YBYW'
;
var
ls_ywlx
=
'YBYW'
;
/****/
/****/
/**
* 序号:2
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
/**
/**
* 序号:
3
* 序号:
* 功能:构建主页面列表
* 功能:构建主页面列表
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -52,7 +41,7 @@ var ls_ywlx = 'YBYW';
...
@@ -52,7 +41,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"
会议签到管理 <font color='#993300'></font>
"
;
var
ls_title
=
"
日志管理
"
;
var
is_column
=
[
[
var
is_column
=
[
[
{
field
:
'LOG_TITLE'
,
title
:
'日志标题'
,
width
:
100
,
align
:
'center'
},
{
field
:
'LOG_TITLE'
,
title
:
'日志标题'
,
width
:
100
,
align
:
'center'
},
{
field
:
'LOG_CONTENT'
,
title
:
'日志内容'
,
width
:
300
,
align
:
'center'
},
{
field
:
'LOG_CONTENT'
,
title
:
'日志内容'
,
width
:
300
,
align
:
'center'
},
...
@@ -75,7 +64,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/logData_list",queryData,is_colum
...
@@ -75,7 +64,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/logData_list",queryData,is_colum
/****/
/****/
/**
/**
* 序号:
4
* 序号:
* 功能:设置主页面操作列菜单
* 功能:设置主页面操作列菜单
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -110,7 +99,7 @@ function getOptionMenuCount(){
...
@@ -110,7 +99,7 @@ function getOptionMenuCount(){
/****/
/****/
/**
/**
* 序号:
5
* 序号:
* 功能:新增修改弹出
* 功能:新增修改弹出
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -156,6 +145,7 @@ function updateData(is_entity){
...
@@ -156,6 +145,7 @@ function updateData(is_entity){
return
v_result
;
return
v_result
;
}
}
//回复弹出框格式
function
openreplyRow
(
editUrl
,
is_row
,
is_title
,
is_max
,
is_width
,
is_height
,
is_left
,
is_top
){
function
openreplyRow
(
editUrl
,
is_row
,
is_title
,
is_max
,
is_width
,
is_height
,
is_left
,
is_top
){
$
(
'#detail'
).
dialog
(
{
$
(
'#detail'
).
dialog
(
{
title
:
is_title
,
title
:
is_title
,
...
@@ -188,6 +178,28 @@ function openreplyRow(editUrl,is_row,is_title,is_max,is_width,is_height,is_left,
...
@@ -188,6 +178,28 @@ function openreplyRow(editUrl,is_row,is_title,is_max,is_width,is_height,is_left,
});
});
}
}
////定义grid列表
//var ls_title="日志管理";
//var is_column = [ [
// {field : 'LOG_TITLE',title : '日志标题',width : 100,align : 'center'},
// {field : 'LOG_CONTENT',title : '日志内容',width : 300,align : 'center'},
// {field : 'NEW_CREATE',title : '创建人',width : 80,align : 'center'},
// {field : 'CREATE_TIME',title : '创建时间',width : 150,align : 'center'},
// {field : 'NEW_UPDATE',title : '修改人',width : 80,align : 'center'},
// {field : 'UPDATE_TIME',title : '修改时间',width : 150,align : 'center'}
// ] ];
////列表加载完成回调
//function dataOnLoadSuccess(){
//
//}
////设置颜色和每行高度
//function rowstyler(index,row){
//
//}
////展示列表
//datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/logData_list",queryData,is_column,60,80);
/**
/**
* 序号:
* 序号:
* 功能:回复
* 功能:回复
...
@@ -209,28 +221,32 @@ function replyRow(index) {
...
@@ -209,28 +221,32 @@ function replyRow(index) {
//加载回复子页面成功后的回调
//加载回复子页面成功后的回调
function
replyUrlOnloadCallback
(
is_row
){
function
replyUrlOnloadCallback
(
is_row
){
var
listItem
=
logModule
.
logDataAction
.
listItem
({
// var listItem=logModule.logDataAction.listItem({
FIELD_LOG_ID
:
is_row
.
UUID
// FIELD_LOG_ID:is_row.UUID
}).
listItems
;
// }).rowSet;
for
(
var
i
=
0
;
i
<
listItem
.
length
;
i
++
){
// for(var i=0;i<listItem.length;i++){
add_log_item
(
listItem
[
i
].
REPLY_NAME
,
listItem
[
i
].
REPLY_CONTENT
,
listItem
[
i
].
UUID
,
listItem
[
i
].
CODE
);
// add_log_item(listItem[i].REPLY_NAME,listItem[i].REPLY_CONTENT,listItem[i].UUID,listItem[i].CODE);
}
// }
datagridReply
(
"logItemInputForm"
,
gaowj
.
WEB_APP_NAME
+
"/logData_listItem"
,
queryData
,
reply_column
);
}
}
//回复保存
//回复保存
function
replySaveRow
(){
function
replySaveRow
(){
if
(
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()
==
''
){
$
.
messager
.
alert
(
'提示'
,
'请在回复框输入内容'
)
}
else
{
var
items
=
{
FIELD_LOG_ID
:
$
(
"input[name=FIELD_UUID]"
).
val
(),
var
items
=
{
FIELD_LOG_ID
:
$
(
"input[name=FIELD_UUID]"
).
val
(),
FIELD_REPLY_CONTENT
:
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()}
FIELD_REPLY_CONTENT
:
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()}
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
if
(
v_result
.
NAME
==
'999'
){
if
(
v_result
.
NAME
==
'999'
){
add_log_item
(
v_result
.
REPLY_NAME
,
v_result
.
REPLY_CONTENT
,
v_result
.
UUID
,
v_result
.
CODE
);
add_log_item
(
items
.
REPLY_NAME
,
items
.
REPLY_CONTENT
,
items
.
UUID
,
items
.
CODE
);
$
(
"#USER_REPLY_CONTENT"
).
textbox
(
'setValue'
,
''
)
}
}
}
}
}
/**
/**
* 序号:
6
* 序号:
* 功能:单个删除
* 功能:单个删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -259,7 +275,7 @@ function deleteRow(index){
...
@@ -259,7 +275,7 @@ function deleteRow(index){
/****/
/****/
/**
/**
* 序号:
7
* 序号:
* 功能:批量删除
* 功能:批量删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -294,7 +310,43 @@ function deleteBatchRow(){
...
@@ -294,7 +310,43 @@ function deleteBatchRow(){
/****/
/****/
/**
/**
* 序号:8
* 序号:
* 功能:回复删除
* 参数:
* 说明:
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function
deleteItemRow
(
handler
){
code
=
$
(
handler
).
parent
().
next
().
find
(
'input'
).
val
();
console
.
log
(
code
)
if
(
code
==
''
||
code
==
null
){
return
}
else
{
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
if
(
r
)
{
var
v_query
=
{};
v_query
.
FIELD_CODE
=
code
;
var
v_result
=
logModule
.
logActAction
.
deleteReply
(
v_query
);
$
(
handler
).
parent
().
parent
().
remove
();
if
(
v_result
.
NAME
==
'999'
){
$
(
handler
).
parent
().
parent
().
remove
();
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
}
}
});
}
}
/****/
/**
* 序号:
* 功能:刷新
* 功能:刷新
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -310,7 +362,7 @@ function refreshRow(){
...
@@ -310,7 +362,7 @@ function refreshRow(){
/****/
/****/
/**
/**
* 序号:
9
* 序号:
* 功能:查询
* 功能:查询
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -365,7 +417,7 @@ function add_log_item(index,content,uuid,code){
...
@@ -365,7 +417,7 @@ function add_log_item(index,content,uuid,code){
log_item_index
.
append
(
'<input class="easyui-validatebox easyui-textbox" readonly="readonly" name="log_item_index" value="'
+
index
+
'" />'
);
log_item_index
.
append
(
'<input class="easyui-validatebox easyui-textbox" readonly="readonly" name="log_item_index" value="'
+
index
+
'" />'
);
log_item_info
.
append
(
'<input class="easyui-validatebox easyui-textbox" readonly="readonly" name="log_item_info" style="width: 400px" value="'
+
content
+
'"/>'
);
log_item_info
.
append
(
'<input class="easyui-validatebox easyui-textbox" readonly="readonly" name="log_item_info" style="width: 400px" value="'
+
content
+
'"/>'
);
log_item_delete
.
append
(
'<a name="log_item_delete"
class="log_item_delete"
onclick="javascript:deleteItemRow(this)">删除</a>'
);
log_item_delete
.
append
(
'<a name="log_item_delete" onclick="javascript:deleteItemRow(this)">删除</a>'
);
log_item_uuid
.
append
(
'<input type="hidden" name="log_item_uuid" value="'
+
uuid
+
'" />'
);
log_item_uuid
.
append
(
'<input type="hidden" name="log_item_uuid" value="'
+
uuid
+
'" />'
);
log_item_code
.
append
(
'<input type="hidden" name="log_item_code" value="'
+
code
+
'" />'
);
log_item_code
.
append
(
'<input type="hidden" name="log_item_code" value="'
+
code
+
'" />'
);
...
@@ -373,27 +425,33 @@ function add_log_item(index,content,uuid,code){
...
@@ -373,27 +425,33 @@ function add_log_item(index,content,uuid,code){
}
}
/**
/**
* 序号:
* 回复
* 功能:回复删除
* 2016-12-01
* 参数:
* 高伟杰
* 说明:
**/
* 作者:高伟杰
function
datagridReply
(
is_view
,
is_url
,
is_query
,
is_column
){
* 时间:2016-01-22
$
(
'#'
+
is_view
).
datagrid
({
* 单位:杰夫兄弟智慧科技有限公司
iconCls
:
$
.
getJwWindowPic
(),
* 备注:需更改
url
:
is_url
,
**/
queryParams
:
is_query
,
//查询参数
function
deleteItemRow
(
handler
){
rownumbers
:
true
,
//显示索引号
code
=
$
(
handler
).
parent
().
next
().
find
(
'input'
).
val
();
singleSelect
:
false
,
//是否多选
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
fitColumns
:
false
,
//是否撑满
if
(
r
)
{
autoRowHeight
:
false
,
//设定高度
var
v_query
=
{};
rowStyler
:
function
(
index
,
row
){
return
rowstyler
(
index
,
row
);},
v_query
.
FIELD_CODE
=
code
;
pagination
:
true
,
//分页显示
$
(
handler
).
parent
().
parent
().
remove
();
pageSize
:
rows
,
//显示行数
var
v_result
=
logModule
.
logActAction
.
deleteReply
(
v_query
);
pageList
:
listPageSize
,
//条数选择
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
striped
:
true
,
//是否隔行显示
remoteSort
:
false
,
//是否从服务器排序
columns
:
is_column
,
onLoadSuccess
:
function
()
{
dataOnLoadSuccess
();
}
}
});
});
}
}
/****/
var
reply_column
=
[
[
{
field
:
'REPLY_NAME'
,
width
:
100
,
align
:
'center'
},
{
field
:
'REPLY_CONTENT'
,
width
:
300
,
align
:
'center'
},
]
];
WebContent/jwapp/pages/log/js/replyTab.js
View file @
c32feafd
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"
会议签到管理 <font color='#993300'></font>
"
;
var
ls_title
=
"
日志管理
"
;
var
is_column
=
[
[
var
is_column
=
[
[
{
field
:
'LOG_TITLE'
,
title
:
'日志标题'
,
width
:
100
,
align
:
'center'
},
{
field
:
'LOG_TITLE'
,
title
:
'日志标题'
,
width
:
100
,
align
:
'center'
},
{
field
:
'LOG_CONTENT'
,
title
:
'日志内容'
,
width
:
300
,
align
:
'center'
},
{
field
:
'LOG_CONTENT'
,
title
:
'日志内容'
,
width
:
300
,
align
:
'center'
},
...
@@ -94,16 +94,6 @@ function updateUrlOnloadCallback(is_row){
...
@@ -94,16 +94,6 @@ function updateUrlOnloadCallback(is_row){
for
(
var
i
=
0
;
i
<
listItem
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
listItem
.
length
;
i
++
){
add_log_item
(
listItem
[
i
].
REPLY_NAME
,
listItem
[
i
].
REPLY_CONTENT
,
listItem
[
i
].
UUID
,
listItem
[
i
].
CODE
);
add_log_item
(
listItem
[
i
].
REPLY_NAME
,
listItem
[
i
].
REPLY_CONTENT
,
listItem
[
i
].
UUID
,
listItem
[
i
].
CODE
);
}
}
$
(
'.log_item_delete'
).
each
(
function
(){
if
(
typeof
$
(
this
).
next
().
next
().
find
(
'input'
).
val
()
==
'undefined'
){
}
else
{
if
(
$
(
this
).
next
().
next
().
find
(
'input'
).
val
()
==
gaowj
.
SEESION_CODE
){
}
else
{
$
(
this
).
hide
();
}
}
});
}
}
//保存
//保存
...
@@ -115,12 +105,16 @@ function updateData(is_entity){
...
@@ -115,12 +105,16 @@ function updateData(is_entity){
}
}
//回复保存
//回复保存
function
replySaveRow
(){
function
replySaveRow
(){
if
(
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()
==
''
){
$
.
messager
.
alert
(
'提示'
,
'请在回复框输入内容'
)
}
else
{
var
items
=
{
FIELD_LOG_ID
:
$
(
"input[name=FIELD_UUID]"
).
val
(),
var
items
=
{
FIELD_LOG_ID
:
$
(
"input[name=FIELD_UUID]"
).
val
(),
FIELD_REPLY_CONTENT
:
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()}
FIELD_REPLY_CONTENT
:
$
(
"input[name=FIELD_USER_REPLY_CONTENT]"
).
val
()}
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
var
v_result
=
logModule
.
logActAction
.
insertReply
(
items
);
if
(
v_result
.
NAME
==
'999'
){
if
(
v_result
.
NAME
==
'999'
){
add_log_item
(
items
.
REPLY_NAME
,
items
.
REPLY_CONTENT
,
items
.
UUID
,
items
.
CODE
);
add_log_item
(
items
.
REPLY_NAME
,
items
.
REPLY_CONTENT
,
items
.
UUID
,
items
.
CODE
);
}
}
}
}
}
/**
/**
...
@@ -200,6 +194,16 @@ function add_log_item(index,content,uuid,code){
...
@@ -200,6 +194,16 @@ function add_log_item(index,content,uuid,code){
log_item_code
.
append
(
'<input type="hidden" name="log_item_code" value="'
+
code
+
'" />'
);
log_item_code
.
append
(
'<input type="hidden" name="log_item_code" value="'
+
code
+
'" />'
);
$
.
parser
.
parse
(
'.log_item_one'
);
$
.
parser
.
parse
(
'.log_item_one'
);
$
(
'.log_item_delete'
).
each
(
function
(){
if
(
typeof
$
(
this
).
next
().
next
().
find
(
'input'
).
val
()
==
'undefined'
){
}
else
{
if
(
$
(
this
).
next
().
next
().
find
(
'input'
).
val
()
==
gaowj
.
SEESION_CODE
){
}
else
{
$
(
this
).
hide
();
}
}
});
}
}
/**
/**
...
@@ -213,14 +217,25 @@ function add_log_item(index,content,uuid,code){
...
@@ -213,14 +217,25 @@ function add_log_item(index,content,uuid,code){
* 备注:需更改
* 备注:需更改
**/
**/
function
deleteItemRow
(
handler
){
function
deleteItemRow
(
handler
){
code
=
$
(
handler
).
parent
().
next
().
find
(
'input'
).
val
();
code
=
$
(
'.log_item_delete'
).
parent
().
next
().
find
(
'input'
).
val
();
if
(
code
==
''
||
code
==
null
){
return
}
else
{
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
$
.
messager
.
confirm
(
'提示'
,
'确定删除?'
,
function
(
r
)
{
if
(
r
)
{
if
(
r
)
{
var
v_query
=
{};
var
v_query
=
{};
v_query
.
FIELD_CODE
=
code
;
v_query
.
FIELD_CODE
=
code
;
var
v_result
=
logModule
.
logActAction
.
deleteReply
(
v_query
);
var
v_result
=
logModule
.
logActAction
.
deleteReply
(
v_query
);
if
(
v_result
.
NAME
==
'999'
){
$
(
'.log_item_delete'
).
parent
().
parent
().
remove
();
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
}
else
{
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
$
.
messager
.
alert
(
'提示'
,
v_result
.
VALUE
);
}
}
}
});
});
}
}
}
/****/
/****/
WebContent/jwapp/pages/meeting/js/check_inTab.js
View file @
c32feafd
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"会议签到管理
<font color='#993300'></font>
"
;
var
ls_title
=
"会议签到管理"
;
var
is_column
=
[
[
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'
},
...
...
WebContent/jwapp/pages/meeting/js/meetingTab.js
View file @
c32feafd
/**
/**
* 序号:
1
* 序号:
* 功能:定义分页(EasyUI)
* 功能:定义分页(EasyUI)
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -30,19 +30,7 @@ var ls_ywlx = 'YBYW';
...
@@ -30,19 +30,7 @@ var ls_ywlx = 'YBYW';
/****/
/****/
/**
/**
* 序号:2
* 序号:
* 功能:构建下拉框内容
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 作者:高伟杰
* 时间:2016-01-22
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
/**
* 序号:3
* 功能:构建主页面列表
* 功能:构建主页面列表
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -52,7 +40,7 @@ var ls_ywlx = 'YBYW';
...
@@ -52,7 +40,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"会议签到管理
<font color='#993300'></font>
"
;
var
ls_title
=
"会议签到管理"
;
var
is_column
=
[
[
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'
},
...
@@ -78,7 +66,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/meetingData_list",queryData,is_c
...
@@ -78,7 +66,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/meetingData_list",queryData,is_c
/****/
/****/
/**
/**
* 序号:
4
* 序号:
* 功能:设置主页面操作列菜单
* 功能:设置主页面操作列菜单
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -113,7 +101,7 @@ function getOptionMenuCount(){
...
@@ -113,7 +101,7 @@ function getOptionMenuCount(){
/****/
/****/
/**
/**
* 序号:
5
* 序号:
* 功能:新增修改弹出
* 功能:新增修改弹出
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -132,61 +120,6 @@ function addRow(){
...
@@ -132,61 +120,6 @@ function addRow(){
function
addUrlOnloadCallback
(
is_row
){
function
addUrlOnloadCallback
(
is_row
){
initDateBox
();
initDateBox
();
}
}
function
addZero
(
d
){
if
(
d
<
10
){
return
"0"
+
d
;
}
return
d
;
}
function
initDateBox
(){
$
(
"#START_TIME"
).
datetimebox
({
required
:
true
,
formatter
:
function
(
date
){
var
y
=
date
.
getFullYear
();
var
m
=
date
.
getMonth
()
+
1
;
var
d
=
date
.
getDate
();
var
h
=
date
.
getHours
();
var
min
=
date
.
getMinutes
();
var
s
=
date
.
getSeconds
();
var
nowDate
=
new
Date
();
if
(
date
.
getTime
()
<
nowDate
.
getTime
()){
h
=
nowDate
.
getHours
();
min
=
nowDate
.
getMinutes
();
s
=
nowDate
.
getSeconds
();
}
return
y
+
'-'
+
addZero
(
m
)
+
'-'
+
addZero
(
d
)
+
' '
+
addZero
(
h
)
+
':'
+
addZero
(
min
)
+
':'
+
addZero
(
s
);
}
});
$
(
"#END_TIME"
).
datetimebox
({
required
:
true
,
formatter
:
function
(
date
){
var
y
=
date
.
getFullYear
();
var
m
=
date
.
getMonth
()
+
1
;
var
d
=
date
.
getDate
();
var
h
=
date
.
getHours
();
var
min
=
date
.
getMinutes
();
var
s
=
date
.
getSeconds
();
var
nowDate
=
new
Date
();
if
(
date
.
getTime
()
<
nowDate
.
getTime
()){
h
=
nowDate
.
getHours
();
min
=
nowDate
.
getMinutes
();
s
=
nowDate
.
getSeconds
();
}
return
y
+
'-'
+
addZero
(
m
)
+
'-'
+
addZero
(
d
)
+
' '
+
addZero
(
h
)
+
':'
+
addZero
(
min
)
+
':'
+
addZero
(
s
);
}
});
$
(
'#START_TIME'
).
datetimebox
(
'calendar'
).
calendar
({
validator
:
function
(
date
){
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
}
});
$
(
'#END_TIME'
).
datetimebox
(
'calendar'
).
calendar
({
validator
:
function
(
date
){
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
}
});
}
//保存
//保存
function
insertData
(
is_entity
){
function
insertData
(
is_entity
){
is_entity
.
FIELD_START_TIME
=
strToDateObj
(
is_entity
.
FIELD_START_TIME
);
is_entity
.
FIELD_START_TIME
=
strToDateObj
(
is_entity
.
FIELD_START_TIME
);
...
@@ -219,8 +152,37 @@ function updateData(is_entity){
...
@@ -219,8 +152,37 @@ function updateData(is_entity){
return
v_result
;
return
v_result
;
}
}
/****/
//签到
function
check_userRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'checkin'
;
openLookRow
(
"meetingView_check_userList"
,
is_row
[
0
],
"签到人员"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
//加载签到子页面成功后的回调
function
checkinUrlOnloadCallback
(
is_row
){
var
listcheck
=
meetingModule
.
meetingDataAction
.
listCheck_in
({
FIELD_MEETING_ID
:
is_row
.
UUID
}).
listchecks
;
for
(
var
i
=
0
;
i
<
listcheck
.
length
;
i
++
){
$
(
'#check_in_list'
).
datagrid
(
'insertRow'
,
{
row
:
{
REAL_NAME
:
listcheck
[
i
].
REAL_NAME
,
CREATE_TIME
:
listcheck
[
i
].
CHECK_IN_TIME
,
NAME
:
listcheck
[
i
].
NAME
,
TELEPHONE
:
listcheck
[
i
].
TELEPHONE
}
});
}
}
/****/
//签到弹出框格式
function
openLookRow
(
editUrl
,
is_row
,
is_title
,
is_max
,
is_width
,
is_height
,
is_left
,
is_top
){
function
openLookRow
(
editUrl
,
is_row
,
is_title
,
is_max
,
is_width
,
is_height
,
is_left
,
is_top
){
$
(
'#detail'
).
dialog
(
{
$
(
'#detail'
).
dialog
(
{
title
:
is_title
,
title
:
is_title
,
...
@@ -253,36 +215,65 @@ function openLookRow(editUrl,is_row,is_title,is_max,is_width,is_height,is_left,i
...
@@ -253,36 +215,65 @@ function openLookRow(editUrl,is_row,is_title,is_max,is_width,is_height,is_left,i
});
});
}
}
function
check_userRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'checkin'
;
openLookRow
(
"meetingView_check_userList"
,
is_row
[
0
],
"签到人员"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
//加载签到子页面成功后的回调
function
addZero
(
d
){
function
checkinUrlOnloadCallback
(
is_row
){
if
(
d
<
10
){
var
listcheck
=
meetingModule
.
meetingDataAction
.
listCheck_in
({
return
"0"
+
d
;
FIELD_MEETING_ID
:
is_row
.
UUID
}
}).
listchecks
;
return
d
;
for
(
var
i
=
0
;
i
<
listcheck
.
length
;
i
++
){
}
//限制时间
$
(
'#check_in_list'
).
datagrid
(
'insertRow'
,
{
function
initDateBox
(){
row
:
{
$
(
"#START_TIME"
).
datetimebox
({
REAL_NAME
:
listcheck
[
i
].
REAL_NAME
,
required
:
true
,
CREATE_TIME
:
listcheck
[
i
].
CHECK_IN_TIME
,
formatter
:
function
(
date
){
NAME
:
listcheck
[
i
].
NAME
,
var
y
=
date
.
getFullYear
();
TELEPHONE
:
listcheck
[
i
].
TELEPHONE
var
m
=
date
.
getMonth
()
+
1
;
var
d
=
date
.
getDate
();
var
h
=
date
.
getHours
();
var
min
=
date
.
getMinutes
();
var
s
=
date
.
getSeconds
();
var
nowDate
=
new
Date
();
if
(
date
.
getTime
()
<
nowDate
.
getTime
()){
h
=
nowDate
.
getHours
();
min
=
nowDate
.
getMinutes
();
s
=
nowDate
.
getSeconds
();
}
return
y
+
'-'
+
addZero
(
m
)
+
'-'
+
addZero
(
d
)
+
' '
+
addZero
(
h
)
+
':'
+
addZero
(
min
)
+
':'
+
addZero
(
s
);
}
}
});
});
$
(
"#END_TIME"
).
datetimebox
({
required
:
true
,
formatter
:
function
(
date
){
var
y
=
date
.
getFullYear
();
var
m
=
date
.
getMonth
()
+
1
;
var
d
=
date
.
getDate
();
var
h
=
date
.
getHours
();
var
min
=
date
.
getMinutes
();
var
s
=
date
.
getSeconds
();
var
nowDate
=
new
Date
();
if
(
date
.
getTime
()
<
nowDate
.
getTime
()){
h
=
nowDate
.
getHours
();
min
=
nowDate
.
getMinutes
();
s
=
nowDate
.
getSeconds
();
}
}
return
y
+
'-'
+
addZero
(
m
)
+
'-'
+
addZero
(
d
)
+
' '
+
addZero
(
h
)
+
':'
+
addZero
(
min
)
+
':'
+
addZero
(
s
);
}
});
$
(
'#START_TIME'
).
datetimebox
(
'calendar'
).
calendar
({
validator
:
function
(
date
){
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
}
});
$
(
'#END_TIME'
).
datetimebox
(
'calendar'
).
calendar
({
validator
:
function
(
date
){
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
}
});
}
}
/**
/**
* 序号:
6
* 序号:
* 功能:单个删除
* 功能:单个删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -311,7 +302,7 @@ function deleteRow(index){
...
@@ -311,7 +302,7 @@ function deleteRow(index){
/****/
/****/
/**
/**
* 序号:
7
* 序号:
* 功能:批量删除
* 功能:批量删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -346,7 +337,7 @@ function deleteBatchRow(){
...
@@ -346,7 +337,7 @@ function deleteBatchRow(){
/****/
/****/
/**
/**
* 序号:
8
* 序号:
* 功能:刷新
* 功能:刷新
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -362,7 +353,7 @@ function refreshRow(){
...
@@ -362,7 +353,7 @@ function refreshRow(){
/****/
/****/
/**
/**
* 序号:
9
* 序号:
* 功能:查询
* 功能:查询
* 参数:
* 参数:
* 说明:
* 说明:
...
...
WebContent/jwapp/pages/vote/js/endedVoteTab.js
View file @
c32feafd
...
@@ -40,7 +40,7 @@ var ls_ywlx = 'YBYW';
...
@@ -40,7 +40,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"投票管理功能
<font color='#993300'></font>
"
;
var
ls_title
=
"投票管理功能"
;
var
is_column
=
[
[
var
is_column
=
[
[
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'opt'
,
title
:
'操作'
,
width
:
150
,
align
:
'center'
,
{
field
:
'opt'
,
title
:
'操作'
,
width
:
150
,
align
:
'center'
,
...
@@ -94,7 +94,7 @@ function getOptionMenuCount(){
...
@@ -94,7 +94,7 @@ function getOptionMenuCount(){
/**
/**
* 序号:
* 序号:
* 功能:
新增修改
弹出
* 功能:
查找
弹出
* 参数:
* 参数:
* 说明:
* 说明:
* 作者:朱天成
* 作者:朱天成
...
...
WebContent/jwapp/pages/vote/js/ongoingVoteTab.js
View file @
c32feafd
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
...
@@ -41,7 +41,7 @@ var ls_ywlx = 'YBYW';
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"投票管理功能
<font color='#993300'></font>
"
;
var
ls_title
=
"投票管理功能"
;
var
is_column
=
[
[
var
is_column
=
[
[
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'VOTE_COUNT'
,
title
:
'状态'
,
width
:
150
,
align
:
'center'
,
{
field
:
'VOTE_COUNT'
,
title
:
'状态'
,
width
:
150
,
align
:
'center'
,
...
@@ -102,7 +102,7 @@ function getOptionMenuCount(){
...
@@ -102,7 +102,7 @@ function getOptionMenuCount(){
/**
/**
* 序号:
* 序号:
* 功能:新增
修改
弹出
* 功能:新增
查找
弹出
* 参数:
* 参数:
* 说明:
* 说明:
* 作者:朱天成
* 作者:朱天成
...
@@ -121,6 +121,50 @@ function editRow(index) {
...
@@ -121,6 +121,50 @@ function editRow(index) {
openEditRow
(
"voteView_userVoteTabDetail"
,
is_row
[
0
],
"投票"
,
true
,
0.65
,
0.95
,
0
,
0
);
openEditRow
(
"voteView_userVoteTabDetail"
,
is_row
[
0
],
"投票"
,
true
,
0.65
,
0.95
,
0
,
0
);
}
}
//加载投票子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
var
listItem
=
voteModule
.
voteDataAction
.
listItem
({
FIELD_MANAGE_ID
:
is_row
.
UUID
}).
listItems
;
for
(
var
i
=
0
;
i
<
listItem
.
length
;
i
++
){
add_vote_item
(
listItem
[
i
].
INDEX_NAME
,
listItem
[
i
].
CONTENT
,
listItem
[
i
].
UUID
);
}
}
//保存
function
updateData
(
is_entity
){
var
uuids
=
''
;
var
i
=
0
;
$
(
".vote_item_list :checkbox:checked"
).
each
(
function
(
index
){
uuids
+=
','
+
$
(
this
).
val
();
i
++
;
});
var
min
=
$
(
"input[name=FIELD_MIN_COUNT]"
).
val
();
var
max
=
$
(
"input[name=FIELD_MAX_COUNT]"
).
val
();
var
flag
=
$
(
"input[name=FIELD_STATUS_FLAG]"
).
val
();
//判断用户选择的选项是否在上下限之间,如果不在,则提示用户,不进行提交操作
if
(
min
==
max
&&
i
!=
min
){
$
.
messager
.
alert
(
"必须选择"
+
max
+
"个选项"
);
return
;
}
else
if
(
i
<
min
||
i
>
max
){
$
.
messager
.
alert
(
"请选择"
+
min
+
"到"
+
max
+
"个选项"
);
return
;
}
if
(
uuids
.
length
>
0
){
uuids
=
uuids
.
substring
(
1
);
}
is_entity
.
FIELD_UUIDS
=
uuids
;
is_entity
.
FIELD_FLAG
=
flag
;
v_result
=
voteModule
.
voteActAction
.
insertUserVote
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
}
//查找
function
lookfor
(
index
){
function
lookfor
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
...
@@ -184,49 +228,6 @@ function lookforUrlOnloadCallback(is_row,index){
...
@@ -184,49 +228,6 @@ function lookforUrlOnloadCallback(is_row,index){
}
}
}
}
//加载投票子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
var
listItem
=
voteModule
.
voteDataAction
.
listItem
({
FIELD_MANAGE_ID
:
is_row
.
UUID
}).
listItems
;
for
(
var
i
=
0
;
i
<
listItem
.
length
;
i
++
){
add_vote_item
(
listItem
[
i
].
INDEX_NAME
,
listItem
[
i
].
CONTENT
,
listItem
[
i
].
UUID
);
}
}
//保存
function
updateData
(
is_entity
){
var
uuids
=
''
;
var
i
=
0
;
$
(
".vote_item_list :checkbox:checked"
).
each
(
function
(
index
){
uuids
+=
','
+
$
(
this
).
val
();
i
++
;
});
var
min
=
$
(
"input[name=FIELD_MIN_COUNT]"
).
val
();
var
max
=
$
(
"input[name=FIELD_MAX_COUNT]"
).
val
();
var
flag
=
$
(
"input[name=FIELD_STATUS_FLAG]"
).
val
();
//判断用户选择的选项是否在上下限之间,如果不在,则提示用户,不进行提交操作
if
(
min
==
max
&&
i
!=
min
){
$
.
messager
.
alert
(
"必须选择"
+
max
+
"个选项"
);
return
;
}
else
if
(
i
<
min
||
i
>
max
){
$
.
messager
.
alert
(
"请选择"
+
min
+
"到"
+
max
+
"个选项"
);
return
;
}
if
(
uuids
.
length
>
0
){
uuids
=
uuids
.
substring
(
1
);
}
is_entity
.
FIELD_UUIDS
=
uuids
;
is_entity
.
FIELD_FLAG
=
flag
;
v_result
=
voteModule
.
voteActAction
.
insertUserVote
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
// }
}
/**
/**
* 功能:刷新
* 功能:刷新
...
...
WebContent/jwapp/pages/vote/js/voteTab.js
View file @
c32feafd
/**
/**
* 序号:
1
* 序号:
* 功能:定义分页(EasyUI)
* 功能:定义分页(EasyUI)
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -30,7 +30,7 @@ var ls_ywlx = 'YBYW';
...
@@ -30,7 +30,7 @@ var ls_ywlx = 'YBYW';
/****/
/****/
/**
/**
* 序号:
2
* 序号:
* 功能:构建下拉框内容
* 功能:构建下拉框内容
* 参数:
* 参数:
* 说明:方便新增、修改页面里的下拉选项加载数据
* 说明:方便新增、修改页面里的下拉选项加载数据
...
@@ -44,7 +44,7 @@ var v_statusquery_data = [{CODE_ID:'0',CODE_NAME:'未开始'},{CODE_ID:'1',CODE_
...
@@ -44,7 +44,7 @@ var v_statusquery_data = [{CODE_ID:'0',CODE_NAME:'未开始'},{CODE_ID:'1',CODE_
/****/
/****/
/**
/**
* 序号:
3
* 序号:
* 功能:构建主页面列表
* 功能:构建主页面列表
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -54,7 +54,7 @@ var v_statusquery_data = [{CODE_ID:'0',CODE_NAME:'未开始'},{CODE_ID:'1',CODE_
...
@@ -54,7 +54,7 @@ var v_statusquery_data = [{CODE_ID:'0',CODE_NAME:'未开始'},{CODE_ID:'1',CODE_
* 备注:需更改
* 备注:需更改
**/
**/
//定义grid列表
//定义grid列表
var
ls_title
=
"投票管理功能
<font color='#993300'></font>
"
;
var
ls_title
=
"投票管理功能"
;
var
is_column
=
[
[
var
is_column
=
[
[
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'CONTENT'
,
title
:
'主题内容'
,
width
:
150
,
align
:
'center'
},
{
field
:
'SUB_TITLE'
,
title
:
'副标题'
,
width
:
150
,
align
:
'center'
},
{
field
:
'SUB_TITLE'
,
title
:
'副标题'
,
width
:
150
,
align
:
'center'
},
...
@@ -76,13 +76,6 @@ var is_column = [ [
...
@@ -76,13 +76,6 @@ var is_column = [ [
]
];
]
];
//列表加载完成回调
//列表加载完成回调
function
dataOnLoadSuccess
(){
function
dataOnLoadSuccess
(){
$
(
'#FIELD_STATUS_FLAG'
).
combobox
({
data
:
v_statusquery_data
,
valueField
:
'CODE_ID'
,
textField
:
'CODE_NAME'
,
editable
:
false
,
panelHeight
:
'auto'
});
}
}
//设置颜色和每行高度
//设置颜色和每行高度
function
rowstyler
(
index
,
row
){
function
rowstyler
(
index
,
row
){
...
@@ -94,7 +87,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/voteData_list",queryData,is_colu
...
@@ -94,7 +87,7 @@ datagrid("list",ls_title,gaowj.WEB_APP_NAME + "/voteData_list",queryData,is_colu
/****/
/****/
/**
/**
* 序号:
4
* 序号:
* 功能:设置主页面操作列菜单
* 功能:设置主页面操作列菜单
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -129,7 +122,7 @@ function getOptionMenuCount(){
...
@@ -129,7 +122,7 @@ function getOptionMenuCount(){
/****/
/****/
/**
/**
* 序号:
5
* 序号:
* 功能:新增修改弹出
* 功能:新增修改弹出
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -198,13 +191,32 @@ function updateUrlOnloadCallback(is_row){
...
@@ -198,13 +191,32 @@ function updateUrlOnloadCallback(is_row){
}
}
//保存
function
updateData
(
is_entity
){
var
returnIsValid
=
$
(
'#voteItemInputForm'
).
form
(
'validate'
);
if
(
returnIsValid
)
{
var
items
=
[];
$
(
"input[name=vote_item_index]"
).
each
(
function
(
index
){
items
.
push
({
INDEX_NAME
:
$
(
this
).
val
(),
CONTENT
:
$
(
"input[name=vote_item_info]"
).
eq
(
index
).
val
(),
UUID
:
$
(
"input[name=vote_item_delete]"
).
eq
(
index
).
val
()
});
});
is_entity
.
FIELD_ITEMS
=
JSON
.
stringify
(
items
);
v_result
=
voteModule
.
voteActAction
.
updateVote
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
}
}
function
addZero
(
d
){
function
addZero
(
d
){
if
(
d
<
10
){
if
(
d
<
10
){
return
"0"
+
d
;
return
"0"
+
d
;
}
}
return
d
;
return
d
;
}
}
//限制时间
function
initDateBox
(){
function
initDateBox
(){
$
(
"#END_TIME"
).
datetimebox
({
$
(
"#END_TIME"
).
datetimebox
({
required
:
true
,
required
:
true
,
...
@@ -229,36 +241,13 @@ function initDateBox(){
...
@@ -229,36 +241,13 @@ function initDateBox(){
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
return
new
Date
().
getTime
()
<=
date
||
date
.
getDate
()
==
new
Date
().
getDate
();
}
}
});
});
/*$('#ss').numberspinner({
min: 10,
max: 100,
editable: false
});*/
}
}
//保存
function
updateData
(
is_entity
){
var
returnIsValid
=
$
(
'#voteItemInputForm'
).
form
(
'validate'
);
if
(
returnIsValid
)
{
var
items
=
[];
$
(
"input[name=vote_item_index]"
).
each
(
function
(
index
){
items
.
push
({
INDEX_NAME
:
$
(
this
).
val
(),
CONTENT
:
$
(
"input[name=vote_item_info]"
).
eq
(
index
).
val
(),
UUID
:
$
(
"input[name=vote_item_delete]"
).
eq
(
index
).
val
()
});
});
is_entity
.
FIELD_ITEMS
=
JSON
.
stringify
(
items
);
v_result
=
voteModule
.
voteActAction
.
updateVote
(
is_entity
);
$
(
'#list'
).
datagrid
(
'reload'
);
return
v_result
;
}
}
/****/
/****/
/**
/**
* 序号:
6
* 序号:
* 功能:单个删除
* 功能:单个删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -287,7 +276,7 @@ function deleteRow(index){
...
@@ -287,7 +276,7 @@ function deleteRow(index){
/****/
/****/
/**
/**
* 序号:
7
* 序号:
* 功能:批量删除
* 功能:批量删除
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -322,6 +311,24 @@ function deleteBatchRow(){
...
@@ -322,6 +311,24 @@ function deleteBatchRow(){
/****/
/****/
/**
/**
* 序号:
* 功能:选项删除
* 参数:
* 说明:
* 作者:朱天成
* 时间:2018-08-07
* 单位:杰夫兄弟智慧科技有限公司
* 备注:需更改
**/
function
delete_vote_item
(){
$
(
".vote_item_list :checkbox:checked"
).
each
(
function
(){
$
(
this
).
parent
().
parent
().
remove
();
});
}
/**
*
*
* 提前结束
* 提前结束
*
*
...
@@ -344,7 +351,7 @@ function voteEndRow(index){
...
@@ -344,7 +351,7 @@ function voteEndRow(index){
}
}
/**
/**
* 序号:
8
* 序号:
* 功能:刷新
* 功能:刷新
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -360,7 +367,7 @@ function refreshRow(){
...
@@ -360,7 +367,7 @@ function refreshRow(){
/****/
/****/
/**
/**
* 序号:
9
* 序号:
* 功能:查询
* 功能:查询
* 参数:
* 参数:
* 说明:
* 说明:
...
@@ -408,10 +415,3 @@ function add_vote_item(index,content,uuid){
...
@@ -408,10 +415,3 @@ function add_vote_item(index,content,uuid){
$
.
parser
.
parse
(
'.vote_item_one'
);
$
.
parser
.
parse
(
'.vote_item_one'
);
}
}
function
delete_vote_item
(){
$
(
".vote_item_list :checkbox:checked"
).
each
(
function
(){
$
(
this
).
parent
().
parent
().
remove
();
});
}
src_jwapp/com/jw/app/business/LogBusiness.java
View file @
c32feafd
...
@@ -13,73 +13,90 @@ public interface LogBusiness {
...
@@ -13,73 +13,90 @@ public interface LogBusiness {
/**
/**
* 插入
* 插入
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
insert_log
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_log
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 更新
* 更新
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
update_log
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_log
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 删除记录
* 删除记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
;
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
Page
<
Map
<
String
,
Object
>>
list_log
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_log
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
List
<
Map
<
String
,
Object
>>
list_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
* 获取所有记录数
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
int
listCount_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
List
<
Map
<
String
,
Object
>>
list_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
* 获取所有记录数
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
int
listCount_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 插入
* 插入
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
insert_reply
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_reply
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 删除记录
* 删除记录
*
* @param entity
* @throws BusinessException
*/
void
delete_reply
(
List
<
String
>
list
)
throws
BusinessException
;
/**
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
delete_reply
(
List
<
String
>
list
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_reply
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
}
src_jwapp/com/jw/app/business/MeetingBusiness.java
View file @
c32feafd
...
@@ -13,63 +13,73 @@ public interface MeetingBusiness {
...
@@ -13,63 +13,73 @@ public interface MeetingBusiness {
/**
/**
* 插入
* 插入
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
insert_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 更新
* 更新
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 删除记录
* 删除记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
delete_meeting
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_meeting
(
List
<
String
>
list
)
throws
BusinessException
;
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
Page
<
Map
<
String
,
Object
>>
list_meeting
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_meeting
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
* 获取所有记录数
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
int
listCount_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
Page
<
Map
<
String
,
Object
>>
list_check_in
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_check_in
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
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
;
/**
/**
* 获取所有记录数
* 获取所有记录数
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
...
@@ -77,6 +87,7 @@ public interface MeetingBusiness {
...
@@ -77,6 +87,7 @@ public interface MeetingBusiness {
/**
/**
* 插入
* 插入
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
...
...
src_jwapp/com/jw/app/business/VoteBusiness.java
View file @
c32feafd
...
@@ -60,14 +60,6 @@ public interface VoteBusiness {
...
@@ -60,14 +60,6 @@ public interface VoteBusiness {
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
*
* @param entity
* @throws BusinessException
*/
int
listCount_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
* 获取选项
* 获取选项
*
*
* @param entity
* @param entity
...
@@ -89,8 +81,7 @@ public interface VoteBusiness {
...
@@ -89,8 +81,7 @@ public interface VoteBusiness {
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
void
update_endvote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_endVote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
/**
/**
* 分页获取记录
* 分页获取记录
...
@@ -98,7 +89,8 @@ public interface VoteBusiness {
...
@@ -98,7 +89,8 @@ public interface VoteBusiness {
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
Page
<
Map
<
String
,
Object
>>
list_ongoing
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_ongoing
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录
* 获取所有记录
...
@@ -109,15 +101,6 @@ public interface VoteBusiness {
...
@@ -109,15 +101,6 @@ public interface VoteBusiness {
List
<
Map
<
String
,
Object
>>
list_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
*
* @param entity
* @throws BusinessException
*/
int
listCount_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
* 分页获取记录
* 分页获取记录
*
*
* @param entity
* @param entity
...
@@ -134,22 +117,11 @@ public interface VoteBusiness {
...
@@ -134,22 +117,11 @@ public interface VoteBusiness {
List
<
Map
<
String
,
Object
>>
list_ended
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_ended
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
/**
* 获取所有记录数
*
* @param entity
* @throws BusinessException
*/
int
listCount_ended
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
/**
* 获取用户选择
* 获取用户选择
*
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
List
<
Map
<
String
,
Object
>>
list_userchecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_userChecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
}
src_jwapp/com/jw/app/business/log/LogBusinessImpl.java
View file @
c32feafd
...
@@ -86,7 +86,7 @@ public class LogBusinessImpl implements LogBusiness {
...
@@ -86,7 +86,7 @@ public class LogBusinessImpl implements LogBusiness {
@Override
@Override
public
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
{
public
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
{
logDAO
.
delete_log
(
list
);
logDAO
.
delete_log
(
list
);
logDAO
.
delete_
log_reply
(
list
);
logDAO
.
delete_
byLogId
(
list
);
}
}
...
@@ -99,7 +99,7 @@ public class LogBusinessImpl implements LogBusiness {
...
@@ -99,7 +99,7 @@ public class LogBusinessImpl implements LogBusiness {
// 获取列表
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
logDAO
.
list_log
(
new
RowBounds
(
pageStart
,
pageSize
),
List
<
Map
<
String
,
Object
>>
items
=
logDAO
.
list_log
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
query
);
// 获取列表个数
// 获取列表个数
int
count
=
listCount_log
(
query
);
int
count
=
listCount_log
(
query
);
...
@@ -114,13 +114,10 @@ query);
...
@@ -114,13 +114,10 @@ query);
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
list_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
public
List
<
Map
<
String
,
Object
>>
list_log
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
List
<
Map
<
String
,
Object
>>
list_data
=
null
;
{
List
<
Map
<
String
,
Object
>>
list_data
=
CacheKit
.
get
(
"ehcache10"
,
"meeting"
+
query
);
if
(
list_data
==
null
||
list_data
.
size
()
==
0
)
{
if
(
list_data
==
null
||
list_data
.
size
()
==
0
)
{
list_data
=
logDAO
.
list_log
(
query
);
list_data
=
logDAO
.
list_log
(
query
);
CacheKit
.
put
(
"ehcache10"
,
"log"
+
query
,
list_data
);
}
}
return
list_data
;
return
list_data
;
}
}
...
@@ -131,6 +128,29 @@ query);
...
@@ -131,6 +128,29 @@ query);
}
}
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
list_reply
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
// 计算起始记录
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
logDAO
.
list_reply
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
int
count
=
listCount_reply
(
query
);
// 创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setCount
(
count
);
page
.
setItems
(
items
);
return
page
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
list_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_reply
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
logDAO
.
list_reply
(
query
);
return
logDAO
.
list_reply
(
query
);
}
}
...
@@ -143,12 +163,13 @@ query);
...
@@ -143,12 +163,13 @@ query);
@Override
@Override
public
void
insert_reply
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
public
void
insert_reply
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
entity
.
put
(
"CODE"
,
SessionUtil
.
getCode
());
entity
.
put
(
"CODE"
,
SessionUtil
.
getCode
());
entity
.
put
(
"REPLY_NAME"
,
SessionUtil
.
getEmname
());
entity
.
put
(
"REPLY_NAME"
,
SessionUtil
.
getEmname
());
entity
.
put
(
"REPLY_TIME"
,
new
Date
());
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"CREATE_TIME"
,
SessionUtil
.
getCurrenttim
e
());
entity
.
put
(
"CREATE_TIME"
,
new
Dat
e
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_TIME"
,
SessionUtil
.
getCurrenttim
e
());
entity
.
put
(
"UPDATE_TIME"
,
new
Dat
e
());
List
<
String
>
itemListKey
=
new
ArrayList
<
String
>();
List
<
String
>
itemListKey
=
new
ArrayList
<
String
>();
List
<
Object
>
itemList
=
new
ArrayList
<
Object
>();
List
<
Object
>
itemList
=
new
ArrayList
<
Object
>();
if
(
entity
.
keySet
()
!=
null
)
{
if
(
entity
.
keySet
()
!=
null
)
{
...
@@ -165,8 +186,6 @@ query);
...
@@ -165,8 +186,6 @@ query);
}
}
}
}
@Override
@Override
public
void
delete_reply
(
List
<
String
>
list
)
throws
BusinessException
{
public
void
delete_reply
(
List
<
String
>
list
)
throws
BusinessException
{
logDAO
.
delete_reply
(
list
);
logDAO
.
delete_reply
(
list
);
...
...
src_jwapp/com/jw/app/business/log/logDAO.java
View file @
c32feafd
...
@@ -15,7 +15,7 @@ public interface logDAO {
...
@@ -15,7 +15,7 @@ public interface logDAO {
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_log
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_
log_reply
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_
byLogId
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_log
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_log
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
...
...
src_jwapp/com/jw/app/business/log/logDAO.xml
View file @
c32feafd
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<![CDATA[ ) ]]>
<![CDATA[ ) ]]>
</insert>
</insert>
<delete
id=
"delete_
log_reply
"
parameterType=
"list"
>
<delete
id=
"delete_
byLogId
"
parameterType=
"list"
>
<![CDATA[
<![CDATA[
delete from LOG_REPLY where LOG_ID IN
delete from LOG_REPLY where LOG_ID IN
]]>
]]>
...
@@ -112,15 +112,17 @@
...
@@ -112,15 +112,17 @@
</delete>
</delete>
<select
id=
"list_log"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<select
id=
"list_log"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
select nmanage.*,nupdate.real_name new_update from (select manage.*,info.real_name new_create
SELECT
from log_manage manage
manage.*,
LEFT JOIN `uicm_user_info` info on
info1.real_name new_create,
info.user_id=manage.create_id ) nmanage
info2.real_name new_update,
LEFT JOIN (select manage.uuid,info.real_name
reply.*
from log_manage manage
FROM
LEFT JOIN `uicm_user_info` info on
log_manage manage
info.user_id=manage.update_id ) nupdate
LEFT JOIN `uicm_user_info` info1 ON info1.user_id = manage.create_id
on nmanage.uuid=nupdate.uuid
LEFT JOIN `uicm_user_info` info2 ON info2.user_id = manage.update_id
LEFT JOIN ( SELECT log_id, count( * ) reply_count FROM log_reply GROUP BY
log_id ) reply ON manage.uuid = reply.log_id
<include
refid=
"WHERE"
></include>
<include
refid=
"WHERE"
></include>
order by CREATE_TIME DESC
order by CREATE_TIME DESC
</select>
</select>
...
...
src_jwapp/com/jw/app/business/meeting/MeetingBusinessImpl.java
View file @
c32feafd
...
@@ -36,10 +36,10 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -36,10 +36,10 @@ public class MeetingBusinessImpl implements MeetingBusiness {
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
//动态传值插入
//
动态传值插入
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
if
(
entity
.
keySet
()!=
null
)
{
if
(
entity
.
keySet
()
!=
null
)
{
Set
<
String
>
key
=
entity
.
keySet
();
Set
<
String
>
key
=
entity
.
keySet
();
// 将map集合中的key和value 取出来分别放到list集合里
// 将map集合中的key和value 取出来分别放到list集合里
for
(
String
str
:
key
)
{
for
(
String
str
:
key
)
{
...
@@ -56,18 +56,19 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -56,18 +56,19 @@ 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
>>
items
=
meetingDAO
.
list_check_in
(
entity
);
if
(
items
.
size
()
==
0
)
{
if
(
items
.
size
()
==
0
)
{
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
entity
.
put
(
"PARTICIPANTS_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"PARTICIPANTS_NAME"
,
SessionUtil
.
getEmname
());
entity
.
put
(
"PARTICIPANTS_NAME"
,
SessionUtil
.
getEmname
());
entity
.
put
(
"CHECK_IN_TIME"
,
new
Date
());
entity
.
put
(
"CHECK_IN_TIME"
,
new
Date
());
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"CREATE_TIME"
,
new
Date
());
entity
.
put
(
"CREATE_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
//
动态传值插入
//
动态传值插入
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
if
(
entity
.
keySet
()!=
null
)
{
if
(
entity
.
keySet
()
!=
null
)
{
Set
<
String
>
key
=
entity
.
keySet
();
Set
<
String
>
key
=
entity
.
keySet
();
// 将map集合中的key和value 取出来分别放到list集合里
// 将map集合中的key和value 取出来分别放到list集合里
for
(
String
str
:
key
)
{
for
(
String
str
:
key
)
{
...
@@ -84,16 +85,17 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -84,16 +85,17 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
@Override
public
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
public
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
//动态传值修改
//
动态传值修改
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
List
<
Map
<
String
,
Object
>>
updateList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
updateList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
if
(
entity
.
keySet
()!=
null
)
{
if
(
entity
.
keySet
()
!=
null
)
{
Set
<
String
>
key
=
entity
.
keySet
();
Set
<
String
>
key
=
entity
.
keySet
();
// 将map集合中的key和value 取出来分别放到list集合里
// 将map集合中的key和value 取出来分别放到list集合里
for
(
String
str
:
key
)
{
for
(
String
str
:
key
)
{
Map
<
String
,
Object
>
updateMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
updateMap
=
new
HashMap
<
String
,
Object
>();
if
(
StringUtils
.
equalsIgnoreCase
(
"UUID"
,
str
))
continue
;
if
(
StringUtils
.
equalsIgnoreCase
(
"UUID"
,
str
))
continue
;
updateMap
.
put
(
"key"
,
str
);
updateMap
.
put
(
"key"
,
str
);
updateMap
.
put
(
"value"
,
entity
.
get
(
str
));
updateMap
.
put
(
"value"
,
entity
.
get
(
str
));
...
@@ -114,16 +116,17 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -114,16 +116,17 @@ public class MeetingBusinessImpl implements MeetingBusiness {
}
}
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
list_meeting
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
Page
<
Map
<
String
,
Object
>>
list_meeting
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
//计算起始记录
throws
BusinessException
{
// 计算起始记录
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
//
获取列表
//
获取列表
List
<
Map
<
String
,
Object
>>
items
=
meetingDAO
.
list_meeting
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
List
<
Map
<
String
,
Object
>>
items
=
meetingDAO
.
list_meeting
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
//
获取列表个数
//
获取列表个数
int
count
=
listCount_meeting
(
query
);
int
count
=
listCount_meeting
(
query
);
//
创建分页对象
//
创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setStart
(
pageStart
);
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setLimit
(
pageSize
);
...
@@ -156,10 +159,9 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -156,10 +159,9 @@ public class MeetingBusinessImpl implements MeetingBusiness {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
list_check_in
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_check_in
(
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_check_in
(
query
);
list_data
=
meetingDAO
.
list_check_in
(
query
);
CacheKit
.
put
(
"ehcache10"
,
"kqmk"
+
query
,
list_data
);
}
}
return
list_data
;
return
list_data
;
}
}
...
@@ -171,10 +173,10 @@ public class MeetingBusinessImpl implements MeetingBusiness {
...
@@ -171,10 +173,10 @@ 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
=
CacheKit
.
get
(
"ehcache10"
,
"meeting"
+
query
);
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
);
CacheKit
.
put
(
"ehcache10"
,
"kqmk"
+
query
,
list_data
);
}
}
return
list_data
;
return
list_data
;
}
}
...
...
src_jwapp/com/jw/app/business/meeting/meetingDAO.java
View file @
c32feafd
...
@@ -9,26 +9,26 @@ import com.gaowj.business.exception.BusinessException;
...
@@ -9,26 +9,26 @@ import com.gaowj.business.exception.BusinessException;
public
interface
meetingDAO
{
public
interface
meetingDAO
{
void
insert_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_check_in
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_check_in
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_meeting
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_meeting
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_meeting
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_check_in
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_check_in
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_meeting
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_meeting
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_meeting
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_check_in
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_check_in
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
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
;
}
}
src_jwapp/com/jw/app/business/meeting/meetingDAO.xml
View file @
c32feafd
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
and f.MEETING_NAME like concat('%',#{MEETING_NAME},'%')
and f.MEETING_NAME like concat('%',#{MEETING_NAME},'%')
</if>
</if>
<if
test=
"MEETING_CONTENT != null and MEETING_CONTENT != ''"
>
<if
test=
"MEETING_CONTENT != null and MEETING_CONTENT != ''"
>
and f.MEETING_CONTENT like concat('%',#{MEETING_CONTENT},'%')
and f.MEETING_CONTENT like
concat('%',#{MEETING_CONTENT},'%')
</if>
</if>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
and f.PARTICIPANTS_NAME = #{PARTICIPANTS_NAME}
and f.PARTICIPANTS_NAME = #{PARTICIPANTS_NAME}
...
@@ -115,10 +116,14 @@
...
@@ -115,10 +116,14 @@
(
(
SELECT
SELECT
manage.*,
manage.*,
SUM( CASE WHEN check_in.uuid IS NULL THEN 0 ELSE 1 END ) AS meeting_count
SUM( CASE WHEN check_in.uuid IS NULL THEN
0 ELSE 1 END ) AS
meeting_count
FROM
FROM
( SELECT * FROM `meeting_manage`) manage
( SELECT * FROM `meeting_manage`)
LEFT JOIN ( SELECT * FROM `meeting_check_in`
manage
LEFT JOIN ( SELECT * FROM
`meeting_check_in`
<where>
<where>
<trim
prefixOverrides=
"and"
>
<trim
prefixOverrides=
"and"
>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
...
@@ -140,10 +145,14 @@
...
@@ -140,10 +145,14 @@
(
(
SELECT
SELECT
manage.*,
manage.*,
SUM( CASE WHEN check_in.uuid IS NULL THEN 0 ELSE 1 END ) AS meeting_count
SUM( CASE WHEN check_in.uuid IS
NULL THEN 0 ELSE 1 END ) AS
meeting_count
FROM
FROM
( SELECT * FROM `meeting_manage`) manage
( SELECT * FROM
LEFT JOIN ( SELECT * FROM `meeting_check_in`
`meeting_manage`) manage
LEFT JOIN ( SELECT * FROM
`meeting_check_in`
<where>
<where>
<trim
prefixOverrides=
"and"
>
<trim
prefixOverrides=
"and"
>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
<if
test=
"PARTICIPANTS_NAME != null and PARTICIPANTS_NAME != ''"
>
...
@@ -160,11 +169,13 @@
...
@@ -160,11 +169,13 @@
<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
from meeting_check_in check_in
from
meeting_check_in check_in
LEFT JOIN `uicm_user_info` info on
LEFT JOIN `uicm_user_info` info on
info.user_id=check_in.create_id
info.user_id=check_in.create_id
left join uicm_v_unit unit
left join uicm_v_unit unit
on unit.uuid=info.unit_id
on
unit.uuid=info.unit_id
where check_in.meeting_id=#{MEETING_ID}
where check_in.meeting_id=#{MEETING_ID}
</select>
</select>
...
...
src_jwapp/com/jw/app/business/vote/VoteBusinessImpl.java
View file @
c32feafd
...
@@ -70,7 +70,7 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -70,7 +70,7 @@ public class VoteBusinessImpl implements VoteBusiness {
item
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
item
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
item
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
item
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
item
.
put
(
"CREATE_TIME"
,
SessionUtil
.
getCurrenttime
());
item
.
put
(
"CREATE_TIME"
,
SessionUtil
.
getCurrenttime
());
item
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
item
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
item
.
put
(
"MANAGE_ID"
,
entity
.
get
(
"UUID"
));
item
.
put
(
"MANAGE_ID"
,
entity
.
get
(
"UUID"
));
item
.
put
(
"UPDATE_TIME"
,
SessionUtil
.
getCurrenttime
());
item
.
put
(
"UPDATE_TIME"
,
SessionUtil
.
getCurrenttime
());
item
.
put
(
"SORT_NUM"
,
i
);
item
.
put
(
"SORT_NUM"
,
i
);
...
@@ -218,6 +218,7 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -218,6 +218,7 @@ public class VoteBusinessImpl implements VoteBusiness {
if
(
listMoveUuid
.
size
()
>
0
)
{
if
(
listMoveUuid
.
size
()
>
0
)
{
voteDAO
.
delete_item
(
listMoveUuid
);
voteDAO
.
delete_item
(
listMoveUuid
);
voteDAO
.
delete_vote_action
(
listMoveUuid
);
}
}
}
}
...
@@ -239,22 +240,7 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -239,22 +240,7 @@ public class VoteBusinessImpl implements VoteBusiness {
public
Page
<
Map
<
String
,
Object
>>
list_vote
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
public
Page
<
Map
<
String
,
Object
>>
list_vote
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
throws
BusinessException
{
query
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
query
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
// 计算起始记录
return
list_vote_info
(
pageNo
,
pageSize
,
query
);
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
voteDAO
.
list_vote
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
int
count
=
listCount_vote
(
query
);
// 创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setCount
(
count
);
page
.
setItems
(
items
);
return
page
;
}
}
@Override
@Override
...
@@ -262,34 +248,24 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -262,34 +248,24 @@ public class VoteBusinessImpl implements VoteBusiness {
throws
BusinessException
{
throws
BusinessException
{
// 计算起始记录
// 计算起始记录
query
.
put
(
"STATUS_FLAG"
,
1
);
query
.
put
(
"STATUS_FLAG"
,
1
);
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
return
list_vote_info
(
pageNo
,
pageSize
,
query
);
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
voteDAO
.
list_vote
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
int
count
=
listCount_vote
(
query
);
// 创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
page
.
setStart
(
pageStart
);
page
.
setLimit
(
pageSize
);
page
.
setCount
(
count
);
page
.
setItems
(
items
);
return
page
;
}
}
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
list_ended
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
public
Page
<
Map
<
String
,
Object
>>
list_ended
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
throws
BusinessException
{
query
.
put
(
"STATUS_FLAG"
,
2
);
query
.
put
(
"STATUS_FLAG"
,
2
);
return
list_vote_info
(
pageNo
,
pageSize
,
query
);
}
private
Page
<
Map
<
String
,
Object
>>
list_vote_info
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
{
// 计算起始记录
// 计算起始记录
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
voteDAO
.
list_vote
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
List
<
Map
<
String
,
Object
>>
items
=
voteDAO
.
list_vote
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
// 获取列表个数
int
count
=
listCount_vote
(
query
);
int
count
=
voteDAO
.
listCount_vote
(
query
);
// 创建分页对象
// 创建分页对象
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<
Map
<
String
,
Object
>>();
...
@@ -303,30 +279,14 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -303,30 +279,14 @@ public class VoteBusinessImpl implements VoteBusiness {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
List
<
Map
<
String
,
Object
>>
list_data
=
CacheKit
.
get
(
"ehcache10"
,
"vote"
+
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
=
voteDAO
.
list_vote
(
query
);
list_data
=
voteDAO
.
list_vote
(
query
);
CacheKit
.
put
(
"ehcache10"
,
"vote"
+
query
,
list_data
);
}
}
return
list_data
;
return
list_data
;
}
}
@Override
@Override
public
int
listCount_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
voteDAO
.
listCount_vote
(
query
);
}
@Override
public
int
listCount_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
voteDAO
.
listCount_vote
(
query
);
}
@Override
public
int
listCount_ended
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
voteDAO
.
listCount_vote
(
query
);
}
@Override
public
List
<
Map
<
String
,
Object
>>
list_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_ongoing
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
voteDAO
.
list_vote
(
query
);
return
voteDAO
.
list_vote
(
query
);
...
@@ -344,12 +304,12 @@ public class VoteBusinessImpl implements VoteBusiness {
...
@@ -344,12 +304,12 @@ public class VoteBusinessImpl implements VoteBusiness {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
list_user
c
hecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
public
List
<
Map
<
String
,
Object
>>
list_user
C
hecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
return
voteDAO
.
list_user
c
hecked
(
query
);
return
voteDAO
.
list_user
C
hecked
(
query
);
}
}
@Override
@Override
public
void
update_end
v
ote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
public
void
update_end
V
ote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
// 动态传值修改
// 动态传值修改
entity
.
put
(
"REALLY_END_TIME"
,
new
Date
());
entity
.
put
(
"REALLY_END_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
...
...
src_jwapp/com/jw/app/business/vote/voteDAO.java
View file @
c32feafd
...
@@ -9,15 +9,15 @@ import com.gaowj.business.exception.BusinessException;
...
@@ -9,15 +9,15 @@ import com.gaowj.business.exception.BusinessException;
public
interface
voteDAO
{
public
interface
voteDAO
{
void
insert_vote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_vote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
insert_item
(
Map
<
String
,
Object
>
itemmap
)
throws
BusinessException
;
void
insert_item
(
Map
<
String
,
Object
>
itemmap
)
throws
BusinessException
;
void
insert_userVote
(
Map
<
String
,
Object
>
itemmap
)
throws
BusinessException
;
void
insert_userVote
(
Map
<
String
,
Object
>
itemmap
)
throws
BusinessException
;
void
update_vote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_vote
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_item
(
Map
<
String
,
Object
>
item
)
throws
BusinessException
;
void
update_item
(
Map
<
String
,
Object
>
item
)
throws
BusinessException
;
void
delete_vote
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_vote
(
List
<
String
>
list
)
throws
BusinessException
;
...
@@ -27,15 +27,14 @@ public interface voteDAO {
...
@@ -27,15 +27,14 @@ public interface voteDAO {
void
delete_item
(
List
<
String
>
list
)
throws
BusinessException
;
void
delete_item
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_vote
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_vote
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_vote
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_item
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_item
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_userchecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_userChecked
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
}
}
src_jwapp/com/jw/app/business/vote/voteDAO.xml
View file @
c32feafd
...
@@ -168,7 +168,9 @@
...
@@ -168,7 +168,9 @@
(
(
SELECT
SELECT
manage.*,
manage.*,
SUM( CASE WHEN action.uuid IS NULL THEN 0 ELSE 1 END ) AS vote_count
SUM( CASE WHEN action.uuid IS NULL THEN 0
ELSE 1 END ) AS
vote_count
FROM
FROM
( SELECT * FROM `vote_manage`
( SELECT * FROM `vote_manage`
<where>
<where>
...
@@ -201,7 +203,9 @@
...
@@ -201,7 +203,9 @@
(
(
SELECT
SELECT
manage.*,
manage.*,
SUM( CASE WHEN action.uuid IS NULL THEN 0 ELSE 1 END ) AS vote_count
SUM( CASE WHEN action.uuid IS NULL
THEN 0 ELSE 1 END ) AS
vote_count
FROM
FROM
( SELECT * FROM `vote_manage`
( SELECT * FROM `vote_manage`
<where>
<where>
...
@@ -234,11 +238,12 @@
...
@@ -234,11 +238,12 @@
order by sort_num ASC
order by sort_num ASC
</select>
</select>
<select
id=
"list_user
c
hecked"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<select
id=
"list_user
C
hecked"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
select *
select *
from VOTE_MANAGE_ACTION
from VOTE_MANAGE_ACTION
where manage_id=#{MANAGE_ID}
where manage_id=#{MANAGE_ID}
order by CREATE_TIME ASC
order by
CREATE_TIME ASC
</select>
</select>
...
...
src_jwapp/com/jw/app/log/action/actAction.java
View file @
c32feafd
...
@@ -84,7 +84,7 @@ public class actAction extends BasicAction {
...
@@ -84,7 +84,7 @@ public class actAction extends BasicAction {
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"insertReply"
,
""
+
entity
,
"增加测试数据"
,
(
String
)
entity
.
get
(
"UUID"
),
sysbusiness
.
insert_logBusiness
(
"insertReply"
,
""
+
entity
,
"增加测试数据"
,
(
String
)
entity
.
get
(
"UUID"
),
(
String
)
entity
.
get
(
"CREATE_NAME"
),
"logdemo1"
);
(
String
)
entity
.
get
(
"CREATE_NAME"
),
"logdemo1"
);
Map
<
String
,
Object
>
result
=
Status
.
getStatusSuccessMessage
(
"保存成功"
);
Map
<
String
,
Object
>
result
=
Status
.
getStatusSuccessMessage
(
"保存成功"
);
result
.
put
(
"UUID"
,
entity
.
get
(
"UUID"
));
result
.
put
(
"UUID"
,
entity
.
get
(
"UUID"
));
result
.
put
(
"REPLY_NAME"
,
entity
.
get
(
"REPLY_NAME"
));
result
.
put
(
"REPLY_NAME"
,
entity
.
get
(
"REPLY_NAME"
));
result
.
put
(
"CODE"
,
entity
.
get
(
"CODE"
));
result
.
put
(
"CODE"
,
entity
.
get
(
"CODE"
));
...
@@ -97,7 +97,6 @@ public class actAction extends BasicAction {
...
@@ -97,7 +97,6 @@ public class actAction extends BasicAction {
return
"json"
;
return
"json"
;
}
}
/**
/**
* 更新
* 更新
*
*
...
...
src_jwapp/com/jw/app/log/action/dataAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
log
.
action
;
package
com
.
jw
.
app
.
log
.
action
;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -21,41 +20,48 @@ import com.gaowj.business.util.SessionUtil;
...
@@ -21,41 +20,48 @@ import com.gaowj.business.util.SessionUtil;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.standard.utils.CacheKit
;
import
com.gaowj.standard.utils.CacheKit
;
public
class
dataAction
extends
BasicAction
{
public
class
dataAction
extends
BasicAction
{
private
static
final
long
serialVersionUID
=
4416458722090020762L
;
private
static
final
long
serialVersionUID
=
4416458722090020762L
;
private
JSONObject
jsonObject
=
new
JSONObject
();
private
JSONObject
jsonObject
=
new
JSONObject
();
private
int
rows
=
20
;
// 每页显示的记录数
private
int
rows
=
20
;
// 每页显示的记录数
private
int
page
=
1
;
// 当前第几页
private
int
page
=
1
;
// 当前第几页
public
JSONObject
getJsonObject
()
{
public
JSONObject
getJsonObject
()
{
return
jsonObject
;
return
jsonObject
;
}
}
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
this
.
jsonObject
=
jsonObject
;
this
.
jsonObject
=
jsonObject
;
}
}
public
int
getRows
()
{
public
int
getRows
()
{
return
rows
;
return
rows
;
}
}
public
void
setRows
(
int
rows
)
{
public
void
setRows
(
int
rows
)
{
this
.
rows
=
rows
;
this
.
rows
=
rows
;
}
}
public
int
getPage
()
{
public
int
getPage
()
{
return
page
;
return
page
;
}
}
public
void
setPage
(
int
page
)
{
public
void
setPage
(
int
page
)
{
this
.
page
=
page
;
this
.
page
=
page
;
}
}
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
list
()
throws
BusinessException
{
public
String
list
()
throws
BusinessException
{
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_log
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_log
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
...
@@ -78,39 +84,40 @@ public class dataAction extends BasicAction{
...
@@ -78,39 +84,40 @@ public class dataAction extends BasicAction{
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
listAll
()
throws
BusinessException
{
public
String
listAll
()
throws
BusinessException
{
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
try
{
try
{
//表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
//
表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
//把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
// 把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
//主要和前端is_entity.FIELD_CREATE_TIME = strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 主要和前端is_entity.FIELD_CREATE_TIME =
//前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
// strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
//session工具
// session工具
String
code
=
SessionUtil
.
getCode
();
//当前用户ID
String
code
=
SessionUtil
.
getCode
();
// 当前用户ID
String
emid
=
SessionUtil
.
getEmid
();
//当前用户帐号
String
emid
=
SessionUtil
.
getEmid
();
// 当前用户帐号
String
emname
=
SessionUtil
.
getEmname
();
//当前用户名称
String
emname
=
SessionUtil
.
getEmname
();
// 当前用户名称
String
emdepart
=
SessionUtil
.
getEmdepart
();
//当前用户部门id
String
emdepart
=
SessionUtil
.
getEmdepart
();
// 当前用户部门id
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
//当前用户部门名称
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
// 当前用户部门名称
String
emsex
=
SessionUtil
.
getEmsex
();
//当前用户性别
String
emsex
=
SessionUtil
.
getEmsex
();
// 当前用户性别
String
loginip
=
SessionUtil
.
getLoginip
();
//当前用户登录IP
String
loginip
=
SessionUtil
.
getLoginip
();
// 当前用户登录IP
String
clientip
=
SessionUtil
.
getClientIp
();
//获取客户端IP
String
quanxian
=
SessionUtil
.
getQuanxian
();
//获取当前用户使用模块清单
String
sessionid
=
SessionUtil
.
getSessionid
();
//获取当前用户sessionID
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
//当前用户本次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
//当前用户上次登录时间
//配置文件工具
//表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
String
clientip
=
SessionUtil
.
getClientIp
();
// 获取客户端IP
String
quanxian
=
SessionUtil
.
getQuanxian
();
// 获取当前用户使用模块清单
String
sessionid
=
SessionUtil
.
getSessionid
();
// 获取当前用户sessionID
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
// 当前用户本次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
// 当前用户上次登录时间
// 配置文件工具
// 表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_log
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_log
(
query
);
int
listDataCount
=
listData
.
size
();
int
listDataCount
=
listData
.
size
();
...
@@ -133,14 +140,25 @@ public class dataAction extends BasicAction{
...
@@ -133,14 +140,25 @@ public class dataAction extends BasicAction{
return
"json"
;
return
"json"
;
}
}
public
String
listItem
()
throws
BusinessException
{
public
String
listItem
()
throws
BusinessException
{
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
LogBusiness
business
=
BusinessManager
.
getBusiness
(
LogBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
List
<
Map
<
String
,
Object
>>
listItems
=
business
.
list_reply
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_reply
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"pageNo"
,
pageNo
);
data
.
put
(
"pageSize"
,
pageSize
);
data
.
put
(
"pageCount"
,
pageCount
);
data
.
put
(
"rows"
,
data
.
get
(
"rowSet"
));
data
.
put
(
"total"
,
pageRows
.
getCount
());
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"listItems"
,
listItems
);
jsonObject
.
putAll
(
data
);
// List<Map<String, Object>> listItems = business.list_reply(query);
// jsonObject = new JSONObject();
// jsonObject.put("listItems", listItems);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
src_jwapp/com/jw/app/log/action/viewAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
log
.
action
;
package
com
.
jw
.
app
.
log
.
action
;
import
java.util.Map
;
import
java.util.Map
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.action.BasicAction
;
...
...
src_jwapp/com/jw/app/meeting/action/actAction.java
View file @
c32feafd
src_jwapp/com/jw/app/meeting/action/dataAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
meeting
.
action
;
package
com
.
jw
.
app
.
meeting
.
action
;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -21,42 +20,49 @@ import com.gaowj.business.util.SessionUtil;
...
@@ -21,42 +20,49 @@ import com.gaowj.business.util.SessionUtil;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.standard.utils.CacheKit
;
import
com.gaowj.standard.utils.CacheKit
;
public
class
dataAction
extends
BasicAction
{
public
class
dataAction
extends
BasicAction
{
private
static
final
long
serialVersionUID
=
-
3006159112969667743L
;
private
static
final
long
serialVersionUID
=
-
3006159112969667743L
;
private
JSONObject
jsonObject
=
new
JSONObject
();
private
JSONObject
jsonObject
=
new
JSONObject
();
private
int
rows
=
20
;
// 每页显示的记录数
private
int
rows
=
20
;
// 每页显示的记录数
private
int
page
=
1
;
// 当前第几页
private
int
page
=
1
;
// 当前第几页
public
JSONObject
getJsonObject
()
{
public
JSONObject
getJsonObject
()
{
return
jsonObject
;
return
jsonObject
;
}
}
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
this
.
jsonObject
=
jsonObject
;
this
.
jsonObject
=
jsonObject
;
}
}
public
int
getRows
()
{
public
int
getRows
()
{
return
rows
;
return
rows
;
}
}
public
void
setRows
(
int
rows
)
{
public
void
setRows
(
int
rows
)
{
this
.
rows
=
rows
;
this
.
rows
=
rows
;
}
}
public
int
getPage
()
{
public
int
getPage
()
{
return
page
;
return
page
;
}
}
public
void
setPage
(
int
page
)
{
public
void
setPage
(
int
page
)
{
this
.
page
=
page
;
this
.
page
=
page
;
}
}
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
list
()
throws
BusinessException
{
public
String
list
()
throws
BusinessException
{
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_meeting
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_meeting
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
...
@@ -79,10 +85,10 @@ public class dataAction extends BasicAction{
...
@@ -79,10 +85,10 @@ public class dataAction extends BasicAction{
public
String
listCheck_in
()
throws
BusinessException
{
public
String
listCheck_in
()
throws
BusinessException
{
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
List
<
Map
<
String
,
Object
>>
listchecks
=
business
.
list_check_in
(
query
);
List
<
Map
<
String
,
Object
>>
listchecks
=
business
.
list_check_in
(
query
);
//
listchecks = QueryParamUtil.StringToDate(listchecks);
//
listchecks = QueryParamUtil.StringToDate(listchecks);
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"listchecks"
,
QueryParamUtil
.
DateTimeToString
(
listchecks
));
jsonObject
.
put
(
"listchecks"
,
QueryParamUtil
.
DateTimeToString
(
listchecks
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -92,43 +98,43 @@ public class dataAction extends BasicAction{
...
@@ -92,43 +98,43 @@ public class dataAction extends BasicAction{
return
"json"
;
return
"json"
;
}
}
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
listAll
()
throws
BusinessException
{
public
String
listAll
()
throws
BusinessException
{
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
MeetingBusiness
business
=
BusinessManager
.
getBusiness
(
MeetingBusiness
.
class
);
try
{
try
{
//表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
//
表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
//把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
// 把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
//主要和前端is_entity.FIELD_CREATE_TIME = strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 主要和前端is_entity.FIELD_CREATE_TIME =
//前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
// strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
//session工具
//
session工具
String
code
=
SessionUtil
.
getCode
();
//当前用户ID
String
code
=
SessionUtil
.
getCode
();
//
当前用户ID
String
emid
=
SessionUtil
.
getEmid
();
//当前用户帐号
String
emid
=
SessionUtil
.
getEmid
();
//
当前用户帐号
String
emname
=
SessionUtil
.
getEmname
();
//当前用户名称
String
emname
=
SessionUtil
.
getEmname
();
//
当前用户名称
String
emdepart
=
SessionUtil
.
getEmdepart
();
//当前用户部门id
String
emdepart
=
SessionUtil
.
getEmdepart
();
//
当前用户部门id
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
//当前用户部门名称
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
//
当前用户部门名称
String
emsex
=
SessionUtil
.
getEmsex
();
//当前用户性别
String
emsex
=
SessionUtil
.
getEmsex
();
//
当前用户性别
String
loginip
=
SessionUtil
.
getLoginip
();
//当前用户登录IP
String
loginip
=
SessionUtil
.
getLoginip
();
//
当前用户登录IP
String
clientip
=
SessionUtil
.
getClientIp
();
//获取客户端IP
String
clientip
=
SessionUtil
.
getClientIp
();
//
获取客户端IP
String
quanxian
=
SessionUtil
.
getQuanxian
();
//获取当前用户使用模块清单
String
quanxian
=
SessionUtil
.
getQuanxian
();
//
获取当前用户使用模块清单
String
sessionid
=
SessionUtil
.
getSessionid
();
//获取当前用户sessionID
String
sessionid
=
SessionUtil
.
getSessionid
();
//
获取当前用户sessionID
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
//当前用户本次登录时间
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
//
当前用户本次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
//当前用户上次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
//
当前用户上次登录时间
//配置文件工具
//
配置文件工具
//表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
//
表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_meeting
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_meeting
(
query
);
int
listDataCount
=
listData
.
size
();
int
listDataCount
=
listData
.
size
();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
...
@@ -150,5 +156,4 @@ public class dataAction extends BasicAction{
...
@@ -150,5 +156,4 @@ public class dataAction extends BasicAction{
return
"json"
;
return
"json"
;
}
}
}
}
src_jwapp/com/jw/app/meeting/action/viewAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
meeting
.
action
;
package
com
.
jw
.
app
.
meeting
.
action
;
import
java.util.Map
;
import
java.util.Map
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.action.BasicAction
;
...
...
src_jwapp/com/jw/app/vote/action/actAction.java
View file @
c32feafd
...
@@ -31,28 +31,29 @@ public class actAction extends BasicAction {
...
@@ -31,28 +31,29 @@ public class actAction extends BasicAction {
/**
/**
* 插入
* 插入
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
insertVote
()
throws
BusinessException
{
public
String
insertVote
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
try
{
try
{
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
//去除不要更新的字段
//
去除不要更新的字段
entity
.
remove
(
"OPETYPE"
);
entity
.
remove
(
"OPETYPE"
);
//新增
//
新增
business
.
insert_vote
(
entity
);
business
.
insert_vote
(
entity
);
// 操作日志
// 操作日志
//sysbusiness.insert_logBusiness(具体方法,操作内容,操作描述,操作记录ID,操作记录中文描述,分类)
//
sysbusiness.insert_logBusiness(具体方法,操作内容,操作描述,操作记录ID,操作记录中文描述,分类)
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"insertVote"
,
""
+
entity
,
sysbusiness
.
insert_logBusiness
(
"insertVote"
,
""
+
entity
,
"增加投票主题"
,
(
String
)
entity
.
get
(
"UUID"
)
,
"增加投票主题"
,
(
String
)
entity
.
get
(
"UUID"
),
(
String
)
entity
.
get
(
"CONTENT"
),
"votedemo1"
);
(
String
)
entity
.
get
(
"CONTENT"
),
"votedemo1"
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"保存成功"
));
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"保存成功"
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"保存失败"
));
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"保存失败"
));
...
@@ -63,21 +64,22 @@ public class actAction extends BasicAction {
...
@@ -63,21 +64,22 @@ public class actAction extends BasicAction {
/**
/**
* 插入用户投票
* 插入用户投票
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
insertUserVote
()
throws
BusinessException
{
public
String
insertUserVote
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
try
{
try
{
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
//去除不要更新的字段
//
去除不要更新的字段
entity
.
remove
(
"OPETYPE"
);
entity
.
remove
(
"OPETYPE"
);
//新增
//
新增
business
.
insert_userVote
(
entity
);
business
.
insert_userVote
(
entity
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"保存成功"
));
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"保存成功"
));
...
@@ -90,24 +92,25 @@ public class actAction extends BasicAction {
...
@@ -90,24 +92,25 @@ public class actAction extends BasicAction {
/**
/**
* 更新
* 更新
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
updateVote
()
throws
BusinessException
{
public
String
updateVote
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
//去除不要更新的字段
//
去除不要更新的字段
entity
.
remove
(
"OPETYPE"
);
entity
.
remove
(
"OPETYPE"
);
//修改
//
修改
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
business
.
update_vote
(
entity
);
business
.
update_vote
(
entity
);
// 操作日志
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"updateVote"
,
""
+
entity
,
sysbusiness
.
insert_logBusiness
(
"updateVote"
,
""
+
entity
,
"修改投票主题"
,
(
String
)
entity
.
get
(
"UUID"
),
"修改投票主题"
,(
String
)
entity
.
get
(
"UUID"
),
(
String
)
entity
.
get
(
"CONTENT"
),
"votedemo1"
);
(
String
)
entity
.
get
(
"CONTENT"
),
"votedemo1"
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"修改成功"
));
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"修改成功"
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"修改失败"
));
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"修改失败"
));
...
@@ -118,20 +121,21 @@ public class actAction extends BasicAction {
...
@@ -118,20 +121,21 @@ public class actAction extends BasicAction {
/**
/**
* 更新
* 更新
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
endVote
()
throws
BusinessException
{
public
String
endVote
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
entity
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
//去除不要更新的字段
//
去除不要更新的字段
entity
.
remove
(
"OPETYPE"
);
entity
.
remove
(
"OPETYPE"
);
//修改
//
修改
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
entity
=
QueryParamUtil
.
StringToDate
(
entity
);
business
.
update_end
v
ote
(
entity
);
business
.
update_end
V
ote
(
entity
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"修改成功"
));
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"修改成功"
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"修改失败"
));
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"修改失败"
));
...
@@ -142,13 +146,14 @@ public class actAction extends BasicAction {
...
@@ -142,13 +146,14 @@ public class actAction extends BasicAction {
/**
/**
* 在软删除基础上删除记录
* 在软删除基础上删除记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
deleteVote
()
throws
BusinessException
{
public
String
deleteVote
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
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
);
...
@@ -156,8 +161,7 @@ public class actAction extends BasicAction {
...
@@ -156,8 +161,7 @@ public class actAction extends BasicAction {
business
.
delete_vote
(
ListKey
);
business
.
delete_vote
(
ListKey
);
// 操作日志
// 操作日志
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
SystemOpeBusiness
sysbusiness
=
BusinessManager
.
getBusiness
(
SystemOpeBusiness
.
class
);
sysbusiness
.
insert_logBusiness
(
"deleteVote"
,
""
+
ListKey
,
sysbusiness
.
insert_logBusiness
(
"deleteVote"
,
""
+
ListKey
,
"删除投票主题"
,
deletekey
,
"多个流水号"
,
"votedemo1"
);
"删除投票主题"
,
deletekey
,
"多个流水号"
,
"votedemo1"
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"删除成功"
));
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"删除成功"
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"删除失败"
));
jsonObject
.
putAll
(
Status
.
getStatusErrorMessage
(
"删除失败"
));
...
@@ -166,5 +170,4 @@ public class actAction extends BasicAction {
...
@@ -166,5 +170,4 @@ public class actAction extends BasicAction {
return
"json"
;
return
"json"
;
}
}
}
}
src_jwapp/com/jw/app/vote/action/dataAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
vote
.
action
;
package
com
.
jw
.
app
.
vote
.
action
;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -21,41 +20,48 @@ import com.gaowj.business.util.SessionUtil;
...
@@ -21,41 +20,48 @@ import com.gaowj.business.util.SessionUtil;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.business.util.TestMd5
;
import
com.gaowj.standard.utils.CacheKit
;
import
com.gaowj.standard.utils.CacheKit
;
public
class
dataAction
extends
BasicAction
{
public
class
dataAction
extends
BasicAction
{
private
static
final
long
serialVersionUID
=
1829141492939513911L
;
private
static
final
long
serialVersionUID
=
1829141492939513911L
;
private
JSONObject
jsonObject
=
new
JSONObject
();
private
JSONObject
jsonObject
=
new
JSONObject
();
private
int
rows
=
20
;
// 每页显示的记录数
private
int
rows
=
20
;
// 每页显示的记录数
private
int
page
=
1
;
// 当前第几页
private
int
page
=
1
;
// 当前第几页
public
JSONObject
getJsonObject
()
{
public
JSONObject
getJsonObject
()
{
return
jsonObject
;
return
jsonObject
;
}
}
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
public
void
setJsonObject
(
JSONObject
jsonObject
)
{
this
.
jsonObject
=
jsonObject
;
this
.
jsonObject
=
jsonObject
;
}
}
public
int
getRows
()
{
public
int
getRows
()
{
return
rows
;
return
rows
;
}
}
public
void
setRows
(
int
rows
)
{
public
void
setRows
(
int
rows
)
{
this
.
rows
=
rows
;
this
.
rows
=
rows
;
}
}
public
int
getPage
()
{
public
int
getPage
()
{
return
page
;
return
page
;
}
}
public
void
setPage
(
int
page
)
{
public
void
setPage
(
int
page
)
{
this
.
page
=
page
;
this
.
page
=
page
;
}
}
/**
/**
* 分页获取记录
* 分页获取记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
list
()
throws
BusinessException
{
public
String
list
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_vote
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_vote
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
...
@@ -78,10 +84,10 @@ public class dataAction extends BasicAction{
...
@@ -78,10 +84,10 @@ public class dataAction extends BasicAction{
public
String
list_ongoing
()
throws
BusinessException
{
public
String
list_ongoing
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_ongoing
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_ongoing
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
...
@@ -104,10 +110,10 @@ public class dataAction extends BasicAction{
...
@@ -104,10 +110,10 @@ public class dataAction extends BasicAction{
public
String
list_ended
()
throws
BusinessException
{
public
String
list_ended
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_ended
(
pageNo
,
pageSize
,
query
);
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_ended
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateTimeToString
(
pageRows
.
getItems
()));
...
@@ -130,40 +136,41 @@ public class dataAction extends BasicAction{
...
@@ -130,40 +136,41 @@ public class dataAction extends BasicAction{
/**
/**
* 获取所有记录
* 获取所有记录
*
* @param entity
* @param entity
* @throws BusinessException
* @throws BusinessException
*/
*/
public
String
listAll
()
throws
BusinessException
{
public
String
listAll
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
try
{
try
{
//表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
//
表示获取前台表单提交的所有"FIELD_"开始的键值数据,例如FIELD_NAME,FIELD_CODE....
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
//把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
// 把前端传进来的字符型时间数据例 如DATE_2018-09-09转换成DATE型的时间数据。
//主要和前端is_entity.FIELD_CREATE_TIME = strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 主要和前端is_entity.FIELD_CREATE_TIME =
//前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
// strToDateObj(is_entity.FIELD_CREATE_TIME)配对使用。
// 前端提交前strToDateObj方法会把时间处理成DATE_2018-09-09再提交
query
=
QueryParamUtil
.
StringToDate
(
query
);
query
=
QueryParamUtil
.
StringToDate
(
query
);
//session工具
//
session工具
String
code
=
SessionUtil
.
getCode
();
//当前用户ID
String
code
=
SessionUtil
.
getCode
();
//
当前用户ID
String
emid
=
SessionUtil
.
getEmid
();
//当前用户帐号
String
emid
=
SessionUtil
.
getEmid
();
//
当前用户帐号
String
emname
=
SessionUtil
.
getEmname
();
//当前用户名称
String
emname
=
SessionUtil
.
getEmname
();
//
当前用户名称
String
emdepart
=
SessionUtil
.
getEmdepart
();
//当前用户部门id
String
emdepart
=
SessionUtil
.
getEmdepart
();
//
当前用户部门id
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
//当前用户部门名称
String
emdepartname
=
SessionUtil
.
getEmdepartname
();
//
当前用户部门名称
String
emsex
=
SessionUtil
.
getEmsex
();
//当前用户性别
String
emsex
=
SessionUtil
.
getEmsex
();
//
当前用户性别
String
loginip
=
SessionUtil
.
getLoginip
();
//当前用户登录IP
String
loginip
=
SessionUtil
.
getLoginip
();
//
当前用户登录IP
String
clientip
=
SessionUtil
.
getClientIp
();
//获取客户端IP
String
clientip
=
SessionUtil
.
getClientIp
();
//
获取客户端IP
String
quanxian
=
SessionUtil
.
getQuanxian
();
//获取当前用户使用模块清单
String
quanxian
=
SessionUtil
.
getQuanxian
();
//
获取当前用户使用模块清单
String
sessionid
=
SessionUtil
.
getSessionid
();
//获取当前用户sessionID
String
sessionid
=
SessionUtil
.
getSessionid
();
//
获取当前用户sessionID
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
//当前用户本次登录时间
String
currenttimme
=
SessionUtil
.
getCurrenttime
();
//
当前用户本次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
//当前用户上次登录时间
String
beforetime
=
SessionUtil
.
getBeforetime
();
//
当前用户上次登录时间
//配置文件工具
//
配置文件工具
//表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
//
表示获取src目录下quartz_service.properties文件中主键是login_main_url的值
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
String
tt
=
PropUtil
.
getValue
(
"login_main_url"
,
"quartz_service"
,
""
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_vote
(
query
);
List
<
Map
<
String
,
Object
>>
listData
=
business
.
list_vote
(
query
);
int
listDataCount
=
listData
.
size
();
int
listDataCount
=
listData
.
size
();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
...
@@ -187,9 +194,9 @@ public class dataAction extends BasicAction{
...
@@ -187,9 +194,9 @@ public class dataAction extends BasicAction{
public
String
listItem
()
throws
BusinessException
{
public
String
listItem
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
List
<
Map
<
String
,
Object
>>
listItems
=
business
.
list_item
(
query
);
List
<
Map
<
String
,
Object
>>
listItems
=
business
.
list_item
(
query
);
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"listItems"
,
listItems
);
jsonObject
.
put
(
"listItems"
,
listItems
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -201,9 +208,9 @@ public class dataAction extends BasicAction{
...
@@ -201,9 +208,9 @@ public class dataAction extends BasicAction{
public
String
listUserChecked
()
throws
BusinessException
{
public
String
listUserChecked
()
throws
BusinessException
{
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
VoteBusiness
business
=
BusinessManager
.
getBusiness
(
VoteBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
try
{
try
{
List
<
Map
<
String
,
Object
>>
listusercheckeds
=
business
.
list_userc
hecked
(
query
);
List
<
Map
<
String
,
Object
>>
listusercheckeds
=
business
.
list_userC
hecked
(
query
);
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"listusercheckeds"
,
listusercheckeds
);
jsonObject
.
put
(
"listusercheckeds"
,
listusercheckeds
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src_jwapp/com/jw/app/vote/action/viewAction.java
View file @
c32feafd
package
com
.
jw
.
app
.
vote
.
action
;
package
com
.
jw
.
app
.
vote
.
action
;
import
java.util.Map
;
import
java.util.Map
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.action.BasicAction
;
...
@@ -10,32 +9,32 @@ import com.gaowj.business.util.RequestUtils;
...
@@ -10,32 +9,32 @@ import com.gaowj.business.util.RequestUtils;
public
class
viewAction
extends
BasicAction
{
public
class
viewAction
extends
BasicAction
{
private
static
final
long
serialVersionUID
=
-
6259964352154128000L
;
private
static
final
long
serialVersionUID
=
-
6259964352154128000L
;
public
String
ongoingVoteTab
()
throws
BusinessException
{
public
String
ongoingVoteTab
()
throws
BusinessException
{
return
"ongoingVoteTab"
;
return
"ongoingVoteTab"
;
}
}
public
String
endedVoteTab
()
throws
BusinessException
{
public
String
endedVoteTab
()
throws
BusinessException
{
return
"endedVoteTab"
;
return
"endedVoteTab"
;
}
}
public
String
voteTab
()
throws
BusinessException
{
public
String
voteTab
()
throws
BusinessException
{
return
"voteTab"
;
return
"voteTab"
;
}
}
public
String
userVoteTabDetail
()
throws
BusinessException
{
public
String
userVoteTabDetail
()
throws
BusinessException
{
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
request
.
setAttribute
(
"is_row"
,
query
);
request
.
setAttribute
(
"is_row"
,
query
);
return
"userVoteTabDetail"
;
return
"userVoteTabDetail"
;
}
}
public
String
voteTabDetail
()
throws
BusinessException
{
public
String
voteTabDetail
()
throws
BusinessException
{
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
request
.
setAttribute
(
"is_row"
,
query
);
request
.
setAttribute
(
"is_row"
,
query
);
return
"voteTabDetail"
;
return
"voteTabDetail"
;
}
}
public
String
voteAdvsearch
()
throws
BusinessException
{
public
String
voteAdvsearch
()
throws
BusinessException
{
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
request
.
setAttribute
(
"is_row"
,
query
);
request
.
setAttribute
(
"is_row"
,
query
);
return
"voteAdvsearch"
;
return
"voteAdvsearch"
;
}
}
...
...
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