Commit 3648d524 authored by AfirSraftGarrier's avatar AfirSraftGarrier

修改连接测试

parent 93b8b423
......@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDate;
import java.util.Date;
/**
......@@ -16,7 +15,7 @@ import java.util.Date;
@Data
public class PmsUseLog {
@ApiModelProperty("记录标识")
@TableId(value = "id", type = IdType.AUTO)
@TableId(type = IdType.AUTO)
private Integer id;
@ApiModelProperty("设备编号")
......
package iot.sixiang.license.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import iot.sixiang.license.entity.Monitor;
import iot.sixiang.license.entity.PmsUseLog;
/**
......
......@@ -21,7 +21,8 @@ public class PmsUseServiceImpl implements PmsUseService {
@Override
public int createUseLog(String sn) {
PmsUseLog pmsUseLog = getPmsUseLog(sn);
return pmsUseLogMapper.insert(pmsUseLog);
pmsUseLogMapper.insert(pmsUseLog);
return pmsUseLog.getId();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment