商品缓存清除于设置
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user