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
b442c2a6
Commit
b442c2a6
authored
Jul 14, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面回显时间类型,修改管道长度数据类型
parent
9a63bb8d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
24 deletions
+19
-24
TDeviceInfo.java
...m/src/main/java/com/zehong/system/domain/TDeviceInfo.java
+4
-4
TPipe.java
...-system/src/main/java/com/zehong/system/domain/TPipe.java
+7
-7
TPipeMapper.java
...m/src/main/java/com/zehong/system/mapper/TPipeMapper.java
+1
-1
ITPipeService.java
...rc/main/java/com/zehong/system/service/ITPipeService.java
+2
-2
TPipeServiceImpl.java
...java/com/zehong/system/service/impl/TPipeServiceImpl.java
+1
-1
TPipeMapper.xml
...y-system/src/main/resources/mapper/system/TPipeMapper.xml
+1
-2
index.vue
gassafety-web/src/views/device/deviceInfo/index.vue
+0
-4
index.vue
gassafety-web/src/views/device/pipe/index.vue
+3
-3
No files found.
gassafety-system/src/main/java/com/zehong/system/domain/TDeviceInfo.java
View file @
b442c2a6
...
@@ -70,13 +70,13 @@ public class TDeviceInfo extends BaseEntity
...
@@ -70,13 +70,13 @@ public class TDeviceInfo extends BaseEntity
private
String
phone
;
private
String
phone
;
/** 安装时间 */
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd
hh
:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH
:mm:ss"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
hh
:mm:ss"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH
:mm:ss"
)
private
Date
installationTime
;
private
Date
installationTime
;
/** 最后巡检时间 */
/** 最后巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd
hh
:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH
:mm:ss"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
hh
:mm:ss"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH
:mm:ss"
)
private
Date
inspectionTime
;
private
Date
inspectionTime
;
/** 备注 */
/** 备注 */
...
...
gassafety-system/src/main/java/com/zehong/system/domain/TPipe.java
View file @
b442c2a6
...
@@ -38,7 +38,7 @@ public class TPipe extends BaseEntity
...
@@ -38,7 +38,7 @@ public class TPipe extends BaseEntity
/** 管道长度 */
/** 管道长度 */
@Excel
(
name
=
"管道长度"
)
@Excel
(
name
=
"管道长度"
)
private
Long
pipeLength
;
private
double
pipeLength
;
/** 管道类型(1地埋管线、2地表管线) */
/** 管道类型(1地埋管线、2地表管线) */
@Excel
(
name
=
"管道类型"
,
readConverterExp
=
"1地埋管线、2地表管线"
)
@Excel
(
name
=
"管道类型"
,
readConverterExp
=
"1地埋管线、2地表管线"
)
...
@@ -53,13 +53,13 @@ public class TPipe extends BaseEntity
...
@@ -53,13 +53,13 @@ public class TPipe extends BaseEntity
private
String
iconUrl
;
private
String
iconUrl
;
/** 安装时间 */
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd
hh
:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH
:mm:ss"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
hh
:mm:ss"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH
:mm:ss"
)
private
Date
installationTime
;
private
Date
installationTime
;
/** 最后巡检时间 */
/** 最后巡检时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd
hh
:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH
:mm:ss"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
hh
:mm:ss"
)
@Excel
(
name
=
"最后巡检时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH
:mm:ss"
)
private
Date
inspectionTime
;
private
Date
inspectionTime
;
/** 备注 */
/** 备注 */
...
@@ -111,12 +111,12 @@ public class TPipe extends BaseEntity
...
@@ -111,12 +111,12 @@ public class TPipe extends BaseEntity
{
{
return
coordinates
;
return
coordinates
;
}
}
public
void
setPipeLength
(
Long
pipeLength
)
public
void
setPipeLength
(
double
pipeLength
)
{
{
this
.
pipeLength
=
pipeLength
;
this
.
pipeLength
=
pipeLength
;
}
}
public
Long
getPipeLength
()
public
double
getPipeLength
()
{
{
return
pipeLength
;
return
pipeLength
;
}
}
...
...
gassafety-system/src/main/java/com/zehong/system/mapper/TPipeMapper.java
View file @
b442c2a6
...
@@ -31,7 +31,7 @@ public interface TPipeMapper
...
@@ -31,7 +31,7 @@ public interface TPipeMapper
* 统计管道总长度
* 统计管道总长度
* @return
* @return
*/
*/
public
Long
countPipeLength
();
public
double
countPipeLength
();
/**
/**
* 新增管道信息
* 新增管道信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/ITPipeService.java
View file @
b442c2a6
...
@@ -29,10 +29,10 @@ public interface ITPipeService
...
@@ -29,10 +29,10 @@ public interface ITPipeService
/**
/**
* 统计管道总长度
* 统计管道总长度
* @param
tPipe
* @param
* @return
* @return
*/
*/
public
Long
countPipeLength
();
public
double
countPipeLength
();
/**
/**
* 新增管道信息
* 新增管道信息
...
...
gassafety-system/src/main/java/com/zehong/system/service/impl/TPipeServiceImpl.java
View file @
b442c2a6
...
@@ -48,7 +48,7 @@ public class TPipeServiceImpl implements ITPipeService
...
@@ -48,7 +48,7 @@ public class TPipeServiceImpl implements ITPipeService
* @return
* @return
*/
*/
@Override
@Override
public
Long
countPipeLength
()
{
public
double
countPipeLength
()
{
return
tPipeMapper
.
countPipeLength
();
return
tPipeMapper
.
countPipeLength
();
};
};
...
...
gassafety-system/src/main/resources/mapper/system/TPipeMapper.xml
View file @
b442c2a6
...
@@ -30,7 +30,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -30,7 +30,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"pipeName != null and pipeName != ''"
>
and pipe_name like concat('%', #{pipeName}, '%')
</if>
<if
test=
"pipeName != null and pipeName != ''"
>
and pipe_name like concat('%', #{pipeName}, '%')
</if>
<if
test=
"pipeAddr != null and pipeAddr != ''"
>
and pipe_addr = #{pipeAddr}
</if>
<if
test=
"pipeAddr != null and pipeAddr != ''"
>
and pipe_addr = #{pipeAddr}
</if>
<if
test=
"coordinates != null and coordinates != ''"
>
and coordinates = #{coordinates}
</if>
<if
test=
"coordinates != null and coordinates != ''"
>
and coordinates = #{coordinates}
</if>
<if
test=
"pipeLength != null "
>
and pipe_length = #{pipeLength}
</if>
<if
test=
"pipeType != null and pipeType != ''"
>
and pipe_type = #{pipeType}
</if>
<if
test=
"pipeType != null and pipeType != ''"
>
and pipe_type = #{pipeType}
</if>
<if
test=
"pipePressure != null and pipePressure != ''"
>
and pipe_pressure = #{pipePressure}
</if>
<if
test=
"pipePressure != null and pipePressure != ''"
>
and pipe_pressure = #{pipePressure}
</if>
<if
test=
"iconUrl != null and iconUrl != ''"
>
and icon_url = #{iconUrl}
</if>
<if
test=
"iconUrl != null and iconUrl != ''"
>
and icon_url = #{iconUrl}
</if>
...
@@ -45,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -45,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where pipe_id = #{pipeId}
where pipe_id = #{pipeId}
</select>
</select>
<select
id=
"countPipeLength"
resultType=
"
java.lang.Long
"
>
<select
id=
"countPipeLength"
resultType=
"
double
"
>
select sum(pipe_length) from t_pipe
select sum(pipe_length) from t_pipe
</select>
</select>
...
...
gassafety-web/src/views/device/deviceInfo/index.vue
View file @
b442c2a6
...
@@ -270,10 +270,6 @@ export default {
...
@@ -270,10 +270,6 @@ export default {
};
};
},
},
created
()
{
created
()
{
countDeviceByType
().
then
(
response
=>
{
let
data
=
response
.
data
;
console
.
log
(
data
,
"data"
);
});
this
.
getList
();
this
.
getList
();
this
.
getDicts
(
"t_device_type"
).
then
(
response
=>
{
this
.
getDicts
(
"t_device_type"
).
then
(
response
=>
{
this
.
typeOptions
=
response
.
data
;
this
.
typeOptions
=
response
.
data
;
...
...
gassafety-web/src/views/device/pipe/index.vue
View file @
b442c2a6
...
@@ -141,10 +141,10 @@
...
@@ -141,10 +141,10 @@
<el-input
v-model=
"form.pipeAddr"
placeholder=
"请输入所在地址"
/>
<el-input
v-model=
"form.pipeAddr"
placeholder=
"请输入所在地址"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管道坐标"
prop=
"coordinates"
>
<el-form-item
label=
"管道坐标"
prop=
"coordinates"
>
<el-input
v-model=
"form.coordinates"
placeholder=
"请输入坐标"
/>
<el-input
v-model=
"form.coordinates"
type=
"textarea"
placeholder=
"请输入坐标"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管道长度"
prop=
"pipeLength"
>
<el-form-item
label=
"管道长度"
prop=
"pipeLength"
>
<el-input
v-model=
"form.pipeLength"
placeholder=
"请输入管道长度"
/>
<el-input
v-model=
"form.pipeLength"
placeholder=
"请输入管道长度"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"管道类型"
>
<el-form-item
label=
"管道类型"
>
<el-select
v-model=
"form.pipeType"
placeholder=
"请选择管道类型"
>
<el-select
v-model=
"form.pipeType"
placeholder=
"请选择管道类型"
>
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
listPipe
,
getPipe
,
delPipe
,
addPipe
,
updatePipe
,
exportPipe
}
from
"@/api/device/pipe"
;
import
{
listPipe
,
getPipe
,
delPipe
,
addPipe
,
updatePipe
,
exportPipe
,
countPipeLength
}
from
"@/api/device/pipe"
;
import
FileUpload
from
'@/components/FileUpload'
;
import
FileUpload
from
'@/components/FileUpload'
;
export
default
{
export
default
{
...
...
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