model: 添加vp_treatment_plan_drug 表
parent
b21a5f70e2
commit
66588bf851
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.model.TreatmentPlanDrug;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_treatment_plan_drug(处置计划药物关联表)】的数据库操作Mapper
|
||||
* @createDate 2023-12-07 11:34:05
|
||||
* @Entity com.supervision.model.TreatmentPlanDrug
|
||||
*/
|
||||
public interface TreatmentPlanDrugMapper extends BaseMapper<TreatmentPlanDrug> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,53 @@
|
||||
package com.supervision.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 处置计划药物关联表
|
||||
* @TableName vp_treatment_plan_drug
|
||||
*/
|
||||
@TableName(value ="vp_treatment_plan_drug")
|
||||
@Data
|
||||
public class TreatmentPlanDrug implements Serializable {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 处置计划id
|
||||
*/
|
||||
private String treatmentPlanId;
|
||||
|
||||
/**
|
||||
* 药品id
|
||||
*/
|
||||
private String drugId;
|
||||
|
||||
/**
|
||||
* 创建人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.TreatmentPlanDrug;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_treatment_plan_drug(处置计划药物关联表)】的数据库操作Service
|
||||
* @createDate 2023-12-07 11:34:05
|
||||
*/
|
||||
public interface TreatmentPlanDrugService extends IService<TreatmentPlanDrug> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.model.TreatmentPlanDrug;
|
||||
import com.supervision.service.TreatmentPlanDrugService;
|
||||
import com.supervision.mapper.TreatmentPlanDrugMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
* @description 针对表【vp_treatment_plan_drug(处置计划药物关联表)】的数据库操作Service实现
|
||||
* @createDate 2023-12-07 11:34:05
|
||||
*/
|
||||
@Service
|
||||
public class TreatmentPlanDrugServiceImpl extends ServiceImpl<TreatmentPlanDrugMapper, TreatmentPlanDrug>
|
||||
implements TreatmentPlanDrugService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
<?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.TreatmentPlanDrugMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.model.TreatmentPlanDrug">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="treatmentPlanId" column="treatment_plan_id" jdbcType="VARCHAR"/>
|
||||
<result property="drugId" column="drug_id" 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,treatment_plan_id,drug_id,
|
||||
create_user_id,create_time,update_user_id,
|
||||
update_time
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue