设备激活接口
This commit is contained in:
parent
68a8fe80e0
commit
800f8e72ee
@ -166,6 +166,18 @@
|
|||||||
<version>3.8.5</version>
|
<version>3.8.5</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fastbee</groupId>
|
||||||
|
<artifactId>fastbee-project-service</artifactId>
|
||||||
|
<version>3.8.5</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fastbee</groupId>
|
||||||
|
<artifactId>fastbee-project-service</artifactId>
|
||||||
|
<version>3.8.5</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.fastbee.iot.mapper;
|
package com.fastbee.iot.mapper;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateTime;
|
||||||
import com.fastbee.common.core.device.DeviceAndProtocol;
|
import com.fastbee.common.core.device.DeviceAndProtocol;
|
||||||
import com.fastbee.common.core.thingsModel.ThingsModelValuesInput;
|
import com.fastbee.common.core.thingsModel.ThingsModelValuesInput;
|
||||||
import com.fastbee.iot.domain.Device;
|
import com.fastbee.iot.domain.Device;
|
||||||
@ -8,6 +9,7 @@ import com.fastbee.iot.model.*;
|
|||||||
import com.fastbee.iot.model.ThingsModels.ThingsModelValuesOutput;
|
import com.fastbee.iot.model.ThingsModels.ThingsModelValuesOutput;
|
||||||
import com.github.yulichang.base.MPJBaseMapper;
|
import com.github.yulichang.base.MPJBaseMapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.springframework.security.core.parameters.P;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -364,4 +366,13 @@ public interface DeviceMapper extends MPJBaseMapper<Device>
|
|||||||
*/
|
*/
|
||||||
List<DeviceGroup> listDeviceGroupByGroupIds(List<Long> groupIds);
|
List<DeviceGroup> listDeviceGroupByGroupIds(List<Long> groupIds);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新设备激活信息
|
||||||
|
* @param serialNumber
|
||||||
|
* @param activationTime
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int updateDeviceActivationStatus(@Param("serialNumber") String serialNumber, @Param("activationTime")DateTime activationTime,@Param("tenantId")Long tenantId,@Param("tenantName")String tenantName,@Param("longitude")double longitude,@Param("latitude")double latitude,@Param("imgUrl")String imgUrl);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1006,4 +1006,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<update id="updateDeviceActivationStatus">
|
||||||
|
update iot_device
|
||||||
|
set status = 3,
|
||||||
|
active_time=#{activationTime},
|
||||||
|
update_time=#{activationTime},
|
||||||
|
tenant_id=#{tenantId},
|
||||||
|
tenant_name=#{tenantName},
|
||||||
|
longitude=#{longitude},
|
||||||
|
latitude=#{latitude},
|
||||||
|
img_url=#{imgUrl}
|
||||||
|
where serial_number = #{serialNumber}
|
||||||
|
</update>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user