耗材 检测开关 默认值问题

This commit is contained in:
2026-04-22 15:00:39 +08:00
parent 3558e99784
commit c3ae15c7cc

View File

@@ -126,7 +126,9 @@ public class ConsInfoServiceImpl extends ServiceImpl<ConsInfoMapper, ConsInfo> i
entity.setStockNumber(BigDecimal.ZERO); entity.setStockNumber(BigDecimal.ZERO);
entity.setStatus(SystemConstants.OneZero.ONE); entity.setStatus(SystemConstants.OneZero.ONE);
//entity.setConWarning(BigDecimal.ZERO); //entity.setConWarning(BigDecimal.ZERO);
if (dto.getIsStock() == null) {
entity.setIsStock(SystemConstants.OneZero.ZERO); entity.setIsStock(SystemConstants.OneZero.ZERO);
}
entity.setShopId(shopId); entity.setShopId(shopId);
super.save(entity); super.save(entity);
dto.setId(entity.getId()); dto.setId(entity.getId());