model: 添加vp_treatment_plan_drug 表 重命名

dev_2.0.0
xueqingkun 1 year ago
parent 4640ce2e76
commit 5b21c5d64a

@ -1,6 +1,6 @@
package com.supervision.mapper;
import com.supervision.model.TreatmentPlanDrug;
import com.supervision.model.DiseaseTreatmentPlanDrug;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @createDate 2023-12-07 11:34:05
* @Entity com.supervision.model.TreatmentPlanDrug
*/
public interface TreatmentPlanDrugMapper extends BaseMapper<TreatmentPlanDrug> {
public interface DiseaseTreatmentPlanDrugMapper extends BaseMapper<DiseaseTreatmentPlanDrug> {
}

@ -10,14 +10,19 @@ import lombok.Data;
*
* @TableName vp_treatment_plan_drug
*/
@TableName(value ="vp_treatment_plan_drug")
@TableName(value ="vp_disease_treatment_plan")
@Data
public class TreatmentPlanDrug implements Serializable {
public class DiseaseTreatmentPlanDrug implements Serializable {
/**
* id
*/
private String id;
/**
* id
*/
private String diseaseId;
/**
* id
*/

@ -1,6 +1,6 @@
package com.supervision.service;
import com.supervision.model.TreatmentPlanDrug;
import com.supervision.model.DiseaseTreatmentPlanDrug;
import com.baomidou.mybatisplus.extension.service.IService;
/**
@ -8,6 +8,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @description vp_treatment_plan_drug()Service
* @createDate 2023-12-07 11:34:05
*/
public interface TreatmentPlanDrugService extends IService<TreatmentPlanDrug> {
public interface DiseaseTreatmentPlanDrugService extends IService<DiseaseTreatmentPlanDrug> {
}

@ -0,0 +1,22 @@
package com.supervision.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supervision.model.DiseaseTreatmentPlanDrug;
import com.supervision.service.DiseaseTreatmentPlanDrugService;
import com.supervision.mapper.DiseaseTreatmentPlanDrugMapper;
import org.springframework.stereotype.Service;
/**
* @author Administrator
* @description vp_treatment_plan_drug()Service
* @createDate 2023-12-07 11:34:05
*/
@Service
public class DiseaseTreatmentPlanDrugServiceImpl extends ServiceImpl<DiseaseTreatmentPlanDrugMapper, DiseaseTreatmentPlanDrug>
implements DiseaseTreatmentPlanDrugService {
}

@ -1,22 +0,0 @@
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{
}

@ -2,10 +2,11 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.supervision.mapper.TreatmentPlanDrugMapper">
<mapper namespace="com.supervision.mapper.DiseaseTreatmentPlanDrugMapper">
<resultMap id="BaseResultMap" type="com.supervision.model.TreatmentPlanDrug">
<resultMap id="BaseResultMap" type="com.supervision.model.DiseaseTreatmentPlanDrug">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="diseaseId" column="disease_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"/>
@ -15,7 +16,7 @@
</resultMap>
<sql id="Base_Column_List">
id,treatment_plan_id,drug_id,
id,disease_id,treatment_plan_id,drug_id,
create_user_id,create_time,update_user_id,
update_time
</sql>
Loading…
Cancel
Save