设备数据修改及登录保存
This commit is contained in:
parent
48f4bfeaf4
commit
6d9441f757
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.ifish7.mq.business.device.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yan.y
|
||||||
|
* @since 2019-04-09
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class TblLoginRecord {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableId(value = "record_id", type = IdType.AUTO)
|
||||||
|
private Integer recordId;
|
||||||
|
|
||||||
|
private String macAddress;
|
||||||
|
|
||||||
|
private LocalDateTime loginTime;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ifish7.mq.business.device.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ifish7.mq.business.device.entity.TblLoginRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yan.y
|
||||||
|
* @since 2019-04-09
|
||||||
|
*/
|
||||||
|
public interface TblLoginRecordMapper extends BaseMapper<TblLoginRecord> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ifish7.mq.business.device.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.ifish7.mq.business.device.entity.TblLoginRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yan.y
|
||||||
|
* @since 2019-04-09
|
||||||
|
*/
|
||||||
|
public interface ITblLoginRecordService extends IService<TblLoginRecord> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.ifish7.mq.business.device.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.ifish7.mq.business.device.entity.TblLoginRecord;
|
||||||
|
import com.ifish7.mq.business.device.mapper.TblLoginRecordMapper;
|
||||||
|
import com.ifish7.mq.business.device.service.ITblLoginRecordService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author yan.y
|
||||||
|
* @since 2019-04-09
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TblLoginRecordServiceImpl extends ServiceImpl<TblLoginRecordMapper, TblLoginRecord> implements ITblLoginRecordService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.ifish7.mq.execption;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: yan.y
|
||||||
|
* @Description:
|
||||||
|
* @Date: Created in 14:03 2019-04-10
|
||||||
|
* @Modified by:
|
||||||
|
*/
|
||||||
|
public class EventExecption extends Exception {
|
||||||
|
public EventExecption() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public EventExecption(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EventExecption(String message, Throwable cause) {
|
||||||
|
super(message, cause);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EventExecption(Throwable cause) {
|
||||||
|
super(cause);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected EventExecption(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
|
||||||
|
super(message, cause, enableSuppression, writableStackTrace);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.ifish7.mq.queues.event;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: yan.y
|
||||||
|
* @Description: 消息推送事件
|
||||||
|
* @Date: Created in 15:23 2019-04-10
|
||||||
|
* @Modified by:
|
||||||
|
*/
|
||||||
|
public class PushNotifcationEvent {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?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.ifish7.mq.business.device.mapper.TblLoginRecordMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue