Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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-progress
Commits
9a96849e
Commit
9a96849e
authored
Mar 01, 2022
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大屏 基本信息以及任务完成数据对接
parent
0715ba09
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
139 additions
and
134 deletions
+139
-134
TWorkOrderController.java
...web/controller/operationMonitor/TWorkOrderController.java
+7
-0
TWorkOrderMapper.java
.../main/java/com/zehong/system/mapper/TWorkOrderMapper.java
+10
-0
ITWorkOrderService.java
...in/java/com/zehong/system/service/ITWorkOrderService.java
+4
-0
TWorkOrderServiceImpl.java
...com/zehong/system/service/impl/TWorkOrderServiceImpl.java
+12
-0
TWorkOrderMapper.xml
...tem/src/main/resources/mapper/system/TWorkOrderMapper.xml
+23
-0
order.js
gassafetyprogress-web/src/api/operationMonitor/order.js
+9
-1
leftBar.vue
gassafetyprogress-web/src/components/bigWindow/leftBar.vue
+71
-132
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+3
-1
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/operationMonitor/TWorkOrderController.java
View file @
9a96849e
...
@@ -133,4 +133,11 @@ public class TWorkOrderController extends BaseController
...
@@ -133,4 +133,11 @@ public class TWorkOrderController extends BaseController
{
{
return
toAjax
(
tWorkOrderService
.
deleteTWorkOrderByIds
(
workIds
));
return
toAjax
(
tWorkOrderService
.
deleteTWorkOrderByIds
(
workIds
));
}
}
@GetMapping
(
"/selectWorkOrderNum"
)
public
AjaxResult
selectWorkOrderNum
(
String
enterpriseId
)
{
return
AjaxResult
.
success
(
tWorkOrderService
.
selectWorkOrderNum
(
enterpriseId
));
}
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/TWorkOrderMapper.java
View file @
9a96849e
package
com
.
zehong
.
system
.
mapper
;
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.vo.HomepageVo
;
import
com.zehong.system.domain.vo.HomepageVo
;
import
org.apache.ibatis.annotations.Param
;
/**
/**
* 燃气任务Mapper接口
* 燃气任务Mapper接口
...
@@ -66,4 +69,11 @@ public interface TWorkOrderMapper
...
@@ -66,4 +69,11 @@ public interface TWorkOrderMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTWorkOrderByIds
(
Long
[]
workIds
);
public
int
deleteTWorkOrderByIds
(
Long
[]
workIds
);
/**
* 查询任务完成率
* @param enterpriseId
* @return
*/
public
Map
<
String
,
Object
>
selectWorkOrderNum
(
@Param
(
"enterpriseIds"
)
String
[]
enterpriseIds
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITWorkOrderService.java
View file @
9a96849e
package
com
.
zehong
.
system
.
service
;
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.TWorkOrder
;
import
com.zehong.system.domain.vo.HomepageVo
;
import
com.zehong.system.domain.vo.HomepageVo
;
...
@@ -66,4 +68,6 @@ public interface ITWorkOrderService
...
@@ -66,4 +68,6 @@ public interface ITWorkOrderService
* @return 结果
* @return 结果
*/
*/
public
int
deleteTWorkOrderById
(
Long
workId
);
public
int
deleteTWorkOrderById
(
Long
workId
);
public
Map
<
String
,
Object
>
selectWorkOrderNum
(
String
enterpriseId
);
}
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TWorkOrderServiceImpl.java
View file @
9a96849e
...
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 燃气任务Service业务层处理
* 燃气任务Service业务层处理
...
@@ -132,4 +133,15 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
...
@@ -132,4 +133,15 @@ public class TWorkOrderServiceImpl implements ITWorkOrderService
{
{
return
tWorkOrderMapper
.
deleteTWorkOrderById
(
workId
);
return
tWorkOrderMapper
.
deleteTWorkOrderById
(
workId
);
}
}
/**
*
* @param enterpriseId
* @return
*/
@Override
public
Map
<
String
,
Object
>
selectWorkOrderNum
(
String
enterpriseId
){
return
tWorkOrderMapper
.
selectWorkOrderNum
(
enterpriseId
.
split
(
","
));
}
}
}
gassafetyprogress-system/src/main/resources/mapper/system/TWorkOrderMapper.xml
View file @
9a96849e
...
@@ -208,4 +208,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -208,4 +208,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{workId}
#{workId}
</foreach>
</foreach>
</delete>
</delete>
<select
id=
"selectWorkOrderNum"
resultType=
"java.util.HashMap"
>
SELECT IFNULL(SUM(IF(work_status=3 AND work_type=1,1,0))/SUM(IF(work_type=1,1,0)),0) AS typeOne,
IFNULL(SUM(IF(work_status=3 AND work_type=2,1,0))/SUM(IF(work_type=2,1,0)),0) AS typeTwo,
IFNULL(SUM(IF(work_status=3 AND work_type=3,1,0))/SUM(IF(work_type=3,1,0)),0) AS typeThree,
IFNULL(SUM(IF(work_status=3 AND work_type=4,1,0))/SUM(IF(work_type=4,1,0)),0) AS typeFor,
(SELECT COUNT(employed_people_id) FROM t_employed_people_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach
item=
"enterpriseId"
collection=
"enterpriseIds"
open=
"("
separator=
","
close=
")"
>
#{enterpriseId}
</foreach>
) AS peopleNum,
(SELECT CAST(SUM(pipe_length) AS DECIMAL(20,0)) FROM t_pipe_info WHERE is_del = 0
AND beyond_enterprise_id IN
<foreach
item=
"enterpriseId"
collection=
"enterpriseIds"
open=
"("
separator=
","
close=
")"
>
#{enterpriseId}
</foreach>
)AS allPipeLength
FROM t_work_order WHERE is_del = 0
AND work_assign_enterprose_id IN
<foreach
item=
"enterpriseId"
collection=
"enterpriseIds"
open=
"("
separator=
","
close=
")"
>
#{enterpriseId}
</foreach>
</select>
</mapper>
</mapper>
\ No newline at end of file
gassafetyprogress-web/src/api/operationMonitor/order.js
View file @
9a96849e
...
@@ -50,4 +50,12 @@ export function exportOrder(query) {
...
@@ -50,4 +50,12 @@ export function exportOrder(query) {
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
\ No newline at end of file
export
function
selectWorkOrderNum
(
query
)
{
return
request
({
url
:
'/system/order/selectWorkOrderNum'
,
method
:
'get'
,
params
:
query
})
}
gassafetyprogress-web/src/components/bigWindow/leftBar.vue
View file @
9a96849e
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
9a96849e
...
@@ -313,7 +313,7 @@ export default {
...
@@ -313,7 +313,7 @@ export default {
this
.
currentTime
();
this
.
currentTime
();
this
.
$refs
.
mychild
.
choice
(
0
);
this
.
$refs
.
mychild
.
choice
(
0
);
this
.
$refs
.
mychild2
.
choice
(
0
);
this
.
$refs
.
mychild2
.
choice
(
this
.
selarr
);
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
...
@@ -387,6 +387,7 @@ export default {
...
@@ -387,6 +387,7 @@ export default {
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
this
.
map
.
infowindowClose
();
this
.
map
.
infowindowClose
();
this
.
show
=
false
;
this
.
show
=
false
;
this
.
$refs
.
mychild2
.
choice
(
this
.
selarr
);
},
},
sel
(
index
,
item
)
{
sel
(
index
,
item
)
{
this
.
map
.
infowindowClose
();
this
.
map
.
infowindowClose
();
...
@@ -408,6 +409,7 @@ export default {
...
@@ -408,6 +409,7 @@ export default {
}
}
// this.map.companyFilter(this.selarr);
// this.map.companyFilter(this.selarr);
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
this
.
$refs
.
mychild2
.
choice
(
this
.
selarr
);
},
},
sel1
(
index
,
item
)
{
sel1
(
index
,
item
)
{
...
...
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