V1.1.0-future-UserCenter接口转移
Showing
278 changed files
with
718 additions
and
336 deletions
... | @@ -12,15 +12,21 @@ | ... | @@ -12,15 +12,21 @@ |
12 | <artifactId>member-service-api</artifactId> | 12 | <artifactId>member-service-api</artifactId> |
13 | 13 | ||
14 | <properties> | 14 | <properties> |
15 | 15 | <cronos.version>1.1.0</cronos.version> | |
16 | </properties> | 16 | </properties> |
17 | 17 | ||
18 | <dependencies> | 18 | <dependencies> |
19 | <!--系统--> | ||
20 | <dependency> | ||
21 | <groupId>com.topdraw</groupId> | ||
22 | <artifactId>cronos-system</artifactId> | ||
23 | <version>${cronos.version}</version> | ||
24 | </dependency> | ||
19 | <!--代码生成器--> | 25 | <!--代码生成器--> |
20 | <dependency> | 26 | <dependency> |
21 | <groupId>com.topdraw</groupId> | 27 | <groupId>com.topdraw</groupId> |
22 | <artifactId>code-generator</artifactId> | 28 | <artifactId>cronos-generator</artifactId> |
23 | <version>3.1.0</version> | 29 | <version>${cronos.version}</version> |
24 | </dependency> | 30 | </dependency> |
25 | </dependencies> | 31 | </dependencies> |
26 | 32 | ... | ... |
... | @@ -25,6 +25,8 @@ public class DataSyncMsg implements Serializable { | ... | @@ -25,6 +25,8 @@ public class DataSyncMsg implements Serializable { |
25 | // 其他属性 | 25 | // 其他属性 |
26 | private String extraData; | 26 | private String extraData; |
27 | 27 | ||
28 | /** 模板参数 */ | ||
29 | private TaskTemplateParam param; | ||
28 | 30 | ||
29 | /** | 31 | /** |
30 | * 消息体 | 32 | * 消息体 |
... | @@ -47,6 +49,18 @@ public class DataSyncMsg implements Serializable { | ... | @@ -47,6 +49,18 @@ public class DataSyncMsg implements Serializable { |
47 | private Long activityId; | 49 | private Long activityId; |
48 | private Long mediaId; | 50 | private Long mediaId; |
49 | private Long itemId; | 51 | private Long itemId; |
52 | |||
53 | |||
54 | } | ||
55 | |||
56 | @Data | ||
57 | @AllArgsConstructor | ||
58 | @NoArgsConstructor | ||
59 | public static class TaskTemplateParam { | ||
60 | /** 类别 */ | ||
61 | private String category; | ||
62 | /** 编码 */ | ||
63 | private String code; | ||
50 | } | 64 | } |
51 | 65 | ||
52 | } | 66 | } | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.history.repository; | 1 | package com.topdraw.business.module.coupon.history.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.coupon.history.domain.CouponHistory; | 3 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ||
7 | import java.sql.Timestamp; | 7 | import java.sql.Timestamp; |
8 | import java.util.Optional; | ||
9 | 8 | ||
10 | /** | 9 | /** |
11 | * @author XiangHan | 10 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.history.rest; | 1 | package com.topdraw.business.module.coupon.history.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.annotation.Log; |
5 | import com.topdraw.business.basicdata.coupon.history.domain.CouponHistory; | 5 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
6 | import com.topdraw.business.basicdata.coupon.history.service.CouponHistoryService; | 6 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; |
7 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryQueryCriteria; | 7 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQueryCriteria; |
8 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 9 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.http.HttpStatus; | ||
11 | import org.springframework.http.ResponseEntity; | ||
12 | import org.springframework.validation.annotation.Validated; | 10 | import org.springframework.validation.annotation.Validated; |
13 | import org.springframework.web.bind.annotation.*; | 11 | import org.springframework.web.bind.annotation.*; |
14 | import io.swagger.annotations.*; | 12 | import io.swagger.annotations.*; |
15 | import java.io.IOException; | ||
16 | import javax.servlet.http.HttpServletResponse; | ||
17 | 13 | ||
18 | /** | 14 | /** |
19 | * @author XiangHan | 15 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.history.service; | 1 | package com.topdraw.business.module.coupon.history.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.coupon.history.domain.CouponHistory; | 3 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
4 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryDTO; | 4 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryDTO; |
5 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryQueryCriteria; | 5 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | 7 | ||
8 | import java.sql.Timestamp; | 8 | import java.sql.Timestamp; |
9 | import java.util.Map; | 9 | import java.util.Map; |
10 | import java.util.List; | 10 | import java.util.List; |
11 | import java.io.IOException; | ||
12 | import javax.servlet.http.HttpServletResponse; | ||
13 | 11 | ||
14 | /** | 12 | /** |
15 | * @author XiangHan | 13 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.history.service.impl; | 1 | package com.topdraw.business.module.coupon.history.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.coupon.history.domain.CouponHistory; | 4 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.coupon.history.repository.CouponHistoryRepository; | 6 | import com.topdraw.business.module.coupon.history.repository.CouponHistoryRepository; |
7 | import com.topdraw.business.basicdata.coupon.history.service.CouponHistoryService; | 7 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; |
8 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryDTO; | 8 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryDTO; |
9 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryQueryCriteria; | 9 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQueryCriteria; |
10 | import com.topdraw.business.basicdata.coupon.history.service.mapper.CouponHistoryMapper; | 10 | import com.topdraw.business.module.coupon.history.service.mapper.CouponHistoryMapper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
13 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.history.service.mapper; | 1 | package com.topdraw.business.module.coupon.history.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.coupon.history.domain.CouponHistory; | 4 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
5 | import com.topdraw.business.basicdata.coupon.history.service.dto.CouponHistoryDTO; | 5 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.repository; | 1 | package com.topdraw.business.module.coupon.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.coupon.domain.Coupon; | 3 | import com.topdraw.business.module.coupon.domain.Coupon; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.rest; | 1 | package com.topdraw.business.module.coupon.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.annotation.Log; |
5 | import com.topdraw.business.basicdata.coupon.domain.Coupon; | 5 | import com.topdraw.business.module.coupon.domain.Coupon; |
6 | import com.topdraw.business.basicdata.coupon.service.CouponService; | 6 | import com.topdraw.business.module.coupon.service.CouponService; |
7 | import com.topdraw.business.basicdata.coupon.service.dto.CouponQueryCriteria; | 7 | import com.topdraw.business.module.coupon.service.dto.CouponQueryCriteria; |
8 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 9 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.validation.annotation.Validated; | 10 | import org.springframework.validation.annotation.Validated; | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.service; | 1 | package com.topdraw.business.module.coupon.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.coupon.domain.Coupon; | 3 | import com.topdraw.business.module.coupon.domain.Coupon; |
4 | import com.topdraw.business.basicdata.coupon.service.dto.CouponDTO; | 4 | import com.topdraw.business.module.coupon.service.dto.CouponDTO; |
5 | import com.topdraw.business.basicdata.coupon.service.dto.CouponQueryCriteria; | 5 | import com.topdraw.business.module.coupon.service.dto.CouponQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.service.impl; | 1 | package com.topdraw.business.module.coupon.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.coupon.domain.Coupon; | 4 | import com.topdraw.business.module.coupon.domain.Coupon; |
5 | import com.topdraw.util.RedissonUtil; | 5 | import com.topdraw.util.RedissonUtil; |
6 | import com.topdraw.utils.ValidationUtil; | 6 | import com.topdraw.utils.ValidationUtil; |
7 | import com.topdraw.business.basicdata.coupon.repository.CouponRepository; | 7 | import com.topdraw.business.module.coupon.repository.CouponRepository; |
8 | import com.topdraw.business.basicdata.coupon.service.CouponService; | 8 | import com.topdraw.business.module.coupon.service.CouponService; |
9 | import com.topdraw.business.basicdata.coupon.service.dto.CouponDTO; | 9 | import com.topdraw.business.module.coupon.service.dto.CouponDTO; |
10 | import com.topdraw.business.basicdata.coupon.service.dto.CouponQueryCriteria; | 10 | import com.topdraw.business.module.coupon.service.dto.CouponQueryCriteria; |
11 | import com.topdraw.business.basicdata.coupon.service.mapper.CouponMapper; | 11 | import com.topdraw.business.module.coupon.service.mapper.CouponMapper; |
12 | import org.redisson.api.RLock; | 12 | import org.redisson.api.RLock; |
13 | import org.redisson.api.RedissonClient; | 13 | import org.redisson.api.RedissonClient; |
14 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; | ... | ... |
1 | package com.topdraw.business.basicdata.coupon.service.mapper; | 1 | package com.topdraw.business.module.coupon.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.coupon.domain.Coupon; | 4 | import com.topdraw.business.module.coupon.domain.Coupon; |
5 | import com.topdraw.business.basicdata.coupon.service.dto.CouponDTO; | 5 | import com.topdraw.business.module.coupon.service.dto.CouponDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.exp.detail.repository; | 1 | package com.topdraw.business.module.exp.detail.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.exp.detail.domain.ExpDetail; | 3 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.exp.detail.rest; | 1 | package com.topdraw.business.module.exp.detail.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.annotation.Log; |
5 | import com.topdraw.business.basicdata.exp.detail.domain.ExpDetail; | 5 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
6 | import com.topdraw.business.basicdata.exp.detail.service.ExpDetailService; | 6 | import com.topdraw.business.module.exp.detail.service.ExpDetailService; |
7 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailQueryCriteria; | 7 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailQueryCriteria; |
8 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 9 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.validation.annotation.Validated; | 10 | import org.springframework.validation.annotation.Validated; | ... | ... |
1 | package com.topdraw.business.basicdata.exp.detail.service; | 1 | package com.topdraw.business.module.exp.detail.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.exp.detail.domain.ExpDetail; | 3 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
4 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailDTO; | 4 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailDTO; |
5 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailQueryCriteria; | 5 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.exp.detail.service.impl; | 1 | package com.topdraw.business.module.exp.detail.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.exp.detail.domain.ExpDetail; | 4 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.exp.detail.repository.ExpDetailRepository; | 6 | import com.topdraw.business.module.exp.detail.repository.ExpDetailRepository; |
7 | import com.topdraw.business.basicdata.exp.detail.service.ExpDetailService; | 7 | import com.topdraw.business.module.exp.detail.service.ExpDetailService; |
8 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailDTO; | 8 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailDTO; |
9 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailQueryCriteria; | 9 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailQueryCriteria; |
10 | import com.topdraw.business.basicdata.exp.detail.service.mapper.ExpDetailMapper; | 10 | import com.topdraw.business.module.exp.detail.service.mapper.ExpDetailMapper; |
11 | import org.redisson.api.RLock; | 11 | import org.redisson.api.RLock; |
12 | import org.redisson.api.RedissonClient; | 12 | import org.redisson.api.RedissonClient; |
13 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; | ... | ... |
1 | package com.topdraw.business.basicdata.exp.detail.service.mapper; | 1 | package com.topdraw.business.module.exp.detail.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.exp.detail.domain.ExpDetail; | 4 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
5 | import com.topdraw.business.basicdata.exp.detail.service.dto.ExpDetailDTO; | 5 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.exp.history.repository; | 1 | package com.topdraw.business.module.exp.history.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.exp.history.domain.ExpHistory; | 3 | import com.topdraw.business.module.exp.history.domain.ExpHistory; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.exp.history.rest; | 1 | package com.topdraw.business.module.exp.history.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.business.module.exp.history.service.ExpHistoryService; |
5 | import com.topdraw.business.basicdata.exp.history.domain.ExpHistory; | 5 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryQueryCriteria; |
6 | import com.topdraw.business.basicdata.exp.history.service.ExpHistoryService; | ||
7 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryQueryCriteria; | ||
8 | import org.springframework.beans.factory.annotation.Autowired; | 6 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 7 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.validation.annotation.Validated; | ||
11 | import org.springframework.web.bind.annotation.*; | 8 | import org.springframework.web.bind.annotation.*; |
12 | import io.swagger.annotations.*; | 9 | import io.swagger.annotations.*; |
13 | 10 | ... | ... |
1 | package com.topdraw.business.basicdata.exp.history.service; | 1 | package com.topdraw.business.module.exp.history.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.exp.history.domain.ExpHistory; | 3 | import com.topdraw.business.module.exp.history.domain.ExpHistory; |
4 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryDTO; | 4 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryDTO; |
5 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryQueryCriteria; | 5 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.exp.history.service.impl; | 1 | package com.topdraw.business.module.exp.history.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.exp.history.domain.ExpHistory; | 4 | import com.topdraw.business.module.exp.history.domain.ExpHistory; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.exp.history.repository.ExpHistoryRepository; | 6 | import com.topdraw.business.module.exp.history.repository.ExpHistoryRepository; |
7 | import com.topdraw.business.basicdata.exp.history.service.ExpHistoryService; | 7 | import com.topdraw.business.module.exp.history.service.ExpHistoryService; |
8 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryDTO; | 8 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryDTO; |
9 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryQueryCriteria; | 9 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryQueryCriteria; |
10 | import com.topdraw.business.basicdata.exp.history.service.mapper.ExpHistoryMapper; | 10 | import com.topdraw.business.module.exp.history.service.mapper.ExpHistoryMapper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
13 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; | ... | ... |
1 | package com.topdraw.business.basicdata.exp.history.service.mapper; | 1 | package com.topdraw.business.module.exp.history.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.exp.history.domain.ExpHistory; | 4 | import com.topdraw.business.module.exp.history.domain.ExpHistory; |
5 | import com.topdraw.business.basicdata.exp.history.service.dto.ExpHistoryDTO; | 5 | import com.topdraw.business.module.exp.history.service.dto.ExpHistoryDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.address.repository; | 1 | package com.topdraw.business.module.member.address.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.address.domain.MemberAddress; | 3 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.member.address.rest; | 1 | package com.topdraw.business.module.member.address.rest; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.service.MemberService; | 3 | import com.topdraw.business.module.member.service.MemberService; |
4 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 4 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
5 | import com.topdraw.common.ResultInfo; | 5 | import com.topdraw.common.ResultInfo; |
6 | import com.topdraw.annotation.Log; | 6 | import com.topdraw.annotation.Log; |
7 | import com.topdraw.business.basicdata.member.address.domain.MemberAddress; | 7 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
8 | import com.topdraw.business.basicdata.member.address.service.MemberAddressService; | 8 | import com.topdraw.business.module.member.address.service.MemberAddressService; |
9 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressQueryCriteria; | 9 | import com.topdraw.business.module.member.address.service.dto.MemberAddressQueryCriteria; |
10 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
11 | import org.springframework.data.domain.Pageable; | 11 | import org.springframework.data.domain.Pageable; |
12 | import org.springframework.util.Assert; | 12 | import org.springframework.util.Assert; | ... | ... |
1 | package com.topdraw.business.basicdata.member.address.service; | 1 | package com.topdraw.business.module.member.address.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.address.domain.MemberAddress; | 3 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
4 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressDTO; | 4 | import com.topdraw.business.module.member.address.service.dto.MemberAddressDTO; |
5 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressQueryCriteria; | 5 | import com.topdraw.business.module.member.address.service.dto.MemberAddressQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.member.address.service.impl; | 1 | package com.topdraw.business.module.member.address.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.member.address.domain.MemberAddress; | 4 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.member.address.repository.MemberAddressRepository; | 6 | import com.topdraw.business.module.member.address.repository.MemberAddressRepository; |
7 | import com.topdraw.business.basicdata.member.address.service.MemberAddressService; | 7 | import com.topdraw.business.module.member.address.service.MemberAddressService; |
8 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressDTO; | 8 | import com.topdraw.business.module.member.address.service.dto.MemberAddressDTO; |
9 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressQueryCriteria; | 9 | import com.topdraw.business.module.member.address.service.dto.MemberAddressQueryCriteria; |
10 | import com.topdraw.business.basicdata.member.address.service.mapper.MemberAddressMapper; | 10 | import com.topdraw.business.module.member.address.service.mapper.MemberAddressMapper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
13 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; | ... | ... |
1 | package com.topdraw.business.basicdata.member.address.service.mapper; | 1 | package com.topdraw.business.module.member.address.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.address.domain.MemberAddress; | 4 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
5 | import com.topdraw.business.basicdata.member.address.service.dto.MemberAddressDTO; | 5 | import com.topdraw.business.module.member.address.service.dto.MemberAddressDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.domain; | 1 | package com.topdraw.business.module.member.domain; |
2 | 2 | ||
3 | import cn.hutool.core.bean.BeanUtil; | 3 | import cn.hutool.core.bean.BeanUtil; |
4 | import cn.hutool.core.bean.copier.CopyOptions; | 4 | import cn.hutool.core.bean.copier.CopyOptions; |
5 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | ||
6 | import io.swagger.annotations.ApiModelProperty; | ||
7 | import lombok.Data; | 5 | import lombok.Data; |
8 | import lombok.experimental.Accessors; | 6 | import lombok.experimental.Accessors; |
9 | import org.springframework.data.annotation.CreatedDate; | 7 | import org.springframework.data.annotation.CreatedDate; |
... | @@ -135,6 +133,6 @@ public class Member implements Serializable { | ... | @@ -135,6 +133,6 @@ public class Member implements Serializable { |
135 | private Long blackStatus; | 133 | private Long blackStatus; |
136 | 134 | ||
137 | public void copy(Member source){ | 135 | public void copy(Member source){ |
138 | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); | 136 | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(false)); |
139 | } | 137 | } |
140 | } | 138 | } | ... | ... |
member-service-impl/src/main/java/com/topdraw/business/module/member/domain/MemberBuilder.java
0 → 100644
1 | package com.topdraw.business.module.member.domain; | ||
2 | |||
3 | import cn.hutool.core.bean.BeanUtil; | ||
4 | import cn.hutool.core.bean.copier.CopyOptions; | ||
5 | import com.topdraw.util.IdWorker; | ||
6 | import lombok.Data; | ||
7 | import lombok.experimental.Accessors; | ||
8 | import org.springframework.data.annotation.CreatedDate; | ||
9 | import org.springframework.data.annotation.LastModifiedDate; | ||
10 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
11 | |||
12 | import javax.persistence.*; | ||
13 | import java.io.Serializable; | ||
14 | import java.sql.Timestamp; | ||
15 | import java.time.LocalDateTime; | ||
16 | |||
17 | /** | ||
18 | * @author XiangHan | ||
19 | * @date 2021-10-22 | ||
20 | */ | ||
21 | public class MemberBuilder { | ||
22 | |||
23 | public static Member build(Integer type,String avatarUrl,String nickname,Integer vip){ | ||
24 | Member member = new Member(); | ||
25 | member.setType(type); | ||
26 | member.setBlackStatus(0L); | ||
27 | member.setGender(-1); | ||
28 | member.setVip(vip==null?0:vip); | ||
29 | member.setLevel(1); | ||
30 | member.setStatus(1); | ||
31 | member.setPoints(0L); | ||
32 | member.setDuePoints(0L); | ||
33 | member.setExp(0L); | ||
34 | member.setCouponAmount(0L); | ||
35 | member.setDueCouponAmount(0L); | ||
36 | member.setAvatarUrl(avatarUrl); | ||
37 | member.setCode(IdWorker.generator() + ""); | ||
38 | member.setNickname(nickname); | ||
39 | return member; | ||
40 | } | ||
41 | } |
1 | package com.topdraw.business.basicdata.member.group.repository; | 1 | package com.topdraw.business.module.member.group.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.group.domain.MemberGroup; | 3 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ||
7 | import java.util.Optional; | ||
8 | |||
9 | /** | 7 | /** |
10 | * @author XiangHan | 8 | * @author XiangHan |
11 | * @date 2021-11-17 | 9 | * @date 2021-11-17 | ... | ... |
1 | package com.topdraw.business.basicdata.member.group.rest; | 1 | package com.topdraw.business.module.member.group.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.annotation.Log; |
5 | import com.topdraw.business.basicdata.member.group.domain.MemberGroup; | 5 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
6 | import com.topdraw.business.basicdata.member.group.service.MemberGroupService; | 6 | import com.topdraw.business.module.member.group.service.MemberGroupService; |
7 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupQueryCriteria; | 7 | import com.topdraw.business.module.member.group.service.dto.MemberGroupQueryCriteria; |
8 | import org.springframework.beans.factory.annotation.Autowired; | 8 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 9 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.http.HttpStatus; | ||
11 | import org.springframework.http.ResponseEntity; | ||
12 | import org.springframework.validation.annotation.Validated; | 10 | import org.springframework.validation.annotation.Validated; |
13 | import org.springframework.web.bind.annotation.*; | 11 | import org.springframework.web.bind.annotation.*; |
14 | import io.swagger.annotations.*; | 12 | import io.swagger.annotations.*; |
15 | import java.io.IOException; | ||
16 | import javax.servlet.http.HttpServletResponse; | ||
17 | 13 | ||
18 | /** | 14 | /** |
19 | * @author XiangHan | 15 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.member.group.service; | 1 | package com.topdraw.business.module.member.group.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.group.domain.MemberGroup; | 3 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
4 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupDTO; | 4 | import com.topdraw.business.module.member.group.service.dto.MemberGroupDTO; |
5 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupQueryCriteria; | 5 | import com.topdraw.business.module.member.group.service.dto.MemberGroupQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; |
9 | import java.io.IOException; | ||
10 | import javax.servlet.http.HttpServletResponse; | ||
11 | 9 | ||
12 | /** | 10 | /** |
13 | * @author XiangHan | 11 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.member.group.service.impl; | 1 | package com.topdraw.business.module.member.group.service.impl; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.group.domain.MemberGroup; | 3 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
4 | import com.topdraw.utils.ValidationUtil; | 4 | import com.topdraw.utils.ValidationUtil; |
5 | import com.topdraw.utils.FileUtil; | 5 | import com.topdraw.business.module.member.group.repository.MemberGroupRepository; |
6 | import com.topdraw.business.basicdata.member.group.repository.MemberGroupRepository; | 6 | import com.topdraw.business.module.member.group.service.MemberGroupService; |
7 | import com.topdraw.business.basicdata.member.group.service.MemberGroupService; | 7 | import com.topdraw.business.module.member.group.service.dto.MemberGroupDTO; |
8 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupDTO; | 8 | import com.topdraw.business.module.member.group.service.dto.MemberGroupQueryCriteria; |
9 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupQueryCriteria; | 9 | import com.topdraw.business.module.member.group.service.mapper.MemberGroupMapper; |
10 | import com.topdraw.business.basicdata.member.group.service.mapper.MemberGroupMapper; | ||
11 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 11 | import org.springframework.stereotype.Service; |
13 | import org.springframework.transaction.annotation.Propagation; | 12 | import org.springframework.transaction.annotation.Propagation; |
... | @@ -18,14 +17,9 @@ import org.springframework.data.domain.Pageable; | ... | @@ -18,14 +17,9 @@ import org.springframework.data.domain.Pageable; |
18 | import org.springframework.util.Assert; | 17 | import org.springframework.util.Assert; |
19 | import com.topdraw.utils.PageUtil; | 18 | import com.topdraw.utils.PageUtil; |
20 | import com.topdraw.utils.QueryHelp; | 19 | import com.topdraw.utils.QueryHelp; |
21 | import com.topdraw.utils.StringUtils; | ||
22 | 20 | ||
23 | import java.util.List; | 21 | import java.util.List; |
24 | import java.util.Map; | 22 | import java.util.Map; |
25 | import java.io.IOException; | ||
26 | import javax.servlet.http.HttpServletResponse; | ||
27 | import java.util.ArrayList; | ||
28 | import java.util.LinkedHashMap; | ||
29 | 23 | ||
30 | /** | 24 | /** |
31 | * @author XiangHan | 25 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.member.group.service.mapper; | 1 | package com.topdraw.business.module.member.group.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.group.domain.MemberGroup; | 4 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
5 | import com.topdraw.business.basicdata.member.group.service.dto.MemberGroupDTO; | 5 | import com.topdraw.business.module.member.group.service.dto.MemberGroupDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.level.repository; | 1 | package com.topdraw.business.module.member.level.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.level.domain.MemberLevel; | 3 | import com.topdraw.business.module.member.level.domain.MemberLevel; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.member.level.rest; | 1 | package com.topdraw.business.module.member.level.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | 4 | import com.topdraw.business.module.member.level.service.MemberLevelService; |
5 | import com.topdraw.business.basicdata.member.level.domain.MemberLevel; | 5 | import com.topdraw.business.module.member.level.service.dto.MemberLevelQueryCriteria; |
6 | import com.topdraw.business.basicdata.member.level.service.MemberLevelService; | ||
7 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelQueryCriteria; | ||
8 | import org.springframework.beans.factory.annotation.Autowired; | 6 | import org.springframework.beans.factory.annotation.Autowired; |
9 | import org.springframework.data.domain.Pageable; | 7 | import org.springframework.data.domain.Pageable; |
10 | import org.springframework.validation.annotation.Validated; | ||
11 | import org.springframework.web.bind.annotation.*; | 8 | import org.springframework.web.bind.annotation.*; |
12 | import io.swagger.annotations.*; | 9 | import io.swagger.annotations.*; |
13 | 10 | ... | ... |
1 | package com.topdraw.business.basicdata.member.level.service; | 1 | package com.topdraw.business.module.member.level.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.level.domain.MemberLevel; | 3 | import com.topdraw.business.module.member.level.domain.MemberLevel; |
4 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelDTO; | 4 | import com.topdraw.business.module.member.level.service.dto.MemberLevelDTO; |
5 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelQueryCriteria; | 5 | import com.topdraw.business.module.member.level.service.dto.MemberLevelQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.member.level.service.impl; | 1 | package com.topdraw.business.module.member.level.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.member.level.domain.MemberLevel; | 4 | import com.topdraw.business.module.member.level.domain.MemberLevel; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.member.level.repository.MemberLevelRepository; | 6 | import com.topdraw.business.module.member.level.repository.MemberLevelRepository; |
7 | import com.topdraw.business.basicdata.member.level.service.MemberLevelService; | 7 | import com.topdraw.business.module.member.level.service.MemberLevelService; |
8 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelDTO; | 8 | import com.topdraw.business.module.member.level.service.dto.MemberLevelDTO; |
9 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelQueryCriteria; | 9 | import com.topdraw.business.module.member.level.service.dto.MemberLevelQueryCriteria; |
10 | import com.topdraw.business.basicdata.member.level.service.mapper.MemberLevelMapper; | 10 | import com.topdraw.business.module.member.level.service.mapper.MemberLevelMapper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.cache.annotation.Cacheable; | ||
13 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
14 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; |
15 | import org.springframework.transaction.annotation.Transactional; | 14 | import org.springframework.transaction.annotation.Transactional; | ... | ... |
1 | package com.topdraw.business.basicdata.member.level.service.mapper; | 1 | package com.topdraw.business.module.member.level.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.level.domain.MemberLevel; | 4 | import com.topdraw.business.module.member.level.domain.MemberLevel; |
5 | import com.topdraw.business.basicdata.member.level.service.dto.MemberLevelDTO; | 5 | import com.topdraw.business.module.member.level.service.dto.MemberLevelDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.domain; | 1 | package com.topdraw.business.module.member.profile.domain; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.profile.DoSaveMemberProfileGroup; | 3 | import com.topdraw.business.module.member.profile.DoSaveMemberProfileGroup; |
4 | import com.topdraw.business.basicdata.member.profile.DoUpdateMemberProfileGroup; | 4 | import com.topdraw.business.module.member.profile.DoUpdateMemberProfileGroup; |
5 | import lombok.Data; | 5 | import lombok.Data; |
6 | import lombok.experimental.Accessors; | 6 | import lombok.experimental.Accessors; |
7 | import cn.hutool.core.bean.BeanUtil; | 7 | import cn.hutool.core.bean.BeanUtil; | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.repository; | 1 | package com.topdraw.business.module.member.profile.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | 3 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.rest; | 1 | package com.topdraw.business.module.member.profile.rest; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileDTO; | 3 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
4 | import com.topdraw.business.basicdata.member.service.MemberService; | 4 | import com.topdraw.business.module.member.service.MemberService; |
5 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 5 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
6 | import com.topdraw.common.ResultInfo; | 6 | import com.topdraw.common.ResultInfo; |
7 | import com.topdraw.annotation.Log; | 7 | import com.topdraw.annotation.Log; |
8 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | 8 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
9 | import com.topdraw.business.basicdata.member.profile.service.MemberProfileService; | 9 | import com.topdraw.business.module.member.profile.service.MemberProfileService; |
10 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileQueryCriteria; | ||
11 | import com.topdraw.utils.StringUtils; | 10 | import com.topdraw.utils.StringUtils; |
12 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
13 | import org.springframework.data.domain.Pageable; | ||
14 | import org.springframework.util.Assert; | 12 | import org.springframework.util.Assert; |
15 | import org.springframework.validation.annotation.Validated; | 13 | import org.springframework.validation.annotation.Validated; |
16 | import org.springframework.web.bind.annotation.*; | 14 | import org.springframework.web.bind.annotation.*; | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.service; | 1 | package com.topdraw.business.module.member.profile.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | 3 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
4 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileDTO; | 4 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
5 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileQueryCriteria; | 5 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; |
... | @@ -35,7 +35,7 @@ public interface MemberProfileService { | ... | @@ -35,7 +35,7 @@ public interface MemberProfileService { |
35 | */ | 35 | */ |
36 | MemberProfileDTO findById(Long id); | 36 | MemberProfileDTO findById(Long id); |
37 | 37 | ||
38 | void create(MemberProfile resources); | 38 | MemberProfile create(MemberProfile resources); |
39 | 39 | ||
40 | void update(MemberProfile resources); | 40 | void update(MemberProfile resources); |
41 | 41 | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.service.dto; | 1 | package com.topdraw.business.module.member.profile.service.dto; |
2 | 2 | ||
3 | import lombok.Data; | 3 | import lombok.Data; |
4 | import java.sql.Timestamp; | 4 | import java.sql.Timestamp; |
... | @@ -21,21 +21,30 @@ public class MemberProfileDTO implements Serializable { | ... | @@ -21,21 +21,30 @@ public class MemberProfileDTO implements Serializable { |
21 | // 姓名 | 21 | // 姓名 |
22 | private String realname; | 22 | private String realname; |
23 | 23 | ||
24 | private String nickname; | ||
25 | |||
24 | // 性别 0:女; 1:男 -1:未知 | 26 | // 性别 0:女; 1:男 -1:未知 |
25 | private Integer gender; | 27 | private Integer gender; |
26 | 28 | ||
27 | // 生日 | 29 | // 生日 |
28 | private Timestamp birthday; | 30 | private Timestamp birthday; |
29 | 31 | ||
32 | // 生日字符串 | ||
33 | private String birthdayStr; | ||
34 | |||
35 | // vip | ||
36 | private Integer vip; | ||
37 | |||
30 | // 星座 | 38 | // 星座 |
31 | private String constellation; | 39 | private String constellation; |
32 | 40 | ||
33 | // 身份证 | 41 | private Long vipExpireTime; |
34 | private String idCard; | ||
35 | 42 | ||
36 | // 电话 | ||
37 | private String phone; | 43 | private String phone; |
38 | 44 | ||
45 | // 身份证 | ||
46 | private String idCard; | ||
47 | |||
39 | // 电子邮件 | 48 | // 电子邮件 |
40 | private String email; | 49 | private String email; |
41 | 50 | ||
... | @@ -48,6 +57,9 @@ public class MemberProfileDTO implements Serializable { | ... | @@ -48,6 +57,9 @@ public class MemberProfileDTO implements Serializable { |
48 | // 城市 | 57 | // 城市 |
49 | private String city; | 58 | private String city; |
50 | 59 | ||
60 | // 头像 | ||
61 | private String avatarUrl; | ||
62 | |||
51 | // 区县 | 63 | // 区县 |
52 | private String district; | 64 | private String district; |
53 | 65 | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.service.impl; | 1 | package com.topdraw.business.module.member.profile.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | 4 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
5 | import com.topdraw.business.basicdata.member.service.MemberService; | ||
6 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | ||
7 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
8 | import com.topdraw.business.basicdata.member.profile.repository.MemberProfileRepository; | 6 | import com.topdraw.business.module.member.profile.repository.MemberProfileRepository; |
9 | import com.topdraw.business.basicdata.member.profile.service.MemberProfileService; | 7 | import com.topdraw.business.module.member.profile.service.MemberProfileService; |
10 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileDTO; | 8 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
11 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileQueryCriteria; | 9 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileQueryCriteria; |
12 | import com.topdraw.business.basicdata.member.profile.service.mapper.MemberProfileMapper; | 10 | import com.topdraw.business.module.member.profile.service.mapper.MemberProfileMapper; |
13 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
14 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
15 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; |
... | @@ -61,8 +59,9 @@ public class MemberProfileServiceImpl implements MemberProfileService { | ... | @@ -61,8 +59,9 @@ public class MemberProfileServiceImpl implements MemberProfileService { |
61 | @Override | 59 | @Override |
62 | @Transactional(rollbackFor = Exception.class) | 60 | @Transactional(rollbackFor = Exception.class) |
63 | @AsyncMqSend() | 61 | @AsyncMqSend() |
64 | public void create(MemberProfile resources) { | 62 | public MemberProfile create(MemberProfile resources) { |
65 | MemberProfileRepository.save(resources); | 63 | MemberProfileRepository.save(resources); |
64 | return resources; | ||
66 | } | 65 | } |
67 | 66 | ||
68 | @Override | 67 | @Override | ... | ... |
1 | package com.topdraw.business.basicdata.member.profile.service.mapper; | 1 | package com.topdraw.business.module.member.profile.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.profile.domain.MemberProfile; | 4 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
5 | import com.topdraw.business.basicdata.member.profile.service.dto.MemberProfileDTO; | 5 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.repository; | 1 | package com.topdraw.business.module.member.relatedinfo.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.relatedinfo.domain.MemberRelatedInfo; | 3 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.rest; | 1 | package com.topdraw.business.module.member.relatedinfo.rest; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.service.MemberService; | 3 | import com.topdraw.business.module.member.service.MemberService; |
4 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 4 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
5 | import com.topdraw.common.ResultInfo; | 5 | import com.topdraw.common.ResultInfo; |
6 | import com.topdraw.annotation.Log; | 6 | import com.topdraw.annotation.Log; |
7 | import com.topdraw.business.basicdata.member.relatedinfo.domain.MemberRelatedInfo; | 7 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
8 | import com.topdraw.business.basicdata.member.relatedinfo.service.MemberRelatedInfoService; | 8 | import com.topdraw.business.module.member.relatedinfo.service.MemberRelatedInfoService; |
9 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; | 9 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; |
10 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
11 | import org.springframework.data.domain.PageRequest; | ||
12 | import org.springframework.data.domain.Pageable; | 11 | import org.springframework.data.domain.Pageable; |
13 | import org.springframework.util.Assert; | 12 | import org.springframework.util.Assert; |
14 | import org.springframework.validation.annotation.Validated; | 13 | import org.springframework.validation.annotation.Validated; | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.service; | 1 | package com.topdraw.business.module.member.relatedinfo.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.relatedinfo.domain.MemberRelatedInfo; | 3 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
4 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoDTO; | 4 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoDTO; |
5 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; | 5 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | import java.util.Map; | 7 | import java.util.Map; |
8 | import java.util.List; | 8 | import java.util.List; | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.service.dto; | 1 | package com.topdraw.business.module.member.relatedinfo.service.dto; |
2 | 2 | ||
3 | import lombok.Data; | 3 | import lombok.Data; |
4 | 4 | ||
5 | import javax.persistence.Column; | ||
6 | import java.sql.Timestamp; | 5 | import java.sql.Timestamp; |
7 | import java.io.Serializable; | 6 | import java.io.Serializable; |
8 | import java.time.LocalDate; | 7 | import java.time.LocalDate; | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.service.dto; | 1 | package com.topdraw.business.module.member.relatedinfo.service.dto; |
2 | 2 | ||
3 | import com.topdraw.annotation.Query; | 3 | import com.topdraw.annotation.Query; |
4 | import lombok.Data; | 4 | import lombok.Data; |
5 | 5 | ||
6 | import javax.validation.constraints.NotNull; | ||
7 | |||
8 | /** | 6 | /** |
9 | * @author XiangHan | 7 | * @author XiangHan |
10 | * @date 2021-10-22 | 8 | * @date 2021-10-22 | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.service.impl; | 1 | package com.topdraw.business.module.member.relatedinfo.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.member.relatedinfo.domain.MemberRelatedInfo; | 4 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
5 | import com.topdraw.utils.ValidationUtil; | 5 | import com.topdraw.utils.ValidationUtil; |
6 | import com.topdraw.business.basicdata.member.relatedinfo.repository.MemberRelatedInfoRepository; | 6 | import com.topdraw.business.module.member.relatedinfo.repository.MemberRelatedInfoRepository; |
7 | import com.topdraw.business.basicdata.member.relatedinfo.service.MemberRelatedInfoService; | 7 | import com.topdraw.business.module.member.relatedinfo.service.MemberRelatedInfoService; |
8 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoDTO; | 8 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoDTO; |
9 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; | 9 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; |
10 | import com.topdraw.business.basicdata.member.relatedinfo.service.mapper.MemberRelatedInfoMapper; | 10 | import com.topdraw.business.module.member.relatedinfo.service.mapper.MemberRelatedInfoMapper; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.stereotype.Service; | 12 | import org.springframework.stereotype.Service; |
13 | import org.springframework.transaction.annotation.Propagation; | 13 | import org.springframework.transaction.annotation.Propagation; | ... | ... |
1 | package com.topdraw.business.basicdata.member.relatedinfo.service.mapper; | 1 | package com.topdraw.business.module.member.relatedinfo.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.relatedinfo.domain.MemberRelatedInfo; | 4 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
5 | import com.topdraw.business.basicdata.member.relatedinfo.service.dto.MemberRelatedInfoDTO; | 5 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.basicdata.member.repository; | 1 | package com.topdraw.business.module.member.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.domain.Member; | 3 | import com.topdraw.business.module.member.domain.Member; |
4 | import org.springframework.data.jpa.repository.JpaRepository; | 4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
6 | 6 | ... | ... |
1 | package com.topdraw.business.basicdata.member.rest; | 1 | package com.topdraw.business.module.member.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.Log; | 3 | import com.topdraw.annotation.Log; |
4 | import com.topdraw.business.basicdata.member.domain.Member; | 4 | import com.topdraw.business.module.member.domain.Member; |
5 | import com.topdraw.business.basicdata.member.service.MemberService; | 5 | import com.topdraw.business.module.member.service.MemberService; |
6 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 6 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
7 | import com.topdraw.business.basicdata.user.iptv.domain.UserTv; | 7 | import com.topdraw.business.module.user.iptv.domain.UserTv; |
8 | import com.topdraw.business.process.service.UserTvOperationService; | 8 | import com.topdraw.business.process.service.UserOperationService; |
9 | import com.topdraw.common.ResultInfo; | 9 | import com.topdraw.common.ResultInfo; |
10 | import com.topdraw.util.Base64Util; | 10 | import com.topdraw.util.Base64Util; |
11 | import io.swagger.annotations.Api; | 11 | import io.swagger.annotations.Api; |
... | @@ -33,7 +33,7 @@ public class MemberController { | ... | @@ -33,7 +33,7 @@ public class MemberController { |
33 | private MemberService memberService; | 33 | private MemberService memberService; |
34 | 34 | ||
35 | @Autowired | 35 | @Autowired |
36 | private UserTvOperationService userTvOperationService; | 36 | private UserOperationService userTvOperationService; |
37 | 37 | ||
38 | @Log | 38 | @Log |
39 | @GetMapping(value = "/findById/{id}") | 39 | @GetMapping(value = "/findById/{id}") | ... | ... |
1 | package com.topdraw.business.basicdata.member.service; | 1 | package com.topdraw.business.module.member.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.member.domain.Member; | 3 | import com.topdraw.business.module.member.domain.Member; |
4 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 4 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
5 | import com.topdraw.business.basicdata.member.service.dto.MemberQueryCriteria; | 5 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
6 | import com.topdraw.business.basicdata.user.iptv.domain.UserTv; | 6 | import com.topdraw.business.module.member.service.dto.MemberQueryCriteria; |
7 | import org.springframework.data.domain.Pageable; | 7 | import org.springframework.data.domain.Pageable; |
8 | 8 | ||
9 | import java.util.List; | 9 | import java.util.List; |
... | @@ -37,10 +37,23 @@ public interface MemberService { | ... | @@ -37,10 +37,23 @@ public interface MemberService { |
37 | */ | 37 | */ |
38 | MemberDTO findById(Long id); | 38 | MemberDTO findById(Long id); |
39 | 39 | ||
40 | /** | ||
41 | * | ||
42 | * @param resources | ||
43 | * @return | ||
44 | */ | ||
40 | Long create(Member resources); | 45 | Long create(Member resources); |
41 | 46 | ||
47 | /** | ||
48 | * | ||
49 | * @param resources | ||
50 | */ | ||
42 | void update(Member resources); | 51 | void update(Member resources); |
43 | 52 | ||
53 | /** | ||
54 | * | ||
55 | * @param id | ||
56 | */ | ||
44 | void delete(Long id); | 57 | void delete(Long id); |
45 | 58 | ||
46 | /** | 59 | /** |
... | @@ -50,5 +63,9 @@ public interface MemberService { | ... | @@ -50,5 +63,9 @@ public interface MemberService { |
50 | */ | 63 | */ |
51 | MemberDTO getByCode(String code); | 64 | MemberDTO getByCode(String code); |
52 | 65 | ||
66 | /** | ||
67 | * | ||
68 | * @param member | ||
69 | */ | ||
53 | void doUpdateMemberPoints(Member member); | 70 | void doUpdateMemberPoints(Member member); |
54 | } | 71 | } | ... | ... |
1 | package com.topdraw.business.basicdata.member.service.impl; | 1 | package com.topdraw.business.module.member.service.impl; |
2 | 2 | ||
3 | import com.topdraw.aspect.AsyncMqSend; | 3 | import com.topdraw.aspect.AsyncMqSend; |
4 | import com.topdraw.business.basicdata.member.domain.Member; | 4 | import com.topdraw.business.module.member.domain.Member; |
5 | import com.topdraw.business.basicdata.member.repository.MemberRepository; | 5 | import com.topdraw.business.module.member.repository.MemberRepository; |
6 | import com.topdraw.business.basicdata.member.service.MemberService; | 6 | import com.topdraw.business.module.member.service.MemberService; |
7 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 7 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
8 | import com.topdraw.business.basicdata.member.service.dto.MemberQueryCriteria; | 8 | import com.topdraw.business.module.member.service.dto.MemberQueryCriteria; |
9 | import com.topdraw.business.basicdata.member.service.mapper.MemberMapper; | 9 | import com.topdraw.business.module.member.service.mapper.MemberMapper; |
10 | import com.topdraw.business.basicdata.user.iptv.domain.UserTv; | ||
11 | import com.topdraw.business.basicdata.user.iptv.service.UserTvService; | ||
12 | import com.topdraw.business.basicdata.user.iptv.service.dto.UserTvDTO; | ||
13 | import com.topdraw.common.ResultInfo; | ||
14 | import com.topdraw.config.LocalConstants; | ||
15 | import com.topdraw.mq.config.RabbitMqConfig; | ||
16 | import com.topdraw.util.IdWorker; | 10 | import com.topdraw.util.IdWorker; |
17 | import com.topdraw.util.RedissonUtil; | 11 | import com.topdraw.util.RedissonUtil; |
18 | import com.topdraw.util.TimestampUtil; | ||
19 | import com.topdraw.utils.PageUtil; | 12 | import com.topdraw.utils.PageUtil; |
20 | import com.topdraw.utils.QueryHelp; | 13 | import com.topdraw.utils.QueryHelp; |
21 | import com.topdraw.utils.StringUtils; | 14 | import com.topdraw.utils.StringUtils; |
... | @@ -23,21 +16,15 @@ import com.topdraw.utils.ValidationUtil; | ... | @@ -23,21 +16,15 @@ import com.topdraw.utils.ValidationUtil; |
23 | import lombok.extern.slf4j.Slf4j; | 16 | import lombok.extern.slf4j.Slf4j; |
24 | import org.redisson.api.RLock; | 17 | import org.redisson.api.RLock; |
25 | import org.redisson.api.RedissonClient; | 18 | import org.redisson.api.RedissonClient; |
26 | import org.springframework.beans.BeanUtils; | ||
27 | import org.springframework.beans.factory.annotation.Autowired; | 19 | import org.springframework.beans.factory.annotation.Autowired; |
28 | import org.springframework.cache.annotation.CacheConfig; | ||
29 | import org.springframework.cache.annotation.CacheEvict; | 20 | import org.springframework.cache.annotation.CacheEvict; |
30 | import org.springframework.cache.annotation.Cacheable; | ||
31 | import org.springframework.dao.EmptyResultDataAccessException; | 21 | import org.springframework.dao.EmptyResultDataAccessException; |
32 | import org.springframework.data.domain.Page; | 22 | import org.springframework.data.domain.Page; |
33 | import org.springframework.data.domain.Pageable; | 23 | import org.springframework.data.domain.Pageable; |
34 | import org.springframework.stereotype.Service; | 24 | import org.springframework.stereotype.Service; |
35 | import org.springframework.transaction.PlatformTransactionManager; | 25 | import org.springframework.transaction.PlatformTransactionManager; |
36 | import org.springframework.transaction.TransactionDefinition; | ||
37 | import org.springframework.transaction.TransactionStatus; | ||
38 | import org.springframework.transaction.annotation.Propagation; | 26 | import org.springframework.transaction.annotation.Propagation; |
39 | import org.springframework.transaction.annotation.Transactional; | 27 | import org.springframework.transaction.annotation.Transactional; |
40 | import org.springframework.transaction.support.DefaultTransactionDefinition; | ||
41 | import org.springframework.util.Assert; | 28 | import org.springframework.util.Assert; |
42 | 29 | ||
43 | import java.nio.charset.StandardCharsets; | 30 | import java.nio.charset.StandardCharsets; |
... | @@ -65,7 +52,7 @@ public class MemberServiceImpl implements MemberService { | ... | @@ -65,7 +52,7 @@ public class MemberServiceImpl implements MemberService { |
65 | PlatformTransactionManager platformTransactionManager; | 52 | PlatformTransactionManager platformTransactionManager; |
66 | 53 | ||
67 | @Autowired | 54 | @Autowired |
68 | private com.topdraw.business.basicdata.user.iptv.service.UserTvService UserTvService; | 55 | private com.topdraw.business.module.user.iptv.service.UserTvService UserTvService; |
69 | 56 | ||
70 | @Override | 57 | @Override |
71 | public Map<String, Object> queryAll(MemberQueryCriteria criteria, Pageable pageable) { | 58 | public Map<String, Object> queryAll(MemberQueryCriteria criteria, Pageable pageable) { |
... | @@ -80,7 +67,6 @@ public class MemberServiceImpl implements MemberService { | ... | @@ -80,7 +67,6 @@ public class MemberServiceImpl implements MemberService { |
80 | } | 67 | } |
81 | 68 | ||
82 | @Override | 69 | @Override |
83 | // @Cacheable(value = "member::memberId",key = "#p0") | ||
84 | public MemberDTO findById(Long id) { | 70 | public MemberDTO findById(Long id) { |
85 | Member member = memberRepository.findById(id).orElseGet(Member::new); | 71 | Member member = memberRepository.findById(id).orElseGet(Member::new); |
86 | ValidationUtil.isNull(member.getId(),"Member","id",id); | 72 | ValidationUtil.isNull(member.getId(),"Member","id",id); |
... | @@ -130,7 +116,6 @@ public class MemberServiceImpl implements MemberService { | ... | @@ -130,7 +116,6 @@ public class MemberServiceImpl implements MemberService { |
130 | @Override | 116 | @Override |
131 | @Transactional(rollbackFor = Exception.class) | 117 | @Transactional(rollbackFor = Exception.class) |
132 | @AsyncMqSend() | 118 | @AsyncMqSend() |
133 | @CacheEvict(value = "member::memberId",key = "#p0.id") | ||
134 | public void update(Member resources) { | 119 | public void update(Member resources) { |
135 | RLock rLock = this.redissonClient.getLock("member::update::id" + resources.getId().toString()); | 120 | RLock rLock = this.redissonClient.getLock("member::update::id" + resources.getId().toString()); |
136 | try { | 121 | try { | ... | ... |
1 | package com.topdraw.business.basicdata.member.service.mapper; | 1 | package com.topdraw.business.module.member.service.mapper; |
2 | 2 | ||
3 | import com.topdraw.base.BaseMapper; | 3 | import com.topdraw.base.BaseMapper; |
4 | import com.topdraw.business.basicdata.member.domain.Member; | 4 | import com.topdraw.business.module.member.domain.Member; |
5 | import com.topdraw.business.basicdata.member.service.dto.MemberDTO; | 5 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
7 | import org.mapstruct.ReportingPolicy; | 7 | import org.mapstruct.ReportingPolicy; |
8 | 8 | ... | ... |
1 | package com.topdraw.business.module.member.viphistory.domain; | ||
2 | |||
3 | import cn.hutool.core.bean.BeanUtil; | ||
4 | import cn.hutool.core.bean.copier.CopyOptions; | ||
5 | import lombok.Data; | ||
6 | import lombok.experimental.Accessors; | ||
7 | import org.springframework.data.annotation.CreatedDate; | ||
8 | import org.springframework.data.annotation.LastModifiedDate; | ||
9 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
10 | |||
11 | import javax.persistence.*; | ||
12 | import java.io.Serializable; | ||
13 | import java.sql.Timestamp; | ||
14 | import java.time.LocalDateTime; | ||
15 | |||
16 | /** | ||
17 | * @author luerlong | ||
18 | * @date 2021-12-10 | ||
19 | */ | ||
20 | @Entity | ||
21 | @Data | ||
22 | @EntityListeners(AuditingEntityListener.class) | ||
23 | @Accessors(chain = true) | ||
24 | @Table(name="uc_member_vip_history") | ||
25 | public class MemberVipHistory implements Serializable { | ||
26 | |||
27 | // 主键 | ||
28 | @Id | ||
29 | @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
30 | @Column(name = "id") | ||
31 | private Long id; | ||
32 | |||
33 | // 会员id | ||
34 | @Column(name = "member_id") | ||
35 | private Long memberId; | ||
36 | |||
37 | // 会员vip等级 | ||
38 | @Column(name = "vip") | ||
39 | private Integer vip; | ||
40 | |||
41 | // 修改之前vip等级 | ||
42 | @Column(name = "before_vip") | ||
43 | private Integer beforeVip; | ||
44 | |||
45 | // vip失效时间 | ||
46 | @Column(name = "vip_expire_time") | ||
47 | private LocalDateTime vipExpireTime; | ||
48 | |||
49 | // 状态 1正常 0已过期 | ||
50 | @Column(name = "status") | ||
51 | private Integer status; | ||
52 | |||
53 | // 创建时间 | ||
54 | @CreatedDate | ||
55 | @Column(name = "create_time") | ||
56 | private Timestamp createTime; | ||
57 | |||
58 | // 修改时间 | ||
59 | @LastModifiedDate | ||
60 | @Column(name = "update_time") | ||
61 | private Timestamp updateTime; | ||
62 | |||
63 | public void copy(MemberVipHistory source){ | ||
64 | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); | ||
65 | } | ||
66 | } |
1 | package com.topdraw.business.module.member.viphistory.repository; | ||
2 | |||
3 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
4 | import org.springframework.data.jpa.repository.JpaRepository; | ||
5 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | ||
6 | import org.springframework.data.jpa.repository.Query; | ||
7 | |||
8 | import java.time.LocalDateTime; | ||
9 | import java.util.Optional; | ||
10 | |||
11 | /** | ||
12 | * @author luerlong | ||
13 | * @date 2021-12-10 | ||
14 | */ | ||
15 | public interface MemberVipHistoryRepository extends JpaRepository<MemberVipHistory, Long>, JpaSpecificationExecutor<MemberVipHistory> { | ||
16 | |||
17 | @Query(value = "SELECT * FROM uc_member_vip_history " + | ||
18 | " WHERE vip_expire_time >= ?2 AND member_id = ?1 order by create_time desc limit 1 ", nativeQuery = true) | ||
19 | Optional<MemberVipHistory> findByTime(Long memberId, LocalDateTime nowTime); | ||
20 | } |
1 | package com.topdraw.business.module.member.viphistory.rest; | ||
2 | |||
3 | import com.topdraw.annotation.Log; | ||
4 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
5 | import com.topdraw.business.module.member.viphistory.service.MemberVipHistoryService; | ||
6 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryQueryCriteria; | ||
7 | import com.topdraw.common.ResultInfo; | ||
8 | import io.swagger.annotations.Api; | ||
9 | import io.swagger.annotations.ApiOperation; | ||
10 | import org.springframework.beans.factory.annotation.Autowired; | ||
11 | import org.springframework.data.domain.Pageable; | ||
12 | import org.springframework.validation.annotation.Validated; | ||
13 | import org.springframework.web.bind.annotation.*; | ||
14 | |||
15 | /** | ||
16 | * @author luerlong | ||
17 | * @date 2021-12-10 | ||
18 | */ | ||
19 | @Api(tags = "MemberVipHistory管理") | ||
20 | @RestController | ||
21 | @RequestMapping("/api/memberVipHistory") | ||
22 | public class MemberVipHistoryController { | ||
23 | |||
24 | @Autowired | ||
25 | private MemberVipHistoryService memberVipHistoryService; | ||
26 | |||
27 | @GetMapping | ||
28 | @ApiOperation("查询MemberVipHistory") | ||
29 | public ResultInfo getMemberVipHistorys(MemberVipHistoryQueryCriteria criteria, Pageable pageable) { | ||
30 | return ResultInfo.successPage(memberVipHistoryService.queryAll(criteria,pageable)); | ||
31 | } | ||
32 | |||
33 | @GetMapping(value = "/all") | ||
34 | @ApiOperation("查询所有MemberVipHistory") | ||
35 | public ResultInfo getMemberVipHistorys(MemberVipHistoryQueryCriteria criteria) { | ||
36 | return ResultInfo.success(memberVipHistoryService.queryAll(criteria)); | ||
37 | } | ||
38 | |||
39 | @Log | ||
40 | @PostMapping | ||
41 | @ApiOperation("新增MemberVipHistory") | ||
42 | public ResultInfo create(@Validated @RequestBody MemberVipHistory resources) { | ||
43 | memberVipHistoryService.create(resources); | ||
44 | return ResultInfo.success(); | ||
45 | } | ||
46 | |||
47 | @Log | ||
48 | @PutMapping | ||
49 | @ApiOperation("修改MemberVipHistory") | ||
50 | public ResultInfo update(@Validated @RequestBody MemberVipHistory resources) { | ||
51 | memberVipHistoryService.update(resources); | ||
52 | return ResultInfo.success(); | ||
53 | } | ||
54 | |||
55 | |||
56 | @Log | ||
57 | @DeleteMapping(value = "/{id}") | ||
58 | @ApiOperation("删除MemberVipHistory") | ||
59 | public ResultInfo delete(@PathVariable Long id) { | ||
60 | memberVipHistoryService.delete(id); | ||
61 | return ResultInfo.success(); | ||
62 | } | ||
63 | |||
64 | } |
1 | package com.topdraw.business.module.member.viphistory.service; | ||
2 | |||
3 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
4 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryDTO; | ||
5 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryQueryCriteria; | ||
6 | import org.springframework.data.domain.Pageable; | ||
7 | |||
8 | import java.time.LocalDateTime; | ||
9 | import java.util.List; | ||
10 | import java.util.Map; | ||
11 | import java.util.Optional; | ||
12 | |||
13 | /** | ||
14 | * @author luerlong | ||
15 | * @date 2021-12-10 | ||
16 | */ | ||
17 | public interface MemberVipHistoryService { | ||
18 | |||
19 | /** | ||
20 | * 查询数据分页 | ||
21 | * @param criteria 条件参数 | ||
22 | * @param pageable 分页参数 | ||
23 | * @return Map<String,Object> | ||
24 | */ | ||
25 | Map<String,Object> queryAll(MemberVipHistoryQueryCriteria criteria, Pageable pageable); | ||
26 | |||
27 | /** | ||
28 | * 查询所有数据不分页 | ||
29 | * @param criteria 条件参数 | ||
30 | * @return List<MemberVipHistoryDTO> | ||
31 | */ | ||
32 | List<MemberVipHistoryDTO> queryAll(MemberVipHistoryQueryCriteria criteria); | ||
33 | |||
34 | /** | ||
35 | * 根据ID查询 | ||
36 | * @param id ID | ||
37 | * @return MemberVipHistoryDTO | ||
38 | */ | ||
39 | MemberVipHistoryDTO findById(Long id); | ||
40 | |||
41 | void create(MemberVipHistory resources); | ||
42 | |||
43 | void update(MemberVipHistory resources); | ||
44 | |||
45 | void delete(Long id); | ||
46 | |||
47 | MemberVipHistory findByTime(Long id, LocalDateTime nowTime); | ||
48 | } |
1 | package com.topdraw.business.module.member.viphistory.service.dto; | ||
2 | |||
3 | import lombok.Data; | ||
4 | |||
5 | import java.io.Serializable; | ||
6 | import java.sql.Timestamp; | ||
7 | import java.time.LocalDateTime; | ||
8 | |||
9 | |||
10 | /** | ||
11 | * @author luerlong | ||
12 | * @date 2021-12-10 | ||
13 | */ | ||
14 | @Data | ||
15 | public class MemberVipHistoryDTO implements Serializable { | ||
16 | |||
17 | // 主键 | ||
18 | private Long id; | ||
19 | |||
20 | // 会员id | ||
21 | private Long memberId; | ||
22 | |||
23 | // 会员vip等级 | ||
24 | private Integer vip; | ||
25 | |||
26 | // 修改之前vip等级 | ||
27 | private Integer beforeVip; | ||
28 | |||
29 | // vip失效时间 | ||
30 | private LocalDateTime vipExpireTime; | ||
31 | |||
32 | // 状态 1正常 0已过期 | ||
33 | private Integer status; | ||
34 | |||
35 | // 创建时间 | ||
36 | private Timestamp createTime; | ||
37 | |||
38 | // 修改时间 | ||
39 | private Timestamp updateTime; | ||
40 | } |
1 | package com.topdraw.business.module.member.viphistory.service.impl; | ||
2 | |||
3 | |||
4 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
5 | import com.topdraw.business.module.member.viphistory.repository.MemberVipHistoryRepository; | ||
6 | import com.topdraw.business.module.member.viphistory.service.MemberVipHistoryService; | ||
7 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryDTO; | ||
8 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryQueryCriteria; | ||
9 | import com.topdraw.business.module.member.viphistory.service.mapper.MemberVipHistoryMapper; | ||
10 | import com.topdraw.utils.PageUtil; | ||
11 | import com.topdraw.utils.QueryHelp; | ||
12 | import com.topdraw.utils.ValidationUtil; | ||
13 | import org.springframework.beans.factory.annotation.Autowired; | ||
14 | import org.springframework.dao.EmptyResultDataAccessException; | ||
15 | import org.springframework.data.domain.Page; | ||
16 | import org.springframework.data.domain.Pageable; | ||
17 | import org.springframework.stereotype.Service; | ||
18 | import org.springframework.transaction.annotation.Propagation; | ||
19 | import org.springframework.transaction.annotation.Transactional; | ||
20 | import org.springframework.util.Assert; | ||
21 | |||
22 | import java.time.LocalDateTime; | ||
23 | import java.util.List; | ||
24 | import java.util.Map; | ||
25 | import java.util.Optional; | ||
26 | |||
27 | /** | ||
28 | * @author luerlong | ||
29 | * @date 2021-12-10 | ||
30 | */ | ||
31 | @Service | ||
32 | @Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class) | ||
33 | public class MemberVipHistoryServiceImpl implements MemberVipHistoryService { | ||
34 | |||
35 | @Autowired | ||
36 | private MemberVipHistoryRepository memberVipHistoryRepository; | ||
37 | |||
38 | @Autowired | ||
39 | private MemberVipHistoryMapper memberVipHistoryMapper; | ||
40 | |||
41 | @Override | ||
42 | public Map<String, Object> queryAll(MemberVipHistoryQueryCriteria criteria, Pageable pageable) { | ||
43 | Page<MemberVipHistory> page = memberVipHistoryRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder),pageable); | ||
44 | return PageUtil.toPage(page.map(memberVipHistoryMapper::toDto)); | ||
45 | } | ||
46 | |||
47 | @Override | ||
48 | public List<MemberVipHistoryDTO> queryAll(MemberVipHistoryQueryCriteria criteria) { | ||
49 | return memberVipHistoryMapper.toDto(memberVipHistoryRepository.findAll((root, criteriaQuery, criteriaBuilder) -> QueryHelp.getPredicate(root,criteria,criteriaBuilder))); | ||
50 | } | ||
51 | |||
52 | @Override | ||
53 | public MemberVipHistoryDTO findById(Long id) { | ||
54 | MemberVipHistory memberVipHistory = memberVipHistoryRepository.findById(id).orElseGet(MemberVipHistory::new); | ||
55 | ValidationUtil.isNull(memberVipHistory.getId(),"MemberVipHistory","id",id); | ||
56 | return memberVipHistoryMapper.toDto(memberVipHistory); | ||
57 | } | ||
58 | |||
59 | @Override | ||
60 | @Transactional(rollbackFor = Exception.class) | ||
61 | public void create(MemberVipHistory resources) { | ||
62 | memberVipHistoryRepository.save(resources); | ||
63 | } | ||
64 | |||
65 | @Override | ||
66 | @Transactional(rollbackFor = Exception.class) | ||
67 | public void update(MemberVipHistory resources) { | ||
68 | MemberVipHistory memberVipHistory = memberVipHistoryRepository.findById(resources.getId()).orElseGet(MemberVipHistory::new); | ||
69 | ValidationUtil.isNull( memberVipHistory.getId(),"MemberVipHistory","id",resources.getId()); | ||
70 | memberVipHistory.copy(resources); | ||
71 | memberVipHistoryRepository.save(memberVipHistory); | ||
72 | } | ||
73 | |||
74 | @Override | ||
75 | @Transactional(rollbackFor = Exception.class) | ||
76 | public void delete(Long id) { | ||
77 | Assert.notNull(id, "The given id must not be null!"); | ||
78 | MemberVipHistory memberVipHistory = memberVipHistoryRepository.findById(id).orElseThrow( | ||
79 | () -> new EmptyResultDataAccessException(String.format("No %s entity " + "with id %s " + "exists!", MemberVipHistory.class, id), 1)); | ||
80 | memberVipHistoryRepository.delete(memberVipHistory); | ||
81 | } | ||
82 | |||
83 | @Override | ||
84 | public MemberVipHistory findByTime(Long memberId, LocalDateTime nowTime) { | ||
85 | MemberVipHistory memberVipHistory = this.memberVipHistoryRepository.findByTime(memberId, nowTime).orElseGet(MemberVipHistory::new); | ||
86 | return memberVipHistory; | ||
87 | } | ||
88 | |||
89 | |||
90 | } |
1 | package com.topdraw.business.module.member.viphistory.service.mapper; | ||
2 | |||
3 | import com.topdraw.base.BaseMapper; | ||
4 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
5 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryDTO; | ||
6 | import org.mapstruct.Mapper; | ||
7 | import org.mapstruct.ReportingPolicy; | ||
8 | |||
9 | /** | ||
10 | * @author luerlong | ||
11 | * @date 2021-12-10 | ||
12 | */ | ||
13 | @Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE) | ||
14 | public interface MemberVipHistoryMapper extends BaseMapper<MemberVipHistoryDTO, MemberVipHistory> { | ||
15 | |||
16 | } |
1 | package com.topdraw.business.basicdata.points.available.domain; | 1 | package com.topdraw.business.module.points.available.domain; |
2 | 2 | ||
3 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | import lombok.Data; | 3 | import lombok.Data; |
5 | import lombok.experimental.Accessors; | 4 | import lombok.experimental.Accessors; |
6 | import cn.hutool.core.bean.BeanUtil; | 5 | import cn.hutool.core.bean.BeanUtil; |
... | @@ -11,7 +10,6 @@ import org.springframework.data.annotation.LastModifiedDate; | ... | @@ -11,7 +10,6 @@ import org.springframework.data.annotation.LastModifiedDate; |
11 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; | 10 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; |
12 | import java.sql.Timestamp; | 11 | import java.sql.Timestamp; |
13 | import java.time.LocalDateTime; | 12 | import java.time.LocalDateTime; |
14 | import java.util.UUID; | ||
15 | 13 | ||
16 | import java.io.Serializable; | 14 | import java.io.Serializable; |
17 | 15 | ... | ... |
1 | package com.topdraw.business.basicdata.points.available.repository; | 1 | package com.topdraw.business.module.points.available.repository; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.points.available.domain.PointsAvailable; | 3 | import com.topdraw.business.module.points.available.domain.PointsAvailable; |
4 | import com.topdraw.business.basicdata.points.available.service.dto.PointsAvailableDTO; | 4 | import com.topdraw.business.module.points.available.service.dto.PointsAvailableDTO; |
5 | import com.topdraw.business.basicdata.points.available.service.dto.PointsAvailableQueryCriteria; | 5 | import com.topdraw.business.module.points.available.service.dto.PointsAvailableQueryCriteria; |
6 | import org.springframework.data.jpa.repository.JpaRepository; | 6 | import org.springframework.data.jpa.repository.JpaRepository; |
7 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; | 7 | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
8 | import org.springframework.data.jpa.repository.Modifying; | 8 | import org.springframework.data.jpa.repository.Modifying; | ... | ... |
1 | package com.topdraw.business.basicdata.points.available.rest; | 1 | package com.topdraw.business.module.points.available.rest; |
2 | |||
3 | import com.topdraw.common.ResultInfo; | ||
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.basicdata.points.available.domain.PointsAvailable; | ||
6 | import com.topdraw.business.basicdata.points.available.service.PointsAvailableService; | ||
7 | import com.topdraw.business.basicdata.points.available.service.dto.PointsAvailableQueryCriteria; | ||
8 | import org.springframework.beans.factory.annotation.Autowired; | ||
9 | import org.springframework.data.domain.Pageable; | ||
10 | import org.springframework.http.HttpStatus; | ||
11 | import org.springframework.http.ResponseEntity; | ||
12 | import org.springframework.validation.annotation.Validated; | ||
13 | import org.springframework.web.bind.annotation.*; | ||
14 | import io.swagger.annotations.*; | ||
15 | import java.io.IOException; | ||
16 | import javax.servlet.http.HttpServletResponse; | ||
17 | 2 | ||
18 | /** | 3 | /** |
19 | * @author XiangHan | 4 | * @author XiangHan | ... | ... |
1 | package com.topdraw.business.basicdata.points.available.service; | 1 | package com.topdraw.business.module.points.available.service; |
2 | 2 | ||
3 | import com.topdraw.business.basicdata.points.available.domain.PointsAvailable; | 3 | import com.topdraw.business.module.points.available.domain.PointsAvailable; |
4 | import com.topdraw.business.basicdata.points.available.service.dto.PointsAvailableDTO; | 4 | import com.topdraw.business.module.points.available.service.dto.PointsAvailableDTO; |
5 | import com.topdraw.business.basicdata.points.available.service.dto.PointsAvailableQueryCriteria; | 5 | import com.topdraw.business.module.points.available.service.dto.PointsAvailableQueryCriteria; |
6 | import org.springframework.data.domain.Pageable; | 6 | import org.springframework.data.domain.Pageable; |
7 | 7 | ||
8 | import java.time.LocalDateTime; | 8 | import java.time.LocalDateTime; |
9 | import java.util.Date; | ||
10 | import java.util.Map; | 9 | import java.util.Map; |
11 | import java.util.List; | 10 | import java.util.List; |
12 | 11 | ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/module/task/attribute/domain/TaskAttr.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/domain/UserConstant.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/domian/result/TaskTemplateType.java
0 → 100644
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/domian/weixin/BuyVipBean.java
0 → 100644
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/domian/weixin/SubscribeBean.java
0 → 100644
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/domian/weixin/SubscribeBeanEvent.java
0 → 100644
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/domian/weixin/WeiXinUserBean.java
0 → 100644
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/rest/MemberOperationController.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/rest/UserOperationController.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/service/TaskDealService.java
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/business/process/service/UserOperationService.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/weixin/beans/DefaultWeiXinBeanDefinition.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
member-service-impl/src/main/java/com/topdraw/weixin/beans/config/WeiXinAppListConfig.java
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment