1078-调整页面
This commit is contained in:
@@ -68,6 +68,12 @@ public class JT1078TerminalController {
|
||||
assert phoneNumber != null;
|
||||
service.deleteDeviceByPhoneNumber(phoneNumber);
|
||||
}
|
||||
@Operation(summary = "查询设备", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||
@Parameter(name = "phoneNumber", description = "设备手机号", required = true)
|
||||
@GetMapping("/query")
|
||||
public JTDevice getDevice(Integer deviceId){
|
||||
return service.getDeviceById(deviceId);
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "1078-查询部标通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||
|
||||
@@ -99,4 +99,8 @@ public interface JTTerminalMapper {
|
||||
"WHERE phone_number=#{phoneNumber}"+
|
||||
" </script>"})
|
||||
void updateDeviceStatus(@Param("connected") boolean connected, @Param("phoneNumber") String phoneNumber);
|
||||
|
||||
@Select("SELECT * FROM wvp_jt_terminal where id=#{deviceId}")
|
||||
JTDevice getDeviceById(@Param("deviceId") Integer deviceId);
|
||||
|
||||
}
|
||||
|
||||
@@ -125,4 +125,7 @@ public interface Ijt1078Service {
|
||||
void addChannel(JTChannel channel);
|
||||
|
||||
void deleteChannelById(Integer id);
|
||||
|
||||
JTDevice getDeviceById(Integer deviceId);
|
||||
|
||||
}
|
||||
|
||||
@@ -1033,4 +1033,9 @@ public class jt1078ServiceImpl implements Ijt1078Service {
|
||||
public void deleteChannelById(Integer id) {
|
||||
jtChannelMapper.delete(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JTDevice getDeviceById(Integer deviceId) {
|
||||
return jtDeviceMapper.getDeviceById(deviceId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user