耗材 检测开关 默认值问题
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user