虫情设备实时数据
This commit is contained in:
@ -1,86 +0,0 @@
|
|||||||
package com.fastbee.deviceData.domain;
|
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import com.fastbee.common.annotation.Excel;
|
|
||||||
import com.fastbee.common.core.domain.BaseEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 鼠害设备实时数据对象 iot_device_mice_realtime
|
|
||||||
*
|
|
||||||
* @author kerwincui
|
|
||||||
* @date 2024-11-07
|
|
||||||
*/
|
|
||||||
@ApiModel(value = "DeviceMiceRealtime",description = "鼠害设备实时数据 iot_device_mice_realtime")
|
|
||||||
@Data
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
public class DeviceMiceRealtime extends BaseEntity
|
|
||||||
{
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
/** $column.columnComment */
|
|
||||||
private Long id;
|
|
||||||
|
|
||||||
/** 诱饵投放 0关 1开 */
|
|
||||||
@Excel(name = "诱饵投放 0关 1开")
|
|
||||||
@ApiModelProperty("诱饵投放 0关 1开")
|
|
||||||
private String feedDelivery;
|
|
||||||
|
|
||||||
/** 红外探测 0无 1有 */
|
|
||||||
@Excel(name = "红外探测 0无 1有")
|
|
||||||
@ApiModelProperty("红外探测 0无 1有")
|
|
||||||
private String infraredDetection;
|
|
||||||
|
|
||||||
/** 放生口 0关 1开 */
|
|
||||||
@Excel(name = "放生口 0关 1开")
|
|
||||||
@ApiModelProperty("放生口 0关 1开")
|
|
||||||
private String export;
|
|
||||||
|
|
||||||
/** 补光灯 0关 1开 */
|
|
||||||
@Excel(name = "补光灯 0关 1开")
|
|
||||||
@ApiModelProperty("补光灯 0关 1开")
|
|
||||||
private String fillLight;
|
|
||||||
|
|
||||||
/** 重量(g) */
|
|
||||||
@Excel(name = "重量(g)")
|
|
||||||
@ApiModelProperty("重量(g)")
|
|
||||||
private String weight;
|
|
||||||
|
|
||||||
/** 经度 */
|
|
||||||
@Excel(name = "经度")
|
|
||||||
@ApiModelProperty("经度")
|
|
||||||
private String lng;
|
|
||||||
|
|
||||||
/** 纬度 */
|
|
||||||
@Excel(name = "纬度")
|
|
||||||
@ApiModelProperty("纬度")
|
|
||||||
private String lat;
|
|
||||||
|
|
||||||
/** 工作模式 0为手动模式 1为自动模式 */
|
|
||||||
@Excel(name = "工作模式 0为手动模式 1为自动模式")
|
|
||||||
@ApiModelProperty("工作模式 0为手动模式 1为自动模式")
|
|
||||||
private String workingMode;
|
|
||||||
|
|
||||||
/** 净重 0关 1开 */
|
|
||||||
@Excel(name = "净重 0关 1开")
|
|
||||||
@ApiModelProperty("净重 0关 1开")
|
|
||||||
private String netWeight;
|
|
||||||
|
|
||||||
/** 拍照 0关 1开 */
|
|
||||||
@Excel(name = "拍照 0关 1开")
|
|
||||||
@ApiModelProperty("拍照 0关 1开")
|
|
||||||
private String takePicture;
|
|
||||||
|
|
||||||
/** 设备地址 */
|
|
||||||
@Excel(name = "设备地址")
|
|
||||||
@ApiModelProperty("设备地址")
|
|
||||||
private String deviceAddr;
|
|
||||||
|
|
||||||
/** 设备状态 */
|
|
||||||
@Excel(name = "设备状态")
|
|
||||||
@ApiModelProperty("设备状态")
|
|
||||||
private String truthStatus;
|
|
||||||
|
|
||||||
}
|
|
@ -10,15 +10,15 @@ import com.fastbee.common.annotation.Excel;
|
|||||||
import com.fastbee.common.core.domain.BaseEntity;
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 虫情设备实时数据对象 iot_device_worms_realtime
|
* 虫情设备实时数据对象 iot_device_realtimedata_worms
|
||||||
*
|
*
|
||||||
* @author kerwincui
|
* @author kerwincui
|
||||||
* @date 2024-11-07
|
* @date 2024-11-07
|
||||||
*/
|
*/
|
||||||
@ApiModel(value = "DeviceWormsRealtime",description = "虫情设备实时数据 iot_device_worms_realtime")
|
@ApiModel(value = "DeviceRealtimedataWorms",description = "虫情设备实时数据 iot_device_realtimedata_worms")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class DeviceWormsRealtime extends BaseEntity
|
public class DeviceRealtimedataWorms extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
@ -1,61 +0,0 @@
|
|||||||
package com.fastbee.deviceData.mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import com.fastbee.deviceData.domain.DeviceMiceRealtime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 鼠害设备实时数据Mapper接口
|
|
||||||
*
|
|
||||||
* @author kerwincui
|
|
||||||
* @date 2024-11-07
|
|
||||||
*/
|
|
||||||
public interface DeviceMiceRealtimeMapper
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 鼠害设备实时数据
|
|
||||||
*/
|
|
||||||
public DeviceMiceRealtime selectDeviceMiceRealtimeById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据列表
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 鼠害设备实时数据集合
|
|
||||||
*/
|
|
||||||
public List<DeviceMiceRealtime> selectDeviceMiceRealtimeList(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteDeviceMiceRealtimeById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteDeviceMiceRealtimeByIds(Long[] ids);
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.fastbee.deviceData.mapper;
|
package com.fastbee.deviceData.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fastbee.deviceData.domain.DeviceWormsRealtime;
|
import com.fastbee.deviceData.domain.DeviceRealtimedataWorms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 虫情设备实时数据Mapper接口
|
* 虫情设备实时数据Mapper接口
|
||||||
@ -9,7 +9,7 @@ import com.fastbee.deviceData.domain.DeviceWormsRealtime;
|
|||||||
* @author kerwincui
|
* @author kerwincui
|
||||||
* @date 2024-11-07
|
* @date 2024-11-07
|
||||||
*/
|
*/
|
||||||
public interface DeviceWormsRealtimeMapper
|
public interface DeviceRealtimedataWormsMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询虫情设备实时数据
|
* 查询虫情设备实时数据
|
||||||
@ -17,31 +17,31 @@ public interface DeviceWormsRealtimeMapper
|
|||||||
* @param id 虫情设备实时数据主键
|
* @param id 虫情设备实时数据主键
|
||||||
* @return 虫情设备实时数据
|
* @return 虫情设备实时数据
|
||||||
*/
|
*/
|
||||||
public DeviceWormsRealtime selectDeviceWormsRealtimeById(Long id);
|
public DeviceRealtimedataWorms selectDeviceRealtimedataWormsById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询虫情设备实时数据列表
|
* 查询虫情设备实时数据列表
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 虫情设备实时数据集合
|
* @return 虫情设备实时数据集合
|
||||||
*/
|
*/
|
||||||
public List<DeviceWormsRealtime> selectDeviceWormsRealtimeList(DeviceWormsRealtime deviceWormsRealtime);
|
public List<DeviceRealtimedataWorms> selectDeviceRealtimedataWormsList(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增虫情设备实时数据
|
* 新增虫情设备实时数据
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime);
|
public int insertDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改虫情设备实时数据
|
* 修改虫情设备实时数据
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime);
|
public int updateDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除虫情设备实时数据
|
* 删除虫情设备实时数据
|
||||||
@ -49,7 +49,7 @@ public interface DeviceWormsRealtimeMapper
|
|||||||
* @param id 虫情设备实时数据主键
|
* @param id 虫情设备实时数据主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDeviceWormsRealtimeById(Long id);
|
public int deleteDeviceRealtimedataWormsById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除虫情设备实时数据
|
* 批量删除虫情设备实时数据
|
||||||
@ -57,5 +57,5 @@ public interface DeviceWormsRealtimeMapper
|
|||||||
* @param ids 需要删除的数据主键集合
|
* @param ids 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDeviceWormsRealtimeByIds(Long[] ids);
|
public int deleteDeviceRealtimedataWormsByIds(Long[] ids);
|
||||||
}
|
}
|
@ -1,61 +0,0 @@
|
|||||||
package com.fastbee.deviceData.service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import com.fastbee.deviceData.domain.DeviceMiceRealtime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 鼠害设备实时数据Service接口
|
|
||||||
*
|
|
||||||
* @author kerwincui
|
|
||||||
* @date 2024-11-07
|
|
||||||
*/
|
|
||||||
public interface IDeviceMiceRealtimeService
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 鼠害设备实时数据
|
|
||||||
*/
|
|
||||||
public DeviceMiceRealtime selectDeviceMiceRealtimeById(Long id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据列表
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 鼠害设备实时数据集合
|
|
||||||
*/
|
|
||||||
public List<DeviceMiceRealtime> selectDeviceMiceRealtimeList(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的鼠害设备实时数据主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteDeviceMiceRealtimeByIds(Long[] ids);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除鼠害设备实时数据信息
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteDeviceMiceRealtimeById(Long id);
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
package com.fastbee.deviceData.service;
|
package com.fastbee.deviceData.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fastbee.deviceData.domain.DeviceWormsRealtime;
|
import com.fastbee.deviceData.domain.DeviceRealtimedataWorms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 虫情设备实时数据Service接口
|
* 虫情设备实时数据Service接口
|
||||||
@ -9,7 +9,7 @@ import com.fastbee.deviceData.domain.DeviceWormsRealtime;
|
|||||||
* @author kerwincui
|
* @author kerwincui
|
||||||
* @date 2024-11-07
|
* @date 2024-11-07
|
||||||
*/
|
*/
|
||||||
public interface IDeviceWormsRealtimeService
|
public interface IDeviceRealtimedataWormsService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询虫情设备实时数据
|
* 查询虫情设备实时数据
|
||||||
@ -17,31 +17,31 @@ public interface IDeviceWormsRealtimeService
|
|||||||
* @param id 虫情设备实时数据主键
|
* @param id 虫情设备实时数据主键
|
||||||
* @return 虫情设备实时数据
|
* @return 虫情设备实时数据
|
||||||
*/
|
*/
|
||||||
public DeviceWormsRealtime selectDeviceWormsRealtimeById(Long id);
|
public DeviceRealtimedataWorms selectDeviceRealtimedataWormsById(Long id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询虫情设备实时数据列表
|
* 查询虫情设备实时数据列表
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 虫情设备实时数据集合
|
* @return 虫情设备实时数据集合
|
||||||
*/
|
*/
|
||||||
public List<DeviceWormsRealtime> selectDeviceWormsRealtimeList(DeviceWormsRealtime deviceWormsRealtime);
|
public List<DeviceRealtimedataWorms> selectDeviceRealtimedataWormsList(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增虫情设备实时数据
|
* 新增虫情设备实时数据
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime);
|
public int insertDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改虫情设备实时数据
|
* 修改虫情设备实时数据
|
||||||
*
|
*
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime);
|
public int updateDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除虫情设备实时数据
|
* 批量删除虫情设备实时数据
|
||||||
@ -49,7 +49,7 @@ public interface IDeviceWormsRealtimeService
|
|||||||
* @param ids 需要删除的虫情设备实时数据主键集合
|
* @param ids 需要删除的虫情设备实时数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDeviceWormsRealtimeByIds(Long[] ids);
|
public int deleteDeviceRealtimedataWormsByIds(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除虫情设备实时数据信息
|
* 删除虫情设备实时数据信息
|
||||||
@ -57,5 +57,5 @@ public interface IDeviceWormsRealtimeService
|
|||||||
* @param id 虫情设备实时数据主键
|
* @param id 虫情设备实时数据主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDeviceWormsRealtimeById(Long id);
|
public int deleteDeviceRealtimedataWormsById(Long id);
|
||||||
}
|
}
|
@ -1,93 +0,0 @@
|
|||||||
package com.fastbee.deviceData.service.imp;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import com.fastbee.deviceData.mapper.DeviceMiceRealtimeMapper;
|
|
||||||
import com.fastbee.deviceData.domain.DeviceMiceRealtime;
|
|
||||||
import com.fastbee.deviceData.service.IDeviceMiceRealtimeService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 鼠害设备实时数据Service业务层处理
|
|
||||||
*
|
|
||||||
* @author kerwincui
|
|
||||||
* @date 2024-11-07
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class DeviceMiceRealtimeServiceImpl implements IDeviceMiceRealtimeService
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private DeviceMiceRealtimeMapper deviceMiceRealtimeMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 鼠害设备实时数据
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public DeviceMiceRealtime selectDeviceMiceRealtimeById(Long id)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.selectDeviceMiceRealtimeById(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询鼠害设备实时数据列表
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 鼠害设备实时数据
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<DeviceMiceRealtime> selectDeviceMiceRealtimeList(DeviceMiceRealtime deviceMiceRealtime)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.selectDeviceMiceRealtimeList(deviceMiceRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int insertDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.insertDeviceMiceRealtime(deviceMiceRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceMiceRealtime 鼠害设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int updateDeviceMiceRealtime(DeviceMiceRealtime deviceMiceRealtime)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.updateDeviceMiceRealtime(deviceMiceRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除鼠害设备实时数据
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的鼠害设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteDeviceMiceRealtimeByIds(Long[] ids)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.deleteDeviceMiceRealtimeByIds(ids);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除鼠害设备实时数据信息
|
|
||||||
*
|
|
||||||
* @param id 鼠害设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteDeviceMiceRealtimeById(Long id)
|
|
||||||
{
|
|
||||||
return deviceMiceRealtimeMapper.deleteDeviceMiceRealtimeById(id);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,93 +0,0 @@
|
|||||||
package com.fastbee.deviceData.service.imp;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import com.fastbee.deviceData.mapper.DeviceWormsRealtimeMapper;
|
|
||||||
import com.fastbee.deviceData.domain.DeviceWormsRealtime;
|
|
||||||
import com.fastbee.deviceData.service.IDeviceWormsRealtimeService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 虫情设备实时数据Service业务层处理
|
|
||||||
*
|
|
||||||
* @author kerwincui
|
|
||||||
* @date 2024-11-07
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class DeviceWormsRealtimeServiceImpl implements IDeviceWormsRealtimeService
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private DeviceWormsRealtimeMapper deviceWormsRealtimeMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询虫情设备实时数据
|
|
||||||
*
|
|
||||||
* @param id 虫情设备实时数据主键
|
|
||||||
* @return 虫情设备实时数据
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public DeviceWormsRealtime selectDeviceWormsRealtimeById(Long id)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.selectDeviceWormsRealtimeById(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询虫情设备实时数据列表
|
|
||||||
*
|
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
|
||||||
* @return 虫情设备实时数据
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<DeviceWormsRealtime> selectDeviceWormsRealtimeList(DeviceWormsRealtime deviceWormsRealtime)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.selectDeviceWormsRealtimeList(deviceWormsRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增虫情设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int insertDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.insertDeviceWormsRealtime(deviceWormsRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改虫情设备实时数据
|
|
||||||
*
|
|
||||||
* @param deviceWormsRealtime 虫情设备实时数据
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int updateDeviceWormsRealtime(DeviceWormsRealtime deviceWormsRealtime)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.updateDeviceWormsRealtime(deviceWormsRealtime);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除虫情设备实时数据
|
|
||||||
*
|
|
||||||
* @param ids 需要删除的虫情设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteDeviceWormsRealtimeByIds(Long[] ids)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.deleteDeviceWormsRealtimeByIds(ids);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除虫情设备实时数据信息
|
|
||||||
*
|
|
||||||
* @param id 虫情设备实时数据主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteDeviceWormsRealtimeById(Long id)
|
|
||||||
{
|
|
||||||
return deviceWormsRealtimeMapper.deleteDeviceWormsRealtimeById(id);
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,93 @@
|
|||||||
|
package com.fastbee.deviceData.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceData.mapper.DeviceRealtimedataWormsMapper;
|
||||||
|
import com.fastbee.deviceData.domain.DeviceRealtimedataWorms;
|
||||||
|
import com.fastbee.deviceData.service.IDeviceRealtimedataWormsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 虫情设备实时数据Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-07
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceRealtimedataWormsServiceImpl implements IDeviceRealtimedataWormsService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceRealtimedataWormsMapper deviceRealtimedataWormsMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备实时数据
|
||||||
|
*
|
||||||
|
* @param id 虫情设备实时数据主键
|
||||||
|
* @return 虫情设备实时数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceRealtimedataWorms selectDeviceRealtimedataWormsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.selectDeviceRealtimedataWormsById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备实时数据列表
|
||||||
|
*
|
||||||
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
|
* @return 虫情设备实时数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceRealtimedataWorms> selectDeviceRealtimedataWormsList(DeviceRealtimedataWorms deviceRealtimedataWorms)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.selectDeviceRealtimedataWormsList(deviceRealtimedataWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增虫情设备实时数据
|
||||||
|
*
|
||||||
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.insertDeviceRealtimedataWorms(deviceRealtimedataWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改虫情设备实时数据
|
||||||
|
*
|
||||||
|
* @param deviceRealtimedataWorms 虫情设备实时数据
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceRealtimedataWorms(DeviceRealtimedataWorms deviceRealtimedataWorms)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.updateDeviceRealtimedataWorms(deviceRealtimedataWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除虫情设备实时数据
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的虫情设备实时数据主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceRealtimedataWormsByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.deleteDeviceRealtimedataWormsByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除虫情设备实时数据信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备实时数据主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceRealtimedataWormsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceRealtimedataWormsMapper.deleteDeviceRealtimedataWormsById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -1,111 +0,0 @@
|
|||||||
<?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.fastbee.deviceData.mapper.DeviceMiceRealtimeMapper">
|
|
||||||
|
|
||||||
<resultMap type="DeviceMiceRealtime" id="DeviceMiceRealtimeResult">
|
|
||||||
<result property="id" column="id" />
|
|
||||||
<result property="feedDelivery" column="feed_delivery" />
|
|
||||||
<result property="infraredDetection" column="infrared_detection" />
|
|
||||||
<result property="export" column="export" />
|
|
||||||
<result property="fillLight" column="fill_light" />
|
|
||||||
<result property="weight" column="weight" />
|
|
||||||
<result property="lng" column="lng" />
|
|
||||||
<result property="lat" column="lat" />
|
|
||||||
<result property="workingMode" column="working_mode" />
|
|
||||||
<result property="netWeight" column="net_weight" />
|
|
||||||
<result property="takePicture" column="take_picture" />
|
|
||||||
<result property="deviceAddr" column="device_addr" />
|
|
||||||
<result property="truthStatus" column="truth_status" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectDeviceMiceRealtimeVo">
|
|
||||||
select id, feed_delivery, infrared_detection, export, fill_light, weight, lng, lat, working_mode, net_weight, take_picture, device_addr, truth_status from iot_device_mice_realtime
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="selectDeviceMiceRealtimeList" parameterType="DeviceMiceRealtime" resultMap="DeviceMiceRealtimeResult">
|
|
||||||
<include refid="selectDeviceMiceRealtimeVo"/>
|
|
||||||
<where>
|
|
||||||
<if test="feedDelivery != null and feedDelivery != ''"> and feed_delivery = #{feedDelivery}</if>
|
|
||||||
<if test="infraredDetection != null and infraredDetection != ''"> and infrared_detection = #{infraredDetection}</if>
|
|
||||||
<if test="export != null and export != ''"> and export = #{export}</if>
|
|
||||||
<if test="fillLight != null and fillLight != ''"> and fill_light = #{fillLight}</if>
|
|
||||||
<if test="weight != null and weight != ''"> and weight = #{weight}</if>
|
|
||||||
<if test="lng != null and lng != ''"> and lng = #{lng}</if>
|
|
||||||
<if test="lat != null and lat != ''"> and lat = #{lat}</if>
|
|
||||||
<if test="workingMode != null and workingMode != ''"> and working_mode = #{workingMode}</if>
|
|
||||||
<if test="netWeight != null and netWeight != ''"> and net_weight = #{netWeight}</if>
|
|
||||||
<if test="takePicture != null and takePicture != ''"> and take_picture = #{takePicture}</if>
|
|
||||||
<if test="deviceAddr != null and deviceAddr != ''"> and device_addr = #{deviceAddr}</if>
|
|
||||||
<if test="truthStatus != null and truthStatus != ''"> and truth_status = #{truthStatus}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="selectDeviceMiceRealtimeById" parameterType="Long" resultMap="DeviceMiceRealtimeResult">
|
|
||||||
<include refid="selectDeviceMiceRealtimeVo"/>
|
|
||||||
where id = #{id}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id="insertDeviceMiceRealtime" parameterType="DeviceMiceRealtime" useGeneratedKeys="true" keyProperty="id">
|
|
||||||
insert into iot_device_mice_realtime
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="feedDelivery != null">feed_delivery,</if>
|
|
||||||
<if test="infraredDetection != null">infrared_detection,</if>
|
|
||||||
<if test="export != null">export,</if>
|
|
||||||
<if test="fillLight != null">fill_light,</if>
|
|
||||||
<if test="weight != null">weight,</if>
|
|
||||||
<if test="lng != null">lng,</if>
|
|
||||||
<if test="lat != null">lat,</if>
|
|
||||||
<if test="workingMode != null">working_mode,</if>
|
|
||||||
<if test="netWeight != null">net_weight,</if>
|
|
||||||
<if test="takePicture != null">take_picture,</if>
|
|
||||||
<if test="deviceAddr != null">device_addr,</if>
|
|
||||||
<if test="truthStatus != null">truth_status,</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="feedDelivery != null">#{feedDelivery},</if>
|
|
||||||
<if test="infraredDetection != null">#{infraredDetection},</if>
|
|
||||||
<if test="export != null">#{export},</if>
|
|
||||||
<if test="fillLight != null">#{fillLight},</if>
|
|
||||||
<if test="weight != null">#{weight},</if>
|
|
||||||
<if test="lng != null">#{lng},</if>
|
|
||||||
<if test="lat != null">#{lat},</if>
|
|
||||||
<if test="workingMode != null">#{workingMode},</if>
|
|
||||||
<if test="netWeight != null">#{netWeight},</if>
|
|
||||||
<if test="takePicture != null">#{takePicture},</if>
|
|
||||||
<if test="deviceAddr != null">#{deviceAddr},</if>
|
|
||||||
<if test="truthStatus != null">#{truthStatus},</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="updateDeviceMiceRealtime" parameterType="DeviceMiceRealtime">
|
|
||||||
update iot_device_mice_realtime
|
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
|
||||||
<if test="feedDelivery != null">feed_delivery = #{feedDelivery},</if>
|
|
||||||
<if test="infraredDetection != null">infrared_detection = #{infraredDetection},</if>
|
|
||||||
<if test="export != null">export = #{export},</if>
|
|
||||||
<if test="fillLight != null">fill_light = #{fillLight},</if>
|
|
||||||
<if test="weight != null">weight = #{weight},</if>
|
|
||||||
<if test="lng != null">lng = #{lng},</if>
|
|
||||||
<if test="lat != null">lat = #{lat},</if>
|
|
||||||
<if test="workingMode != null">working_mode = #{workingMode},</if>
|
|
||||||
<if test="netWeight != null">net_weight = #{netWeight},</if>
|
|
||||||
<if test="takePicture != null">take_picture = #{takePicture},</if>
|
|
||||||
<if test="deviceAddr != null">device_addr = #{deviceAddr},</if>
|
|
||||||
<if test="truthStatus != null">truth_status = #{truthStatus},</if>
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="deleteDeviceMiceRealtimeById" parameterType="Long">
|
|
||||||
delete from iot_device_mice_realtime where id = #{id}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
<delete id="deleteDeviceMiceRealtimeByIds" parameterType="String">
|
|
||||||
delete from iot_device_mice_realtime where id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
||||||
#{id}
|
|
||||||
</foreach>
|
|
||||||
</delete>
|
|
||||||
</mapper>
|
|
@ -2,9 +2,9 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.fastbee.deviceData.mapper.DeviceWormsRealtimeMapper">
|
<mapper namespace="com.fastbee.deviceData.mapper.DeviceRealtimedataWormsMapper">
|
||||||
|
|
||||||
<resultMap type="DeviceWormsRealtime" id="DeviceWormsRealtimeResult">
|
<resultMap type="DeviceRealtimedataWorms" id="DeviceRealtimedataWormsResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="deviceAddr" column="device_addr" />
|
<result property="deviceAddr" column="device_addr" />
|
||||||
<result property="rain" column="rain" />
|
<result property="rain" column="rain" />
|
||||||
@ -26,12 +26,12 @@
|
|||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectDeviceWormsRealtimeVo">
|
<sql id="selectDeviceRealtimedataWormsVo">
|
||||||
select id, device_addr, rain, worm_flap, insecticide_tem, shake, lng, drying_flap, insecticide, move_worm, mode, drying, rain_flap, attract_worm, illum, drying_tem, lat, fill_light, status from iot_device_worms_realtime
|
select id, device_addr, rain, worm_flap, insecticide_tem, shake, lng, drying_flap, insecticide, move_worm, mode, drying, rain_flap, attract_worm, illum, drying_tem, lat, fill_light, status from iot_device_realtimedata_worms
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDeviceWormsRealtimeList" parameterType="DeviceWormsRealtime" resultMap="DeviceWormsRealtimeResult">
|
<select id="selectDeviceRealtimedataWormsList" parameterType="DeviceRealtimedataWorms" resultMap="DeviceRealtimedataWormsResult">
|
||||||
<include refid="selectDeviceWormsRealtimeVo"/>
|
<include refid="selectDeviceRealtimedataWormsVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="deviceAddr != null and deviceAddr != ''"> and device_addr = #{deviceAddr}</if>
|
<if test="deviceAddr != null and deviceAddr != ''"> and device_addr = #{deviceAddr}</if>
|
||||||
<if test="rain != null and rain != ''"> and rain = #{rain}</if>
|
<if test="rain != null and rain != ''"> and rain = #{rain}</if>
|
||||||
@ -54,13 +54,13 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDeviceWormsRealtimeById" parameterType="Long" resultMap="DeviceWormsRealtimeResult">
|
<select id="selectDeviceRealtimedataWormsById" parameterType="Long" resultMap="DeviceRealtimedataWormsResult">
|
||||||
<include refid="selectDeviceWormsRealtimeVo"/>
|
<include refid="selectDeviceRealtimedataWormsVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertDeviceWormsRealtime" parameterType="DeviceWormsRealtime" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertDeviceRealtimedataWorms" parameterType="DeviceRealtimedataWorms" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into iot_device_worms_realtime
|
insert into iot_device_realtimedata_worms
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="deviceAddr != null">device_addr,</if>
|
<if test="deviceAddr != null">device_addr,</if>
|
||||||
<if test="rain != null">rain,</if>
|
<if test="rain != null">rain,</if>
|
||||||
@ -103,8 +103,8 @@
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateDeviceWormsRealtime" parameterType="DeviceWormsRealtime">
|
<update id="updateDeviceRealtimedataWorms" parameterType="DeviceRealtimedataWorms">
|
||||||
update iot_device_worms_realtime
|
update iot_device_realtimedata_worms
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="deviceAddr != null">device_addr = #{deviceAddr},</if>
|
<if test="deviceAddr != null">device_addr = #{deviceAddr},</if>
|
||||||
<if test="rain != null">rain = #{rain},</if>
|
<if test="rain != null">rain = #{rain},</if>
|
||||||
@ -128,12 +128,12 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteDeviceWormsRealtimeById" parameterType="Long">
|
<delete id="deleteDeviceRealtimedataWormsById" parameterType="Long">
|
||||||
delete from iot_device_worms_realtime where id = #{id}
|
delete from iot_device_realtimedata_worms where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteDeviceWormsRealtimeByIds" parameterType="String">
|
<delete id="deleteDeviceRealtimedataWormsByIds" parameterType="String">
|
||||||
delete from iot_device_worms_realtime where id in
|
delete from iot_device_realtimedata_worms where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
Reference in New Issue
Block a user