master:档口注册时,访问量默认为0;

pull/1121/head
liujiang 2025-09-20 22:36:06 +08:00
parent 1f01746ceb
commit 596edf3e5a
1 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,8 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
store.setStoreWeight(Constants.STORE_WEIGHT_DEFAULT_ZERO);
// 设置默认的库存系统为 步橘 ,后续可在条码迁移之处修改
store.setStockSys(StockSysType.BU_JU.getValue());
// 档口浏览次数设置为0
store.setViewCount(0L);
// 已使用的档口空间
BigDecimal storageUsage = certDTO.getStoreCert().getFileList().stream().map(x -> ObjectUtils.defaultIfNull(x.getFileSize(), BigDecimal.ZERO))
.reduce(BigDecimal.ZERO, BigDecimal::add);