1: 添加病历扩展项表
parent
9998473e1c
commit
ca28a0aab0
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.model.MedicalExtendItem;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_medical_extend_item(病历扩展项)】的数据库操作Mapper
|
||||
* @createDate 2024-06-17 17:09:38
|
||||
* @Entity com.supervision.model.MedicalExtendItem
|
||||
*/
|
||||
public interface MedicalExtendItemMapper extends BaseMapper<MedicalExtendItem> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,66 @@
|
||||
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_medical_extend_item
|
||||
*/
|
||||
@TableName(value ="vp_medical_extend_item")
|
||||
@Data
|
||||
public class MedicalExtendItem implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 病历id
|
||||
*/
|
||||
private String medicalId;
|
||||
|
||||
/**
|
||||
* 类目id
|
||||
*/
|
||||
private String itemId;
|
||||
|
||||
/**
|
||||
* 分类名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 类目内容
|
||||
*/
|
||||
private String itemContent;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private String createUserId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
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.MedicalExtendItem;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_medical_extend_item(病历扩展项)】的数据库操作Service
|
||||
* @createDate 2024-06-17 17:09:38
|
||||
*/
|
||||
public interface MedicalExtendItemService extends IService<MedicalExtendItem> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.model.MedicalExtendItem;
|
||||
import com.supervision.service.MedicalExtendItemService;
|
||||
import com.supervision.mapper.MedicalExtendItemMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_medical_extend_item(病历扩展项)】的数据库操作Service实现
|
||||
* @createDate 2024-06-17 17:09:38
|
||||
*/
|
||||
@Service
|
||||
public class MedicalExtendItemServiceImpl extends ServiceImpl<MedicalExtendItemMapper, MedicalExtendItem>
|
||||
implements MedicalExtendItemService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,24 @@
|
||||
<?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.MedicalExtendItemMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.model.MedicalExtendItem">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="medicalId" column="medical_id" jdbcType="VARCHAR"/>
|
||||
<result property="itemId" column="item_id" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="itemContent" column="item_content" 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,medical_id,item_id,
|
||||
name,item_content,create_user_id,
|
||||
create_time,update_user_id,update_time
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue