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
4e8e021e
Commit
4e8e021e
authored
3 years ago
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检及值班人员 gengdidi
parent
a26b5718
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
TInspectionDataController.java
...ontroller/deviceInspection/TInspectionDataController.java
+17
-13
SysUserMapper.xml
...system/src/main/resources/mapper/system/SysUserMapper.xml
+1
-1
inspectionData.js
gassafety-web/src/api/deviceInspection/inspectionData.js
+9
-0
No files found.
gassafety-admin/src/main/java/com/zehong/web/controller/deviceInspection/TInspectionDataController.java
View file @
4e8e021e
package
com
.
zehong
.
web
.
controller
.
deviceInspection
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.core.page.TableDataInfo
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TInspectionData
;
import
com.zehong.system.service.ITInspectionDataService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* 巡检记录Controller
...
...
@@ -45,6 +39,16 @@ public class TInspectionDataController extends BaseController
return
getDataTable
(
list
);
}
/**
* 获取所有巡检记录
* @param tInspectionData
* @return
*/
@GetMapping
(
"/getAllTInspectionInfo"
)
public
AjaxResult
getAllTInspectionInfo
(
TInspectionData
tInspectionData
){
return
AjaxResult
.
success
(
tInspectionDataService
.
selectTInspectionDataList
(
tInspectionData
));
}
/**
* 导出巡检记录列表
*/
...
...
This diff is collapsed.
Click to expand it.
gassafety-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
4e8e021e
...
...
@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"selectInspectorList"
resultMap=
"SysUserResult"
>
<include
refid=
"selectUserVo"
/>
where u.del_flag = '0' and r.role_
id = 102
where u.del_flag = '0' and r.role_
key = 'inspector'
</select>
<select
id=
"checkUserNameUnique"
parameterType=
"String"
resultType=
"int"
>
...
...
This diff is collapsed.
Click to expand it.
gassafety-web/src/api/deviceInspection/inspectionData.js
View file @
4e8e021e
...
...
@@ -9,6 +9,15 @@ export function listInspectionData(query) {
})
}
// 查询所有巡检记录不分页
export
function
getAllTInspectionInfo
(
query
)
{
return
request
({
url
:
'/deviceInspection/inspectionData/getAllTInspectionInfo'
,
method
:
'get'
,
params
:
query
})
}
// 查询巡检记录详细
export
function
getInspectionData
(
dataId
)
{
return
request
({
...
...
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