refactor: 移除 UserTask 相关代码(entity/mapper/service/impl/XML)
This commit is contained in:
@@ -1,35 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import java.io.Serializable;
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 存储用户-任务之间的对应关系
|
|
||||||
* @TableName user_task
|
|
||||||
*/
|
|
||||||
@TableName(value ="user_task")
|
|
||||||
@Data
|
|
||||||
public class UserTaskEntity extends BaseEntity implements Serializable {
|
|
||||||
|
|
||||||
@TableId
|
|
||||||
private String id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户id
|
|
||||||
*/
|
|
||||||
@TableField(value = "user_id")
|
|
||||||
private Integer userId;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务id
|
|
||||||
*/
|
|
||||||
@TableField(value = "task_id")
|
|
||||||
private Integer taskId;
|
|
||||||
|
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.mapper;
|
|
||||||
|
|
||||||
import com.guo.learningprogresstracker.entity.UserTaskEntity;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【user_task(存储用户-任务之间的对应关系)】的数据库操作Mapper
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
* @Entity com.guo.learningprogresstracker.entity.UserTaskEntity
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface UserTaskMapper extends BaseMapper<UserTaskEntity> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.service;
|
|
||||||
|
|
||||||
import com.guo.learningprogresstracker.entity.UserTaskEntity;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【user_task(存储用户-任务之间的对应关系)】的数据库操作Service
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
*/
|
|
||||||
public interface UserTaskService extends IService<UserTaskEntity> {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
package com.guo.learningprogresstracker.service.impl;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.guo.learningprogresstracker.entity.UserTaskEntity;
|
|
||||||
import com.guo.learningprogresstracker.service.UserTaskService;
|
|
||||||
import com.guo.learningprogresstracker.mapper.UserTaskMapper;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author guo
|
|
||||||
* @description 针对表【user_task(存储用户-任务之间的对应关系)】的数据库操作Service实现
|
|
||||||
* @createDate 2024-06-09 15:28:48
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class UserTaskServiceImpl extends ServiceImpl<UserTaskMapper, UserTaskEntity>
|
|
||||||
implements UserTaskService{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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.UserTaskMapper">
|
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.guo.learningprogresstracker.entity.UserTaskEntity">
|
|
||||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
||||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
|
||||||
<result property="taskId" column="task_id" jdbcType="INTEGER"/>
|
|
||||||
<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">
|
|
||||||
id,user_id,task_id,
|
|
||||||
created_time,created_by,last_modified_time,
|
|
||||||
last_modified_by
|
|
||||||
</sql>
|
|
||||||
</mapper>
|
|
||||||
Reference in New Issue
Block a user