大屏展示404问题修复

This commit is contained in:
kerwincui
2024-04-26 11:04:45 +08:00
parent 653fe8bc1f
commit 55a3b95a97
7 changed files with 65 additions and 0 deletions

View File

@@ -82,5 +82,12 @@ public interface DeviceLogMapper
*/
public int deleteDeviceLogByDeviceNumber(String deviceNumber);
/**
* 查询设备日志列表
*
* @param deviceLog 设备日志
* @return 设备日志集合
*/
public List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog);
}

View File

@@ -24,4 +24,12 @@ public interface IDeviceLogService
*/
public List<MonitorModel> selectMonitorList(DeviceLog deviceLog);
/**
* 查询设备日志列表
*
* @param deviceLog 设备日志
* @return 设备日志集合
*/
public List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog);
}

View File

@@ -38,4 +38,18 @@ public class DeviceLogServiceImpl implements IDeviceLogService
return logService.selectMonitorList(deviceLog);
}
/**
* 查询设备日志列表
*
* @param deviceLog 设备日志
* @return 设备日志
*/
@Override
public List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog)
{
if(deviceLog.getIsMonitor()==null){
deviceLog.setIsMonitor(0);
}
return logService.selectDeviceLogList(deviceLog);
}
}

View File

@@ -31,5 +31,8 @@ public interface ILogService {
/** 查询监测数据列表 **/
List<MonitorModel> selectMonitorList(DeviceLog deviceLog);
/** 查询物模型日志列表 **/
List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog);
}

View File

@@ -52,4 +52,12 @@ public class MySqlLogServiceImpl implements ILogService {
return deviceLogMapper.selectMonitorList(deviceLog);
}
/***
* 日志列表
* @return
*/
@Override
public List<DeviceLog> selectDeviceLogList(DeviceLog deviceLog) {
return deviceLogMapper.selectDeviceLogList(deviceLog);
}
}

View File

@@ -143,4 +143,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
delete from iot_device_log where serial_number = #{deviceNumber}
</delete>
<select id="selectDeviceLogList" parameterType="com.fastbee.iot.domain.DeviceLog" resultMap="DeviceLogResult">
<include refid="selectDeviceLogVo"/>
<where>
<if test="isMonitor != null"> and is_monitor = #{isMonitor}</if>
<if test="deviceId != null and deviceId !=0"> and device_id = #{deviceId}</if>
<if test="serialNumber != null and serialNumber !=''"> and serial_number = #{serialNumber}</if>
<if test="logType != null "> and log_type = #{logType}</if>
<if test="identity != null and identity != ''"> and identity like concat('%', #{identity}, '%')</if>
</where>
order by create_time desc
</select>
</mapper>