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
af1583a7
Commit
af1583a7
authored
Feb 11, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.巡检bug修改,23425, 25978
parent
ff5cef42
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
AlertCalledServiceImpl.java
...ule/elevator/biz/service/impl/AlertCalledServiceImpl.java
+3
-1
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+3
-3
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+9
-0
dbTemplate_check.xml
...rol-biz/src/main/resources/db/mapper/dbTemplate_check.xml
+3
-3
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertCalledServiceImpl.java
View file @
af1583a7
...
...
@@ -857,7 +857,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
String
number
=
DateUtils
.
stampToDate
(
SystemClock
.
now
(),
"yyyyMMddHHmmss"
);
workOrderNumber
=
number
+
seq
;
}
finally
{
lock
.
unlock
();
if
(
lock
.
isHeldByCurrentThread
())
{
lock
.
unlock
();
}
}
return
workOrderNumber
;
}
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
af1583a7
...
...
@@ -292,7 +292,7 @@ public class CheckController extends AbstractBaseController {
Date
endTime
=
DateUtil
.
getLongDate
(
planTask
.
getEndTime
());
int
beginCompareTo
=
checkTime
.
compareTo
(
beginTime
);
int
endCompareTo
=
checkTime
.
compareTo
(
endTime
);
if
(
beginCompareTo
==
-
1
||
endCompareTo
==
1
){
if
(
beginCompareTo
<
0
||
endCompareTo
>
0
){
return
ResponseHelper
.
buildResponse
(
"请在计划时间内完成任务!"
);
}
}
...
...
@@ -598,7 +598,7 @@ public class CheckController extends AbstractBaseController {
@GetMapping
(
value
=
"/checkCalendarForWx"
,
produces
=
"application/json;charset=UTF-8"
)
public
ResponseModel
<
Object
>
checkCalendarForWx
(
@RequestParam
(
required
=
false
)
String
checkTime
,
@RequestParam
(
required
=
true
)
String
type
)
{
@RequestParam
String
type
)
{
try
{
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
();
...
...
@@ -609,7 +609,7 @@ public class CheckController extends AbstractBaseController {
stopWatch
.
stop
();
log
.
info
(
"获取巡检日历数据=====> loginOrgCode time: {}"
,
stopWatch
.
getTotalTimeSeconds
());
if
(
StringUtils
.
isBlank
(
checkTime
))
{
if
(
type
.
equals
(
String
.
valueOf
(
PlanTaskTypeStatusEnum
.
month
.
get
Valu
e
())))
{
if
(
type
.
equals
(
String
.
valueOf
(
PlanTaskTypeStatusEnum
.
month
.
get
Nam
e
())))
{
checkTime
=
DateUtils
.
dateFormat
(
new
Date
(),
DateUtils
.
YEAR_PATTERN
);
}
else
{
checkTime
=
DateUtils
.
dateFormat
(
new
Date
(),
DateUtils
.
MONTH_PATTERN
);
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
af1583a7
...
...
@@ -618,6 +618,15 @@ public class CheckServiceImpl implements ICheckService {
taskDetail
.
setStatus
(
CheckStatusEnum
.
QUALIFIED
.
getCode
());
}
planTaskDetailDao
.
saveAndFlush
(
taskDetail
);
// 结果不合格时 更新统计不合格数量,小程序任务详情 环形图上方统计使用
if
(
check
.
getIsOk
().
equals
(
CheckStatusEnum
.
UNQUALIFIED
.
getCode
())){
Optional
<
ESPlanTaskListDto
>
op
=
esPlanTaskList
.
findById
(
String
.
valueOf
(
planTask
.
getId
()));
op
.
ifPresent
(
esPlanTaskListDto
->{
int
unqualified
=
Integer
.
parseInt
(
esPlanTaskListDto
.
getUnqualified
())
+
1
;
esPlanTaskListDto
.
setUnqualified
(
unqualified
+
""
);
esPlanTaskList
.
save
(
esPlanTaskListDto
);
});
}
// ESTaskDetailDto esTaskDetailDto = esTaskDetail.findById(String.valueOf(taskDetail.getId())).get();
// esTaskDetailDto.setPointStatus(String.valueOf(taskDetail.getIsFinish()));
// JSONObject appCheckInput = esTaskDetailDto.getAppCheckInput();
...
...
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
af1583a7
...
...
@@ -2301,13 +2301,13 @@
) stime
from ${table} tb
<where>
<if
test=
"type=='1'"
>
<if
test=
'type=="1"'
>
DATE_FORMAT(tb.check_time, '%Y-%m') = #{checkTime}
</if>
<if
test=
"type=='2'"
>
<if
test=
'type=="2"'
>
AND tb.check_time between #{startTime} and #{endTime}
</if>
<if
test=
"type=='3'"
>
<if
test=
'type=="3"'
>
AND DATE_FORMAT(tb.check_time, '%Y') = #{checkTime}
</if>
<if
test=
"orgCode!=null"
>
AND tb.org_code = #{orgCode}
</if>
...
...
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