Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ed5d37b6
Commit
ed5d37b6
authored
Dec 26, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ugp流程问题
parent
44f5e17b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
ProjectInitiationServiceImpl.java
...le/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
+7
-1
TaskServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
+3
-2
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectInitiationServiceImpl.java
View file @
ed5d37b6
...
@@ -111,6 +111,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -111,6 +111,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
JSONObject
object
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
objectd
));
JSONObject
object
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
objectd
));
Project
project
=
JSON
.
parseObject
(
JSONObject
.
toJSONString
(
objectd
),
Project
.
class
);
Project
project
=
JSON
.
parseObject
(
JSONObject
.
toJSONString
(
objectd
),
Project
.
class
);
if
(
ValidationUtil
.
isEmpty
(
project
.
getName
())){
project
=
projectService
.
getById
(
object
.
getLong
(
"projectId"
));
}
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
AjaxResult
ajaxResult
=
Workflow
.
taskClient
.
getTask
(
instanceId
);
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
JSONObject
dataObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
ajaxResult
.
get
(
"data"
)));
ProjectInitiation
projectInitiation
=
new
ProjectInitiation
();
ProjectInitiation
projectInitiation
=
new
ProjectInitiation
();
...
@@ -121,7 +124,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -121,7 +124,7 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
projectInitiation
.
setTaskName
(
dataObject
.
getString
(
"name"
));
projectInitiation
.
setTaskName
(
dataObject
.
getString
(
"name"
));
//项目的管辖区域
//项目的管辖区域
String
regionCode
=
object
.
getString
(
"region"
);
String
regionCode
=
project
.
getInstallRegionCode
(
);
LambdaQueryWrapper
<
SuperviseRule
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SuperviseRule
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
SuperviseRule
::
getAdminRegionCode
,
regionCode
);
wrapper
.
eq
(
SuperviseRule
::
getAdminRegionCode
,
regionCode
);
SuperviseRule
superviseRule
=
superviseRuleService
.
getOne
(
wrapper
);
SuperviseRule
superviseRule
=
superviseRuleService
.
getOne
(
wrapper
);
...
@@ -179,6 +182,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
...
@@ -179,6 +182,9 @@ public class ProjectInitiationServiceImpl extends BaseService<ProjectInitiationD
//新增任务表的状态 待办
//新增任务表的状态 待办
project
=
projectService
.
getById
(
object
.
getLong
(
"sequenceNbr"
));
project
=
projectService
.
getById
(
object
.
getLong
(
"sequenceNbr"
));
if
(
ValidationUtil
.
isEmpty
(
project
)){
project
=
projectService
.
getById
(
object
.
getLong
(
"projectId"
));
}
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskType
=
getUnitId
(
unitIds
,
project
,
superviseRule
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
taskService
.
saveOrUpdateTask
(
project
.
getStatus
(),
false
,
taskType
,
new
Date
(),
object
.
getLong
(
"sequenceNbr"
),
TaskTypeEnum
.
项目立项
.
getKey
(),
unitIds
);
}
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
View file @
ed5d37b6
...
@@ -101,10 +101,11 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
...
@@ -101,10 +101,11 @@ public class TaskServiceImpl extends BaseService<TaskDto, Task, TaskMapper> impl
.
eq
(
Task:
:
getTitle
,
InitiationStatus
)
.
eq
(
Task:
:
getTitle
,
InitiationStatus
)
.
eq
(
Task:
:
getSourceId
,
sourceId
)
.
eq
(
Task:
:
getSourceId
,
sourceId
)
.
eq
(
Task:
:
getUnitId
,
unitId
);
.
eq
(
Task:
:
getUnitId
,
unitId
);
task
=
this
.
getOne
(
wrapper
);
List
<
Task
>
taskList
=
this
.
list
(
wrapper
);
if
(
ValidationUtil
.
isEmpty
(
task
))
{
if
(
ValidationUtil
.
isEmpty
(
task
List
))
{
return
;
return
;
}
}
task
=
taskList
.
iterator
().
next
();
task
.
setStatusLabel
(
TaskTypeEnum
.
已办
.
getName
());
task
.
setStatusLabel
(
TaskTypeEnum
.
已办
.
getName
());
taskStatus
=
"已完成"
;
taskStatus
=
"已完成"
;
}
else
{
}
else
{
...
...
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