Commit df00126fa4b053440f37ffe620c236a03cb09af1
1 parent
af788e36
统一 boot 和 cloud 代码
Showing
12 changed files
with
22 additions
and
8 deletions
sql/mysql/mall.sql deleted
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/logger/JobLogCleanJob.java renamed to yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/job/JobLogCleanJob.java
| 1 | -package cn.iocoder.yudao.module.infra.job.logger; | |
| 1 | +package cn.iocoder.yudao.module.infra.job.job; | |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; |
| 4 | 4 | import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; |
| ... | ... | @@ -33,7 +33,7 @@ public class JobLogCleanJob implements JobHandler { |
| 33 | 33 | @TenantIgnore |
| 34 | 34 | public String execute(String param) { |
| 35 | 35 | Integer count = jobLogService.cleanJobLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT); |
| 36 | - log.info("[count][定时执行清理定时任务日志数量 ({}) 个]", count); | |
| 36 | + log.info("[execute][定时执行清理定时任务日志数量 ({}) 个]", count); | |
| 37 | 37 | return String.format("定时执行清理定时任务日志数量 %s 个", count); |
| 38 | 38 | } |
| 39 | 39 | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/job/AccessLogCleanJob.java renamed to yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/logger/AccessLogCleanJob.java
| 1 | -package cn.iocoder.yudao.module.infra.job.job; | |
| 1 | +package cn.iocoder.yudao.module.infra.job.logger; | |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; |
| 4 | 4 | import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; |
| ... | ... | @@ -34,7 +34,7 @@ public class AccessLogCleanJob implements JobHandler { |
| 34 | 34 | @TenantIgnore |
| 35 | 35 | public String execute(String param) { |
| 36 | 36 | Integer count = apiAccessLogService.cleanAccessLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT); |
| 37 | - log.info("[count][定时执行清理访问日志数量 ({}) 个]", count); | |
| 37 | + log.info("[execute][定时执行清理访问日志数量 ({}) 个]", count); | |
| 38 | 38 | return String.format("定时执行清理错误日志数量 %s 个", count); |
| 39 | 39 | } |
| 40 | 40 | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/job/ErrorLogCleanJob.java renamed to yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/logger/ErrorLogCleanJob.java
| 1 | -package cn.iocoder.yudao.module.infra.job.job; | |
| 1 | +package cn.iocoder.yudao.module.infra.job.logger; | |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; |
| 4 | 4 | import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; |
| ... | ... | @@ -34,7 +34,7 @@ public class ErrorLogCleanJob implements JobHandler { |
| 34 | 34 | @TenantIgnore |
| 35 | 35 | public String execute(String param) { |
| 36 | 36 | Integer count = apiErrorLogService.cleanErrorLog(JOB_CLEAN_RETAIN_DAY,DELETE_LIMIT); |
| 37 | - log.info("[count][定时执行清理错误日志数量 ({}) 个]", count); | |
| 37 | + log.info("[execute][定时执行清理错误日志数量 ({}) 个]", count); | |
| 38 | 38 | return String.format("定时执行清理错误日志数量 %s 个", count); |
| 39 | 39 | } |
| 40 | 40 | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/bargain/BargainActivityApiImpl.java
| ... | ... | @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.promotion.api.bargain; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.module.promotion.service.bargain.BargainActivityService; |
| 4 | 4 | import org.springframework.stereotype.Service; |
| 5 | +import org.springframework.validation.annotation.Validated; | |
| 5 | 6 | |
| 6 | 7 | import javax.annotation.Resource; |
| 7 | 8 | |
| ... | ... | @@ -11,6 +12,7 @@ import javax.annotation.Resource; |
| 11 | 12 | * @author HUIHUI |
| 12 | 13 | */ |
| 13 | 14 | @Service |
| 15 | +@Validated | |
| 14 | 16 | public class BargainActivityApiImpl implements BargainActivityApi { |
| 15 | 17 | |
| 16 | 18 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/bargain/BargainRecordApiImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.bargain; |
| 3 | 3 | import cn.iocoder.yudao.module.promotion.api.bargain.dto.BargainValidateJoinRespDTO; |
| 4 | 4 | import cn.iocoder.yudao.module.promotion.service.bargain.BargainRecordService; |
| 5 | 5 | import org.springframework.stereotype.Service; |
| 6 | +import org.springframework.validation.annotation.Validated; | |
| 6 | 7 | |
| 7 | 8 | import javax.annotation.Resource; |
| 8 | 9 | |
| ... | ... | @@ -12,6 +13,7 @@ import javax.annotation.Resource; |
| 12 | 13 | * @author HUIHUI |
| 13 | 14 | */ |
| 14 | 15 | @Service |
| 16 | +@Validated | |
| 15 | 17 | public class BargainRecordApiImpl implements BargainRecordApi { |
| 16 | 18 | |
| 17 | 19 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/combination/CombinationRecordApiImpl.java
| ... | ... | @@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.promotion.dal.dataobject.combination.CombinationR |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.enums.combination.CombinationRecordStatusEnum; |
| 9 | 9 | import cn.iocoder.yudao.module.promotion.service.combination.CombinationRecordService; |
| 10 | 10 | import org.springframework.stereotype.Service; |
| 11 | +import org.springframework.validation.annotation.Validated; | |
| 11 | 12 | |
| 12 | 13 | import javax.annotation.Resource; |
| 13 | 14 | |
| ... | ... | @@ -20,6 +21,7 @@ import static cn.iocoder.yudao.module.promotion.enums.ErrorCodeConstants.COMBINA |
| 20 | 21 | * @author HUIHUI |
| 21 | 22 | */ |
| 22 | 23 | @Service |
| 24 | +@Validated | |
| 23 | 25 | public class CombinationRecordApiImpl implements CombinationRecordApi { |
| 24 | 26 | |
| 25 | 27 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/coupon/CouponApiImpl.java
| ... | ... | @@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.promotion.convert.coupon.CouponConvert; |
| 8 | 8 | import cn.iocoder.yudao.module.promotion.dal.dataobject.coupon.CouponDO; |
| 9 | 9 | import cn.iocoder.yudao.module.promotion.service.coupon.CouponService; |
| 10 | 10 | import org.springframework.stereotype.Service; |
| 11 | +import org.springframework.validation.annotation.Validated; | |
| 11 | 12 | |
| 12 | 13 | import javax.annotation.Resource; |
| 13 | 14 | |
| ... | ... | @@ -17,6 +18,7 @@ import javax.annotation.Resource; |
| 17 | 18 | * @author 芋道源码 |
| 18 | 19 | */ |
| 19 | 20 | @Service |
| 21 | +@Validated | |
| 20 | 22 | public class CouponApiImpl implements CouponApi { |
| 21 | 23 | |
| 22 | 24 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/coupon/CouponTemplateApiImpl.java
| ... | ... | @@ -5,6 +5,7 @@ import cn.iocoder.yudao.module.promotion.api.coupon.dto.CouponTemplateRespDTO; |
| 5 | 5 | import cn.iocoder.yudao.module.promotion.convert.coupon.CouponTemplateConvert; |
| 6 | 6 | import cn.iocoder.yudao.module.promotion.service.coupon.CouponTemplateService; |
| 7 | 7 | import org.springframework.stereotype.Service; |
| 8 | +import org.springframework.validation.annotation.Validated; | |
| 8 | 9 | |
| 9 | 10 | import javax.annotation.Resource; |
| 10 | 11 | import java.util.Collection; |
| ... | ... | @@ -17,6 +18,7 @@ import java.util.List; |
| 17 | 18 | * @author HUIHUI |
| 18 | 19 | */ |
| 19 | 20 | @Service |
| 21 | +@Validated | |
| 20 | 22 | public class CouponTemplateApiImpl implements CouponTemplateApi { |
| 21 | 23 | |
| 22 | 24 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/discount/DiscountActivityApiImpl.java
| ... | ... | @@ -4,6 +4,7 @@ import cn.iocoder.yudao.module.promotion.api.discount.dto.DiscountProductRespDTO |
| 4 | 4 | import cn.iocoder.yudao.module.promotion.convert.discount.DiscountActivityConvert; |
| 5 | 5 | import cn.iocoder.yudao.module.promotion.service.discount.DiscountActivityService; |
| 6 | 6 | import org.springframework.stereotype.Service; |
| 7 | +import org.springframework.validation.annotation.Validated; | |
| 7 | 8 | |
| 8 | 9 | import javax.annotation.Resource; |
| 9 | 10 | import java.util.Collection; |
| ... | ... | @@ -15,6 +16,7 @@ import java.util.List; |
| 15 | 16 | * @author 芋道源码 |
| 16 | 17 | */ |
| 17 | 18 | @Service |
| 19 | +@Validated | |
| 18 | 20 | public class DiscountActivityApiImpl implements DiscountActivityApi { |
| 19 | 21 | |
| 20 | 22 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/reward/RewardActivityApiImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.reward; |
| 3 | 3 | import cn.iocoder.yudao.module.promotion.api.reward.dto.RewardActivityMatchRespDTO; |
| 4 | 4 | import cn.iocoder.yudao.module.promotion.service.reward.RewardActivityService; |
| 5 | 5 | import org.springframework.stereotype.Service; |
| 6 | +import org.springframework.validation.annotation.Validated; | |
| 6 | 7 | |
| 7 | 8 | import javax.annotation.Resource; |
| 8 | 9 | import java.util.Collection; |
| ... | ... | @@ -14,6 +15,7 @@ import java.util.List; |
| 14 | 15 | * @author 芋道源码 |
| 15 | 16 | */ |
| 16 | 17 | @Service |
| 18 | +@Validated | |
| 17 | 19 | public class RewardActivityApiImpl implements RewardActivityApi { |
| 18 | 20 | |
| 19 | 21 | @Resource | ... | ... |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/api/seckill/SeckillActivityApiImpl.java
| ... | ... | @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.seckill; |
| 3 | 3 | import cn.iocoder.yudao.module.promotion.api.seckill.dto.SeckillValidateJoinRespDTO; |
| 4 | 4 | import cn.iocoder.yudao.module.promotion.service.seckill.SeckillActivityService; |
| 5 | 5 | import org.springframework.stereotype.Service; |
| 6 | +import org.springframework.validation.annotation.Validated; | |
| 6 | 7 | |
| 7 | 8 | import javax.annotation.Resource; |
| 8 | 9 | |
| ... | ... | @@ -12,6 +13,7 @@ import javax.annotation.Resource; |
| 12 | 13 | * @author HUIHUI |
| 13 | 14 | */ |
| 14 | 15 | @Service |
| 16 | +@Validated | |
| 15 | 17 | public class SeckillActivityApiImpl implements SeckillActivityApi { |
| 16 | 18 | |
| 17 | 19 | @Resource | ... | ... |