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
807fb337
Commit
807fb337
authored
Aug 16, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/gengdidi/gassafety
into master
parents
7202e58f
f63910e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
TWorkOrderController.java
...zehong/web/controller/workOrder/TWorkOrderController.java
+3
-2
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+1
-1
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+3
-2
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TWorkOrderController.java
View file @
807fb337
...
@@ -100,13 +100,14 @@ public class TWorkOrderController extends BaseController
...
@@ -100,13 +100,14 @@ public class TWorkOrderController extends BaseController
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
TWorkOrder
tWorkOrder
)
throws
Exception
public
AjaxResult
add
(
@RequestBody
TWorkOrder
tWorkOrder
)
throws
Exception
{
{
String
orderId
=
null
;
try
{
try
{
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
);
orderId
=
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
Exception
(
"新增工单信息失败"
);
throw
new
Exception
(
"新增工单信息失败"
);
}
}
return
AjaxResult
.
success
();
return
AjaxResult
.
success
(
orderId
);
}
}
/**
/**
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
View file @
807fb337
...
@@ -36,7 +36,7 @@ public interface ITWorkOrderService
...
@@ -36,7 +36,7 @@ public interface ITWorkOrderService
* @param tWorkOrder 工单基础信息
* @param tWorkOrder 工单基础信息
* @return 结果
* @return 结果
*/
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
;
public
String
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
;
/**
/**
* 修改工单基础信息
* 修改工单基础信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
807fb337
...
@@ -224,7 +224,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -224,7 +224,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
public
String
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
{
{
String
orderId
=
tWorkOrderMapper
.
getWorkOrderId
();
String
orderId
=
tWorkOrderMapper
.
getWorkOrderId
();
int
resourceId
=
tWorkOrder
.
getResourceId
();
int
resourceId
=
tWorkOrder
.
getResourceId
();
...
@@ -256,7 +256,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -256,7 +256,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
tDeviceAlarmMapper
.
updateTDeviceAlarm
(
alarm
);
tDeviceAlarmMapper
.
updateTDeviceAlarm
(
alarm
);
}
}
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
return
orderId
;
}
}
/**
/**
...
...
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