|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
package com.supervision.manage.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.core.lang.UUID;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
@ -61,6 +63,13 @@ public class ConfigTreatmentPlanManageServiceImpl implements ConfigTreatmentPlan
|
|
|
|
|
configTreatmentPlan.setFirstMeasuresId(UUID.fastUUID().toString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (StrUtil.isEmpty(configTreatmentPlan.getDisposalPlan())){
|
|
|
|
|
List<ConfigTreatmentPlan> list = configTreatmentPlanService.lambdaQuery()
|
|
|
|
|
.eq(ConfigTreatmentPlan::getDisposalPlanId, configTreatmentPlan.getDisposalPlanId()).last("limit 1").list();
|
|
|
|
|
|
|
|
|
|
Assert.isFalse(CollUtil.isEmpty(list),"没有找到DispositionPlan");
|
|
|
|
|
configTreatmentPlan.setDisposalPlan(CollUtil.getFirst(list).getDisposalPlan());
|
|
|
|
|
}
|
|
|
|
|
configTreatmentPlanService.save(configTreatmentPlan);
|
|
|
|
|
|
|
|
|
|
return configTreatmentPlan;
|
|
|
|
|