update:下发数采
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ski.lichuan.mapper;
|
||||
|
||||
import com.ski.lichuan.model.dashboard.SnowMachineDeviceInfo;
|
||||
import com.ski.lichuan.model.device.Impl.SnowMachineDevice;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@@ -27,4 +28,8 @@ public interface SnowMachineMapper {
|
||||
int updateNameAndLora(SnowMachineDevice snowMachineDevice);
|
||||
|
||||
int deleteById(Integer id);
|
||||
|
||||
List<SnowMachineDevice> selectByIds(List<Integer> deviceIds);
|
||||
|
||||
List<SnowMachineDevice> selectByName(String name);
|
||||
}
|
||||
@@ -50,4 +50,6 @@ public class SnowMachineDeviceInfo {
|
||||
public Double yawAngle;
|
||||
@Schema(description = "摆头状态 关1/开2")
|
||||
public Integer yawStatus;
|
||||
@Schema(description = "故障状态 0正常 1故障")
|
||||
public Boolean faultStatus;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.ski.lichuan.model.dashboard;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SnowMachineWorkingInfo {
|
||||
|
||||
// 造雪机名称
|
||||
private String snowMakerName;
|
||||
// 雪道位置
|
||||
private Integer trailPosition;
|
||||
// 雪道
|
||||
private String trailName;
|
||||
// 优先级
|
||||
private Integer priority;
|
||||
// 工作模式
|
||||
private Integer workingMode;
|
||||
// 通讯
|
||||
private Boolean communicationStatus;
|
||||
// 故障
|
||||
private Boolean faultStatus;
|
||||
// 运行
|
||||
private Boolean runningStatus;
|
||||
// 温度条件
|
||||
private Boolean temperatureConditionSatisfied;
|
||||
}
|
||||
@@ -58,4 +58,17 @@
|
||||
<insert id="insertById" parameterType="com.ski.lichuan.model.device.Impl.SnowMachineDevice">
|
||||
INSERT INTO snow_machine (id, name, lora) VALUES (#{id}, #{name}, #{lora})
|
||||
</insert>
|
||||
|
||||
<!-- 根据ID列表查询造雪机设备 -->
|
||||
<select id="selectByIds" parameterType="java.util.List" resultMap="SnowMachineResultMap">
|
||||
SELECT * FROM snow_machine WHERE id IN
|
||||
<foreach collection="deviceIds" item="id" open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<!-- 根据名称查询造雪机设备 -->
|
||||
<select id="selectByName" parameterType="java.lang.String" resultMap="SnowMachineResultMap">
|
||||
SELECT * FROM snow_machine WHERE name LIKE '%' || #{name} || '%'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user