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
334812b9
Commit
334812b9
authored
3 years ago
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增工单接口返回工单id
parent
eb4de9ef
Show 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 @
334812b9
...
...
@@ -100,13 +100,14 @@ public class TWorkOrderController extends BaseController
@PostMapping
public
AjaxResult
add
(
@RequestBody
TWorkOrder
tWorkOrder
)
throws
Exception
{
String
orderId
=
null
;
try
{
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
);
orderId
=
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
"新增工单信息失败"
);
}
return
AjaxResult
.
success
();
return
AjaxResult
.
success
(
orderId
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
gassafety-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
View file @
334812b9
...
...
@@ -36,7 +36,7 @@ public interface ITWorkOrderService
* @param tWorkOrder 工单基础信息
* @return 结果
*/
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
;
public
String
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
;
/**
* 修改工单基础信息
...
...
This diff is collapsed.
Click to expand it.
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
334812b9
...
...
@@ -224,7 +224,7 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
* @return 结果
*/
@Override
public
int
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
public
String
insertTWorkOrder
(
TWorkOrder
tWorkOrder
)
throws
Exception
{
String
orderId
=
tWorkOrderMapper
.
getWorkOrderId
();
int
resourceId
=
tWorkOrder
.
getResourceId
();
...
...
@@ -256,7 +256,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
tDeviceAlarmMapper
.
updateTDeviceAlarm
(
alarm
);
}
return
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
tWorkOrderMapper
.
insertTWorkOrder
(
tWorkOrder
);
return
orderId
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
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