商品缓存清除于设置

This commit is contained in:
Tankaikai
2025-04-18 11:04:29 +08:00
parent 6f555d1cdf
commit 918ee6683c

View File

@@ -124,7 +124,7 @@ public class ProdGroupServiceImpl extends ServiceImpl<ProdGroupMapper, ProdGroup
}
ProdGroup entity = getById(dto.getId());
BeanUtil.copyProperties(dto, entity, CopyOptions.create().setIgnoreNullValue(true));
if (entity.getStatus() == StatusEnum.DISABLE.value()) {
if (entity.getUseTime() == StatusEnum.DISABLE.value()) {
entity.setSaleStartTime(null);
entity.setSaleEndTime(null);
}