Commit 72b74512 authored by 吴卿华's avatar 吴卿华

化工巡检

parent 254902d8
......@@ -73,6 +73,36 @@ public class TNfcRecord extends BaseEntity {
/**巡检区域*/
private String dictLabel;
/**
* 开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String applyWorkStartTime;
/**
* 结束时间
* @return
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String applyWorkEndTime;
public String getApplyWorkStartTime() {
return applyWorkStartTime;
}
public void setApplyWorkStartTime(String applyWorkStartTime) {
this.applyWorkStartTime = applyWorkStartTime;
}
public String getApplyWorkEndTime() {
return applyWorkEndTime;
}
public void setApplyWorkEndTime(String applyWorkEndTime) {
this.applyWorkEndTime = applyWorkEndTime;
}
public String getDictLabel() {
return dictLabel;
}
......
package com.zehong.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;
import java.util.Date;
/**
* setting对象 t_nfc_setting
*
......@@ -51,8 +51,37 @@ public class TNfcSetting extends BaseEntity
*/
private String nickName;
/**
* 开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String applyWorkStartTime;
/**
* 结束时间
* @return
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String applyWorkEndTime;
public String getApplyWorkStartTime() {
return applyWorkStartTime;
}
public void setApplyWorkStartTime(String applyWorkStartTime) {
this.applyWorkStartTime = applyWorkStartTime;
}
public String getApplyWorkEndTime() {
return applyWorkEndTime;
}
public void setApplyWorkEndTime(String applyWorkEndTime) {
this.applyWorkEndTime = applyWorkEndTime;
}
public String getNickName() {
return nickName;
}
......@@ -149,6 +178,8 @@ public class TNfcSetting extends BaseEntity
", isDel=" + isDel +
", region='" + region + '\'' +
", nickName='" + nickName + '\'' +
", applyWorkStartTime=" + applyWorkStartTime +
", applyWorkEndTime=" + applyWorkEndTime +
'}';
}
}
......@@ -28,6 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="region != null and region != ''"> and region = #{region}</if>
<if test="patrolAddress != null and patrolAddress != ''"> and patrol_address = #{patrolAddress}</if>
<if test="nfcNum != null and nfcNum != ''"> and nfc_num = #{nfcNum}</if>
<if test="applyWorkStartTime!=null and applyWorkStartTime!=''">
and a.create_time &gt;= #{applyWorkStartTime}
</if>
<if test="applyWorkEndTime!=null and applyWorkEndTime!=''">
and a.create_time &lt;= #{applyWorkEndTime}
</if>
</where>
order by patrol_sort
</select>
......@@ -107,6 +113,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="region != null and region != ''">
and b.region=#{region}
</if>
<if test="applyWorkStartTime!=null and applyWorkStartTime!=''">
and a.create_time &gt;= #{applyWorkStartTime}
</if>
<if test="applyWorkEndTime!=null and applyWorkEndTime!=''">
and a.create_time &lt;= #{applyWorkEndTime}
</if>
</where>
group by a.create_time desc
</select>
......
......@@ -20,6 +20,22 @@
/>
</el-select>
</el-form-item>
<el-form-item label="开始时间" prop="applyWorkStartTime">
<el-date-picker clearable size="small"
v-model="queryParams.applyWorkStartTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="applyWorkEndTime">
<el-date-picker clearable size="small"
v-model="queryParams.applyWorkEndTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择结束时间">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......@@ -185,6 +201,8 @@ export default {
patrolAddress: null,
nfcNum: null,
region:null,
applyWorkStartTime:null,
applyWorkEndTime:null
},
// 表单参数
form: {},
......
......@@ -29,6 +29,22 @@
/>
</el-select>
</el-form-item>
<el-form-item label="开始时间" prop="applyWorkStartTime">
<el-date-picker clearable size="small"
v-model="queryParams.applyWorkStartTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="applyWorkEndTime">
<el-date-picker clearable size="small"
v-model="queryParams.applyWorkEndTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择结束时间">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......@@ -98,7 +114,8 @@
<el-table-column label="nfc编号" align="center" prop="nfcNum" >
<span slot-scope="scope" v-if="scope.row.nfcNum">{{scope.row.nfcNum}}</span>
<span v-else>-</span>
</el-table-column>>
</el-table-column>
<el-table-column label="创建时间" width="170" align="center" prop="createTime" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
......@@ -128,7 +145,7 @@
/>
<!-- 添加或修改setting对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="700px" style="height: 150%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="排序" prop="patrolSort">
<el-input v-model="form.patrolSort" placeholder="请输入排序" />
......@@ -153,7 +170,7 @@
<el-input v-model="form.nfcNum" placeholder="请输入nfc编号" />
</el-form-item>
<el-form-item label="巡检内容" prop="patrolComent" >
<el-input v-model="form.patrolComent" type="textarea" placeholder="请输入内容" height="100px"/>
<el-input v-model="form.patrolComent" :autosize="{ minRows: 9, maxRows: 14}" type="textarea" placeholder="请输入内容" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -203,6 +220,8 @@ export default {
patrolAddress: null,
nfcNum: null,
region:null,
applyWorkStartTime:null,
applyWorkEndTime:null
},
// 表单参数
form: {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment