Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bpm
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
王厚康
bpm
Commits
4232208e
Commit
4232208e
authored
Apr 22, 2019
by
Java-曹文达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面优化 接口修改
parent
18e71f9d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
9 deletions
+82
-9
UserInfoMapper.java
src/main/java/com/bbd/bpm/dao/UserInfoMapper.java
+3
-0
UserInfoMapper.xml
src/main/java/com/bbd/bpm/dao/UserInfoMapper.xml
+15
-0
BpmEmployee.java
src/main/java/com/bbd/bpm/domain/BpmEmployee.java
+3
-0
PutAssigneeListener.java
src/main/java/com/bbd/bpm/listener/PutAssigneeListener.java
+30
-5
UserInfoService.java
src/main/java/com/bbd/bpm/service/UserInfoService.java
+9
-0
UserInfoServiceImpl.java
src/main/java/com/bbd/bpm/serviceImpl/UserInfoServiceImpl.java
+18
-0
product_list.css
src/main/resources/static/js/plugins/bootstrapselect/css/product_list.css
+2
-2
deplymentList.html
src/main/resources/templates/deployment/deplymentList.html
+2
-2
No files found.
src/main/java/com/bbd/bpm/dao/UserInfoMapper.java
View file @
4232208e
...
...
@@ -4,6 +4,7 @@ package com.bbd.bpm.dao;
import
com.bbd.bpm.base.BaseMapper
;
import
com.bbd.bpm.domain.ActReModelEntity
;
import
com.bbd.bpm.domain.BpmCompany
;
import
com.bbd.bpm.domain.BpmEmployee
;
import
com.bbd.bpm.domain.User
;
import
com.bbd.bpm.vo.BpmCompanyVo
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -37,4 +38,6 @@ public interface UserInfoMapper extends BaseMapper<BpmCompany>{
void
addUser
(
User
user
);
void
deleteUser
(
User
user
);
BpmEmployee
getUserId
(
BpmEmployee
user
);
}
src/main/java/com/bbd/bpm/dao/UserInfoMapper.xml
View file @
4232208e
...
...
@@ -134,4 +134,18 @@
DELETE FROM user where id=#{id}
</delete>
<select
id=
"getUserId"
parameterType=
"com.bbd.bpm.domain.BpmEmployee"
resultType=
"com.bbd.bpm.domain.BpmEmployee"
>
SELECT
user_id userId
FROM
bpm_employee
where position=#{position}
<if
test=
"department!=null"
>
and department=#{department}
</if>
<if
test=
"codeId!=null"
>
and code_id=#{codeId}
</if>
</select>
</mapper>
\ No newline at end of file
src/main/java/com/bbd/bpm/domain/BpmEmployee.java
View file @
4232208e
...
...
@@ -25,6 +25,9 @@ public class BpmEmployee extends BaseEntity {
//状态 0.在职 1.离职 2删除
@Column
(
name
=
"status"
)
private
Integer
status
;
//用户标识
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
}
src/main/java/com/bbd/bpm/listener/PutAssigneeListener.java
View file @
4232208e
...
...
@@ -3,6 +3,7 @@ package com.bbd.bpm.listener;
import
com.bbd.bpm.domain.BpmEmployee
;
import
com.bbd.bpm.repository.UserRepository
;
import
com.bbd.bpm.result.Result
;
import
com.bbd.bpm.service.UserInfoService
;
import
com.bbd.bpm.serviceImpl.UserInfoServiceImpl
;
import
com.bbd.bpm.util.ContextUtils
;
import
org.activiti.engine.ProcessEngine
;
...
...
@@ -28,6 +29,8 @@ public class PutAssigneeListener implements Serializable, TaskListener {
private
FixedValue
company
;
@Autowired
private
UserInfoService
userInfoService
;
@Override
...
...
@@ -45,14 +48,36 @@ public class PutAssigneeListener implements Serializable, TaskListener {
ProcessEngine
processEngine
=
ProcessEngines
.
getDefaultProcessEngine
();
TaskService
taskService
=
processEngine
.
getTaskService
();
BpmEmployee
bpmEmployee
=
new
BpmEmployee
();
BpmEmployee
bpmEmployee1
=
new
BpmEmployee
();
if
(
job
!=
null
){
if
(
"jingli"
.
equals
(
job
.
getExpressionText
())){
delegateTask
.
setAssignee
(
"wang"
);
}
else
if
(
"emp"
.
equals
(
job
.
getExpressionText
())){
delegateTask
.
setAssignee
(
"houkang"
);
//判断职位是否为空
if
(!
""
.
equals
(
job
.
getExpressionText
())){
bpmEmployee1
.
setPosition
(
job
.
getExpressionText
());
bpmEmployee
=
userInfoService
.
getUserId
(
bpmEmployee1
);
//判断部门是否为空
if
(
department
!=
null
){
if
(!
""
.
equals
(
department
.
getExpressionText
())){
//将部门和职位传值
bpmEmployee1
.
setDepartment
(
Integer
.
valueOf
(
department
.
getExpressionText
()));
bpmEmployee
=
userInfoService
.
getUserId
(
bpmEmployee1
);
}
}
//判断公司是否为空
if
(
company
!=
null
){
if
(!
""
.
equals
(
company
.
getExpressionText
())){
//将部门 公司 和职位传值
bpmEmployee1
.
setCodeId
(
Integer
.
valueOf
(
company
.
getExpressionText
()));
bpmEmployee
=
userInfoService
.
getUserId
(
bpmEmployee1
);
}
}
//取出查到的userId 标识
delegateTask
.
setAssignee
(
bpmEmployee
.
getUserId
().
toString
());
}
}
else
{
taskService
.
setAssignee
(
delegateTask
.
getId
(),
"hr"
);
taskService
.
setAssignee
(
delegateTask
.
getId
(),
"hr"
);
}
}
}
src/main/java/com/bbd/bpm/service/UserInfoService.java
View file @
4232208e
package
com
.
bbd
.
bpm
.
service
;
import
com.bbd.bpm.base.PageBean
;
import
com.bbd.bpm.domain.BpmEmployee
;
import
com.bbd.bpm.domain.User
;
import
com.bbd.bpm.result.Result
;
...
...
@@ -123,4 +124,12 @@ public interface UserInfoService {
* @param user
*/
Result
deleteUser
(
User
user
);
/**
* 获取用户userId
* @Author:cwd
* @Date: 2019.4.22
* @return
* @param user
*/
BpmEmployee
getUserId
(
BpmEmployee
user
);
}
src/main/java/com/bbd/bpm/serviceImpl/UserInfoServiceImpl.java
View file @
4232208e
...
...
@@ -373,6 +373,24 @@ public class UserInfoServiceImpl implements UserInfoService{
return
result
;
}
}
/**
* 获取用户userId
* @Author:cwd
* @Date: 2019.4.22
* @return
* @param user
*/
@Override
public
BpmEmployee
getUserId
(
BpmEmployee
user
)
{
BpmEmployee
bpmEmployee
=
new
BpmEmployee
();
try
{
bpmEmployee
=
userInfoMapper
.
getUserId
(
user
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
return
bpmEmployee
;
}
/**
* 获取菜单树
...
...
src/main/resources/static/js/plugins/bootstrapselect/css/product_list.css
View file @
4232208e
...
...
@@ -96,7 +96,7 @@ html,body{
margin-bottom
:
20px
;
}
.box
.search
.title
{
background
:
#f5f5f5
url(../img/sou.png)
no-repeat
10px
center
;
background
:
#f5f5f5
url(../img/sou
1
.png)
no-repeat
10px
center
;
}
.box
.search_pro
{
padding-left
:
40px
;
...
...
@@ -134,7 +134,7 @@ html,body{
border-width
:
1px
1px
0px
;
}
.content
.list_ti
{
background
:
#f5f5f5
url(../img/li
.jp
g)
no-repeat
10px
center
;
background
:
#f5f5f5
url(../img/li
e.pn
g)
no-repeat
10px
center
;
}
.content
.title
select
{
width
:
150px
;
...
...
src/main/resources/templates/deployment/deplymentList.html
View file @
4232208e
...
...
@@ -38,12 +38,12 @@
<div
class=
"search"
>
<p
class=
"title"
>
条件查询
</p>
<p
class=
"search_pro"
style=
"padding-left: 0px;"
>
<label
class=
"layui-form-label"
>
流程名称:
</label>
<label
class=
"layui-form-label"
style=
" width: 100px;"
>
流程名称:
</label>
<input
style=
"width: 200px"
type=
"text"
name=
"modelName"
lay-verify=
"title"
autocomplete=
"off"
placeholder=
"请输入流程名称"
class=
"layui-input"
>
<span
class=
"cx"
>
<button
style=
"margin-left: 16px;"
class=
"layui-btn"
onclick=
"getBargainProduct()"
>
查询
</button>
</span>
<button
id=
"addMe"
class=
"layui-btn layui-btn-radius"
style=
"margin-left:
565
px"
onclick=
"goImport()"
>
上传文件
</button></span>
<button
id=
"addMe"
class=
"layui-btn layui-btn-radius"
style=
"margin-left:
690
px"
onclick=
"goImport()"
>
上传文件
</button></span>
</p>
...
...
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