mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
统一 boot 和 cloud 代码
This commit is contained in:
parent
af788e36ce
commit
df00126fa4
@ -1,2 +0,0 @@
|
|||||||
INSERT INTO system_menu (name, permission, type, sort, parent_id, path, icon, component, component_name)
|
|
||||||
VALUES ('核销订单', '', 2, 2, 2166, 'pick-up-order', 'ep:list', 'mall/trade/delivery/pickUpOrder/index', 'PickUpOrder');
|
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.infra.job.logger;
|
package cn.iocoder.yudao.module.infra.job.job;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
||||||
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||||
@ -33,7 +33,7 @@ public class JobLogCleanJob implements JobHandler {
|
|||||||
@TenantIgnore
|
@TenantIgnore
|
||||||
public String execute(String param) {
|
public String execute(String param) {
|
||||||
Integer count = jobLogService.cleanJobLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT);
|
Integer count = jobLogService.cleanJobLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT);
|
||||||
log.info("[count][定时执行清理定时任务日志数量 ({}) 个]", count);
|
log.info("[execute][定时执行清理定时任务日志数量 ({}) 个]", count);
|
||||||
return String.format("定时执行清理定时任务日志数量 %s 个", count);
|
return String.format("定时执行清理定时任务日志数量 %s 个", count);
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.infra.job.job;
|
package cn.iocoder.yudao.module.infra.job.logger;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
||||||
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||||
@ -34,7 +34,7 @@ public class AccessLogCleanJob implements JobHandler {
|
|||||||
@TenantIgnore
|
@TenantIgnore
|
||||||
public String execute(String param) {
|
public String execute(String param) {
|
||||||
Integer count = apiAccessLogService.cleanAccessLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT);
|
Integer count = apiAccessLogService.cleanAccessLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT);
|
||||||
log.info("[count][定时执行清理访问日志数量 ({}) 个]", count);
|
log.info("[execute][定时执行清理访问日志数量 ({}) 个]", count);
|
||||||
return String.format("定时执行清理错误日志数量 %s 个", count);
|
return String.format("定时执行清理错误日志数量 %s 个", count);
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.infra.job.job;
|
package cn.iocoder.yudao.module.infra.job.logger;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
||||||
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
|
||||||
@ -34,7 +34,7 @@ public class ErrorLogCleanJob implements JobHandler {
|
|||||||
@TenantIgnore
|
@TenantIgnore
|
||||||
public String execute(String param) {
|
public String execute(String param) {
|
||||||
Integer count = apiErrorLogService.cleanErrorLog(JOB_CLEAN_RETAIN_DAY,DELETE_LIMIT);
|
Integer count = apiErrorLogService.cleanErrorLog(JOB_CLEAN_RETAIN_DAY,DELETE_LIMIT);
|
||||||
log.info("[count][定时执行清理错误日志数量 ({}) 个]", count);
|
log.info("[execute][定时执行清理错误日志数量 ({}) 个]", count);
|
||||||
return String.format("定时执行清理错误日志数量 %s 个", count);
|
return String.format("定时执行清理错误日志数量 %s 个", count);
|
||||||
}
|
}
|
||||||
|
|
@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.promotion.api.bargain;
|
|||||||
|
|
||||||
import cn.iocoder.yudao.module.promotion.service.bargain.BargainActivityService;
|
import cn.iocoder.yudao.module.promotion.service.bargain.BargainActivityService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -11,6 +12,7 @@ import javax.annotation.Resource;
|
|||||||
* @author HUIHUI
|
* @author HUIHUI
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class BargainActivityApiImpl implements BargainActivityApi {
|
public class BargainActivityApiImpl implements BargainActivityApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.bargain;
|
|||||||
import cn.iocoder.yudao.module.promotion.api.bargain.dto.BargainValidateJoinRespDTO;
|
import cn.iocoder.yudao.module.promotion.api.bargain.dto.BargainValidateJoinRespDTO;
|
||||||
import cn.iocoder.yudao.module.promotion.service.bargain.BargainRecordService;
|
import cn.iocoder.yudao.module.promotion.service.bargain.BargainRecordService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ import javax.annotation.Resource;
|
|||||||
* @author HUIHUI
|
* @author HUIHUI
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class BargainRecordApiImpl implements BargainRecordApi {
|
public class BargainRecordApiImpl implements BargainRecordApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.promotion.dal.dataobject.combination.CombinationR
|
|||||||
import cn.iocoder.yudao.module.promotion.enums.combination.CombinationRecordStatusEnum;
|
import cn.iocoder.yudao.module.promotion.enums.combination.CombinationRecordStatusEnum;
|
||||||
import cn.iocoder.yudao.module.promotion.service.combination.CombinationRecordService;
|
import cn.iocoder.yudao.module.promotion.service.combination.CombinationRecordService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ import static cn.iocoder.yudao.module.promotion.enums.ErrorCodeConstants.COMBINA
|
|||||||
* @author HUIHUI
|
* @author HUIHUI
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class CombinationRecordApiImpl implements CombinationRecordApi {
|
public class CombinationRecordApiImpl implements CombinationRecordApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.promotion.convert.coupon.CouponConvert;
|
|||||||
import cn.iocoder.yudao.module.promotion.dal.dataobject.coupon.CouponDO;
|
import cn.iocoder.yudao.module.promotion.dal.dataobject.coupon.CouponDO;
|
||||||
import cn.iocoder.yudao.module.promotion.service.coupon.CouponService;
|
import cn.iocoder.yudao.module.promotion.service.coupon.CouponService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -17,6 +18,7 @@ import javax.annotation.Resource;
|
|||||||
* @author 芋道源码
|
* @author 芋道源码
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class CouponApiImpl implements CouponApi {
|
public class CouponApiImpl implements CouponApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -5,6 +5,7 @@ import cn.iocoder.yudao.module.promotion.api.coupon.dto.CouponTemplateRespDTO;
|
|||||||
import cn.iocoder.yudao.module.promotion.convert.coupon.CouponTemplateConvert;
|
import cn.iocoder.yudao.module.promotion.convert.coupon.CouponTemplateConvert;
|
||||||
import cn.iocoder.yudao.module.promotion.service.coupon.CouponTemplateService;
|
import cn.iocoder.yudao.module.promotion.service.coupon.CouponTemplateService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@ -17,6 +18,7 @@ import java.util.List;
|
|||||||
* @author HUIHUI
|
* @author HUIHUI
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class CouponTemplateApiImpl implements CouponTemplateApi {
|
public class CouponTemplateApiImpl implements CouponTemplateApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -4,6 +4,7 @@ import cn.iocoder.yudao.module.promotion.api.discount.dto.DiscountProductRespDTO
|
|||||||
import cn.iocoder.yudao.module.promotion.convert.discount.DiscountActivityConvert;
|
import cn.iocoder.yudao.module.promotion.convert.discount.DiscountActivityConvert;
|
||||||
import cn.iocoder.yudao.module.promotion.service.discount.DiscountActivityService;
|
import cn.iocoder.yudao.module.promotion.service.discount.DiscountActivityService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@ -15,6 +16,7 @@ import java.util.List;
|
|||||||
* @author 芋道源码
|
* @author 芋道源码
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class DiscountActivityApiImpl implements DiscountActivityApi {
|
public class DiscountActivityApiImpl implements DiscountActivityApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.reward;
|
|||||||
import cn.iocoder.yudao.module.promotion.api.reward.dto.RewardActivityMatchRespDTO;
|
import cn.iocoder.yudao.module.promotion.api.reward.dto.RewardActivityMatchRespDTO;
|
||||||
import cn.iocoder.yudao.module.promotion.service.reward.RewardActivityService;
|
import cn.iocoder.yudao.module.promotion.service.reward.RewardActivityService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@ -14,6 +15,7 @@ import java.util.List;
|
|||||||
* @author 芋道源码
|
* @author 芋道源码
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class RewardActivityApiImpl implements RewardActivityApi {
|
public class RewardActivityApiImpl implements RewardActivityApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.promotion.api.seckill;
|
|||||||
import cn.iocoder.yudao.module.promotion.api.seckill.dto.SeckillValidateJoinRespDTO;
|
import cn.iocoder.yudao.module.promotion.api.seckill.dto.SeckillValidateJoinRespDTO;
|
||||||
import cn.iocoder.yudao.module.promotion.service.seckill.SeckillActivityService;
|
import cn.iocoder.yudao.module.promotion.service.seckill.SeckillActivityService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ import javax.annotation.Resource;
|
|||||||
* @author HUIHUI
|
* @author HUIHUI
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@Validated
|
||||||
public class SeckillActivityApiImpl implements SeckillActivityApi {
|
public class SeckillActivityApiImpl implements SeckillActivityApi {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
Loading…
Reference in New Issue
Block a user