处理数据为 null 的情况
This commit is contained in:
@@ -53,7 +53,8 @@ public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Integer getPackagePromotionSwitch() {
|
public Integer getPackagePromotionSwitch() {
|
||||||
return shopConfigService.getById(StpKit.USER.getShopId()).getIsPackagePromotion();
|
Integer isPackagePromotion = shopConfigService.getById(StpKit.USER.getShopId()).getIsPackagePromotion();
|
||||||
|
return isPackagePromotion == null ? SystemConstants.OneZero.ZERO : isPackagePromotion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user