Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
90c14366
Commit
90c14366
authored
Dec 20, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://111.61.77.35:15/gengdidi/zhengyuan-danger-chemistry-manage
parents
ce82bcd4
c79f6cf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
THiddenTroubleAssessmentMapper.java
.../zehong/system/mapper/THiddenTroubleAssessmentMapper.java
+3
-0
THiddenTroubleWorkServiceImpl.java
...ng/system/service/impl/THiddenTroubleWorkServiceImpl.java
+8
-17
THiddenTroubleAssessmentMapper.xml
...esources/mapper/system/THiddenTroubleAssessmentMapper.xml
+6
-0
No files found.
danger-manage-system/src/main/java/com/zehong/system/mapper/THiddenTroubleAssessmentMapper.java
View file @
90c14366
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
...
@@ -2,6 +2,7 @@ package com.zehong.system.mapper;
import
java.util.List
;
import
java.util.List
;
import
com.zehong.system.domain.THiddenTroubleAssessment
;
import
com.zehong.system.domain.THiddenTroubleAssessment
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 排查评估Mapper接口
* 排查评估Mapper接口
...
@@ -60,4 +61,6 @@ public interface THiddenTroubleAssessmentMapper
...
@@ -60,4 +61,6 @@ public interface THiddenTroubleAssessmentMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTHiddenTroubleAssessmentByIds
(
Long
[]
assessmentIds
);
public
int
deleteTHiddenTroubleAssessmentByIds
(
Long
[]
assessmentIds
);
public
int
inserts
(
@Param
(
"workId"
)
Long
workId
,
@Param
(
"ids"
)
String
[]
ids
);
}
}
danger-manage-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleWorkServiceImpl.java
View file @
90c14366
...
@@ -7,7 +7,9 @@ import java.util.List;
...
@@ -7,7 +7,9 @@ import java.util.List;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.common.utils.DateUtils
;
import
com.zehong.system.domain.THiddenTroubleAssessment
;
import
com.zehong.system.domain.TStaningBook
;
import
com.zehong.system.domain.TStaningBook
;
import
com.zehong.system.mapper.THiddenTroubleAssessmentMapper
;
import
com.zehong.system.mapper.TStaningBookMapper
;
import
com.zehong.system.mapper.TStaningBookMapper
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -31,6 +33,8 @@ public class THiddenTroubleWorkServiceImpl implements ITHiddenTroubleWorkService
...
@@ -31,6 +33,8 @@ public class THiddenTroubleWorkServiceImpl implements ITHiddenTroubleWorkService
private
THiddenTroubleWorkMapper
tHiddenTroubleWorkMapper
;
private
THiddenTroubleWorkMapper
tHiddenTroubleWorkMapper
;
@Autowired
@Autowired
private
TStaningBookMapper
tStaningBookMapper
;
private
TStaningBookMapper
tStaningBookMapper
;
@Autowired
private
THiddenTroubleAssessmentMapper
tHiddenTroubleAssessmentMapper
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
THiddenTroubleWorkServiceImpl
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
THiddenTroubleWorkServiceImpl
.
class
);
/**
/**
...
@@ -80,23 +84,10 @@ public class THiddenTroubleWorkServiceImpl implements ITHiddenTroubleWorkService
...
@@ -80,23 +84,10 @@ public class THiddenTroubleWorkServiceImpl implements ITHiddenTroubleWorkService
{
{
tHiddenTroubleWork
.
setCreateTime
(
DateUtils
.
getNowDate
());
tHiddenTroubleWork
.
setCreateTime
(
DateUtils
.
getNowDate
());
int
a
=
tHiddenTroubleWorkMapper
.
insertTHiddenTroubleWork
(
tHiddenTroubleWork
);
int
a
=
tHiddenTroubleWorkMapper
.
insertTHiddenTroubleWork
(
tHiddenTroubleWork
);
if
(
tHiddenTroubleWork
.
getBookId
()!=
null
&&(
tHiddenTroubleWork
.
getWorkCycle
()==
1
||
tHiddenTroubleWork
.
getParentId
()!=
0L
)){
// if(tHiddenTroubleWork.getWorkCycle()==1||tHiddenTroubleWork.getParentId()!=0L){
TStaningBook
book
=
tStaningBookMapper
.
selectTStaningBookById
(
tHiddenTroubleWork
.
getBookId
());
// String[] ids = tHiddenTroubleWork.getContent().split(",");
if
(
book
!=
null
){
// tHiddenTroubleAssessmentMapper.inserts(tHiddenTroubleWork.getWorkId(),ids);
if
(
book
.
getWorkId
()==
null
){
// }
book
.
setWorkId
(
tHiddenTroubleWork
.
getWorkId
());
tStaningBookMapper
.
updateTStaningBook
(
book
);
}
else
{
THiddenTroubleWork
work
=
tHiddenTroubleWorkMapper
.
selectTHiddenTroubleWorkById
(
book
.
getWorkId
());
if
(
work
==
null
||
work
.
getWorkStep
()==
4
){
book
.
setWorkId
(
tHiddenTroubleWork
.
getWorkId
());
tStaningBookMapper
.
updateTStaningBook
(
book
);
}
else
{
return
-
2
;
}
}
}
}
return
a
;
return
a
;
}
}
...
...
danger-manage-system/src/main/resources/mapper/system/THiddenTroubleAssessmentMapper.xml
View file @
90c14366
...
@@ -121,4 +121,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -121,4 +121,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{assessmentId}
#{assessmentId}
</foreach>
</foreach>
</delete>
</delete>
<insert
id=
"inserts"
>
insert into t_hidden_trouble_assessment (library_id,work_id) VALUES
<foreach
collection=
"ids"
item=
"item"
index=
"index"
separator=
","
>
(${item},workId)
</foreach>
</insert>
</mapper>
</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