model: 添加vp_treatment_plan_drug 表

dev_2.0.0
xueqingkun 1 year ago
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…
Cancel
Save