1: 添加human相关java类
parent
376f319d1d
commit
f1ff8582d0
@ -0,0 +1,18 @@
|
|||||||
|
package com.supervision.mapper;
|
||||||
|
|
||||||
|
import com.supervision.model.Human;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_human(数字人表)】的数据库操作Mapper
|
||||||
|
* @createDate 2024-06-20 15:51:59
|
||||||
|
* @Entity com.supervision.model.Human
|
||||||
|
*/
|
||||||
|
public interface HumanMapper extends BaseMapper<Human> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,71 @@
|
|||||||
|
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.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数字人表
|
||||||
|
* @TableName vp_human
|
||||||
|
*/
|
||||||
|
@TableName(value ="vp_human")
|
||||||
|
@Data
|
||||||
|
public class Human implements Serializable {
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 静态图片ID
|
||||||
|
*/
|
||||||
|
private String imageFileId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 静态图片ID
|
||||||
|
*/
|
||||||
|
private String silentVideoFileId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提交生成的UID标识
|
||||||
|
*/
|
||||||
|
private String silentTaskUid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态视频ID
|
||||||
|
*/
|
||||||
|
private String dynamicVideoFileId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态视频生成UID标识
|
||||||
|
*/
|
||||||
|
private String dynamicTaskUid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人ID
|
||||||
|
*/
|
||||||
|
private String updateUserId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.supervision.service;
|
||||||
|
|
||||||
|
import com.supervision.model.Human;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_human(数字人表)】的数据库操作Service
|
||||||
|
* @createDate 2024-06-20 15:51:59
|
||||||
|
*/
|
||||||
|
public interface HumanService extends IService<Human> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.supervision.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.supervision.model.Human;
|
||||||
|
import com.supervision.service.HumanService;
|
||||||
|
import com.supervision.mapper.HumanMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Administrator
|
||||||
|
* @description 针对表【vp_human(数字人表)】的数据库操作Service实现
|
||||||
|
* @createDate 2024-06-20 15:51:59
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class HumanServiceImpl extends ServiceImpl<HumanMapper, Human>
|
||||||
|
implements HumanService{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
<?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.HumanMapper">
|
||||||
|
|
||||||
|
<resultMap id="BaseResultMap" type="com.supervision.model.Human">
|
||||||
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="imageFileId" column="image_file_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="silentVideoFileId" column="silent_video_file_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="silentTaskUid" column="silent_task_uid" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dynamicVideoFileId" column="dynamic_video_file_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="dynamicTaskUid" column="dynamic_task_uid" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
|
||||||
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id,image_file_id,silent_video_file_id,
|
||||||
|
silent_task_uid,dynamic_video_file_id,dynamic_task_uid,
|
||||||
|
create_user_id,create_time,update_user_id,
|
||||||
|
update_time
|
||||||
|
</sql>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue