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
63ec9c86
Commit
63ec9c86
authored
Oct 25, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
双规小程序接口
parent
6ad426a3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
108 deletions
+35
-108
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+2
-0
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+11
-2
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+2
-1
IJobService.java
...main/java/com/yeejoin/amos/patrol/quartz/IJobService.java
+1
-1
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+19
-104
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
63ec9c86
...
...
@@ -221,6 +221,8 @@ public class CheckController extends AbstractBaseController {
AgencyUserModel
user
=
getUserInfo
();
String
userId
=
user
.
getUserId
();
String
realName
=
user
.
getRealName
();
requestParam
.
setUserId
(
userId
);
requestParam
.
setUserName
(
realName
);
requestParam
.
setIsOffline
(
requestParam
.
getIsOffline
()==
null
?
false
:
requestParam
.
getIsOffline
());
try
{
if
(
planTask
!=
null
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
63ec9c86
...
...
@@ -518,10 +518,19 @@ public class CheckServiceImpl implements ICheckService {
check
.
setOrgCode
(
requestParam
.
getOrgCode
());
check
.
setUserId
(
requestParam
.
getUserId
());
StringBuffer
deptName
=
new
StringBuffer
();
if
(
planTask
.
getUserDept
().
indexOf
(
","
)
>
0
)
{
List
<
String
>
depts
=
Arrays
.
asList
(
planTask
.
getUserDept
().
split
(
","
));
depts
.
stream
().
forEach
(
dept
->
{
deptName
.
append
(
dept
.
split
(
"@"
)[
2
]).
append
(
","
);
});
}
check
.
setDepName
(
deptName
.
substring
(
0
,
deptName
.
length
()
-
1
));
check
.
setUserName
(
requestParam
.
getUserName
());
check
.
setDepId
(
requestParam
.
getDepId
());
check
.
setDepName
(
requestParam
.
getDepName
());
//
check.setDepId(requestParam.getDepId());
//
check.setDepName(requestParam.getDepName());
check
.
setCheckMode
(
requestParam
.
getCheckMode
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
63ec9c86
...
...
@@ -1151,7 +1151,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
});
}
// 生成巡检记录
jobService
.
createCheckRecord
(
planTask
);
jobService
.
createCheckRecord
(
planTask
,
userId
);
}
...
...
@@ -1491,6 +1491,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
input
.
setDataJson
(
action
.
getDataJson
());
input
.
setIsMultiline
(
action
.
getIsMultiline
());
input
.
setIsMust
(
action
.
getIsMust
());
input
.
setInputValue
(
null
);
if
(
null
!=
check
)
{
for
(
CheckInput
ck
:
check
.
getCheckInput
()
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/IJobService.java
View file @
63ec9c86
...
...
@@ -62,6 +62,6 @@ public interface IJobService {
*/
public
void
msgJobPerform
(
long
msgId
,
String
jobType
,
String
jobName
);
public
void
createCheckRecord
(
PlanTask
planTask
);
public
void
createCheckRecord
(
PlanTask
planTask
,
String
userId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/JobService.java
View file @
63ec9c86
This diff is collapsed.
Click to expand it.
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