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
6d9796b1
Commit
6d9796b1
authored
Aug 12, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
14e11061
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
47 deletions
+10
-47
PowerTransferMapper.xml
...jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
+1
-44
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+6
-1
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+3
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
View file @
6d9796b1
...
...
@@ -146,50 +146,7 @@
<select
id=
"getCarUserNum"
resultType=
"Map"
>
-- select * from (
-- SELECT
-- MAX(
-- CASE
-- WHEN cd.FIELD_CODE ='carId' THEN
-- cd.FIELD_VALUE
-- END
-- ) AS 'carId',
--
-- MAX(
-- CASE
-- WHEN cd.FIELD_CODE = 'userName' THEN
-- cd.FIELD_VALUE
-- END
-- ) AS 'userName'
--
-- FROM
-- cb_dynamic_form_instance cd
-- LEFT JOIN (
-- SELECT
-- dp.instance_id,
-- ds.`name`
-- FROM
-- cb_duty_person_shift dp
-- LEFT JOIN cb_duty_shift ds ON dp.shift_id = ds.sequence_nbr
-- WHERE
-- dp.duty_date = #{dutyDate} and dp.is_delete=0
-- ) cds ON cd.instance_id = cds.instance_id
-- where cd.group_code ='dutyCar' and cds.instance_id is not null and
-- cd.is_delete=0
-- group by cd.instance_id
-- ) result
-- where carId is not null and userName is not null and carId in (
-- SELECT
-- c.resources_id
-- FROM
-- jc_power_transfer a
-- LEFT JOIN jc_power_transfer_company b ON a.sequence_nbr = b.power_transfer_id
-- LEFT JOIN jc_power_transfer_company_resources c ON c.power_transfer_company_id = b.sequence_nbr
-- WHERE
-- a.alert_called_id = ${id}
-- )
SELECT
SELECT
SUM(c.car_user) num
FROM
jc_power_transfer a
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
6d9796b1
...
...
@@ -9,6 +9,7 @@ import java.util.*;
import
java.util.stream.Collectors
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.feign.systemctl.model.MessageModel
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.opengis.metadata.acquisition.Plan
;
...
...
@@ -2491,7 +2492,11 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
List
<
String
>
userIds
=
workflowExecuteService
.
getUserIdsByWorkflow
(
latentDanger
.
getInstanceId
(),
executeSubmitDto
.
getCheckLeaderId
());
// 修改待办任务状态
updateTaskStatus
(
latentDanger
);
try
{
updateTaskStatus
(
latentDanger
);
}
catch
(
InnerInvokException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
ruleDangerService
.
addDangerSubmitRule
(
latentDanger
,
userIds
,
RuleTypeEnum
.
隐患审核
.
getCode
(),
ExecuteTypeEnum
.
getNameByCode
(
executeType
));
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
6d9796b1
...
...
@@ -1097,7 +1097,7 @@
where
begin_time
<
= #{date,jdbcType=TIMESTAMP}
and end_time
>
#{date,jdbcType=TIMESTAMP}
and finish_status in (1)
and finish_status in (
0,
1)
and status = 0
group by plan_id
)
...
...
@@ -1109,7 +1109,7 @@
where
begin_time
<
= #{date,jdbcType=TIMESTAMP}
and end_time
>
#{date,jdbcType=TIMESTAMP}
and finish_status in (1)
and finish_status in (
0,
1)
and status = 0
</select>
</mapper>
\ No newline at end of file
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