Commit 751c5c18 authored by yaobaizheng's avatar yaobaizheng

bug统一修改

parent bfcf134b
package com.liyeyun.admin.domain;
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.Date;
import lombok.Data;
/**
*
* @TableName file_source
*/
@TableName(value ="file_source")
@Data
public class FileSource implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 项目文件名称
*/
private String name;
/**
*
*/
private String url;
/**
* 0-禁用 1-正常
*/
private Integer status;
/**
* 项目 (1-项目信息文件 )
*/
private Integer objectType;
/**
* 1-没有id 2-project_Info_id 3-coporate_account_info_id
*/
private Integer objectId;
/**
* 排序
*/
private Integer sort;
/**
*
*/
private Integer tenantId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.liyeyun.admin.mapper;
import com.liyeyun.admin.domain.FileSource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @author 26996
* @description 针对表【file_source】的数据库操作Mapper
* @createDate 2023-11-09 20:33:16
* @Entity com.liyeyun.admin.domain.FileSource
*/
public interface FileSourceMapper extends BaseMapper<FileSource> {
}
package com.liyeyun.admin.service;
import com.liyeyun.admin.domain.FileSource;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @author 26996
* @description 针对表【file_source】的数据库操作Service
* @createDate 2023-11-09 20:33:16
*/
public interface FileSourceService extends IService<FileSource> {
}
package com.liyeyun.admin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liyeyun.admin.domain.FileSource;
import com.liyeyun.admin.service.FileSourceService;
import com.liyeyun.admin.mapper.FileSourceMapper;
import org.springframework.stereotype.Service;
/**
* @author 26996
* @description 针对表【file_source】的数据库操作Service实现
* @createDate 2023-11-09 20:33:16
*/
@Service
public class FileSourceServiceImpl extends ServiceImpl<FileSourceMapper, FileSource>
implements FileSourceService{
}
<?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.liyeyun.admin.mapper.FileSourceMapper">
<resultMap id="BaseResultMap" type="com.liyeyun.admin.domain.FileSource">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="url" column="url" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="TINYINT"/>
<result property="objectType" column="object_type" jdbcType="TINYINT"/>
<result property="objectId" column="object_id" jdbcType="INTEGER"/>
<result property="sort" column="sort" jdbcType="INTEGER"/>
<result property="tenantId" column="tenant_id" jdbcType="INTEGER"/>
</resultMap>
<sql id="Base_Column_List">
id,create_time,update_time,
name,url,status,
object_type,object_id,sort,
tenant_id
</sql>
</mapper>
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