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
9e821a91
Commit
9e821a91
authored
Sep 16, 2021
by
jianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改待办
parent
c2269b3d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
7 deletions
+22
-7
TWorkOrderController.java
...zehong/web/controller/workOrder/TWorkOrderController.java
+4
-2
TWorkOrderMapper.java
.../main/java/com/zehong/system/mapper/TWorkOrderMapper.java
+4
-1
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+1
-1
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+2
-2
TWorkOrderMapper.xml
...tem/src/main/resources/mapper/system/TWorkOrderMapper.xml
+11
-1
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/workOrder/TWorkOrderController.java
View file @
9e821a91
...
@@ -56,12 +56,14 @@ public class TWorkOrderController extends BaseController
...
@@ -56,12 +56,14 @@ public class TWorkOrderController extends BaseController
* @throws Exception
* @throws Exception
*/
*/
@GetMapping
(
"/waitinglist"
)
@GetMapping
(
"/waitinglist"
)
public
TableDataInfo
waitinglist
(
String
userId
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"1"
)
Integer
type
,
String
searchStr
)
throws
Exception
public
TableDataInfo
waitinglist
(
String
userId
,
@RequestParam
(
value
=
"type"
,
defaultValue
=
"1"
)
Integer
type
,
@RequestParam
(
value
=
"waitingtype"
,
defaultValue
=
"0"
)
Integer
waitingtype
,
String
searchStr
)
throws
Exception
{
{
startPage
();
startPage
();
PageInfo
<
TWorkOrder
>
pageInfo
;
PageInfo
<
TWorkOrder
>
pageInfo
;
try
{
try
{
pageInfo
=
tWorkOrderService
.
selectWaitingWorkOrder
(
userId
,
type
,
searchStr
);
pageInfo
=
tWorkOrderService
.
selectWaitingWorkOrder
(
userId
,
type
,
searchStr
,
waitingtype
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
Exception
(
"查询待办工单失败"
);
throw
new
Exception
(
"查询待办工单失败"
);
...
...
gassafety-system/src/main/java/com/zehong/system/mapper/TWorkOrderMapper.java
View file @
9e821a91
...
@@ -42,7 +42,10 @@ public interface TWorkOrderMapper
...
@@ -42,7 +42,10 @@ public interface TWorkOrderMapper
* @param userId
* @param userId
* @return
* @return
*/
*/
public
List
<
TWorkOrder
>
selectWaitingWorkOrder
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"type"
)
Integer
type
,
@Param
(
"searchStr"
)
String
searchStr
);
public
List
<
TWorkOrder
>
selectWaitingWorkOrder
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"type"
)
Integer
type
,
@Param
(
"searchStr"
)
String
searchStr
,
@Param
(
"waitingtype"
)
Integer
waitingtype
);
/**
/**
* 新增工单基础信息
* 新增工单基础信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
View file @
9e821a91
...
@@ -50,7 +50,7 @@ public interface ITWorkOrderService
...
@@ -50,7 +50,7 @@ public interface ITWorkOrderService
* @return
* @return
* @throws Exception
* @throws Exception
*/
*/
public
PageInfo
<
TWorkOrder
>
selectWaitingWorkOrder
(
String
userId
,
Integer
type
,
String
searchStr
)
throws
Exception
;
public
PageInfo
<
TWorkOrder
>
selectWaitingWorkOrder
(
String
userId
,
Integer
type
,
String
searchStr
,
Integer
waitingtype
)
throws
Exception
;
/**
/**
* 新增工单基础信息
* 新增工单基础信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
9e821a91
...
@@ -256,8 +256,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -256,8 +256,8 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
* @return
* @return
*/
*/
@Override
@Override
public
PageInfo
<
TWorkOrder
>
selectWaitingWorkOrder
(
String
userId
,
Integer
type
,
String
searchStr
){
public
PageInfo
<
TWorkOrder
>
selectWaitingWorkOrder
(
String
userId
,
Integer
type
,
String
searchStr
,
Integer
waitingtype
){
List
<
TWorkOrder
>
workOrderList
=
tWorkOrderMapper
.
selectWaitingWorkOrder
(
userId
,
type
,
searchStr
);
List
<
TWorkOrder
>
workOrderList
=
tWorkOrderMapper
.
selectWaitingWorkOrder
(
userId
,
type
,
searchStr
,
waitingtype
);
for
(
TWorkOrder
t
:
workOrderList
){
for
(
TWorkOrder
t
:
workOrderList
){
if
(
t
.
getOrderType
().
equals
(
'3'
)){
if
(
t
.
getOrderType
().
equals
(
'3'
)){
String
address
=
tDeviceAlarmMapper
.
selectAddressByOrderId
(
t
.
getOrderId
());
String
address
=
tDeviceAlarmMapper
.
selectAddressByOrderId
(
t
.
getOrderId
());
...
...
gassafety-system/src/main/resources/mapper/system/TWorkOrderMapper.xml
View file @
9e821a91
...
@@ -51,7 +51,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -51,7 +51,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE
WHERE
<choose>
<choose>
<when
test=
"type==1"
>
<when
test=
"type==1"
>
o.order_status
<
2
<choose>
<when
test=
"waitingtype==0"
>
o.order_status
<
2
</when>
<when
test=
"waitingtype==1"
>
o.order_status = 0
</when>
<otherwise>
o.order_status = 1
</otherwise>
</choose>
</when>
</when>
<otherwise>
<otherwise>
o.order_status > 0
o.order_status > 0
...
...
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