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
2b94b455
Commit
2b94b455
authored
Aug 05, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改工单接口异常提示信息
parent
4a5ae085
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
TWorkOrderController.java
...zehong/web/controller/workOrder/TWorkOrderController.java
+8
-8
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TWorkOrderController.java
View file @
2b94b455
...
...
@@ -51,7 +51,7 @@ public class TWorkOrderController extends BaseController
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrderForm
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"查询工单基础信息列表失败"
)
);
throw
new
Exception
(
"查询工单基础信息列表失败"
);
}
return
getDataTable
(
list
);
}
...
...
@@ -69,7 +69,7 @@ public class TWorkOrderController extends BaseController
list
=
tWorkOrderService
.
selectTWorkOrderList
(
tWorkOrderForm
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"导出工单基础信息列表失败"
)
);
throw
new
Exception
(
"导出工单基础信息列表失败"
);
}
ExcelUtil
<
WorkOrderVo
>
util
=
new
ExcelUtil
<
WorkOrderVo
>(
WorkOrderVo
.
class
);
return
util
.
exportExcel
(
list
,
"工单基础信息数据"
);
...
...
@@ -87,7 +87,7 @@ public class TWorkOrderController extends BaseController
workOrderVo
=
tWorkOrderService
.
selectTWorkOrderById
(
orderId
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"获取工单({})工详细信息失败"
,
orderId
)
);
throw
new
Exception
(
"获取工单详细信息失败"
);
}
return
AjaxResult
.
success
(
workOrderVo
);
}
...
...
@@ -104,7 +104,7 @@ public class TWorkOrderController extends BaseController
tWorkOrderService
.
insertTWorkOrder
(
tWorkOrder
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"工单({})信息有误"
,
tWorkOrder
.
getOrderId
())
);
throw
new
Exception
(
"新增工单信息失败"
);
}
return
AjaxResult
.
success
();
}
...
...
@@ -120,14 +120,14 @@ public class TWorkOrderController extends BaseController
String
orderStatus
=
tWorkOrder
.
getOrderStatus
();
// 工单状态只有是0未接收才允许修改
if
(!
"0"
.
equals
(
orderStatus
)){
throw
new
Exception
(
StringUtils
.
format
(
"工单({})当前状态不允许修改"
,
tWorkOrder
.
getOrderId
())
);
throw
new
Exception
(
"当前状态不允许修改"
);
}
try
{
tWorkOrderService
.
updateTWorkOrder
(
tWorkOrder
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"修改工单({})信息失败,"
,
tWorkOrder
.
getOrderId
())
);
throw
new
Exception
(
"修改工单信息失败"
);
}
return
AjaxResult
.
success
();
}
...
...
@@ -149,14 +149,14 @@ public class TWorkOrderController extends BaseController
}
else
if
(
"2"
.
equals
(
orderStatus
))
{
tWorkOrder
.
setOrderStatus
(
"3"
);
}
else
if
(
"3"
.
equals
(
orderStatus
))
{
throw
new
Exception
(
StringUtils
.
format
(
"工单({})已归档,不允许更改状态"
,
tWorkOrder
.
getOrderId
())
);
throw
new
Exception
(
"当前工单已归档,不允许更改状态"
);
}
try
{
tWorkOrderService
.
updateTWorkOrder
(
tWorkOrder
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
Exception
(
StringUtils
.
format
(
"修改工单({})状态失败"
,
tWorkOrder
.
getOrderId
())
);
throw
new
Exception
(
"修改工单状态失败"
);
}
return
AjaxResult
.
success
();
}
...
...
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