|
@@ -24,6 +24,7 @@ import java.time.ZoneId;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
import org.springblade.archive.trans.ArchiveAutoVo;
|
|
import org.springblade.archive.trans.ArchiveAutoVo;
|
|
import org.springblade.archive.trans.ArchiveTreeVo;
|
|
import org.springblade.archive.trans.ArchiveTreeVo;
|
|
import org.springblade.core.mp.base.BaseEntity;
|
|
import org.springblade.core.mp.base.BaseEntity;
|
|
@@ -270,6 +271,13 @@ public class ArchivesAuto extends BaseEntity {
|
|
|
|
|
|
// 4. 设置默认值(根据业务需求)
|
|
// 4. 设置默认值(根据业务需求)
|
|
this.setIsAutoFile(0);
|
|
this.setIsAutoFile(0);
|
|
|
|
+ //没生成封面并且文件数量为1的,就是上传的案卷文件
|
|
|
|
+ if (StringUtils.isEmpty(this.getOutUrl())
|
|
|
|
+ && (this.getFileN() != null && this.getFileN() == 1)) {
|
|
|
|
+ this.setIsAutoFile(1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
this.setIsArchive(1);
|
|
this.setIsArchive(1);
|
|
this.setIsDeleted(0);
|
|
this.setIsDeleted(0);
|
|
}
|
|
}
|