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
1efc746e
Commit
1efc746e
authored
Dec 23, 2019
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huigou-xt 可以独立启动
parent
2ae7790c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
613 additions
and
111 deletions
+613
-111
view.sql
db/view.sql
+87
-0
JSONUtil.java
huigou-common/src/main/java/com/huigou/util/JSONUtil.java
+15
-15
pom.xml
huigou-xt/pom.xml
+502
-69
pom.xml
pom.xml
+9
-27
No files found.
db/view.sql
0 → 100644
View file @
1efc746e
DROP
VIEW
"SYS_USERS_VIEW"
;
DROP
VIEW
"V_ACT_HI_PROCINST"
;
DROP
VIEW
"V_ACT_HI_TASK"
;
DROP
VIEW
"V_ACT_HI_TASK_FOR_DELETE"
;
DROP
VIEW
"V_ACT_RU_TASK"
;
DROP
VIEW
"V_SA_OPORG_EXCLUDE_POS"
;
CREATE
OR
REPLACE
VIEW
"SYS_USERS_VIEW"
(
"EMPID"
,
"EMPNAME"
,
"USERID"
,
"STATUS"
,
"PASSWORD"
,
"ORGID_ID"
)
AS
select
p
.
id
EMPID
,
p
.
name
EMPNAME
,
p
.
login_name
USERID
,
o
.
status
,
p
.
password
,
listagg
(
o
.
dept_id
,
','
)
within
group
(
order
by
o
.
sequence
)
as
ORGID_ID
from
sa_oporg
o
,
sa_opperson
p
where
o
.
person_id
=
p
.
id
and
o
.
org_kind_id
=
'psm'
and
o
.
status
=
1
group
by
p
.
id
,
p
.
name
,
p
.
login_name
,
p
.
password
,
o
.
status
;
CREATE
OR
REPLACE
VIEW
"V_ACT_HI_PROCINST"
(
"PROC_INST_ID_"
,
"BUSINESS_KEY_"
,
"PROC_DEF_ID_"
,
"PROCESS_DEFINITION_KEY_"
,
"PROC_FULL_ID"
,
"PROC_FULL_NAME"
,
"PROC_NAME"
,
"PROC_SYS_NAME"
,
"START_TIME_"
,
"END_TIME_"
,
"APPLICANT_PERSON_MEMBER_ID_"
,
"APPLICANT_PERSON_MEMBER_NAME_"
,
"APPLICANT_DEPT_NAME_"
,
"APPLICANT_ORG_NAME_"
,
"PROC_STATUS_ID_"
)
AS
select
pe
.
id_
as
proc_inst_id_
,
pe
.
business_key_
,
pe
.
proc_def_id_
,
pe
.
key_
as
process_definition_key_
,
pdf
.
full_id
proc_full_id
,
pdf
.
full_name
proc_full_name
,
pdf
.
name
proc_name
,
substr
(
pdf
.
full_name
,
2
,
instr
(
pdf
.
full_name
,
'/'
,
2
)
-
2
)
proc_sys_name
,
pe
.
start_time_
,
pe
.
end_time_
,
pe
.
applicant_person_member_id_
,
pe
.
applicant_person_member_name_
,
pe
.
applicant_dept_name_
,
pe
.
applicant_org_name_
,
pe
.
status_id_
proc_status_id_
from
act_hi_procinst_extension
pe
,
act_re_procdef
pd
,
wf_procdef
pdf
where
pe
.
proc_def_id_
=
pd
.
id_
and
pd
.
key_
=
pdf
.
proc_id
(
+
)
and
pdf
.
node_kind_id
(
+
)
=
'proc'
;
CREATE
OR
REPLACE
VIEW
"V_ACT_HI_TASK"
(
"ID_"
,
"PROC_INST_ID_"
,
"PROC_DEF_ID_"
,
"NAME_"
,
"PARENT_TASK_ID_"
,
"DESCRIPTION_"
,
"CREATOR_OGN_NAME_"
,
"CREATOR_DEPT_NAME_"
,
"TASK_DEF_KEY_"
,
"PROCESS_DEFINITION_KEY_"
,
"PRIORITY_"
,
"START_TIME_"
,
"END_TIME_"
,
"DUE_DATE_"
,
"KIND_ID_"
,
"CREATOR_URL_"
,
"EXECUTOR_URL_"
,
"CREATOR_PERSON_MEMBER_NAME_"
,
"CREATOR_FULL_ID_"
,
"EXECUTOR_FULL_ID_"
,
"EXECUTOR_PERSON_MEMBER_NAME_"
,
"EXECUTOR_NAMES_"
,
"STATUS_ID_"
,
"STATUS_NAME_"
,
"CATALOG_ID_"
,
"PREVIOUS_ID_"
,
"BUSINESS_KEY_"
,
"BUSINESS_CODE_"
,
"PROC_UNIT_HANDLER_ID_"
,
"EXECUTOR_PERSON_MEMBER_ID_"
,
"CREATOR_PERSON_MEMBER_ID_"
,
"NEED_TIMING_"
,
"APPLICANT_PERSON_MEMBER_ID_"
,
"APPLICANT_PERSON_MEMBER_NAME_"
)
AS
select
te
.
id_
,
te
.
proc_inst_id_
,
te
.
proc_def_id_
,
te
.
name_
,
te
.
parent_task_id_
,
te
.
description_
,
te
.
creator_ogn_name_
,
te
.
creator_dept_name_
,
te
.
task_def_key_
,
te
.
process_definition_key_
,
te
.
priority_
,
te
.
start_time_
,
te
.
end_time_
,
te
.
due_date_
,
te
.
kind_id_
,
te
.
creator_url_
,
te
.
executor_url_
,
te
.
creator_person_member_name_
,
te
.
creator_full_id_
,
te
.
executor_full_id_
,
te
.
executor_person_member_name_
,
te
.
executor_names_
,
te
.
status_id_
,
te
.
status_name_
,
te
.
catalog_id_
,
te
.
previous_id_
,
te
.
business_key_
,
te
.
business_code_
,
te
.
proc_unit_handler_id_
,
te
.
executor_person_member_id_
,
te
.
creator_person_member_id_
,
te
.
need_timing_
,
te
.
applicant_person_member_id_
,
te
.
applicant_person_member_name_
from
act_hi_taskinst_extension
te
;
CREATE
OR
REPLACE
VIEW
"V_ACT_HI_TASK_FOR_DELETE"
(
"ID_"
,
"PROC_INST_ID_"
,
"PROC_DEF_ID_"
,
"NAME_"
,
"PARENT_TASK_ID_"
,
"DESCRIPTION_"
,
"CREATOR_OGN_NAME_"
,
"CREATOR_DEPT_NAME_"
,
"TASK_DEF_KEY_"
,
"PROCESS_DEFINITION_KEY_"
,
"PRIORITY_"
,
"START_TIME_"
,
"END_TIME_"
,
"DUE_DATE_"
,
"KIND_ID_"
,
"CREATOR_URL_"
,
"EXECUTOR_URL_"
,
"CREATOR_PERSON_MEMBER_NAME_"
,
"CREATOR_FULL_ID_"
,
"EXECUTOR_FULL_ID_"
,
"EXECUTOR_PERSON_MEMBER_NAME_"
,
"EXECUTOR_NAMES_"
,
"STATUS_ID_"
,
"STATUS_NAME_"
,
"CATALOG_ID_"
,
"PREVIOUS_ID_"
,
"BUSINESS_KEY_"
,
"BUSINESS_CODE_"
,
"PROC_UNIT_HANDLER_ID_"
,
"EXECUTOR_PERSON_MEMBER_ID_"
,
"CREATOR_PERSON_MEMBER_ID_"
,
"NEED_TIMING_"
,
"APPLICANT_PERSON_MEMBER_ID_"
,
"APPLICANT_PERSON_MEMBER_NAME_"
)
AS
select
te
.
id_
,
te
.
proc_inst_id_
,
te
.
proc_def_id_
,
te
.
name_
,
te
.
parent_task_id_
,
te
.
description_
,
te
.
creator_ogn_name_
,
te
.
creator_dept_name_
,
te
.
task_def_key_
,
te
.
process_definition_key_
,
te
.
priority_
,
te
.
start_time_
,
te
.
end_time_
,
te
.
due_date_
,
te
.
kind_id_
,
te
.
creator_url_
,
te
.
executor_url_
,
te
.
creator_person_member_name_
,
te
.
creator_full_id_
,
te
.
executor_full_id_
,
te
.
executor_person_member_name_
,
te
.
executor_names_
,
te
.
status_id_
,
te
.
status_name_
,
te
.
catalog_id_
,
te
.
previous_id_
,
te
.
business_key_
,
te
.
business_code_
,
te
.
proc_unit_handler_id_
,
te
.
executor_person_member_id_
,
te
.
creator_person_member_id_
,
te
.
need_timing_
,
te
.
applicant_person_member_id_
,
te
.
applicant_person_member_name_
from
act_hi_taskinst_extension
te
;
CREATE
OR
REPLACE
VIEW
"V_ACT_RU_TASK"
(
"ID_"
,
"PROC_INST_ID_"
,
"PROC_DEF_ID_"
,
"NAME_"
,
"PARENT_TASK_ID_"
,
"DESCRIPTION_"
,
"CREATOR_OGN_NAME_"
,
"CREATOR_DEPT_NAME_"
,
"TASK_DEF_KEY_"
,
"PROCESS_DEFINITION_KEY_"
,
"DELEGATION_"
,
"PRIORITY_"
,
"START_TIME_"
,
"END_TIME_"
,
"DUE_DATE_"
,
"SUSPENSION_STATE_"
,
"KIND_ID_"
,
"CREATOR_URL_"
,
"EXECUTOR_URL_"
,
"CREATOR_PERSON_MEMBER_NAME_"
,
"CREATOR_FULL_ID_"
,
"EXECUTOR_FULL_ID_"
,
"EXECUTOR_PERSON_MEMBER_NAME_"
,
"EXECUTOR_NAMES_"
,
"STATUS_ID_"
,
"STATUS_NAME_"
,
"CATALOG_ID_"
,
"PREVIOUS_ID_"
,
"BUSINESS_KEY_"
,
"BUSINESS_CODE_"
,
"PROC_UNIT_HANDLER_ID_"
,
"EXECUTOR_PERSON_MEMBER_ID_"
,
"CREATOR_PERSON_MEMBER_ID_"
,
"NEED_TIMING_"
,
"APPLICANT_PERSON_MEMBER_ID_"
,
"APPLICANT_PERSON_MEMBER_NAME_"
)
AS
select
te
.
id_
,
te
.
proc_inst_id_
,
te
.
proc_def_id_
,
te
.
name_
,
te
.
parent_task_id_
,
te
.
description_
,
te
.
creator_ogn_name_
,
te
.
creator_dept_name_
,
te
.
task_def_key_
,
te
.
process_definition_key_
,
te
.
delegation_
,
te
.
priority_
,
te
.
start_time_
,
''
end_time_
,
te
.
due_date_
,
te
.
suspension_state_
,
te
.
kind_id_
,
te
.
creator_url_
,
te
.
executor_url_
,
te
.
creator_person_member_name_
,
te
.
creator_full_id_
,
te
.
executor_full_id_
,
te
.
executor_person_member_name_
,
te
.
executor_names_
,
te
.
status_id_
,
te
.
status_name_
,
te
.
catalog_id_
,
te
.
previous_id_
,
te
.
business_key_
,
te
.
business_code_
,
te
.
proc_unit_handler_id_
,
te
.
executor_person_member_id_
,
te
.
creator_person_member_id_
,
te
.
need_timing_
,
te
.
applicant_person_member_id_
,
te
.
applicant_person_member_name_
from
act_ru_task_extension
te
;
CREATE
OR
REPLACE
VIEW
"V_SA_OPORG_EXCLUDE_POS"
(
"ID"
,
"TYPE_ID"
,
"CODE"
,
"NAME"
,
"LONG_NAME"
,
"PARENT_ID"
,
"FULL_ID"
,
"FULL_CODE"
,
"FULL_NAME"
,
"ORG_KIND_ID"
,
"DEPTH"
,
"PERSON_ID"
,
"NODE_KIND_ID"
,
"DESCRIPTION"
,
"STATUS"
,
"SEQUENCE"
,
"VERSION"
,
"ORG_CODE"
,
"DEPT_CODE"
,
"POSITION_CODE"
,
"PERSON_MEMBER_CODE"
,
"IS_CENTER"
,
"CENTER_CODE"
,
"ORG_ID"
,
"DEPT_ID"
,
"POSITION_ID"
,
"PERSON_MEMBER_ID"
,
"CENTER_ID"
,
"ORG_NAME"
,
"DEPT_NAME"
,
"POSITION_NAME"
,
"PERSON_MEMBER_NAME"
,
"CENTER_NAME"
,
"FULL_SEQUENCE"
,
"FULL_ORG_KIND_ID"
,
"IS_VIRTUAL"
)
AS
select
id
,
type_id
,
code
,
name
,
long_name
,
decode
(
org_kind_id
,
'psm'
,
dept_id
,
parent_id
)
parent_id
,
full_id
,
full_code
,
full_name
,
org_kind_id
,
depth
,
person_id
,
node_kind_id
,
description
,
status
,
sequence
,
version
,
org_code
,
dept_code
,
position_code
,
person_member_code
,
is_center
,
center_code
,
org_id
,
dept_id
,
position_id
,
person_member_id
,
center_id
,
org_name
,
dept_name
,
position_name
,
person_member_name
,
center_name
,
full_sequence
,
full_org_kind_id
,
is_virtual
from
sa_oporg
where
org_kind_id
!=
'pos'
;
huigou-common/src/main/java/com/huigou/util/JSONUtil.java
View file @
1efc746e
...
@@ -28,7 +28,7 @@ import com.huigou.annotation.JsonIgnore;
...
@@ -28,7 +28,7 @@ import com.huigou.annotation.JsonIgnore;
/**
/**
* json 转换工具
* json 转换工具
*
*
* @author xx
* @author xx
*/
*/
@SuppressWarnings
(
"serial"
)
@SuppressWarnings
(
"serial"
)
...
@@ -74,7 +74,7 @@ public class JSONUtil {
...
@@ -74,7 +74,7 @@ public class JSONUtil {
/**
/**
* 对象转换为JSON字符串
* 对象转换为JSON字符串
*
*
* @param obj
* @param obj
* @return
* @return
*/
*/
...
@@ -91,7 +91,7 @@ public class JSONUtil {
...
@@ -91,7 +91,7 @@ public class JSONUtil {
/**
/**
* 列表转换为JSON字符串
* 列表转换为JSON字符串
*
*
* @param collection
* @param collection
* @return
* @return
*/
*/
...
@@ -108,7 +108,7 @@ public class JSONUtil {
...
@@ -108,7 +108,7 @@ public class JSONUtil {
/**
/**
* 将json转成特定的cls的对象
* 将json转成特定的cls的对象
*
*
* @param jsonString
* @param jsonString
* @param cls
* @param cls
* @return
* @return
...
@@ -126,7 +126,7 @@ public class JSONUtil {
...
@@ -126,7 +126,7 @@ public class JSONUtil {
/**
/**
* json字符串转成map的
* json字符串转成map的
*
*
* @param jsonString
* @param jsonString
* @return
* @return
*/
*/
...
@@ -145,7 +145,7 @@ public class JSONUtil {
...
@@ -145,7 +145,7 @@ public class JSONUtil {
/**
/**
* 转换为带对象的MAP
* 转换为带对象的MAP
*
*
* @param jsonString
* @param jsonString
* @param clazz
* @param clazz
* @return
* @return
...
@@ -153,13 +153,13 @@ public class JSONUtil {
...
@@ -153,13 +153,13 @@ public class JSONUtil {
*/
*/
public
static
<
T
>
Map
<
String
,
T
>
toMap
(
String
jsonString
,
Class
<
T
>
clazz
)
{
public
static
<
T
>
Map
<
String
,
T
>
toMap
(
String
jsonString
,
Class
<
T
>
clazz
)
{
if
(
StringUtil
.
isBlank
(
jsonString
))
{
if
(
StringUtil
.
isBlank
(
jsonString
))
{
return
new
HashMap
<
String
,
T
>(
);
return
new
HashMap
<
>(
16
);
}
}
try
{
try
{
Map
<
String
,
Map
<
String
,
Object
>>
map
=
objectMapper
.
readValue
(
jsonString
,
new
TypeReference
<
Map
<
String
,
T
>>()
{
Map
<
String
,
Map
<
String
,
T
>>
map
=
objectMapper
.
readValue
(
jsonString
,
new
TypeReference
<
Map
<
String
,
Map
<
String
,
T
>
>>()
{
});
});
Map
<
String
,
T
>
result
=
new
HashMap
<
String
,
T
>();
Map
<
String
,
T
>
result
=
new
HashMap
<
String
,
T
>();
for
(
Entry
<
String
,
Map
<
String
,
Object
>>
entry
:
map
.
entrySet
())
{
for
(
Entry
<
String
,
Map
<
String
,
T
>>
entry
:
map
.
entrySet
())
{
result
.
put
(
entry
.
getKey
(),
map2pojo
(
entry
.
getValue
(),
clazz
));
result
.
put
(
entry
.
getKey
(),
map2pojo
(
entry
.
getValue
(),
clazz
));
}
}
return
result
;
return
result
;
...
@@ -175,7 +175,7 @@ public class JSONUtil {
...
@@ -175,7 +175,7 @@ public class JSONUtil {
/**
/**
* 转换为对象
* 转换为对象
*
*
* @param jsonString
* @param jsonString
* @param clazz
* @param clazz
* @return
* @return
...
@@ -195,16 +195,16 @@ public class JSONUtil {
...
@@ -195,16 +195,16 @@ public class JSONUtil {
/**
/**
* json字符串转成list中有map的
* json字符串转成list中有map的
*
*
* @param jsonString
* @param jsonString
* @return
* @return
*/
*/
public
static
List
<
Map
<
String
,
Object
>>
toListMap
(
String
jsonString
)
{
public
static
List
<
Map
<
String
,
Object
>>
toListMap
(
String
jsonString
)
{
if
(
StringUtil
.
isBlank
(
jsonString
))
{
if
(
StringUtil
.
isBlank
(
jsonString
))
{
return
new
ArrayList
<
Map
<
String
,
Object
>
>();
return
new
ArrayList
<>();
}
}
try
{
try
{
List
<
Map
<
String
,
Object
>>
list
=
objectMapper
.
readValue
(
jsonString
,
new
TypeReference
<
List
<
Object
>>()
{
List
<
Map
<
String
,
Object
>>
list
=
objectMapper
.
readValue
(
jsonString
,
new
TypeReference
<
List
<
Map
<
String
,
Object
>
>>()
{
});
});
return
list
;
return
list
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -214,7 +214,7 @@ public class JSONUtil {
...
@@ -214,7 +214,7 @@ public class JSONUtil {
/**
/**
* JSON字符串转化为list
* JSON字符串转化为list
*
*
* @param jsonString
* @param jsonString
* @param clazz
* @param clazz
* @return
* @return
...
@@ -234,7 +234,7 @@ public class JSONUtil {
...
@@ -234,7 +234,7 @@ public class JSONUtil {
/**
/**
* JSON字符串转化为list
* JSON字符串转化为list
*
*
* @param jsonString
* @param jsonString
* @return
* @return
*/
*/
...
...
huigou-xt/pom.xml
View file @
1efc746e
This diff is collapsed.
Click to expand it.
pom.xml
View file @
1efc746e
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<properties>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<
org.codehaus.jackson.version>
1.9.12
</org.codehaus.
jackson.version>
<
jackson.version>
2.10.1
</
jackson.version>
<activiti.version>
5.21.0
</activiti.version>
<activiti.version>
5.21.0
</activiti.version>
<asm.version>
5.0.4
</asm.version>
<asm.version>
5.0.4
</asm.version>
<aspectj.version>
1.9.2
</aspectj.version>
<aspectj.version>
1.9.2
</aspectj.version>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<httpcomponents.version>
4.5
</httpcomponents.version>
<httpcomponents.version>
4.5
</httpcomponents.version>
<httpcore.version>
4.4.6
</httpcore.version>
<httpcore.version>
4.4.6
</httpcore.version>
<oro.version>
2.0.7
</oro.version>
<oro.version>
2.0.7
</oro.version>
<java-uuid-generator.version>
3.
1
.0
</java-uuid-generator.version>
<java-uuid-generator.version>
3.
2
.0
</java-uuid-generator.version>
<javassist.version>
3.11.0.GA
</javassist.version>
<javassist.version>
3.11.0.GA
</javassist.version>
<jpush.version>
3.1.1
</jpush.version>
<jpush.version>
3.1.1
</jpush.version>
<json.version>
20140107
</json.version>
<json.version>
20140107
</json.version>
...
@@ -1430,7 +1430,7 @@
...
@@ -1430,7 +1430,7 @@
<dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<groupId>
javax.servlet
</groupId>
<artifactId>
jstl
</artifactId>
<artifactId>
jstl
</artifactId>
<version>
1.
1.3-SNAPSHOT
</version>
<version>
1.
2
</version>
<exclusions>
<exclusions>
<exclusion>
<exclusion>
<groupId>
*
</groupId>
<groupId>
*
</groupId>
...
@@ -1807,33 +1807,15 @@
...
@@ -1807,33 +1807,15 @@
</exclusions>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.codehaus.jackson
</groupId>
<groupId>
com.fasterxml.jackson.jaxrs
</groupId>
<artifactId>
jackson-jaxrs
</artifactId>
<artifactId>
jackson-jaxrs-json-provider
</artifactId>
<version>
${org.codehaus.jackson.version}
</version>
<version>
${jackson.version}
</version>
</dependency>
<dependency>
<groupId>
org.codehaus.jackson
</groupId>
<artifactId>
jackson-core-asl
</artifactId>
<version>
${org.codehaus.jackson.version}
</version>
<exclusions>
<exclusion>
<groupId>
*
</groupId>
<artifactId>
*
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.codehaus.jackson
</groupId>
<groupId>
com.fasterxml.jackson.core
</groupId>
<artifactId>
jackson-mapper-asl
</artifactId>
<artifactId>
jackson-databind
</artifactId>
<version>
${org.codehaus.jackson.version}
</version>
<version>
${jackson.version}
</version>
<exclusions>
<exclusion>
<groupId>
*
</groupId>
<artifactId>
*
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<!-- Docx4j -->
<!-- Docx4j -->
<dependency>
<dependency>
<groupId>
org.docx4j
</groupId>
<groupId>
org.docx4j
</groupId>
...
...
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