Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
9bb9b634
Commit
9bb9b634
authored
Nov 08, 2025
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
危险作业监督检查统计修改
承包商bug修改
parent
1a206627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
TContractorSafetyBriefController.java
...r/manage/controller/TContractorSafetyBriefController.java
+5
-1
THazardWorkPlanCheck.xml
...src/main/resources/mapper/hazard/THazardWorkPlanCheck.xml
+2
-1
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/contractor/manage/controller/TContractorSafetyBriefController.java
View file @
9bb9b634
...
...
@@ -272,7 +272,11 @@ public class TContractorSafetyBriefController extends SuperController
String
orgId
=
loginUser
.
getOrgId
();
//List<String> idsChildrenById = newSysOrgService.getIdsChildrenById(orgId);
List
<
String
>
idsChildrenById
=
new
ArrayList
<>();
idsChildrenById
.
addAll
(
Arrays
.
asList
(
contractorLedgerDao
.
orgIdDistinct
(
orgId
).
split
(
","
)));
//idsChildrenById.addAll(Arrays.asList(contractorLedgerDao.orgIdDistinct(orgId).split(",")));
String
orgIdDistinct
=
contractorLedgerDao
.
orgIdDistinct
(
orgId
);
if
(
orgIdDistinct
!=
null
&&
!
orgIdDistinct
.
trim
().
isEmpty
())
{
idsChildrenById
.
addAll
(
Arrays
.
asList
(
orgIdDistinct
.
split
(
","
)));
}
log
.
info
(
"承包商人员台账列表--ids1------>ids值:{}"
,
idsChildrenById
);
idsChildrenById
.
addAll
(
newSysOrgService
.
getIdsChildrenById
(
orgId
));
log
.
info
(
"承包商人员台账列表--ids2------>ids值:{}"
,
idsChildrenById
);
...
...
zlmy-modules/zlmy-boot/src/main/resources/mapper/hazard/THazardWorkPlanCheck.xml
View file @
9bb9b634
...
...
@@ -491,7 +491,7 @@
wc.basic_id,
wc.basic_unit,
COUNT(DISTINCT wp.id) AS total_count, -- 检查记录总数
COALESCE(SUM(CASE WHEN wc.is_compliant = '
1
' THEN 1 ELSE 0 END), 0) AS compliant_count
COALESCE(SUM(CASE WHEN wc.is_compliant = '
0
' THEN 1 ELSE 0 END), 0) AS compliant_count
FROM t_hazard_work_plan wp
LEFT JOIN t_hazard_work_plan_check wc
ON wp.id = wc.plan_id
...
...
@@ -516,6 +516,7 @@
</if>
GROUP BY wc.basic_id, wc.basic_unit
) AS t
WHERE t.basic_id IS NOT NULL AND t.basic_unit IS NOT NULL
ORDER BY complianceRate DESC
</select>
...
...
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