|
@@ -1,7 +1,6 @@
|
|
|
package com.github.jfcloud.gene.form.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
-import cn.hutool.core.lang.Assert;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.jfcloud.gene.common.constant.WhetherEnum;
|
|
@@ -73,6 +72,7 @@ public class StrainPurificationInfoServiceImpl extends ServiceImpl<StrainPurific
|
|
|
animalDemandService.saveBatch(cageDemandList);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//保存附件
|
|
|
if (!vo.getTestingFiles().isEmpty()) {
|
|
|
List<FileInfo> fileList = vo.getTestingFiles().stream()
|
|
@@ -91,7 +91,11 @@ public class StrainPurificationInfoServiceImpl extends ServiceImpl<StrainPurific
|
|
|
StrainPurificationInfo info = getOne(new LambdaQueryWrapper<>(StrainPurificationInfo.class)
|
|
|
.eq(StrainPurificationInfo::getFlowId, vo.getFlowId())
|
|
|
.eq(StrainPurificationInfo::getDeleted, WhetherEnum.NO.getCode()));
|
|
|
- Assert.notNull(info, "品系净化扩繁不存在");
|
|
|
+
|
|
|
+ if (info == null) {
|
|
|
+ saveForm(vo);
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
BeanUtil.copyProperties(vo, info);
|
|
|
info.updateById();
|