Merge remote-tracking branch 'origin/main'
commit
e18a72f220
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.model.GeBytearray;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【ge_bytearray(通用资源定义 最大存储 16MB(16,777,215字节))】的数据库操作Mapper
|
||||
* @createDate 2024-04-16 14:07:02
|
||||
* @Entity com.supervision.model.GeBytearray
|
||||
*/
|
||||
public interface GeBytearrayMapper extends BaseMapper<GeBytearray> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,45 @@
|
||||
package com.supervision.model;
|
||||
|
||||
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.util.Arrays;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 通用资源定义 最大存储 16MB(16,777,215字节)
|
||||
* @TableName ge_bytearray
|
||||
*/
|
||||
@TableName(value ="ge_bytearray")
|
||||
@Data
|
||||
public class GeBytearray implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 文件名
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private Integer fileSize;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* 二进制内容数据
|
||||
*/
|
||||
private byte[] content;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.model.GeBytearray;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【ge_bytearray(通用资源定义 最大存储 16MB(16,777,215字节))】的数据库操作Service
|
||||
* @createDate 2024-04-16 14:07:02
|
||||
*/
|
||||
public interface GeBytearrayService extends IService<GeBytearray> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.model.GeBytearray;
|
||||
import com.supervision.service.GeBytearrayService;
|
||||
import com.supervision.mapper.GeBytearrayMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【ge_bytearray(通用资源定义 最大存储 16MB(16,777,215字节))】的数据库操作Service实现
|
||||
* @createDate 2024-04-16 14:07:02
|
||||
*/
|
||||
@Service
|
||||
public class GeBytearrayServiceImpl extends ServiceImpl<GeBytearrayMapper, GeBytearray>
|
||||
implements GeBytearrayService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
<?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.supervision.mapper.GeBytearrayMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.model.GeBytearray">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
||||
<result property="fileSize" column="file_size" jdbcType="INTEGER"/>
|
||||
<result property="fileType" column="file_type" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,file_name,file_size,
|
||||
file_type,content
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue