feat: aos-web 完善
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.aos.test.mybatis.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @TableName test
|
||||
*/
|
||||
@TableName(value = "test_table")
|
||||
@Data
|
||||
public class TestTable implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "delete_time")
|
||||
@TableLogic
|
||||
private LocalDateTime deleteTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(value = "text")
|
||||
private String text;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.aos.test.mybatis.mapper;
|
||||
|
||||
import com.aos.test.mybatis.domain.TestTable;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author wyl
|
||||
* @description 针对表【test】的数据库操作Mapper
|
||||
* @createDate 2022-11-11 23:39:29
|
||||
* @Entity mybatis.domain.Test
|
||||
*/
|
||||
@Mapper
|
||||
public interface TestMapper extends BaseMapper<TestTable> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.aos.test.mybatis.service;
|
||||
|
||||
import com.aos.test.mybatis.domain.TestTable;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author wyl
|
||||
* @description 针对表【test】的数据库操作Service
|
||||
* @createDate 2022-11-11 23:39:29
|
||||
*/
|
||||
public interface TestService extends IService<TestTable> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.aos.test.mybatis.service.impl;
|
||||
|
||||
import com.aos.test.mybatis.domain.TestTable;
|
||||
import com.aos.test.mybatis.mapper.TestMapper;
|
||||
import com.aos.test.mybatis.service.TestService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author wyl
|
||||
* @description 针对表【test】的数据库操作Service实现
|
||||
* @createDate 2022-11-11 23:39:29
|
||||
*/
|
||||
@Service
|
||||
public class TestServiceImpl extends ServiceImpl<TestMapper, TestTable>
|
||||
implements TestService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?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.aos.test.mybatis.mapper.TestMapper">
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user