change - 振动传感器数据

master
yinq 7 months ago
parent ab1894cbcf
commit 04e75438c4

@ -0,0 +1,118 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.TVibrationsensorData;
import com.ruoyi.system.service.ITVibrationsensorDataService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author Yinq
* @date 2024-04-28
*/
@Controller
@RequestMapping("/system/TVibrationsensorData")
public class TVibrationsensorDataController extends BaseController {
private String prefix = "system/TVibrationsensorData";
@Autowired
private ITVibrationsensorDataService tVibrationsensorDataService;
@RequiresPermissions("system:TVibrationsensorData:view")
@GetMapping()
public String TVibrationsensorData() {
return prefix + "/TVibrationsensorData";
}
/**
*
*/
@RequiresPermissions("system:TVibrationsensorData:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TVibrationsensorData tVibrationsensorData) {
startPage();
List<TVibrationsensorData> list = tVibrationsensorDataService.selectTVibrationsensorDataList(tVibrationsensorData);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("system:TVibrationsensorData:export")
@Log(title = "振动传感器数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TVibrationsensorData tVibrationsensorData) {
List<TVibrationsensorData> list = tVibrationsensorDataService.selectTVibrationsensorDataList(tVibrationsensorData);
ExcelUtil<TVibrationsensorData> util = new ExcelUtil<TVibrationsensorData>(TVibrationsensorData.class);
return util.exportExcel(list, "TVibrationsensorData");
}
/**
*
*/
@GetMapping("/add")
public String add() {
return prefix + "/add";
}
/**
*
*/
@RequiresPermissions("system:TVibrationsensorData:add")
@Log(title = "振动传感器数据", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TVibrationsensorData tVibrationsensorData) {
return toAjax(tVibrationsensorDataService.insertTVibrationsensorData(tVibrationsensorData));
}
/**
*
*/
@GetMapping("/edit/{objId}")
public String edit(@PathVariable("objId") Long objId, ModelMap mmap) {
TVibrationsensorData tVibrationsensorData = tVibrationsensorDataService.selectTVibrationsensorDataById(objId);
mmap.put("tVibrationsensorData", tVibrationsensorData);
return prefix + "/edit";
}
/**
*
*/
@RequiresPermissions("system:TVibrationsensorData:edit")
@Log(title = "振动传感器数据", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TVibrationsensorData tVibrationsensorData) {
return toAjax(tVibrationsensorDataService.updateTVibrationsensorData(tVibrationsensorData));
}
/**
*
*/
@RequiresPermissions("system:TVibrationsensorData:remove")
@Log(title = "振动传感器数据", businessType = BusinessType.DELETE)
@PostMapping("/remove")
@ResponseBody
public AjaxResult remove(String ids) {
return toAjax(tVibrationsensorDataService.deleteTVibrationsensorDataByIds(ids));
}
}

@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('振动传感器数据列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li class="select-time">
<label>采集时间:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCollectTime]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCollectTime]"/>
</li>
<!-- <li>-->
<!-- <label>振动传感器ID</label>-->
<!-- <input type="text" name="sensorId"/>-->
<!-- </li>-->
<!-- <li class="select-time">-->
<!-- <label>记录时间:</label>-->
<!-- <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginRecodeTime]"/>-->
<!-- <span>-</span>-->
<!-- <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endRecodeTime]"/>-->
<!-- </li>-->
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:TVibrationsensorData:add">-->
<!-- <i class="fa fa-plus"></i> 添加-->
<!-- </a>-->
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:TVibrationsensorData:edit">-->
<!-- <i class="fa fa-edit"></i> 修改-->
<!-- </a>-->
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:TVibrationsensorData:remove">-->
<!-- <i class="fa fa-remove"></i> 删除-->
<!-- </a>-->
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:TVibrationsensorData:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('system:TVibrationsensorData:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:TVibrationsensorData:remove')}]];
var prefix = ctx + "system/TVibrationsensorData";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "振动传感器数据",
columns: [{
checkbox: true
},
{
field: 'objId',
title: '主键标识',
visible: false
},
{
field: 'sensorId',
title: '振动传感器ID'
},
{
field: 'speed',
title: '速度(mm/s)'
},
{
field: 'displacement',
title: '位移(um)'
},
{
field: 'acceleration',
title: '加速度(g)'
},
{
field: 'temperature',
title: '温度(℃)'
},
{
field: 'collectTime',
title: '采集时间'
},
{
field: 'recodeTime',
title: '记录时间'
},
{
field: 'remark',
title: '备注'
},
// {
// title: '操作',
// align: 'center',
// formatter: function(value, row, index) {
// var actions = [];
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objId + '\')"><i class="fa fa-remove"></i>删除</a>');
// return actions.join('');
// }
// }
]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -0,0 +1,87 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增振动传感器数据')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-TVibrationsensorData-add">
<div class="form-group">
<label class="col-sm-3 control-label">采集时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="collectTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">振动传感器ID</label>
<div class="col-sm-8">
<input name="sensorId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">速度(mm/s)</label>
<div class="col-sm-8">
<input name="speed" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">位移(um)</label>
<div class="col-sm-8">
<input name="displacement" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">加速度(g)</label>
<div class="col-sm-8">
<input name="acceleration" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">温度(℃)</label>
<div class="col-sm-8">
<input name="temperature" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">记录时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="recodeTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/TVibrationsensorData"
$("#form-TVibrationsensorData-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-TVibrationsensorData-add').serialize());
}
}
$("input[name='collectTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='recodeTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改振动传感器数据')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-TVibrationsensorData-edit" th:object="${tVibrationsensorData}">
<input name="objId" th:field="*{objId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">采集时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="collectTime" th:value="${#dates.format(tVibrationsensorData.collectTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">振动传感器ID</label>
<div class="col-sm-8">
<input name="sensorId" th:field="*{sensorId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">速度(mm/s)</label>
<div class="col-sm-8">
<input name="speed" th:field="*{speed}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">位移(um)</label>
<div class="col-sm-8">
<input name="displacement" th:field="*{displacement}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">加速度(g)</label>
<div class="col-sm-8">
<input name="acceleration" th:field="*{acceleration}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">温度(℃)</label>
<div class="col-sm-8">
<input name="temperature" th:field="*{temperature}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">记录时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="recodeTime" th:value="${#dates.format(tVibrationsensorData.recodeTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/TVibrationsensorData";
$("#form-TVibrationsensorData-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-TVibrationsensorData-edit').serialize());
}
}
$("input[name='collectTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='recodeTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

@ -0,0 +1,144 @@
package com.ruoyi.system.domain;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* T_VibrationSensor_Data
*
* @author Yinq
* @date 2024-04-28
*/
public class TVibrationsensorData extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
private Long objId;
/**
*
*/
@Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date collectTime;
/**
* ID
*/
@Excel(name = "振动传感器ID")
private Long sensorId;
/**
* (mm/s)
*/
@Excel(name = "速度(mm/s)")
private Long speed;
/**
* (um)
*/
@Excel(name = "位移(um)")
private Long displacement;
/**
* (g)
*/
@Excel(name = "加速度(g)")
private Long acceleration;
/**
* ()
*/
@Excel(name = "温度(℃)")
private Long temperature;
/**
*
*/
@Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date recodeTime;
public void setObjId(Long objId) {
this.objId = objId;
}
public Long getObjId() {
return objId;
}
public void setCollectTime(Date collectTime) {
this.collectTime = collectTime;
}
public Date getCollectTime() {
return collectTime;
}
public void setSensorId(Long sensorId) {
this.sensorId = sensorId;
}
public Long getSensorId() {
return sensorId;
}
public void setSpeed(Long speed) {
this.speed = speed;
}
public Long getSpeed() {
return speed;
}
public void setDisplacement(Long displacement) {
this.displacement = displacement;
}
public Long getDisplacement() {
return displacement;
}
public void setAcceleration(Long acceleration) {
this.acceleration = acceleration;
}
public Long getAcceleration() {
return acceleration;
}
public void setTemperature(Long temperature) {
this.temperature = temperature;
}
public Long getTemperature() {
return temperature;
}
public void setRecodeTime(Date recodeTime) {
this.recodeTime = recodeTime;
}
public Date getRecodeTime() {
return recodeTime;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("objId", getObjId())
.append("collectTime", getCollectTime())
.append("sensorId", getSensorId())
.append("speed", getSpeed())
.append("displacement", getDisplacement())
.append("acceleration", getAcceleration())
.append("temperature", getTemperature())
.append("recodeTime", getRecodeTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.TVibrationsensorData;
/**
* Mapper
*
* @author Yinq
* @date 2024-04-28
*/
public interface TVibrationsensorDataMapper {
/**
*
*
* @param objId ID
* @return
*/
public TVibrationsensorData selectTVibrationsensorDataById(Long objId);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public List<TVibrationsensorData> selectTVibrationsensorDataList(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public int insertTVibrationsensorData(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public int updateTVibrationsensorData(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param objId ID
* @return
*/
public int deleteTVibrationsensorDataById(Long objId);
/**
*
*
* @param objIds ID
* @return
*/
public int deleteTVibrationsensorDataByIds(String[] objIds);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.TVibrationsensorData;
/**
* Service
*
* @author Yinq
* @date 2024-04-28
*/
public interface ITVibrationsensorDataService
{
/**
*
*
* @param objId ID
* @return
*/
public TVibrationsensorData selectTVibrationsensorDataById(Long objId);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public List<TVibrationsensorData> selectTVibrationsensorDataList(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public int insertTVibrationsensorData(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param tVibrationsensorData
* @return
*/
public int updateTVibrationsensorData(TVibrationsensorData tVibrationsensorData);
/**
*
*
* @param ids ID
* @return
*/
public int deleteTVibrationsensorDataByIds(String ids);
/**
*
*
* @param objId ID
* @return
*/
public int deleteTVibrationsensorDataById(Long objId);
}

@ -0,0 +1,88 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TVibrationsensorDataMapper;
import com.ruoyi.system.domain.TVibrationsensorData;
import com.ruoyi.system.service.ITVibrationsensorDataService;
import com.ruoyi.common.core.text.Convert;
/**
* Service
*
* @author Yinq
* @date 2024-04-28
*/
@Service
public class TVibrationsensorDataServiceImpl implements ITVibrationsensorDataService {
@Autowired
private TVibrationsensorDataMapper tVibrationsensorDataMapper;
/**
*
*
* @param objId ID
* @return
*/
@Override
public TVibrationsensorData selectTVibrationsensorDataById(Long objId) {
return tVibrationsensorDataMapper.selectTVibrationsensorDataById(objId);
}
/**
*
*
* @param tVibrationsensorData
* @return
*/
@Override
public List<TVibrationsensorData> selectTVibrationsensorDataList(TVibrationsensorData tVibrationsensorData) {
return tVibrationsensorDataMapper.selectTVibrationsensorDataList(tVibrationsensorData);
}
/**
*
*
* @param tVibrationsensorData
* @return
*/
@Override
public int insertTVibrationsensorData(TVibrationsensorData tVibrationsensorData) {
return tVibrationsensorDataMapper.insertTVibrationsensorData(tVibrationsensorData);
}
/**
*
*
* @param tVibrationsensorData
* @return
*/
@Override
public int updateTVibrationsensorData(TVibrationsensorData tVibrationsensorData) {
return tVibrationsensorDataMapper.updateTVibrationsensorData(tVibrationsensorData);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteTVibrationsensorDataByIds(String ids) {
return tVibrationsensorDataMapper.deleteTVibrationsensorDataByIds(Convert.toStrArray(ids));
}
/**
*
*
* @param objId ID
* @return
*/
@Override
public int deleteTVibrationsensorDataById(Long objId) {
return tVibrationsensorDataMapper.deleteTVibrationsensorDataById(objId);
}
}

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.TVibrationsensorDataMapper">
<resultMap type="TVibrationsensorData" id="TVibrationsensorDataResult">
<result property="objId" column="objId"/>
<result property="collectTime" column="collectTime"/>
<result property="sensorId" column="sensor_id"/>
<result property="speed" column="speed"/>
<result property="displacement" column="displacement"/>
<result property="acceleration" column="acceleration"/>
<result property="temperature" column="temperature"/>
<result property="recodeTime" column="recodeTime"/>
<result property="remark" column="remark"/>
</resultMap>
<sql id="selectTVibrationsensorDataVo">
select objId,
collectTime,
sensor_id,
speed,
displacement,
acceleration,
temperature,
recodeTime,
remark
from T_VibrationSensor_Data
</sql>
<select id="selectTVibrationsensorDataList" parameterType="TVibrationsensorData"
resultMap="TVibrationsensorDataResult">
<include refid="selectTVibrationsensorDataVo"/>
<where>
<if test="params.beginCollectTime != null and params.beginCollectTime != '' and params.endCollectTime != null and params.endCollectTime != ''">
and collectTime between #{params.beginCollectTime} and #{params.endCollectTime}
</if>
<if test="sensorId != null ">and sensor_id = #{sensorId}</if>
<if test="speed != null ">and speed = #{speed}</if>
<if test="displacement != null ">and displacement = #{displacement}</if>
<if test="acceleration != null ">and acceleration = #{acceleration}</if>
<if test="temperature != null ">and temperature = #{temperature}</if>
<if test="recodeTime != null ">and recodeTime = #{recodeTime}</if>
</where>
order by collectTime desc
</select>
<select id="selectTVibrationsensorDataById" parameterType="Long" resultMap="TVibrationsensorDataResult">
<include refid="selectTVibrationsensorDataVo"/>
where objId = #{objId}
</select>
<insert id="insertTVibrationsensorData" parameterType="TVibrationsensorData">
insert into T_VibrationSensor_Data
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="objId != null">objId,</if>
<if test="collectTime != null">collectTime,</if>
<if test="sensorId != null">sensor_id,</if>
<if test="speed != null">speed,</if>
<if test="displacement != null">displacement,</if>
<if test="acceleration != null">acceleration,</if>
<if test="temperature != null">temperature,</if>
<if test="recodeTime != null">recodeTime,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
<if test="collectTime != null">#{collectTime},</if>
<if test="sensorId != null">#{sensorId},</if>
<if test="speed != null">#{speed},</if>
<if test="displacement != null">#{displacement},</if>
<if test="acceleration != null">#{acceleration},</if>
<if test="temperature != null">#{temperature},</if>
<if test="recodeTime != null">#{recodeTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateTVibrationsensorData" parameterType="TVibrationsensorData">
update T_VibrationSensor_Data
<trim prefix="SET" suffixOverrides=",">
<if test="collectTime != null">collectTime = #{collectTime},</if>
<if test="sensorId != null">sensor_id = #{sensorId},</if>
<if test="speed != null">speed = #{speed},</if>
<if test="displacement != null">displacement = #{displacement},</if>
<if test="acceleration != null">acceleration = #{acceleration},</if>
<if test="temperature != null">temperature = #{temperature},</if>
<if test="recodeTime != null">recodeTime = #{recodeTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where objId = #{objId}
</update>
<delete id="deleteTVibrationsensorDataById" parameterType="Long">
delete
from T_VibrationSensor_Data
where objId = #{objId}
</delete>
<delete id="deleteTVibrationsensorDataByIds" parameterType="String">
delete from T_VibrationSensor_Data where objId in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save