manage: 修复bug

dev_2.0.0
xueqingkun 1 year ago
parent f85c2a627b
commit fcff56f26e

@ -1,5 +1,4 @@
# 设置基础镜像 # 设置基础镜像
# 在137服务器中使用的是 rasa_dev:1.0.0镜像
FROM openjdk:8 FROM openjdk:8
ENV APP_HOME=/home/app ENV APP_HOME=/home/app

@ -46,6 +46,11 @@ public class DiseaseTreatmentPlanManageServiceImpl implements DiseaseTreatmentPl
@Override @Override
public void batchSaveTreatmentPlan(List<DiseaseTreatmentPlan> diseaseTreatmentPlanList) { public void batchSaveTreatmentPlan(List<DiseaseTreatmentPlan> diseaseTreatmentPlanList) {
Assert.notEmpty(diseaseTreatmentPlanList,"数据不能为空"); Assert.notEmpty(diseaseTreatmentPlanList,"数据不能为空");
diseaseTreatmentPlanList.forEach(item->{
if (StrUtil.isEmpty(item.getTreatmentPlanId())){
item.setTreatmentPlanId(item.getPlanId());
}
});
diseaseTreatmentPlanList.forEach(this::assertDiseaseTreatmentPlan); diseaseTreatmentPlanList.forEach(this::assertDiseaseTreatmentPlan);
diseaseTreatmentPlanService.saveBatch(diseaseTreatmentPlanList); diseaseTreatmentPlanService.saveBatch(diseaseTreatmentPlanList);

@ -1,6 +1,5 @@
package com.supervision.mapper; package com.supervision.mapper;
import com.supervision.model.ConfigTreatmentPlan;
import com.supervision.model.DiseaseTreatmentPlan; import com.supervision.model.DiseaseTreatmentPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supervision.vo.manage.DiseaseTreatmentPlanResVo; import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;

@ -23,11 +23,19 @@ public class DiseaseTreatmentPlan implements Serializable {
*/ */
private String diseaseId; private String diseaseId;
/** /**
* id * treatmentPlanId
*/ */
@Deprecated
@TableField(exist = false)
private String planId; private String planId;
/**
* id
*/
private String treatmentPlanId;
/** /**
* ID * ID
*/ */

@ -7,7 +7,7 @@
<resultMap id="BaseResultMap" type="com.supervision.model.DiseaseTreatmentPlan"> <resultMap id="BaseResultMap" type="com.supervision.model.DiseaseTreatmentPlan">
<id property="id" column="id" jdbcType="VARCHAR"/> <id property="id" column="id" jdbcType="VARCHAR"/>
<result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/> <result property="diseaseId" column="disease_id" jdbcType="VARCHAR"/>
<result property="planId" column="plan_id" jdbcType="VARCHAR"/> <result property="treatmentPlanId" column="treatment_plan_id" jdbcType="VARCHAR"/>
<result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/> <result property="createUserId" column="create_user_id" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/> <result property="updateUserId" column="update_user_id" jdbcType="VARCHAR"/>
@ -16,7 +16,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id id
,disease_id,plan_id,create_user_id, ,disease_id,treatment_plan_id,create_user_id,
create_time,update_user_id,update_time create_time,update_user_id,update_time
</sql> </sql>

Loading…
Cancel
Save