Commit 3648d524 authored by AfirSraftGarrier's avatar AfirSraftGarrier

修改连接测试

parent 93b8b423
...@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableId; ...@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.time.LocalDate;
import java.util.Date; import java.util.Date;
/** /**
...@@ -16,7 +15,7 @@ import java.util.Date; ...@@ -16,7 +15,7 @@ import java.util.Date;
@Data @Data
public class PmsUseLog { public class PmsUseLog {
@ApiModelProperty("记录标识") @ApiModelProperty("记录标识")
@TableId(value = "id", type = IdType.AUTO) @TableId(type = IdType.AUTO)
private Integer id; private Integer id;
@ApiModelProperty("设备编号") @ApiModelProperty("设备编号")
......
package iot.sixiang.license.mapper; package iot.sixiang.license.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import iot.sixiang.license.entity.Monitor;
import iot.sixiang.license.entity.PmsUseLog; import iot.sixiang.license.entity.PmsUseLog;
/** /**
......
...@@ -21,7 +21,8 @@ public class PmsUseServiceImpl implements PmsUseService { ...@@ -21,7 +21,8 @@ public class PmsUseServiceImpl implements PmsUseService {
@Override @Override
public int createUseLog(String sn) { public int createUseLog(String sn) {
PmsUseLog pmsUseLog = getPmsUseLog(sn); PmsUseLog pmsUseLog = getPmsUseLog(sn);
return pmsUseLogMapper.insert(pmsUseLog); pmsUseLogMapper.insert(pmsUseLog);
return pmsUseLog.getId();
} }
@Override @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