refactor: 移除 StudyExpectations 相关代码
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 存储每次学习开始前的预期
|
|
||||||
* @TableName study_expectations
|
|
||||||
*/
|
|
||||||
@TableName(value ="study_expectations")
|
|
||||||
@Data
|
|
||||||
public class StudyExpectationsEntity extends BaseEntity implements Serializable {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@TableId(value = "expectation_id", type = IdType.AUTO)
|
|
||||||
private Integer expectationId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@TableField(value = "session_id")
|
|
||||||
private Integer sessionId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 学习预期的详细描述
|
|
||||||
*/
|
|
||||||
@TableField(value = "description")
|
|
||||||
private String description;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.mapper;
|
|
||||||
|
|
||||||
import com.guo.learningprogresstracker.entity.StudyExpectationsEntity;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Mapper
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
* @Entity com.guo.learningprogresstracker.entity.StudyExpectationsEntity
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface StudyExpectationsMapper extends BaseMapper<StudyExpectationsEntity> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.service;
|
|
||||||
|
|
||||||
import com.guo.learningprogresstracker.entity.StudyExpectationsEntity;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Service
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
*/
|
|
||||||
public interface StudyExpectationsService extends IService<StudyExpectationsEntity> {
|
|
||||||
|
|
||||||
}
|
|
||||||
-22
@@ -1,22 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.guo.learningprogresstracker.entity.StudyExpectationsEntity;
|
|
||||||
import com.guo.learningprogresstracker.service.StudyExpectationsService;
|
|
||||||
import com.guo.learningprogresstracker.mapper.StudyExpectationsMapper;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Service实现
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class StudyExpectationsServiceImpl extends ServiceImpl<StudyExpectationsMapper, StudyExpectationsEntity>
|
|
||||||
implements StudyExpectationsService{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<?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.guo.learningprogresstracker.mapper.StudyExpectationsMapper">
|
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.guo.learningprogresstracker.entity.StudyExpectationsEntity">
|
|
||||||
<id property="expectationId" column="expectation_id" jdbcType="INTEGER"/>
|
|
||||||
<result property="sessionId" column="session_id" jdbcType="INTEGER"/>
|
|
||||||
<result property="description" column="description" jdbcType="VARCHAR"/>
|
|
||||||
<result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="createdBy" column="created_by" jdbcType="VARCHAR"/>
|
|
||||||
<result property="lastModifiedTime" column="last_modified_time" jdbcType="TIMESTAMP"/>
|
|
||||||
<result property="lastModifiedBy" column="last_modified_by" jdbcType="VARCHAR"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
expectation_id,session_id,description,
|
|
||||||
created_time,created_by,last_modified_time,
|
|
||||||
last_modified_by
|
|
||||||
</sql>
|
|
||||||
</mapper>
|
|
||||||
Reference in New Issue
Block a user