Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5lcyq
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
管理员
jfV5lcyq
Commits
162cdb05
Commit
162cdb05
authored
Jul 11, 2018
by
陈玉兰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新选人代码
parent
992810eb
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
490 additions
and
12 deletions
+490
-12
business-process.xml
WebContent/WEB-INF/conf/gaowj/bl/business-process.xml
+9
-0
peopleTab.js
WebContent/process/pages/procdefinition/js/peopleTab.js
+101
-3
procdefiChoosePeopleTab.js
...rocess/pages/procdefinition/js/procdefiChoosePeopleTab.js
+32
-1
procdefinitionTab.js
...tent/process/pages/procdefinition/js/procdefinitionTab.js
+2
-4
peopleTab.jsp
WebContent/process/pages/procdefinition/peopleTab.jsp
+45
-2
procdefiChoosePeopleTab.jsp
.../process/pages/procdefinition/procdefiChoosePeopleTab.jsp
+2
-0
ProcdefiChooseUserBusiness.java
...rocess/com/gaowj/business/ProcdefiChooseUserBusiness.java
+21
-0
ProcdefiChooseUserBusinessImpl.java
...ss/procdefiChooseUser/ProcdefiChooseUserBusinessImpl.java
+108
-0
procdefiChooseUserDAO.java
...wj/business/procdefiChooseUser/procdefiChooseUserDAO.java
+25
-0
procdefiChooseUserDAO.xml
...owj/business/procdefiChooseUser/procdefiChooseUserDAO.xml
+81
-0
ProcdefinitionBusinessImpl.java
...j/business/procdefinition/ProcdefinitionBusinessImpl.java
+2
-0
ProcdefinitionInitLinkBusinessImpl.java
...efinitionInitlink/ProcdefinitionInitLinkBusinessImpl.java
+2
-1
actAction.java
src_process/com/gaowj/procdefinition/action/actAction.java
+32
-0
dataAction.java
src_process/com/gaowj/procdefinition/action/dataAction.java
+27
-0
viewAction.java
src_process/com/gaowj/procdefinition/action/viewAction.java
+1
-1
No files found.
WebContent/WEB-INF/conf/gaowj/bl/business-process.xml
View file @
162cdb05
...
...
@@ -13,6 +13,7 @@
<value>
classpath:com/gaowj/business/formmodels/formmodelsDAO.xml
</value>
<value>
classpath:com/gaowj/business/procdefinitionInitlink/procdefinitionInitlinkDAO.xml
</value>
<value>
classpath:com/gaowj/business/procinstance/procinstanceDAO.xml
</value>
<value>
classpath:com/gaowj/business/procdefiChooseUser/procdefiChooseUserDAO.xml
</value>
</list>
</property>
</bean>
...
...
@@ -45,6 +46,10 @@
<property
name=
"mapperInterface"
value=
"com.gaowj.business.procinstance.procinstanceDAO"
/>
<property
name=
"sqlSessionFactory"
ref=
"sqlSessionFactory-process"
/>
</bean>
<bean
id=
"procdefiChooseUserDAO"
class=
"org.mybatis.spring.mapper.MapperFactoryBean"
>
<property
name=
"mapperInterface"
value=
"com.gaowj.business.procdefiChooseUser.procdefiChooseUserDAO"
/>
<property
name=
"sqlSessionFactory"
ref=
"sqlSessionFactory-process"
/>
</bean>
<!-- DAO定义结束 -->
<bean
id=
"FormtableBusiness"
class=
"com.gaowj.business.formtable.FormtableBusinessImpl"
>
...
...
@@ -96,4 +101,8 @@
<bean
id=
"ProcdefinitionInitLinkBusiness"
class=
"com.gaowj.business.procdefinitionInitlink.ProcdefinitionInitLinkBusinessImpl"
>
<property
name=
"procdefinitionInitlinkDAO"
ref=
"procdefinitionInitlinkDAO"
></property>
</bean>
<bean
id=
"ProcdefiChooseUserBusiness"
class=
"com.gaowj.business.procdefiChooseUser.ProcdefiChooseUserBusinessImpl"
>
<property
name=
"procdefiChooseUserDAO"
ref=
"procdefiChooseUserDAO"
></property>
</bean>
</beans>
WebContent/process/pages/procdefinition/js/peopleTab.js
View file @
162cdb05
...
...
@@ -31,8 +31,7 @@ var ls_ywlx = 'YBYW';
//定义grid列表
var
ls_title
=
"选择人员"
;
var
is_column
=
[
[
{
field
:
'LINK_NAME'
,
title
:
'环节名'
,
width
:
300
,
align
:
'center'
},
{
field
:
'PROC_DEFIN_KEY'
,
title
:
'PROC_DEFIN_KEY'
,
width
:
300
,
align
:
'center'
}
{
field
:
'EMNAME'
,
title
:
'用户名称'
,
width
:
300
,
align
:
'center'
}
]
];
//列表加载完成回调
function
dataOnLoadSuccess
(){
...
...
@@ -45,6 +44,104 @@ function rowstyler(index,row){
$
(
function
(){
//展示列表
datagridLog
(
"list"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/systemdata_listSysUser"
,
queryData
,
is_column
,
60
,
80
);
/*datagridLog("list1", ls_title, gaowj.WEB_APP_NAME + "/systemdata_listSysUser", queryData, is_column, 60, 80);
datagridLog("list2", ls_title, gaowj.WEB_APP_NAME + "/systemdata_listSysUser", queryData, is_column, 60, 80);*/
var
linkId
=
$
.
getUrlParam
(
"procdef_linkId"
);
$
(
'#list1'
).
datagrid
({
title
:
'人员'
,
iconCls
:
$
.
getJwWindowPic
(),
url
:
gaowj
.
WEB_APP_NAME
+
"/systemdata_listSysUser"
,
queryParams
:
queryData
,
//查询参数
rownumbers
:
true
,
//显示索引号
singleSelect
:
false
,
//是否多选
fitColumns
:
false
,
//是否撑满
autoRowHeight
:
false
,
//设定高度
rowStyler
:
function
(
index
,
row
){
return
rowstyler
(
index
,
row
);},
pagination
:
true
,
//分页显示
pageSize
:
rows
,
//显示行数
pageList
:
listPageSize
,
//条数选择
striped
:
true
,
//是否隔行显示
remoteSort
:
false
,
//是否从服务器排序
frozenColumns
:
[[
{
field
:
'ck'
,
checkbox
:
true
}
]],
columns
:
[
[
{
field
:
'EMNAME'
,
title
:
'用户名称'
,
width
:
300
,
align
:
'center'
}
]
],
toolbar
:
'#tb1'
,
onLoadSuccess
:
function
()
{
dataOnLoadSuccess
();
}
});
$
(
'#list2'
).
datagrid
({
title
:
'人员'
,
iconCls
:
$
.
getJwWindowPic
(),
url
:
gaowj
.
WEB_APP_NAME
+
"/procdefinitionData_getChooseUser?key_id="
+
linkId
,
queryParams
:
queryData
,
//查询参数
rownumbers
:
true
,
//显示索引号
singleSelect
:
false
,
//是否多选
fitColumns
:
false
,
//是否撑满
autoRowHeight
:
false
,
//设定高度
rowStyler
:
function
(
index
,
row
){
return
rowstyler
(
index
,
row
);},
pagination
:
true
,
//分页显示
pageSize
:
rows
,
//显示行数
pageList
:
listPageSize
,
//条数选择
striped
:
true
,
//是否隔行显示
remoteSort
:
false
,
//是否从服务器排序
frozenColumns
:
[[
{
field
:
'ck'
,
checkbox
:
true
}
]],
columns
:
[
[
{
field
:
'EMNAME'
,
title
:
'用户名称'
,
width
:
300
,
align
:
'center'
}
]
],
toolbar
:
'#tb2'
,
onLoadSuccess
:
function
()
{
dataOnLoadSuccess
();
}
});
})
function
choosePeople
(){
var
is_row
=
$
(
'#list1'
).
datagrid
(
'getSelections'
);
$
.
each
(
is_row
,
function
(
index
,
value
)
{
$
(
'#list2'
).
datagrid
(
'appendRow'
,
is_row
[
index
]);
});
}
function
cancelChoosePeople
(){
var
is_row
=
$
(
'#list2'
).
datagrid
(
'getSelections'
);
$
.
each
(
is_row
,
function
(
index
,
value
)
{
var
index
=
$
(
'#list2'
).
datagrid
(
'getRowIndex'
,
value
);
//console.log(index)
$
(
'#list2'
).
datagrid
(
'deleteRow'
,
index
);
});
}
function
savePeople
(
key_id
){
var
map
=
{};
var
arr
=
""
;
var
is_row
=
$
(
'#list2'
).
datagrid
(
'getRows'
);
for
(
var
i
=
0
;
i
<
is_row
.
length
;
i
++
){
arr
=
arr
+
is_row
[
i
].
CODE
+
","
;
}
$
.
ajax
({
url
:
gaowj
.
WEB_APP_NAME
+
"/procdefinitionAct_savePeople"
,
data
:{
KEY_ID
:
key_id
,
USER_IDS
:
arr
},
success
:
function
(){
}
})
}
\ No newline at end of file
WebContent/process/pages/procdefinition/js/procdefiChoosePeopleTab.js
View file @
162cdb05
...
...
@@ -88,5 +88,35 @@ function memberRow(index){
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'insert'
;
openEditRow
(
"procdefinitionView_peopleTab"
,
is_row
[
0
],
"选择"
,
true
,
0.65
,
0.95
,
0
,
0
);
$
(
'#people'
).
dialog
(
{
title
:
'选择人员'
,
iconCls
:
$
.
getJwWindowPic
(),
width
:
ls_width
*
0.65
,
height
:
ls_height
*
0.95
,
closed
:
false
,
cache
:
false
,
maximizable
:
true
,
left
:
0
,
top
:
0
,
content
:
'<iframe scrolling="yes" id="choosePeopleIframe" frameborder="0" src="procdefinitionView_peopleTab?procdef_linkId='
+
is_row
[
0
].
UUID
+
'" style="width:100%;height:98%;"></iframe><span id="return_text"></span>'
,
queryParams
:
is_row
[
0
],
modal
:
true
,
buttons
:
[{
text
:
'保存'
,
iconCls
:
'icon-save'
,
handler
:
function
()
{
document
.
getElementById
(
"choosePeopleIframe"
).
contentWindow
.
savePeople
(
is_row
[
0
].
UUID
);
$
(
'#people'
).
dialog
(
'close'
);
}
}
,{
text
:
'关闭'
,
iconCls
:
'icon-back'
,
handler
:
function
()
{
$
(
'#people'
).
dialog
(
'close'
);
}
}
],
onClose
:
function
()
{
closeCallback
(
is_row
);
}
});
}
\ No newline at end of file
WebContent/process/pages/procdefinition/js/procdefinitionTab.js
View file @
162cdb05
...
...
@@ -397,7 +397,7 @@ function modelList(index){
}
function
closeCallback
(
is_row
){
$
(
'#list'
).
datagrid
(
'load'
,
is_
entity
);
$
(
'#list'
).
datagrid
(
'load'
,
is_
row
);
}
function
procdefinitionImg
(
index
){
...
...
@@ -421,7 +421,6 @@ function choosePeopleRow(index){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
console
.
log
(
is_row
[
0
]);
$
.
ajax
({
url
:
'procdefinitionAct_procdefinitionInitLink'
,
type
:
'post'
,
...
...
@@ -429,8 +428,7 @@ function choosePeopleRow(index){
DEPLOYMENT_ID
:
is_row
[
0
].
DEPLOYMENT_ID
},
success
:
function
(
data
){
console
.
log
(
data
);
}
});
openViewIframRow
(
"choosePeople"
,
"procdefinitionView_procdefiChoosePeopleTab?DEPLOYMENT_ID="
+
is_row
[
0
].
DEPLOYMENT_ID
,
is_row
[
0
],
"选人列表"
,
true
,
0.
65
,
0.6
5
,
0
,
0
);
openViewIframRow
(
"choosePeople"
,
"procdefinitionView_procdefiChoosePeopleTab?DEPLOYMENT_ID="
+
is_row
[
0
].
DEPLOYMENT_ID
,
is_row
[
0
],
"选人列表"
,
true
,
0.
95
,
0.9
5
,
0
,
0
);
}
WebContent/process/pages/procdefinition/peopleTab.jsp
View file @
162cdb05
<%@page contentType="text/html; charset=UTF-8"%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<style>
.peopleTab_table{
font-size:0px;
}
.peopleTab_table>div{
display: inline-block;
font-size:12px;
height:350px;
}
.peopleTab_table>div:first-child{
width:45%;
}
.peopleTab_table>div:first-child+div{
width:10%;
vertical-align: top;
padding-top:30px;
}
.peopleTab_table>div:first-child+div>div{
cursor: pointer;
text-align: center;
}
.peopleTab_table>div:first-child+div>div:hover{
color:red;
}
.peopleTab_table>div:first-child+div+div{
width:45%;
}
</style>
<div id="PeopleTab">
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_body.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_table.css" charset="utf-8"></link>
<link rel="stylesheet" type="text/css" href="${ctx}/jwapp/common/css/content_input.css" charset="utf-8"></link>
</div>
<table id="list" style="width: 100%; height: 100%;"></table>
<div id="tb">
<div class="peopleTab_table">
<div>
<table id="list1" style="width: 100%; height: 100%;"></table>
</div>
<div>
<div onclick="choosePeople()">--></div>
<div onclick="cancelChoosePeople()"><--</div>
</div>
<div>
<table id="list2" style="width: 100%; height: 100%;"></table>
</div>
</div>
<div id="tb1">
</div>
<div id="tb2">
</div>
<script type="text/javascript" src="${ctx}/process/pages/procdefinition/js/peopleTab.js" charset="utf-8"></script>
\ No newline at end of file
WebContent/process/pages/procdefinition/procdefiChoosePeopleTab.jsp
View file @
162cdb05
...
...
@@ -9,4 +9,5 @@
<div id="tb">
</div>
<div id="detail"></div>
<div id="people"></div>
<script type="text/javascript" src="${ctx}/process/pages/procdefinition/js/procdefiChoosePeopleTab.js" charset="utf-8"></script>
\ No newline at end of file
src_process/com/gaowj/business/ProcdefiChooseUserBusiness.java
0 → 100644
View file @
162cdb05
package
com
.
gaowj
.
business
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.stereotype.Service
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
@Service
public
interface
ProcdefiChooseUserBusiness
{
void
insert_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
Page
<
Map
<
String
,
Object
>>
list_procdefi_chooseUser
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_procdefi_chooseUser_byKeyId
(
String
key_id
)
throws
BusinessException
;
}
src_process/com/gaowj/business/procdefiChooseUser/ProcdefiChooseUserBusinessImpl.java
0 → 100644
View file @
162cdb05
package
com
.
gaowj
.
business
.
procdefiChooseUser
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.UUID
;
import
org.apache.ibatis.session.RowBounds
;
import
com.gaowj.business.ProcdefiChooseUserBusiness
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.Page
;
import
com.gaowj.business.util.SessionUtil
;
public
class
ProcdefiChooseUserBusinessImpl
implements
ProcdefiChooseUserBusiness
{
private
procdefiChooseUserDAO
procdefiChooseUserDAO
;
public
procdefiChooseUserDAO
getProcdefiChooseUserDAO
()
{
return
procdefiChooseUserDAO
;
}
public
void
setProcdefiChooseUserDAO
(
procdefiChooseUserDAO
procdefiChooseUserDAO
)
{
this
.
procdefiChooseUserDAO
=
procdefiChooseUserDAO
;
}
@Override
public
void
insert_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
// TODO Auto-generated method stub
if
(
entity
.
get
(
"UUID"
)
==
null
)
{
entity
.
put
(
"UUID"
,
java
.
util
.
UUID
.
randomUUID
().
toString
());
}
if
(
entity
.
get
(
"CREATE_TIME"
)
==
null
)
{
entity
.
put
(
"CREATE_TIME"
,
new
Date
());
}
if
(
entity
.
get
(
"CREATE_ID"
)
==
null
)
{
entity
.
put
(
"CREATE_ID"
,
SessionUtil
.
getCode
());
}
if
(
entity
.
get
(
"UPDATE_ID"
)
==
null
)
{
entity
.
put
(
"UPDATE_ID"
,
SessionUtil
.
getCode
());
}
if
(
entity
.
get
(
"UPDATE_TIME"
)
==
null
)
{
entity
.
put
(
"UPDATE_TIME"
,
new
Date
());
}
// 动态传值插入
List
<
String
>
infoListKey
=
new
ArrayList
<
String
>();
List
<
Object
>
infoList
=
new
ArrayList
<
Object
>();
if
(
entity
.
keySet
()
!=
null
)
{
Set
<
String
>
key
=
entity
.
keySet
();
// 将map集合中的key和value 取出来分别放到list集合里
for
(
String
str
:
key
)
{
infoList
.
add
(
entity
.
get
(
str
));
infoListKey
.
add
(
str
);
}
entity
.
put
(
"infoListKey"
,
infoListKey
);
entity
.
put
(
"infoList"
,
infoList
);
}
procdefiChooseUserDAO
.
insert_procdefi_chooseUser
(
entity
);
entity
.
clear
();
}
@Override
public
Page
<
Map
<
String
,
Object
>>
list_procdefi_chooseUser
(
int
pageNo
,
int
pageSize
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
{
// TODO Auto-generated method stub
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
List
<
Map
<
String
,
Object
>>
items
=
procdefiChooseUserDAO
.
list_procdefi_chooseUser
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
int
count
=
procdefiChooseUserDAO
.
listCount_procdefi_chooseUser
(
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_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
{
// TODO Auto-generated method stub
return
procdefiChooseUserDAO
.
list_procdefi_chooseUser
(
entity
);
}
@Override
public
void
delete_procdefi_chooseUser_byKeyId
(
String
key_id
)
throws
BusinessException
{
// TODO Auto-generated method stub
procdefiChooseUserDAO
.
delete_procdefi_chooseUser_byKeyId
(
key_id
);
}
}
src_process/com/gaowj/business/procdefiChooseUser/procdefiChooseUserDAO.java
0 → 100644
View file @
162cdb05
package
com
.
gaowj
.
business
.
procdefiChooseUser
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.ibatis.session.RowBounds
;
import
com.gaowj.business.exception.BusinessException
;
public
interface
procdefiChooseUserDAO
{
void
insert_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
update_procdefi_chooseUser
(
Map
<
String
,
Object
>
entity
)
throws
BusinessException
;
void
delete_procdefi_chooseUser
(
List
<
String
>
list
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_procdefi_chooseUser
(
RowBounds
rowbounds
,
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
List
<
Map
<
String
,
Object
>>
list_procdefi_chooseUser
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
int
listCount_procdefi_chooseUser
(
Map
<
String
,
Object
>
query
)
throws
BusinessException
;
void
delete_procdefi_chooseUser_byKeyId
(
String
key_id
)
throws
BusinessException
;
}
src_process/com/gaowj/business/procdefiChooseUser/procdefiChooseUserDAO.xml
0 → 100644
View file @
162cdb05
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gaowj.business.procdefiChooseUser.procdefiChooseUserDAO"
>
<sql
id=
"Where_Clause"
>
<trim
prefix=
"WHERE"
prefixOverrides=
"AND |OR"
>
<if
test=
"KEY_ID != null and KEY_ID != ''"
>
and f.KEY_ID = #{KEY_ID}
</if>
</trim>
</sql>
<insert
id=
"insert_procdefi_chooseUser"
parameterType=
"map"
>
insert into C_T_PROC_CHOOSE_USER(
<trim
prefix=
""
suffixOverrides=
","
>
<foreach
collection=
"infoListKey"
item=
"key"
>
${key},
</foreach>
</trim>
<![CDATA[ ) values( ]]>
<trim
prefix=
""
suffixOverrides=
","
>
<foreach
collection=
"infoList"
item=
"value"
>
#{value},
</foreach>
</trim>
<![CDATA[ ) ]]>
</insert>
<update
id=
"update_procdefi_chooseUser"
parameterType=
"map"
>
<![CDATA[
update C_T_PROC_CHOOSE_USER set
]]>
<trim
prefix=
""
suffixOverrides=
","
>
<foreach
collection=
"info"
item=
"info"
>
${info.key} = #{info.value} ,
</foreach>
</trim>
<where>
<if
test=
"UUID != null and UUID != ''"
>
and UUID = #{UUID}
</if>
</where>
</update>
<delete
id=
"delete_procdefi_chooseUser"
parameterType=
"list"
>
<![CDATA[
delete from C_T_PROC_CHOOSE_USER where UUID IN
]]>
<foreach
collection=
"list"
item=
"UUID"
open=
"("
separator=
","
close=
")"
>
#{UUID}
</foreach>
</delete>
<select
id=
"list_procdefi_chooseUser"
parameterType=
"map"
resultType=
"upperCaseKeyMap"
>
<![CDATA[
select f.* ,
U.`EMNAME`,
U.`CODE`
from C_T_PROC_CHOOSE_USER f
LEFT JOIN LCYQ_SYSTEM.C_T_SYS_LOGINUSER U ON U.`CODE`=f.`USER_ID`
]]>
<include
refid=
"Where_Clause"
/>
order by f.CREATE_TIME DESC
</select>
<select
id=
"listCount_procdefi_chooseUser"
parameterType=
"map"
resultType=
"int"
>
<![CDATA[
select count(*) c from C_T_PROC_CHOOSE_USER f
]]>
<include
refid=
"Where_Clause"
/>
</select>
<delete
id=
"delete_procdefi_chooseUser_byKeyId"
parameterType=
"String"
>
<![CDATA[
delete from C_T_PROC_CHOOSE_USER where KEY_ID = #{KEY_ID}
]]>
</delete>
</mapper>
\ No newline at end of file
src_process/com/gaowj/business/procdefinition/ProcdefinitionBusinessImpl.java
View file @
162cdb05
...
...
@@ -280,7 +280,9 @@ public class ProcdefinitionBusinessImpl implements ProcdefinitionBusiness {
}
entity
.
put
(
"DEPLOYMENT_ID"
,
DEPLOYMENT_ID
);
entity
.
put
(
"LINK_KEY"
,
taskDefKey
);
if
(
taskName
!=
null
){
entity
.
put
(
"LINK_NAME"
,
taskName
.
toString
());
}
entity
.
put
(
"PROC_DEFIN_KEY"
,
processDefinition
.
getKey
());
entity
.
put
(
"PROC_DEFIN_ID"
,
processDefinition
.
getId
());
entity
.
put
(
"PROC_DEFIN_NAME"
,
processDefinition
.
getName
());
...
...
src_process/com/gaowj/business/procdefinitionInitlink/ProcdefinitionInitLinkBusinessImpl.java
View file @
162cdb05
...
...
@@ -101,8 +101,9 @@ public class ProcdefinitionInitLinkBusinessImpl implements ProcdefinitionInitLin
}
param
.
put
(
"UUID"
,
entity
.
get
(
"UUID"
));
param
.
put
(
"info"
,
updateList
);
procdefinitionInitlinkDAO
.
update_procde_finition_init_link
(
entity
);
procdefinitionInitlinkDAO
.
update_procde_finition_init_link
(
param
);
}
}
...
...
src_process/com/gaowj/procdefinition/action/actAction.java
View file @
162cdb05
...
...
@@ -5,6 +5,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.gaowj.business.ProcdefiChooseUserBusiness
;
import
com.gaowj.business.ProcdefinitionBusiness
;
import
com.gaowj.business.ProcdefinitionInitLinkBusiness
;
import
com.gaowj.business.SystemOpeBusiness
;
...
...
@@ -148,4 +149,35 @@ public class actAction extends BasicAction {
return
"json"
;
}
public
String
savePeople
()
throws
BusinessException
{
ProcdefiChooseUserBusiness
business
=
BusinessManager
.
getBusiness
(
ProcdefiChooseUserBusiness
.
class
);
Map
<
String
,
Object
>
entity
=
new
HashMap
<
String
,
Object
>();
String
KEY_ID
=
RequestUtils
.
getString
(
request
,
"KEY_ID"
);
String
IDS
=
RequestUtils
.
getString
(
request
,
"USER_IDS"
);
List
<
String
>
ListKey
=
QueryParamUtil
.
StringToList
(
IDS
);
entity
.
put
(
"KEY_ID"
,
KEY_ID
);
List
<
Map
<
String
,
Object
>>
result
=
business
.
list_procdefi_chooseUser
(
entity
);
if
(
result
.
size
()==
0
&&
ListKey
.
size
()>
0
){
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
for
(
int
i
=
0
;
i
<
ListKey
.
size
();
i
++){
params
.
put
(
"KEY_ID"
,
KEY_ID
);
params
.
put
(
"USER_ID"
,
ListKey
.
get
(
i
));
business
.
insert_procdefi_chooseUser
(
params
);
}
}
if
(
result
.
size
()>
0
&&
ListKey
.
size
()==
0
){
business
.
delete_procdefi_chooseUser_byKeyId
(
KEY_ID
);
}
if
(
result
.
size
()>
0
&&
ListKey
.
size
()>
0
){
business
.
delete_procdefi_chooseUser_byKeyId
(
KEY_ID
);
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
for
(
int
i
=
0
;
i
<
ListKey
.
size
();
i
++){
params
.
put
(
"KEY_ID"
,
KEY_ID
);
params
.
put
(
"USER_ID"
,
ListKey
.
get
(
i
));
business
.
insert_procdefi_chooseUser
(
params
);
}
}
return
"json"
;
}
}
src_process/com/gaowj/procdefinition/action/dataAction.java
View file @
162cdb05
...
...
@@ -9,6 +9,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.gaowj.business.ProcdefiChooseUserBusiness
;
import
com.gaowj.business.ProcdefinitionBusiness
;
import
com.gaowj.business.ProcdefinitionInitLinkBusiness
;
import
com.gaowj.business.action.BasicAction
;
...
...
@@ -181,4 +182,30 @@ public class dataAction extends BasicAction{
return
"json"
;
}
public
String
getChooseUser
()
throws
BusinessException
{
ProcdefiChooseUserBusiness
business
=
BusinessManager
.
getBusiness
(
ProcdefiChooseUserBusiness
.
class
);
Map
<
String
,
Object
>
query
=
new
HashMap
<
String
,
Object
>();
query
.
put
(
"KEY_ID"
,
RequestUtils
.
getString
(
request
,
"key_id"
));
Page
<
Map
<
String
,
Object
>>
pageRows
=
business
.
list_procdefi_chooseUser
(
pageNo
,
pageSize
,
query
);
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
try
{
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
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
.
putAll
(
data
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"成功"
));
}
catch
(
SQLException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"失败"
));
}
return
"json"
;
}
}
src_process/com/gaowj/procdefinition/action/viewAction.java
View file @
162cdb05
...
...
@@ -2,7 +2,7 @@ package com.gaowj.procdefinition.action;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.RequestUtils
;
public
class
viewAction
extends
BasicAction
{
/**
...
...
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