Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
张松 2025-10-21 16:04:23 +08:00
commit fd34cbcd0e
4 changed files with 15 additions and 2 deletions

View File

@ -58,7 +58,10 @@ public class ShopInfoEditDTO {
* 是否启用满减活动 1- 0-
*/
private Integer isEnableDiscount;
/**
* 是否启用限时折扣 1- 0-
*/
private Integer isLimitTimeDiscount;
/**
* 台桌预订短信
*/

View File

@ -46,6 +46,11 @@ public class ShopConfig implements Serializable {
* 是否启用满减活动 1- 0-
*/
private Integer isEnableDiscount;
/**
* 是否启用限时折扣 1- 0-
*/
private Integer isLimitTimeDiscount;
/**
* 是否允许账号登录 1- 0-
*/

View File

@ -262,6 +262,11 @@ public class ShopInfo implements Serializable {
*/
@Column(ignore = true)
private Integer isEnableDiscount;
/**
* 是否启用限时折扣 1- 0-
*/
@Column(ignore = true)
private Integer isLimitTimeDiscount;
/**
* 是否允许账号登录 1- 0-
*/

View File

@ -51,7 +51,7 @@ public class MkLimitTimeDiscountServiceImpl extends ServiceImpl<MkLimitTimeDisco
public MkLimitTimeDiscount getLimitTimeDiscountByShopId(Long shopId) {
ShopInfo shopInfo = shopInfoService.getById(shopId);
AssertUtil.isNull(shopInfo, "店铺不存在");
if (shopInfo.getIsEnableDiscount() == null || shopInfo.getIsEnableDiscount() == 0) {
if (shopInfo.getIsLimitTimeDiscount() == null || shopInfo.getIsLimitTimeDiscount() == 0) {
return null;
}
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);