Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
Project
Project
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
邬友楠
test
Commits
8e50bc1a
Commit
8e50bc1a
authored
Sep 05, 2019
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shiro-redis 升级到2.8.24(支持配置redis连接password)
parent
722f82a8
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
81 additions
and
43 deletions
+81
-43
pom.xml
huigou-common/pom.xml
+1
-1
OrgUnit.java
huigou-common/src/main/java/com/huigou/context/OrgUnit.java
+1
-0
PersonMember.java
...common/src/main/java/com/huigou/context/PersonMember.java
+24
-6
pom.xml
huigou-core-api/pom.xml
+1
-1
HandlerKind.java
...igou/uasp/bpm/configuration/domain/model/HandlerKind.java
+26
-2
HandlerParseService.java
...igou/uasp/bpm/engine/application/HandlerParseService.java
+11
-18
pom.xml
huigou-core-impl/pom.xml
+1
-2
pom.xml
huigou-core-proxy/pom.xml
+1
-2
pom.xml
huigou-data/pom.xml
+1
-1
pom.xml
huigou-loader/pom.xml
+1
-2
pom.xml
huigou-system-common/pom.xml
+1
-1
pom.xml
huigou-uasp/pom.xml
+7
-2
HandlerParseServiceImpl.java
.../bpm/engine/application/impl/HandlerParseServiceImpl.java
+1
-0
pom.xml
huigou-xt/pom.xml
+1
-1
pom.xml
pom.xml
+3
-4
No files found.
huigou-common/pom.xml
View file @
8e50bc1a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-common
</artifactId>
<artifactId>
huigou-common
</artifactId>
<name>
huigou-common
</name>
<name>
huigou-common
</name>
...
...
huigou-common/src/main/java/com/huigou/context/OrgUnit.java
View file @
8e50bc1a
...
@@ -186,6 +186,7 @@ public class OrgUnit implements Serializable {
...
@@ -186,6 +186,7 @@ public class OrgUnit implements Serializable {
return
this
.
getAttributeValue
(
PERSON_MEMBER_NAME_FIELD_NAME
);
return
this
.
getAttributeValue
(
PERSON_MEMBER_NAME_FIELD_NAME
);
}
}
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"("
+
this
.
fullId
+
","
+
this
.
fullName
+
")@OrgUnit"
;
return
"("
+
this
.
fullId
+
","
+
this
.
fullName
+
")@OrgUnit"
;
}
}
...
...
huigou-common/src/main/java/com/huigou/context/PersonMember.java
View file @
8e50bc1a
...
@@ -64,8 +64,11 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -64,8 +64,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return
* @return
*/
*/
public
OrgNode
getPosition
()
{
public
OrgNode
getPosition
()
{
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
{
if
(
"pos"
.
equals
(((
OrgNode
)
parent
).
getType
()))
return
(
OrgNode
)
parent
;
if
(
"pos"
.
equals
(((
OrgNode
)
parent
).
getType
()))
{
return
(
OrgNode
)
parent
;
}
}
return
null
;
return
null
;
}
}
...
@@ -75,8 +78,11 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -75,8 +78,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return
* @return
*/
*/
public
OrgNode
getDept
()
{
public
OrgNode
getDept
()
{
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
{
if
(
"dpt"
.
equals
(((
OrgNode
)
parent
).
getType
()))
return
(
OrgNode
)
parent
;
if
(
"dpt"
.
equals
(((
OrgNode
)
parent
).
getType
()))
{
return
(
OrgNode
)
parent
;
}
}
return
null
;
return
null
;
}
}
...
@@ -86,8 +92,11 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -86,8 +92,11 @@ public class PersonMember extends OrgNode implements Serializable {
* @return
* @return
*/
*/
public
OrgNode
getOrgn
()
{
public
OrgNode
getOrgn
()
{
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
for
(
Object
parent
=
this
;
parent
!=
null
;
parent
=
((
OrgNode
)
parent
).
getParent
())
{
if
(
"ogn"
.
equals
(((
OrgNode
)
parent
).
getType
()))
return
(
OrgNode
)
parent
;
if
(
"ogn"
.
equals
(((
OrgNode
)
parent
).
getType
()))
{
return
(
OrgNode
)
parent
;
}
}
return
null
;
return
null
;
}
}
...
@@ -107,6 +116,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -107,6 +116,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
personId
=
personId
;
this
.
personId
=
personId
;
}
}
@Override
public
String
getOrgId
()
{
public
String
getOrgId
()
{
return
orgId
;
return
orgId
;
}
}
...
@@ -115,6 +125,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -115,6 +125,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
orgId
=
orgId
;
this
.
orgId
=
orgId
;
}
}
@Override
public
String
getOrgCode
()
{
public
String
getOrgCode
()
{
return
orgCode
;
return
orgCode
;
}
}
...
@@ -123,6 +134,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -123,6 +134,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
orgCode
=
orgCode
;
this
.
orgCode
=
orgCode
;
}
}
@Override
public
String
getOrgName
()
{
public
String
getOrgName
()
{
return
orgName
;
return
orgName
;
}
}
...
@@ -131,6 +143,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -131,6 +143,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
orgName
=
orgName
;
this
.
orgName
=
orgName
;
}
}
@Override
public
String
getDeptId
()
{
public
String
getDeptId
()
{
return
deptId
;
return
deptId
;
}
}
...
@@ -139,6 +152,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -139,6 +152,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
deptId
=
deptId
;
this
.
deptId
=
deptId
;
}
}
@Override
public
String
getDeptCode
()
{
public
String
getDeptCode
()
{
return
deptCode
;
return
deptCode
;
}
}
...
@@ -147,6 +161,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -147,6 +161,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
deptCode
=
deptCode
;
this
.
deptCode
=
deptCode
;
}
}
@Override
public
String
getDeptName
()
{
public
String
getDeptName
()
{
return
deptName
;
return
deptName
;
}
}
...
@@ -155,6 +170,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -155,6 +170,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
deptName
=
deptName
;
this
.
deptName
=
deptName
;
}
}
@Override
public
String
getPositionId
()
{
public
String
getPositionId
()
{
return
positionId
;
return
positionId
;
}
}
...
@@ -163,6 +179,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -163,6 +179,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
positionId
=
positionId
;
this
.
positionId
=
positionId
;
}
}
@Override
public
String
getPositionCode
()
{
public
String
getPositionCode
()
{
return
positionCode
;
return
positionCode
;
}
}
...
@@ -171,6 +188,7 @@ public class PersonMember extends OrgNode implements Serializable {
...
@@ -171,6 +188,7 @@ public class PersonMember extends OrgNode implements Serializable {
this
.
positionCode
=
positionCode
;
this
.
positionCode
=
positionCode
;
}
}
@Override
public
String
getPositionName
()
{
public
String
getPositionName
()
{
return
positionName
;
return
positionName
;
}
}
...
...
huigou-core-api/pom.xml
View file @
8e50bc1a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-core-api
</artifactId>
<artifactId>
huigou-core-api
</artifactId>
<name>
huigou-core-api
</name>
<name>
huigou-core-api
</name>
...
...
huigou-core-api/src/main/java/com/huigou/uasp/bpm/configuration/domain/model/HandlerKind.java
View file @
8e50bc1a
...
@@ -2,24 +2,48 @@ package com.huigou.uasp.bpm.configuration.domain.model;
...
@@ -2,24 +2,48 @@ package com.huigou.uasp.bpm.configuration.domain.model;
/**
/**
* 处理人类型
* 处理人类型
*
*
* @author gongmm
* @author gongmm
*/
*/
public
enum
HandlerKind
{
public
enum
HandlerKind
{
/**
* 管理权限
*/
MANAGE_AUTHORITY
(
"ManageAuthority"
,
" 管理权限"
),
MANAGE_AUTHORITY
(
"ManageAuthority"
,
" 管理权限"
),
/**
* 岗位
*/
POS
(
"Pos"
,
"岗位"
),
POS
(
"Pos"
,
"岗位"
),
/**
* 人员成员
*/
PSM
(
"Psm"
,
"人员成员"
),
PSM
(
"Psm"
,
"人员成员"
),
/**
* 部门
*/
DEPT
(
"Dept"
,
"部门"
),
DEPT
(
"Dept"
,
"部门"
),
/**
* 管理人员函数
*/
MANAGER_FUN
(
"ManagerFun"
,
"管理人员函数"
),
MANAGER_FUN
(
"ManagerFun"
,
"管理人员函数"
),
/**
* 基础段
*/
SEGMENTATION
(
"Segmentation"
,
"基础段"
),
SEGMENTATION
(
"Segmentation"
,
"基础段"
),
/**
* 手工选择
*/
MANUAL_SELECTION
(
"ManualSelection"
,
"手工选择"
),
MANUAL_SELECTION
(
"ManualSelection"
,
"手工选择"
),
/**
* 范围选择
*/
SCOPE_SELECTION
(
"ScopeSelection"
,
"范围选择"
);
SCOPE_SELECTION
(
"ScopeSelection"
,
"范围选择"
);
private
final
String
id
;
private
final
String
id
;
private
final
String
displayName
;
private
final
String
displayName
;
private
HandlerKind
(
String
id
,
String
displayName
)
{
HandlerKind
(
String
id
,
String
displayName
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
displayName
=
displayName
;
this
.
displayName
=
displayName
;
}
}
...
...
huigou-core-api/src/main/java/com/huigou/uasp/bpm/engine/application/HandlerParseService.java
View file @
8e50bc1a
...
@@ -7,36 +7,29 @@ import com.huigou.uasp.bpm.configuration.domain.model.HandlerKind;
...
@@ -7,36 +7,29 @@ import com.huigou.uasp.bpm.configuration.domain.model.HandlerKind;
/**
/**
* 处理人解析服务
* 处理人解析服务
*
*
* @author gongmm
* @author gongmm
*/
*/
public
interface
HandlerParseService
{
public
interface
HandlerParseService
{
static
String
CURRENT_BIZ_SEGEMENTATION_ID
=
"currentBizSegementationId"
;
String
CURRENT_BIZ_SEGEMENTATION_ID
=
"currentBizSegementationId"
;
/**
/**
* 构建处理人
* 构建处理人
*
*
* @param handlerKind
* @param handlerKind 处理人类别
* 处理人类别
* @param handlerId 处理人ID
* @param handlerId
* @param orgUnits 组织机构单元
* 处理人ID
* @param orgUnits
* 组织机构单元
*/
*/
void
buildHandler
(
HandlerKind
handlerKind
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
);
void
buildHandler
(
HandlerKind
handlerKind
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
);
/**
/**
* 构建处理人
* 构建处理人
*
*
* @param handlerKind
* @param handlerKind 处理人类别
* 处理人类别
* @param bizSegementationId 业务段ID
* @param bizSegementationId
* @param handlerId 处理人ID
* 业务段ID
* @param orgUnits 组织机构单元
* @param handlerId
* 处理人ID
* @param orgUnits
* 组织机构单元
*/
*/
void
buildSegmentationHandler
(
HandlerKind
handlerKind
,
Long
bizSegementationId
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
);
void
buildSegmentationHandler
(
HandlerKind
handlerKind
,
Long
bizSegementationId
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
);
}
}
huigou-core-impl/pom.xml
View file @
8e50bc1a
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.1
</version>
<version>
1.1.2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-core-impl
</artifactId>
<artifactId>
huigou-core-impl
</artifactId>
<name>
huigou-core-impl
</name>
<name>
huigou-core-impl
</name>
...
...
huigou-core-proxy/pom.xml
View file @
8e50bc1a
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.1
</version>
<version>
1.1.2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-core-proxy
</artifactId>
<artifactId>
huigou-core-proxy
</artifactId>
<name>
huigou-core-proxy
</name>
<name>
huigou-core-proxy
</name>
...
...
huigou-data/pom.xml
View file @
8e50bc1a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-data
</artifactId>
<artifactId>
huigou-data
</artifactId>
<name>
huigou-data
</name>
<name>
huigou-data
</name>
...
...
huigou-loader/pom.xml
View file @
8e50bc1a
...
@@ -5,8 +5,7 @@
...
@@ -5,8 +5,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.1
</version>
<version>
1.1.2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-loader
</artifactId>
<artifactId>
huigou-loader
</artifactId>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
...
...
huigou-system-common/pom.xml
View file @
8e50bc1a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-system-common
</artifactId>
<artifactId>
huigou-system-common
</artifactId>
...
...
huigou-uasp/pom.xml
View file @
8e50bc1a
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.1
</version>
<version>
1.1.2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-uasp
</artifactId>
<artifactId>
huigou-uasp
</artifactId>
<name>
统一架构平台
</name>
<name>
统一架构平台
</name>
...
@@ -329,6 +328,12 @@
...
@@ -329,6 +328,12 @@
<groupId>
com.github.binarywang
</groupId>
<groupId>
com.github.binarywang
</groupId>
<artifactId>
weixin-java-cp
</artifactId>
<artifactId>
weixin-java-cp
</artifactId>
<version>
2.4.3
</version>
<version>
2.4.3
</version>
<exclusions>
<exclusion>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
...
...
huigou-uasp/src/main/java/com/huigou/uasp/bpm/engine/application/impl/HandlerParseServiceImpl.java
View file @
8e50bc1a
...
@@ -110,6 +110,7 @@ public class HandlerParseServiceImpl implements HandlerParseService {
...
@@ -110,6 +110,7 @@ public class HandlerParseServiceImpl implements HandlerParseService {
}
}
}
}
@Override
public
void
buildSegmentationHandler
(
HandlerKind
handlerKind
,
Long
bizSegementationId
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
)
{
public
void
buildSegmentationHandler
(
HandlerKind
handlerKind
,
Long
bizSegementationId
,
String
handlerId
,
List
<
OrgUnit
>
orgUnits
)
{
ThreadLocalUtil
.
putVariable
(
CURRENT_BIZ_SEGEMENTATION_ID
,
bizSegementationId
);
ThreadLocalUtil
.
putVariable
(
CURRENT_BIZ_SEGEMENTATION_ID
,
bizSegementationId
);
try
{
try
{
...
...
huigou-xt/pom.xml
View file @
8e50bc1a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<parent>
<parent>
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
huigou-xt
</artifactId>
<artifactId>
huigou-xt
</artifactId>
<name>
统一应用支撑平台
</name>
<name>
统一应用支撑平台
</name>
...
...
pom.xml
View file @
8e50bc1a
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
<groupId>
com.huigou
</groupId>
<groupId>
com.huigou
</groupId>
<artifactId>
root
</artifactId>
<artifactId>
root
</artifactId>
<version>
1.1.1
</version>
<version>
1.1.2-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<modules>
<modules>
...
@@ -152,14 +151,14 @@
...
@@ -152,14 +151,14 @@
<tomcat.version>
8.5.20
</tomcat.version>
<tomcat.version>
8.5.20
</tomcat.version>
<shiro.version>
1.2.5
</shiro.version>
<shiro.version>
1.2.5
</shiro.version>
<jedis.version>
2.9.0
</jedis.version>
<jedis.version>
2.9.0
</jedis.version>
<shiro-redis.version>
2.
4.2-RELEASE
</shiro-redis.version>
<shiro-redis.version>
2.
8.24
</shiro-redis.version>
<shiro-ehcache.version>
1.4.0
</shiro-ehcache.version>
<shiro-ehcache.version>
1.4.0
</shiro-ehcache.version>
<shiro-cas.version>
1.2.4
</shiro-cas.version>
<shiro-cas.version>
1.2.4
</shiro-cas.version>
<cas-client-core.version>
3.2.1
</cas-client-core.version>
<cas-client-core.version>
3.2.1
</cas-client-core.version>
<!-- test -->
<!-- test -->
<junit.version>
4.9
</junit.version>
<junit.version>
4.9
</junit.version>
<spring-data-mongodb.version>
1.9.3.RELEASE
</spring-data-mongodb.version>
<spring-data-mongodb.version>
1.9.3.RELEASE
</spring-data-mongodb.version>
<huigou.uasp.version>
1.1.
1
</huigou.uasp.version>
<huigou.uasp.version>
1.1.
2-SNAPSHOT
</huigou.uasp.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
...
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