Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
db6ccbfa
Commit
db6ccbfa
authored
Jul 30, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单反馈更新设备最后巡检时间
parent
77b24007
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
TOrderFeedbackController.java
...ng/web/controller/workOrder/TOrderFeedbackController.java
+11
-2
ITOrderFeedbackService.java
...ava/com/zehong/system/service/ITOrderFeedbackService.java
+1
-1
TOrderFeedbackServiceImpl.java
...zehong/system/service/impl/TOrderFeedbackServiceImpl.java
+14
-1
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TOrderFeedbackController.java
View file @
db6ccbfa
package
com
.
zehong
.
web
.
controller
.
workOrder
;
package
com
.
zehong
.
web
.
controller
.
workOrder
;
import
java.util.List
;
import
java.util.List
;
import
com.zehong.common.utils.StringUtils
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
@@ -74,9 +76,16 @@ public class TOrderFeedbackController extends BaseController
...
@@ -74,9 +76,16 @@ public class TOrderFeedbackController extends BaseController
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:add')"
)
@PreAuthorize
(
"@ss.hasPermi('workOrder:feedback:add')"
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
INSERT
)
@Log
(
title
=
"工单反馈信息"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
TOrderFeedback
tOrderFeedback
)
public
AjaxResult
add
(
@RequestBody
TOrderFeedback
tOrderFeedback
)
throws
Exception
{
{
return
toAjax
(
tOrderFeedbackService
.
insertTOrderFeedback
(
tOrderFeedback
));
int
result
=
0
;
try
{
result
=
tOrderFeedbackService
.
insertTOrderFeedback
(
tOrderFeedback
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"工单反馈操作失败,数据有误"
));
}
return
toAjax
(
result
);
}
}
/**
/**
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITOrderFeedbackService.java
View file @
db6ccbfa
...
@@ -33,7 +33,7 @@ public interface ITOrderFeedbackService
...
@@ -33,7 +33,7 @@ public interface ITOrderFeedbackService
* @param tOrderFeedback 工单反馈信息
* @param tOrderFeedback 工单反馈信息
* @return 结果
* @return 结果
*/
*/
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
);
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
throws
Exception
;
/**
/**
* 修改工单反馈信息
* 修改工单反馈信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TOrderFeedbackServiceImpl.java
View file @
db6ccbfa
...
@@ -28,6 +28,10 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
...
@@ -28,6 +28,10 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
private
THiddenTroubleMapper
tHiddenTroubleMapper
;
private
THiddenTroubleMapper
tHiddenTroubleMapper
;
@Autowired
@Autowired
private
TDeviceAlarmMapper
tDeviceAlarmMapper
;
private
TDeviceAlarmMapper
tDeviceAlarmMapper
;
@Autowired
private
TPipeMapper
tPipeMapper
;
@Autowired
private
TDeviceInfoMapper
tDeviceInfoMapper
;
/**
/**
* 查询工单反馈信息
* 查询工单反馈信息
...
@@ -60,7 +64,7 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
...
@@ -60,7 +64,7 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
public
int
insertTOrderFeedback
(
TOrderFeedback
tOrderFeedback
)
throws
Exception
{
{
if
(
"2"
.
equals
(
tOrderFeedback
.
getIsHiddenDanger
())){
if
(
"2"
.
equals
(
tOrderFeedback
.
getIsHiddenDanger
())){
tOrderFeedback
.
setDealStatus
(
"1"
);
tOrderFeedback
.
setDealStatus
(
"1"
);
...
@@ -82,6 +86,15 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
...
@@ -82,6 +86,15 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
data
.
setUpdateTime
(
DateUtils
.
getNowDate
());
data
.
setUpdateTime
(
DateUtils
.
getNowDate
());
tInspectionDataMapper
.
updateTInspectionData
(
data
);
tInspectionDataMapper
.
updateTInspectionData
(
data
);
if
(
"0"
.
equals
(
data
.
getDeviceType
())){
TPipe
pipe
=
tPipeMapper
.
selectTPipeByCode
(
deviceCode
);
pipe
.
setInspectionTime
(
DateUtils
.
getNowDate
());
tPipeMapper
.
updateTPipe
(
pipe
);
}
else
{
TDeviceInfo
device
=
tDeviceInfoMapper
.
selectTDeviceInfoByCode
(
deviceCode
);
device
.
setInspectionTime
(
DateUtils
.
getNowDate
());
tDeviceInfoMapper
.
updateTDeviceInfo
(
device
);
}
}
else
if
(
"2"
.
equals
(
orderType
))
{
}
else
if
(
"2"
.
equals
(
orderType
))
{
THiddenTrouble
trouble
=
tHiddenTroubleMapper
.
selectTHiddenTroubleById
(
order
.
getResourceId
());
THiddenTrouble
trouble
=
tHiddenTroubleMapper
.
selectTHiddenTroubleById
(
order
.
getResourceId
());
trouble
.
setDealStatus
(
dealStatus
);
trouble
.
setDealStatus
(
dealStatus
);
...
...
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