重庆市永川区产业园综合视觉管理平台视频对接项目,前端设备接入->集成型设备update

This commit is contained in:
LiWeiJie 2024-01-05 09:21:20 +08:00
parent b7d55db1b6
commit d378a5ed0f
4 changed files with 72 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import com.god.common.core.domain.BaseEntity;
* 集成型设备对象 cyysj_integrated_molding_equipment * 集成型设备对象 cyysj_integrated_molding_equipment
* *
* @author liweijie * @author liweijie
* @date 2024-01-04 * @date 2024-01-05
*/ */
public class CyysjIntegratedMoldingEquipment extends BaseEntity public class CyysjIntegratedMoldingEquipment extends BaseEntity
{ {
@ -26,6 +26,14 @@ public class CyysjIntegratedMoldingEquipment extends BaseEntity
@Excel(name = "密码") @Excel(name = "密码")
private String password; private String password;
/** 设备名称 */
@Excel(name = "设备名称")
private String deviceName;
/** 设备监控位置 */
@Excel(name = "设备监控位置")
private String equipmentMonitoringPosition;
/** 厂商类型 */ /** 厂商类型 */
@Excel(name = "厂商类型") @Excel(name = "厂商类型")
private String vendorType; private String vendorType;
@ -47,6 +55,7 @@ public class CyysjIntegratedMoldingEquipment extends BaseEntity
private String integrationUrl; private String integrationUrl;
/** 视频上传 */ /** 视频上传 */
@Excel(name = "视频上传")
private String videoUpload; private String videoUpload;
public void setId(String id) public void setId(String id)
@ -76,6 +85,24 @@ public class CyysjIntegratedMoldingEquipment extends BaseEntity
{ {
return password; return password;
} }
public void setDeviceName(String deviceName)
{
this.deviceName = deviceName;
}
public String getDeviceName()
{
return deviceName;
}
public void setEquipmentMonitoringPosition(String equipmentMonitoringPosition)
{
this.equipmentMonitoringPosition = equipmentMonitoringPosition;
}
public String getEquipmentMonitoringPosition()
{
return equipmentMonitoringPosition;
}
public void setVendorType(String vendorType) public void setVendorType(String vendorType)
{ {
this.vendorType = vendorType; this.vendorType = vendorType;
@ -137,6 +164,8 @@ public class CyysjIntegratedMoldingEquipment extends BaseEntity
.append("id", getId()) .append("id", getId())
.append("username", getUsername()) .append("username", getUsername())
.append("password", getPassword()) .append("password", getPassword())
.append("deviceName", getDeviceName())
.append("equipmentMonitoringPosition", getEquipmentMonitoringPosition())
.append("vendorType", getVendorType()) .append("vendorType", getVendorType())
.append("deviceModel", getDeviceModel()) .append("deviceModel", getDeviceModel())
.append("deviceStatus", getDeviceStatus()) .append("deviceStatus", getDeviceStatus())

View File

@ -53,7 +53,7 @@ public class CyysjIntegratedMoldingEquipmentServiceImpl implements ICyysjIntegra
@Override @Override
public int insertCyysjIntegratedMoldingEquipment(CyysjIntegratedMoldingEquipment cyysjIntegratedMoldingEquipment) public int insertCyysjIntegratedMoldingEquipment(CyysjIntegratedMoldingEquipment cyysjIntegratedMoldingEquipment)
{ {
cyysjIntegratedMoldingEquipment.setId(IdUtils.fastSimpleUUID()); cyysjIntegratedMoldingEquipment.setId(IdUtils.fastSimpleUUID() );
return cyysjIntegratedMoldingEquipmentMapper.insertCyysjIntegratedMoldingEquipment(cyysjIntegratedMoldingEquipment); return cyysjIntegratedMoldingEquipmentMapper.insertCyysjIntegratedMoldingEquipment(cyysjIntegratedMoldingEquipment);
} }

View File

@ -8,6 +8,8 @@
<result property="id" column="id" /> <result property="id" column="id" />
<result property="username" column="username" /> <result property="username" column="username" />
<result property="password" column="password" /> <result property="password" column="password" />
<result property="deviceName" column="device_name" />
<result property="equipmentMonitoringPosition" column="equipment_monitoring_position" />
<result property="vendorType" column="vendor_type" /> <result property="vendorType" column="vendor_type" />
<result property="deviceModel" column="device_model" /> <result property="deviceModel" column="device_model" />
<result property="deviceStatus" column="device_status" /> <result property="deviceStatus" column="device_status" />
@ -17,7 +19,7 @@
</resultMap> </resultMap>
<sql id="selectCyysjIntegratedMoldingEquipmentVo"> <sql id="selectCyysjIntegratedMoldingEquipmentVo">
select id, username, password, vendor_type, device_model, device_status, last_update_time, integration_url, video_upload from cyysj_integrated_molding_equipment select id, username, password, device_name, equipment_monitoring_position, vendor_type, device_model, device_status, last_update_time, integration_url, video_upload from cyysj_integrated_molding_equipment
</sql> </sql>
<select id="selectCyysjIntegratedMoldingEquipmentList" parameterType="CyysjIntegratedMoldingEquipment" resultMap="CyysjIntegratedMoldingEquipmentResult"> <select id="selectCyysjIntegratedMoldingEquipmentList" parameterType="CyysjIntegratedMoldingEquipment" resultMap="CyysjIntegratedMoldingEquipmentResult">
@ -25,11 +27,14 @@
<where> <where>
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if> <if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
<if test="password != null and password != ''"> and password like concat('%', #{password}, '%')</if> <if test="password != null and password != ''"> and password like concat('%', #{password}, '%')</if>
<if test="deviceName != null and deviceName != ''"> and device_name like concat('%', #{deviceName}, '%')</if>
<if test="equipmentMonitoringPosition != null and equipmentMonitoringPosition != ''"> and equipment_monitoring_position like concat('%', #{equipmentMonitoringPosition}, '%')</if>
<if test="vendorType != null and vendorType != ''"> and vendor_type like concat('%', #{vendorType}, '%')</if> <if test="vendorType != null and vendorType != ''"> and vendor_type like concat('%', #{vendorType}, '%')</if>
<if test="deviceModel != null and deviceModel != ''"> and device_model like concat('%', #{deviceModel}, '%')</if> <if test="deviceModel != null and deviceModel != ''"> and device_model like concat('%', #{deviceModel}, '%')</if>
<if test="deviceStatus != null and deviceStatus != ''"> and device_status like concat('%', #{deviceStatus}, '%')</if> <if test="deviceStatus != null and deviceStatus != ''"> and device_status like concat('%', #{deviceStatus}, '%')</if>
<if test="params.beginLastUpdateTime != null and params.beginLastUpdateTime != '' and params.endLastUpdateTime != null and params.endLastUpdateTime != ''"> and last_update_time between #{params.beginLastUpdateTime} and #{params.endLastUpdateTime}</if> <if test="params.beginLastUpdateTime != null and params.beginLastUpdateTime != '' and params.endLastUpdateTime != null and params.endLastUpdateTime != ''"> and last_update_time between #{params.beginLastUpdateTime} and #{params.endLastUpdateTime}</if>
<if test="integrationUrl != null and integrationUrl != ''"> and integration_url like concat('%', #{integrationUrl}, '%')</if> <if test="integrationUrl != null and integrationUrl != ''"> and integration_url like concat('%', #{integrationUrl}, '%')</if>
<if test="videoUpload != null and videoUpload != ''"> and video_upload like concat('%', #{videoUpload}, '%')</if>
</where> </where>
</select> </select>
@ -44,6 +49,8 @@
<if test="id != null">id,</if> <if test="id != null">id,</if>
<if test="username != null">username,</if> <if test="username != null">username,</if>
<if test="password != null">password,</if> <if test="password != null">password,</if>
<if test="deviceName != null">device_name,</if>
<if test="equipmentMonitoringPosition != null">equipment_monitoring_position,</if>
<if test="vendorType != null">vendor_type,</if> <if test="vendorType != null">vendor_type,</if>
<if test="deviceModel != null">device_model,</if> <if test="deviceModel != null">device_model,</if>
<if test="deviceStatus != null">device_status,</if> <if test="deviceStatus != null">device_status,</if>
@ -55,6 +62,8 @@
<if test="id != null">#{id},</if> <if test="id != null">#{id},</if>
<if test="username != null">#{username},</if> <if test="username != null">#{username},</if>
<if test="password != null">#{password},</if> <if test="password != null">#{password},</if>
<if test="deviceName != null">#{deviceName},</if>
<if test="equipmentMonitoringPosition != null">#{equipmentMonitoringPosition},</if>
<if test="vendorType != null">#{vendorType},</if> <if test="vendorType != null">#{vendorType},</if>
<if test="deviceModel != null">#{deviceModel},</if> <if test="deviceModel != null">#{deviceModel},</if>
<if test="deviceStatus != null">#{deviceStatus},</if> <if test="deviceStatus != null">#{deviceStatus},</if>
@ -69,6 +78,8 @@
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="username != null">username = #{username},</if> <if test="username != null">username = #{username},</if>
<if test="password != null">password = #{password},</if> <if test="password != null">password = #{password},</if>
<if test="deviceName != null">device_name = #{deviceName},</if>
<if test="equipmentMonitoringPosition != null">equipment_monitoring_position = #{equipmentMonitoringPosition},</if>
<if test="vendorType != null">vendor_type = #{vendorType},</if> <if test="vendorType != null">vendor_type = #{vendorType},</if>
<if test="deviceModel != null">device_model = #{deviceModel},</if> <if test="deviceModel != null">device_model = #{deviceModel},</if>
<if test="deviceStatus != null">device_status = #{deviceStatus},</if> <if test="deviceStatus != null">device_status = #{deviceStatus},</if>

View File

@ -18,6 +18,23 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="设备名称" prop="deviceName">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="设备监控位置" prop="equipmentMonitoringPosition">
<el-input
v-model="queryParams.equipmentMonitoringPosition"
placeholder="请输入设备监控位置"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="厂商类型" prop="deviceStatus"> <el-form-item label="厂商类型" prop="deviceStatus">
<el-input <el-input
v-model="queryParams.deviceStatus" v-model="queryParams.deviceStatus"
@ -121,6 +138,8 @@
<!-- <el-table-column label="主键" align="center" prop="id" /> --> <!-- <el-table-column label="主键" align="center" prop="id" /> -->
<el-table-column label="用户名" align="center" prop="username" /> <el-table-column label="用户名" align="center" prop="username" />
<el-table-column label="密码" align="center" prop="password" /> <el-table-column label="密码" align="center" prop="password" />
<el-table-column label="设备名称" align="center" prop="deviceName" />
<el-table-column label="设备监控位置" align="center" prop="equipmentMonitoringPosition" />
<el-table-column label="厂商类型" align="center" prop="vendorType" /> <el-table-column label="厂商类型" align="center" prop="vendorType" />
<el-table-column label="设备型号" align="center" prop="deviceModel" :show-overflow-tooltip="true"/> <el-table-column label="设备型号" align="center" prop="deviceModel" :show-overflow-tooltip="true"/>
<el-table-column label="设备状态" align="center" prop="deviceStatus" > <el-table-column label="设备状态" align="center" prop="deviceStatus" >
@ -190,6 +209,12 @@
<el-form-item label="密码" prop="password"> <el-form-item label="密码" prop="password">
<el-input v-model="form.password" placeholder="请输入密码" /> <el-input v-model="form.password" placeholder="请输入密码" />
</el-form-item> </el-form-item>
<el-form-item label="设备名称" prop="deviceName">
<el-input v-model="form.deviceName" placeholder="请输入设备名称" />
</el-form-item>
<el-form-item label="设备监控位置" prop="equipmentMonitoringPosition">
<el-input v-model="form.equipmentMonitoringPosition" placeholder="请输入设备监控位置" />
</el-form-item>
<el-form-item label="厂商类型" prop="vendorType"> <el-form-item label="厂商类型" prop="vendorType">
<el-input v-model="form.vendorType" placeholder="请输入厂商类型" /> <el-input v-model="form.vendorType" placeholder="请输入厂商类型" />
</el-form-item> </el-form-item>
@ -290,6 +315,8 @@ export default {
pageSize: 10, pageSize: 10,
username: null, username: null,
password: null, password: null,
deviceName: null,
equipmentMonitoringPosition: null,
vendorType: null, vendorType: null,
deviceModel: null, deviceModel: null,
deviceStatus: null, deviceStatus: null,
@ -431,6 +458,8 @@ export default {
id: null, id: null,
username: null, username: null,
password: null, password: null,
deviceName: null,
equipmentMonitoringPosition: null,
vendorType: null, vendorType: null,
deviceModel: null, deviceModel: null,
deviceStatus: null, deviceStatus: null,