From 90fedc78f73a6c848277d6c80159a106b15fa9e7 Mon Sep 17 00:00:00 2001 From: yzj <2239426921@qq.com> Date: Tue, 5 Jul 2022 00:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=BD=92=E6=A1=A3=E6=97=B6=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A1=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../archives/service/impl/ArchiveRecordInfoServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-archives/src/main/java/com/ruoyi/archives/service/impl/ArchiveRecordInfoServiceImpl.java b/ruoyi-archives/src/main/java/com/ruoyi/archives/service/impl/ArchiveRecordInfoServiceImpl.java index d2e5f91c..dd1e9ddb 100644 --- a/ruoyi-archives/src/main/java/com/ruoyi/archives/service/impl/ArchiveRecordInfoServiceImpl.java +++ b/ruoyi-archives/src/main/java/com/ruoyi/archives/service/impl/ArchiveRecordInfoServiceImpl.java @@ -169,7 +169,7 @@ public class ArchiveRecordInfoServiceImpl implements IArchiveRecordInfoService public int insertArchiveRecordInfo(ArchiveRecordInfo archiveRecordInfo) throws Exception { if(CategoryDict.JJ_RECORD.equalsIgnoreCase(archiveRecordInfo.getArchiveCategory())){ archiveRecordInfo.setProjectNumber(String.format("%03d", Integer.valueOf(archiveRecordInfo.getProjectNumber()))); - numberGenUtil.toGenerate(archiveRecordInfo);//如果是基建新建是便生成档号 + }else if (CategoryDict.ZXXM_RECORD.equalsIgnoreCase(archiveRecordInfo.getArchiveCategory())|| CategoryDict.ZXXM_SECOND_RECORD.equals(archiveRecordInfo.getArchiveCategory())){ archiveRecordInfo.setProjectNumber(String.format("%04d", Integer.valueOf(archiveRecordInfo.getProjectNumber()))); @@ -184,6 +184,7 @@ public class ArchiveRecordInfoServiceImpl implements IArchiveRecordInfoService } archiveRecordInfo.setCreateTime(DateUtils.getNowDate()); + numberGenUtil.toGenerate(archiveRecordInfo); return archiveRecordInfoMapper.insertArchiveRecordInfo(archiveRecordInfo); }