diff --git a/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java b/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java index 00a1648b..4111c3c7 100644 --- a/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java +++ b/zsw-bxg/src/main/java/co/yixiang/app/modules/order/rest/AppStoreOrderController.java @@ -97,6 +97,7 @@ public class AppStoreOrderController { } + /** * 计算订单金额 */ diff --git a/zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java b/zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java index 621d8fa2..a007f608 100644 --- a/zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java +++ b/zsw-bxg/src/main/java/co/yixiang/constant/ShopConstants.java @@ -110,7 +110,7 @@ public interface ShopConstants { /** * 秒杀时间段 */ - String ZSW_SECKILL_TIME = "zsw_seckill_time"; + String ZSW_SECKILL_TIME = "yshop_seckill_time"; /** * 签到天数 */ diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreCombinationServiceImpl.java b/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreCombinationServiceImpl.java index fc27366e..4ac3e35d 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreCombinationServiceImpl.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreCombinationServiceImpl.java @@ -363,7 +363,7 @@ public class YxStoreCombinationServiceImpl extends BaseServiceImpl { Map map = JSONUtil.toBean(item.getValue(), Map.class); if (Objects.nonNull(jsonObject.getInteger("time")) && jsonObject.getInteger("time").equals(map.get("time"))) { - throw new BadRequestException("不能同时开启同一时间点"); + throw new YshopException("已存在相同时间配置,不能同时开启同一时间点"); } }); } @@ -116,7 +117,9 @@ public class SystemGroupDataController { yshop_seckill_time.forEach(item -> { Map map = JSONUtil.toBean(item.getValue(), Map.class); if (jsonObject.getInteger("time").equals(map.get("time"))) { - throw new BadRequestException("不能同时开启同一时间点"); +// throw new BadRequestException("不能同时开启同一时间点"); + throw new YshopException("已存在相同时间配置,不能同时开启同一时间点"); + } }); } diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/shop/service/impl/YxSystemGroupDataServiceImpl.java b/zsw-bxg/src/main/java/co/yixiang/modules/shop/service/impl/YxSystemGroupDataServiceImpl.java index deaca51e..bc17f851 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/shop/service/impl/YxSystemGroupDataServiceImpl.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/shop/service/impl/YxSystemGroupDataServiceImpl.java @@ -84,7 +84,6 @@ public class YxSystemGroupDataServiceImpl extends BaseServiceImpl map = new LinkedHashMap<>(2); List systemGroupDataDTOS = new ArrayList<>(); for (YxSystemGroupData systemGroupData : page.getList()) { - YxSystemGroupDataDto systemGroupDataDTO = generator.convert(systemGroupData,YxSystemGroupDataDto.class); systemGroupDataDTO.setMap(JSON.parseObject(systemGroupData.getValue())); systemGroupDataDTOS.add(systemGroupDataDTO); diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/user/domain/YxSystemUserLevel.java b/zsw-bxg/src/main/java/co/yixiang/modules/user/domain/YxSystemUserLevel.java new file mode 100644 index 00000000..b163aff4 --- /dev/null +++ b/zsw-bxg/src/main/java/co/yixiang/modules/user/domain/YxSystemUserLevel.java @@ -0,0 +1,56 @@ +package co.yixiang.modules.user.domain; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.bean.copier.CopyOptions; +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDomain; +import com.baomidou.mybatisplus.annotation.TableId; + +/*** +@auther sj +@Date 2022-9-29 + */ +public class YxSystemUserLevel extends BaseDomain { + @TableId + private Integer id; + + + /** 任务名称 */ + private String name; + + + /** 配置原名 */ + private String realName; + + + /** 任务类型 */ + private String taskType; + + + /** 限定数 */ + private Integer number; + + + /** 等级id */ + private Integer levelId; + + + /** 排序 */ + private Integer sort; + + + /** 是否显示 */ + private Integer isShow; + + + /** 是否务必达成任务,1务必达成,0=满足其一 */ + private Integer isMust; + + + /** 任务说明 */ + private String illustrate; + + + public void copy(YxSystemUserLevel source){ + BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); + } +} diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/user/service/dto/YxSystemUserLevelDto.java b/zsw-bxg/src/main/java/co/yixiang/modules/user/service/dto/YxSystemUserLevelDto.java index aa9d562e..26c4b8c3 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/user/service/dto/YxSystemUserLevelDto.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/user/service/dto/YxSystemUserLevelDto.java @@ -52,9 +52,11 @@ public class YxSystemUserLevelDto implements Serializable { /** 会员图标 */ private String icon; - /** 说明 */ + /** 规则说明 */ private String explain; + /** 权益说明 */ + private String benefit; /** 添加时间 */ private Integer addTime; diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/user/service/impl/YxSystemUserLevelServiceImpl.java b/zsw-bxg/src/main/java/co/yixiang/modules/user/service/impl/YxSystemUserLevelServiceImpl.java index c3b99090..155bc451 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/user/service/impl/YxSystemUserLevelServiceImpl.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/user/service/impl/YxSystemUserLevelServiceImpl.java @@ -194,7 +194,8 @@ public class YxSystemUserLevelServiceImpl extends BaseServiceImpl