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
4d564e5d
Commit
4d564e5d
authored
Jan 13, 2026
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增事故添加后列表不显示问题
parent
856f0a73
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
AccidentReportQueryReq.java
...tor/module/accident/model/req/AccidentReportQueryReq.java
+3
-0
ReportUnitResp.java
...com/testor/module/accident/model/resp/ReportUnitResp.java
+4
-0
AccidentReportServiceImpl.java
...dule/accident/service/impl/AccidentReportServiceImpl.java
+6
-3
AccidentReport.xml
...oot/src/main/resources/mapper/accident/AccidentReport.xml
+1
-0
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/accident/model/req/AccidentReportQueryReq.java
View file @
4d564e5d
...
@@ -42,6 +42,9 @@ public class AccidentReportQueryReq {
...
@@ -42,6 +42,9 @@ public class AccidentReportQueryReq {
@ApiModelProperty
(
value
=
"基层单位id"
)
@ApiModelProperty
(
value
=
"基层单位id"
)
private
String
basicUnitId
;
private
String
basicUnitId
;
@ApiModelProperty
(
value
=
"组织id"
)
private
String
orgId
;
@ApiModelProperty
(
value
=
"事故等级"
)
@ApiModelProperty
(
value
=
"事故等级"
)
private
String
accidentLevel
;
private
String
accidentLevel
;
...
...
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/accident/model/resp/ReportUnitResp.java
View file @
4d564e5d
...
@@ -55,6 +55,10 @@ public class ReportUnitResp {
...
@@ -55,6 +55,10 @@ public class ReportUnitResp {
@ApiModelProperty
(
value
=
"子部门层级名称(不包含一级机构)"
)
@ApiModelProperty
(
value
=
"子部门层级名称(不包含一级机构)"
)
private
String
subSectorPathIds
;
private
String
subSectorPathIds
;
@ApiModelProperty
(
value
=
"组织机构id"
)
private
String
orgId
;
// @ApiModelProperty(value = "第三层单位,如果与基层单位相同则不存数据")
// @ApiModelProperty(value = "第三层单位,如果与基层单位相同则不存数据")
// private String lastUnitId;
// private String lastUnitId;
//
//
...
...
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/accident/service/impl/AccidentReportServiceImpl.java
View file @
4d564e5d
...
@@ -694,8 +694,11 @@ public class AccidentReportServiceImpl extends SuperServiceImpl<AccidentReportDa
...
@@ -694,8 +694,11 @@ public class AccidentReportServiceImpl extends SuperServiceImpl<AccidentReportDa
//权限控制
//权限控制
ReportUnitResp
reportUnit
=
this
.
getReportUnit
();
ReportUnitResp
reportUnit
=
this
.
getReportUnit
();
if
(
StringUtils
.
isNotEmpty
(
reportUnit
.
getBasicUnitId
()))
{
/*
if (StringUtils.isNotEmpty(reportUnit.getBasicUnitId())) {
param.setBasicUnitId(reportUnit.getBasicUnitId());
param.setBasicUnitId(reportUnit.getBasicUnitId());
}*/
if
(
StringUtils
.
isNotEmpty
(
reportUnit
.
getOrgId
()))
{
param
.
setOrgId
(
reportUnit
.
getBasicUnitId
());
}
}
if
(
StringUtils
.
isNotEmpty
(
reportUnit
.
getRegionalCompanyId
()))
{
if
(
StringUtils
.
isNotEmpty
(
reportUnit
.
getRegionalCompanyId
()))
{
param
.
setRegionalCompanyId
(
reportUnit
.
getRegionalCompanyId
());
param
.
setRegionalCompanyId
(
reportUnit
.
getRegionalCompanyId
());
...
@@ -936,8 +939,8 @@ public class AccidentReportServiceImpl extends SuperServiceImpl<AccidentReportDa
...
@@ -936,8 +939,8 @@ public class AccidentReportServiceImpl extends SuperServiceImpl<AccidentReportDa
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getRegionalCompanyId
()))
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getRegionalCompanyId
()))
{
queryWrapper
.
eq
(
AccidentReport
.
REGIONAL_COMPANY_ID
,
queryParam
.
getRegionalCompanyId
());
queryWrapper
.
eq
(
AccidentReport
.
REGIONAL_COMPANY_ID
,
queryParam
.
getRegionalCompanyId
());
}
}
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getBasicUnitId
()))
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getBasicUnitId
())
||
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getOrgId
())
)
{
queryWrapper
.
eq
(
AccidentReport
.
BASIC_UNIT_ID
,
queryParam
.
getBasicUnit
Id
());
queryWrapper
.
or
().
eq
(
AccidentReport
.
BASIC_UNIT_ID
,
queryParam
.
getBasicUnitId
()).
or
().
eq
(
AccidentReport
.
ORG_ID
,
queryParam
.
getOrg
Id
());
}
}
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getProcessStatus
()))
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
queryParam
.
getProcessStatus
()))
{
queryWrapper
.
eq
(
AccidentReport
.
PROCESS_STATUS
,
queryParam
.
getProcessStatus
());
queryWrapper
.
eq
(
AccidentReport
.
PROCESS_STATUS
,
queryParam
.
getProcessStatus
());
...
...
zlmy-modules/zlmy-boot/src/main/resources/mapper/accident/AccidentReport.xml
View file @
4d564e5d
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<id
column=
"group_risk"
property=
"groupRisk"
/>
<id
column=
"group_risk"
property=
"groupRisk"
/>
<id
column=
"dangerous_homework_category"
property=
"dangerousHomeworkCategory"
/>
<id
column=
"dangerous_homework_category"
property=
"dangerousHomeworkCategory"
/>
<id
column=
"injured_area"
property=
"injuredArea"
/>
<id
column=
"injured_area"
property=
"injuredArea"
/>
<id
column=
"remarks"
property=
"remarks"
/>
</resultMap>
</resultMap>
<!--<select id="getCountByAccidentTime" parameterType="com.testor.module.accident.model.domain.AccidentReport" resultType="string">-->
<!--<select id="getCountByAccidentTime" parameterType="com.testor.module.accident.model.domain.AccidentReport" resultType="string">-->
...
...
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