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
c31e231e
Commit
c31e231e
authored
Jul 22, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapper修改
parent
c4ee8561
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
TInspectionDataMapper.java
.../java/com/zehong/system/mapper/TInspectionDataMapper.java
+8
-0
TInspectionDataMapper.xml
...rc/main/resources/mapper/system/TInspectionDataMapper.xml
+6
-1
TInspectionPlanMapper.xml
...rc/main/resources/mapper/system/TInspectionPlanMapper.xml
+1
-1
No files found.
gassafety-system/src/main/java/com/zehong/system/mapper/TInspectionDataMapper.java
View file @
c31e231e
...
...
@@ -19,6 +19,14 @@ public interface TInspectionDataMapper
*/
public
TInspectionData
selectTInspectionDataById
(
int
dataId
);
/**
* 查询巡检记录
*
* @param deviceCode 设备编号
* @return 巡检记录
*/
public
TInspectionData
selectTInspectionDataByCode
(
String
deviceCode
);
/**
* 查询巡检记录
*
...
...
gassafety-system/src/main/resources/mapper/system/TInspectionDataMapper.xml
View file @
c31e231e
...
...
@@ -38,7 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include
refid=
"selectTInspectionDataVo"
/>
where data_id = #{dataId}
</select>
<select
id=
"selectTInspectionDataByCode"
parameterType=
"String"
resultMap=
"TInspectionDataResult"
>
<include
refid=
"selectTInspectionDataVo"
/>
where device_code = #{deviceCode}
</select>
<insert
id=
"insertTInspectionData"
parameterType=
"TInspectionData"
>
insert into t_inspection_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
gassafety-system/src/main/resources/mapper/system/TInspectionPlanMapper.xml
View file @
c31e231e
...
...
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select
id=
"selectTInspectionPlanById"
parameterType=
"
Long
"
resultMap=
"TInspectionPlanResult"
>
<select
id=
"selectTInspectionPlanById"
parameterType=
"
int
"
resultMap=
"TInspectionPlanResult"
>
<include
refid=
"selectTInspectionPlanVo"
/>
where plan_id = #{planId}
</select>
...
...
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