Browse Source

feat: [基础内容] 编号改成3位

master
memorylkf 2 months ago
parent
commit
bc0492bd16
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SnGenServiceImpl.java View File

@ -49,7 +49,7 @@ public class SnGenServiceImpl extends ServiceImpl implements
baseMapper.addSn(date,type); baseMapper.addSn(date,type);
sort = getOne(queryWrapper,false).getSn(); sort = getOne(queryWrapper,false).getSn();
} }
return date+"-"+String.format("%04d", sort);
return date+"-"+String.format("%03d", sort);
} catch (Exception e) { } catch (Exception e) {
log.error("getNewSn执行被中断", e); log.error("getNewSn执行被中断", e);
} finally { } finally {

Loading…
Cancel
Save