1.修改权益触发事件的发放逻辑,修改Timestamp对象为LocalDateTime对象
Showing
43 changed files
with
162 additions
and
169 deletions
... | @@ -40,6 +40,7 @@ public class DataSyncMsg implements Serializable { | ... | @@ -40,6 +40,7 @@ public class DataSyncMsg implements Serializable { |
40 | private Integer event; // 具体事件 行为事件类型 1:登录;2:观影;3:参与活动;4:订购;10:跨屏绑定;11:积分转移;30:积分兑换商品;98:系统操作;99:其他 | 40 | private Integer event; // 具体事件 行为事件类型 1:登录;2:观影;3:参与活动;4:订购;10:跨屏绑定;11:积分转移;30:积分兑换商品;98:系统操作;99:其他 |
41 | @NotNull | 41 | @NotNull |
42 | private Long memberId; // 会员id | 42 | private Long memberId; // 会员id |
43 | private Long userId; // 账户id | ||
43 | @NotNull | 44 | @NotNull |
44 | private Integer deviceType; //设备类型 1:大屏;2:小屏(微信)3.小屏(xx) | 45 | private Integer deviceType; //设备类型 1:大屏;2:小屏(微信)3.小屏(xx) |
45 | @NotNull | 46 | @NotNull | ... | ... |
... | @@ -34,13 +34,6 @@ | ... | @@ -34,13 +34,6 @@ |
34 | <version>${parent.version}</version> | 34 | <version>${parent.version}</version> |
35 | </dependency> | 35 | </dependency> |
36 | 36 | ||
37 | <!--代码生成器--> | ||
38 | <dependency> | ||
39 | <groupId>com.topdraw</groupId> | ||
40 | <artifactId>code-generator</artifactId> | ||
41 | <version>3.1.0</version> | ||
42 | </dependency> | ||
43 | |||
44 | <!-- Spring boot 热部署 : 此热部署会遇到 java.lang.ClassCastException 异常 --> | 37 | <!-- Spring boot 热部署 : 此热部署会遇到 java.lang.ClassCastException 异常 --> |
45 | <dependency> | 38 | <dependency> |
46 | <groupId>org.springframework.boot</groupId> | 39 | <groupId>org.springframework.boot</groupId> | ... | ... |
... | @@ -48,7 +48,7 @@ public class CouponHistory implements Serializable { | ... | @@ -48,7 +48,7 @@ public class CouponHistory implements Serializable { |
48 | 48 | ||
49 | // 领取时间 | 49 | // 领取时间 |
50 | @Column(name = "receive_time") | 50 | @Column(name = "receive_time") |
51 | private Timestamp receiveTime; | 51 | private LocalDateTime receiveTime; |
52 | 52 | ||
53 | // 失效时间 | 53 | // 失效时间 |
54 | @Column(name = "expire_time") | 54 | @Column(name = "expire_time") |
... | @@ -60,7 +60,7 @@ public class CouponHistory implements Serializable { | ... | @@ -60,7 +60,7 @@ public class CouponHistory implements Serializable { |
60 | 60 | ||
61 | // 使用时间 | 61 | // 使用时间 |
62 | @Column(name = "use_time") | 62 | @Column(name = "use_time") |
63 | private Timestamp useTime; | 63 | private LocalDateTime useTime; |
64 | 64 | ||
65 | // 订单详情id | 65 | // 订单详情id |
66 | @Column(name = "order_detail_id") | 66 | @Column(name = "order_detail_id") |
... | @@ -69,12 +69,12 @@ public class CouponHistory implements Serializable { | ... | @@ -69,12 +69,12 @@ public class CouponHistory implements Serializable { |
69 | // 创建时间 | 69 | // 创建时间 |
70 | @CreatedDate | 70 | @CreatedDate |
71 | @Column(name = "create_time") | 71 | @Column(name = "create_time") |
72 | private Timestamp createTime; | 72 | private LocalDateTime createTime; |
73 | 73 | ||
74 | // 更新时间 | 74 | // 更新时间 |
75 | @LastModifiedDate | 75 | @LastModifiedDate |
76 | @Column(name = "update_time") | 76 | @Column(name = "update_time") |
77 | private Timestamp updateTime; | 77 | private LocalDateTime updateTime; |
78 | 78 | ||
79 | public void copy(CouponHistory source){ | 79 | public void copy(CouponHistory source){ |
80 | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); | 80 | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); | ... | ... |
... | @@ -5,6 +5,7 @@ import org.springframework.data.jpa.repository.JpaRepository; | ... | @@ -5,6 +5,7 @@ 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.time.LocalDateTime; | ||
8 | 9 | ||
9 | /** | 10 | /** |
10 | * @author XiangHan | 11 | * @author XiangHan |
... | @@ -14,7 +15,7 @@ public interface CouponHistoryRepository extends JpaRepository<CouponHistory, Lo | ... | @@ -14,7 +15,7 @@ public interface CouponHistoryRepository extends JpaRepository<CouponHistory, Lo |
14 | 15 | ||
15 | Long countByUserId(Long userId); | 16 | Long countByUserId(Long userId); |
16 | 17 | ||
17 | Long countByUserIdAndExpireTimeBefore(Long userId, Timestamp now); | 18 | Long countByUserIdAndExpireTimeBefore(Long userId, LocalDateTime now); |
18 | 19 | ||
19 | Long countByUserIdAndExpireTimeBetween(Long userId, Timestamp now, Timestamp expireTime); | 20 | Long countByUserIdAndExpireTimeBetween(Long userId, LocalDateTime now, LocalDateTime expireTime); |
20 | } | 21 | } | ... | ... |
1 | package com.topdraw.business.module.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; | ||
5 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; | 4 | import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
6 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; | 5 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; |
7 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQueryCriteria; | 6 | import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class CouponHistoryController { | ... | @@ -35,7 +34,6 @@ public class CouponHistoryController { |
35 | return ResultInfo.success(CouponHistoryService.queryAll(criteria)); | 34 | return ResultInfo.success(CouponHistoryService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping(value = "/create") | 37 | @PostMapping(value = "/create") |
40 | @ApiOperation("新增CouponHistory") | 38 | @ApiOperation("新增CouponHistory") |
41 | public ResultInfo create(@Validated @RequestBody CouponHistory resources) { | 39 | public ResultInfo create(@Validated @RequestBody CouponHistory resources) { |
... | @@ -43,7 +41,6 @@ public class CouponHistoryController { | ... | @@ -43,7 +41,6 @@ public class CouponHistoryController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping(value = "/update") | 44 | @PutMapping(value = "/update") |
48 | @ApiOperation("修改CouponHistory") | 45 | @ApiOperation("修改CouponHistory") |
49 | public ResultInfo update(@Validated @RequestBody CouponHistory resources) { | 46 | public ResultInfo update(@Validated @RequestBody CouponHistory resources) { |
... | @@ -52,7 +49,6 @@ public class CouponHistoryController { | ... | @@ -52,7 +49,6 @@ public class CouponHistoryController { |
52 | } | 49 | } |
53 | 50 | ||
54 | 51 | ||
55 | @Log | ||
56 | @DeleteMapping(value = "/delete/{id}") | 52 | @DeleteMapping(value = "/delete/{id}") |
57 | @ApiOperation("删除CouponHistory") | 53 | @ApiOperation("删除CouponHistory") |
58 | public ResultInfo delete(@PathVariable Long id) { | 54 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -6,6 +6,7 @@ import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQuery | ... | @@ -6,6 +6,7 @@ import com.topdraw.business.module.coupon.history.service.dto.CouponHistoryQuery |
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.time.LocalDateTime; | ||
9 | import java.util.Map; | 10 | import java.util.Map; |
10 | import java.util.List; | 11 | import java.util.List; |
11 | 12 | ||
... | @@ -45,7 +46,7 @@ public interface CouponHistoryService { | ... | @@ -45,7 +46,7 @@ public interface CouponHistoryService { |
45 | 46 | ||
46 | Long countByUserId(Long userId); | 47 | Long countByUserId(Long userId); |
47 | 48 | ||
48 | Long countByUserIdAndExpireTimeBefore(Long userId, Timestamp now); | 49 | Long countByUserIdAndExpireTimeBefore(Long userId, LocalDateTime now); |
49 | 50 | ||
50 | Long countByUserIdAndExpireTimeBetween(Long userId, Timestamp now, Timestamp expireTime); | 51 | Long countByUserIdAndExpireTimeBetween(Long userId, LocalDateTime now, LocalDateTime expireTime); |
51 | } | 52 | } | ... | ... |
1 | package com.topdraw.business.module.coupon.history.service.dto; | 1 | package com.topdraw.business.module.coupon.history.service.dto; |
2 | 2 | ||
3 | import lombok.Data; | 3 | import lombok.Data; |
4 | import java.sql.Timestamp; | ||
5 | import java.io.Serializable; | 4 | import java.io.Serializable; |
6 | import java.time.LocalDateTime; | 5 | import java.time.LocalDateTime; |
7 | 6 | ||
... | @@ -29,7 +28,7 @@ public class CouponHistoryDTO implements Serializable { | ... | @@ -29,7 +28,7 @@ public class CouponHistoryDTO implements Serializable { |
29 | private String userNickname; | 28 | private String userNickname; |
30 | 29 | ||
31 | // 领取时间 | 30 | // 领取时间 |
32 | private Timestamp receiveTime; | 31 | private LocalDateTime receiveTime; |
33 | 32 | ||
34 | // 失效时间 | 33 | // 失效时间 |
35 | private LocalDateTime expireTime; | 34 | private LocalDateTime expireTime; |
... | @@ -38,14 +37,14 @@ public class CouponHistoryDTO implements Serializable { | ... | @@ -38,14 +37,14 @@ public class CouponHistoryDTO implements Serializable { |
38 | private Integer useStatus; | 37 | private Integer useStatus; |
39 | 38 | ||
40 | // 使用时间 | 39 | // 使用时间 |
41 | private Timestamp useTime; | 40 | private LocalDateTime useTime; |
42 | 41 | ||
43 | // 订单详情id | 42 | // 订单详情id |
44 | private Long orderDetailId; | 43 | private Long orderDetailId; |
45 | 44 | ||
46 | // 创建时间 | 45 | // 创建时间 |
47 | private Timestamp createTime; | 46 | private LocalDateTime createTime; |
48 | 47 | ||
49 | // 更新时间 | 48 | // 更新时间 |
50 | private Timestamp updateTime; | 49 | private LocalDateTime updateTime; |
51 | } | 50 | } | ... | ... |
... | @@ -20,6 +20,7 @@ import com.topdraw.utils.PageUtil; | ... | @@ -20,6 +20,7 @@ import com.topdraw.utils.PageUtil; |
20 | import com.topdraw.utils.QueryHelp; | 20 | import com.topdraw.utils.QueryHelp; |
21 | 21 | ||
22 | import java.sql.Timestamp; | 22 | import java.sql.Timestamp; |
23 | import java.time.LocalDateTime; | ||
23 | import java.util.List; | 24 | import java.util.List; |
24 | import java.util.Map; | 25 | import java.util.Map; |
25 | 26 | ||
... | @@ -87,12 +88,12 @@ public class CouponHistoryServiceImpl implements CouponHistoryService { | ... | @@ -87,12 +88,12 @@ public class CouponHistoryServiceImpl implements CouponHistoryService { |
87 | } | 88 | } |
88 | 89 | ||
89 | @Override | 90 | @Override |
90 | public Long countByUserIdAndExpireTimeBefore(Long userId, Timestamp now) { | 91 | public Long countByUserIdAndExpireTimeBefore(Long userId, LocalDateTime now) { |
91 | return this.CouponHistoryRepository.countByUserIdAndExpireTimeBefore(userId,now); | 92 | return this.CouponHistoryRepository.countByUserIdAndExpireTimeBefore(userId,now); |
92 | } | 93 | } |
93 | 94 | ||
94 | @Override | 95 | @Override |
95 | public Long countByUserIdAndExpireTimeBetween(Long userId, Timestamp now, Timestamp expireTime) { | 96 | public Long countByUserIdAndExpireTimeBetween(Long userId, LocalDateTime now, LocalDateTime expireTime) { |
96 | return this.CouponHistoryRepository.countByUserIdAndExpireTimeBetween(userId,now,expireTime); | 97 | return this.CouponHistoryRepository.countByUserIdAndExpireTimeBetween(userId,now,expireTime); |
97 | } | 98 | } |
98 | 99 | ... | ... |
1 | package com.topdraw.business.module.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; | ||
5 | import com.topdraw.business.module.coupon.domain.Coupon; | 4 | import com.topdraw.business.module.coupon.domain.Coupon; |
6 | import com.topdraw.business.module.coupon.service.CouponService; | 5 | import com.topdraw.business.module.coupon.service.CouponService; |
7 | import com.topdraw.business.module.coupon.service.dto.CouponQueryCriteria; | 6 | import com.topdraw.business.module.coupon.service.dto.CouponQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class CouponController { | ... | @@ -35,7 +34,6 @@ public class CouponController { |
35 | return ResultInfo.success(CouponService.queryAll(criteria)); | 34 | return ResultInfo.success(CouponService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping(value = "/create") | 37 | @PostMapping(value = "/create") |
40 | @ApiOperation("新增Coupon") | 38 | @ApiOperation("新增Coupon") |
41 | public ResultInfo create(@Validated @RequestBody Coupon resources) { | 39 | public ResultInfo create(@Validated @RequestBody Coupon resources) { |
... | @@ -43,7 +41,6 @@ public class CouponController { | ... | @@ -43,7 +41,6 @@ public class CouponController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping(value = "/update") | 44 | @PutMapping(value = "/update") |
48 | @ApiOperation("修改Coupon") | 45 | @ApiOperation("修改Coupon") |
49 | public ResultInfo update(@Validated @RequestBody Coupon resources) { | 46 | public ResultInfo update(@Validated @RequestBody Coupon resources) { |
... | @@ -51,8 +48,6 @@ public class CouponController { | ... | @@ -51,8 +48,6 @@ public class CouponController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/delete/{id}") | 51 | @DeleteMapping(value = "/delete/{id}") |
57 | @ApiOperation("删除Coupon") | 52 | @ApiOperation("删除Coupon") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.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; | ||
5 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; | 4 | import com.topdraw.business.module.exp.detail.domain.ExpDetail; |
6 | import com.topdraw.business.module.exp.detail.service.ExpDetailService; | 5 | import com.topdraw.business.module.exp.detail.service.ExpDetailService; |
7 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailQueryCriteria; | 6 | import com.topdraw.business.module.exp.detail.service.dto.ExpDetailQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class ExpDetailController { | ... | @@ -35,7 +34,6 @@ public class ExpDetailController { |
35 | return ResultInfo.success(ExpDetailService.queryAll(criteria)); | 34 | return ResultInfo.success(ExpDetailService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping(value = "/create") | 37 | @PostMapping(value = "/create") |
40 | @ApiOperation("新增ExpDetail") | 38 | @ApiOperation("新增ExpDetail") |
41 | public ResultInfo create(@Validated @RequestBody ExpDetail resources) { | 39 | public ResultInfo create(@Validated @RequestBody ExpDetail resources) { |
... | @@ -43,7 +41,6 @@ public class ExpDetailController { | ... | @@ -43,7 +41,6 @@ public class ExpDetailController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping(value = "/update") | 44 | @PutMapping(value = "/update") |
48 | @ApiOperation("修改ExpDetail") | 45 | @ApiOperation("修改ExpDetail") |
49 | public ResultInfo update(@Validated @RequestBody ExpDetail resources) { | 46 | public ResultInfo update(@Validated @RequestBody ExpDetail resources) { |
... | @@ -51,8 +48,6 @@ public class ExpDetailController { | ... | @@ -51,8 +48,6 @@ public class ExpDetailController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/delete/{id}") | 51 | @DeleteMapping(value = "/delete/{id}") |
57 | @ApiOperation("删除ExpDetail") | 52 | @ApiOperation("删除ExpDetail") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -3,7 +3,6 @@ package com.topdraw.business.module.member.address.rest; | ... | @@ -3,7 +3,6 @@ package com.topdraw.business.module.member.address.rest; |
3 | import com.topdraw.business.module.member.service.MemberService; | 3 | import com.topdraw.business.module.member.service.MemberService; |
4 | import com.topdraw.business.module.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; | ||
7 | import com.topdraw.business.module.member.address.domain.MemberAddress; | 6 | import com.topdraw.business.module.member.address.domain.MemberAddress; |
8 | import com.topdraw.business.module.member.address.service.MemberAddressService; | 7 | import com.topdraw.business.module.member.address.service.MemberAddressService; |
9 | import com.topdraw.business.module.member.address.service.dto.MemberAddressQueryCriteria; | 8 | import com.topdraw.business.module.member.address.service.dto.MemberAddressQueryCriteria; |
... | @@ -43,7 +42,6 @@ public class MemberAddressController { | ... | @@ -43,7 +42,6 @@ public class MemberAddressController { |
43 | return ResultInfo.success(MemberAddressService.findById(id)); | 42 | return ResultInfo.success(MemberAddressService.findById(id)); |
44 | } | 43 | } |
45 | 44 | ||
46 | @Log | ||
47 | @PostMapping(value = "/create") | 45 | @PostMapping(value = "/create") |
48 | @ApiOperation("新增MemberAddress") | 46 | @ApiOperation("新增MemberAddress") |
49 | public ResultInfo create(@Validated @RequestBody MemberAddress resources) { | 47 | public ResultInfo create(@Validated @RequestBody MemberAddress resources) { |
... | @@ -51,7 +49,6 @@ public class MemberAddressController { | ... | @@ -51,7 +49,6 @@ public class MemberAddressController { |
51 | return ResultInfo.success(); | 49 | return ResultInfo.success(); |
52 | } | 50 | } |
53 | 51 | ||
54 | @Log | ||
55 | @PutMapping(value = "/update") | 52 | @PutMapping(value = "/update") |
56 | @ApiOperation("修改MemberAddress") | 53 | @ApiOperation("修改MemberAddress") |
57 | public ResultInfo update(@Validated @RequestBody MemberAddress resources) { | 54 | public ResultInfo update(@Validated @RequestBody MemberAddress resources) { |
... | @@ -69,7 +66,6 @@ public class MemberAddressController { | ... | @@ -69,7 +66,6 @@ public class MemberAddressController { |
69 | return ResultInfo.success(); | 66 | return ResultInfo.success(); |
70 | } | 67 | } |
71 | 68 | ||
72 | @Log | ||
73 | @DeleteMapping(value = "/delete/{id}") | 69 | @DeleteMapping(value = "/delete/{id}") |
74 | @ApiOperation("删除MemberAddress") | 70 | @ApiOperation("删除MemberAddress") |
75 | public ResultInfo delete(@PathVariable Long id) { | 71 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -116,17 +116,17 @@ public class Member implements Serializable { | ... | @@ -116,17 +116,17 @@ public class Member implements Serializable { |
116 | 116 | ||
117 | /** iptv账号绑定时间 */ | 117 | /** iptv账号绑定时间 */ |
118 | @Column(name = "bind_iptv_time") | 118 | @Column(name = "bind_iptv_time") |
119 | private Timestamp bindIptvTime; | 119 | private LocalDateTime bindIptvTime; |
120 | 120 | ||
121 | /** 创建时间 */ | 121 | /** 创建时间 */ |
122 | @CreatedDate | 122 | @CreatedDate |
123 | @Column(name = "create_time") | 123 | @Column(name = "create_time") |
124 | private Timestamp createTime; | 124 | private LocalDateTime createTime; |
125 | 125 | ||
126 | /** 更新时间 */ | 126 | /** 更新时间 */ |
127 | @LastModifiedDate | 127 | @LastModifiedDate |
128 | @Column(name = "update_time") | 128 | @Column(name = "update_time") |
129 | private Timestamp updateTime; | 129 | private LocalDateTime updateTime; |
130 | 130 | ||
131 | /** 是否在黑名单 1:是;0否 */ | 131 | /** 是否在黑名单 1:是;0否 */ |
132 | @Column(name = "black_status") | 132 | @Column(name = "black_status") | ... | ... |
1 | package com.topdraw.business.module.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; | ||
5 | import com.topdraw.business.module.member.group.domain.MemberGroup; | 4 | import com.topdraw.business.module.member.group.domain.MemberGroup; |
6 | import com.topdraw.business.module.member.group.service.MemberGroupService; | 5 | import com.topdraw.business.module.member.group.service.MemberGroupService; |
7 | import com.topdraw.business.module.member.group.service.dto.MemberGroupQueryCriteria; | 6 | import com.topdraw.business.module.member.group.service.dto.MemberGroupQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class MemberGroupController { | ... | @@ -35,7 +34,6 @@ public class MemberGroupController { |
35 | return ResultInfo.success(MemberGroupService.queryAll(criteria)); | 34 | return ResultInfo.success(MemberGroupService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping | 37 | @PostMapping |
40 | @ApiOperation("新增MemberGroup") | 38 | @ApiOperation("新增MemberGroup") |
41 | public ResultInfo create(@Validated @RequestBody MemberGroup resources) { | 39 | public ResultInfo create(@Validated @RequestBody MemberGroup resources) { |
... | @@ -43,7 +41,6 @@ public class MemberGroupController { | ... | @@ -43,7 +41,6 @@ public class MemberGroupController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping | 44 | @PutMapping |
48 | @ApiOperation("修改MemberGroup") | 45 | @ApiOperation("修改MemberGroup") |
49 | public ResultInfo update(@Validated @RequestBody MemberGroup resources) { | 46 | public ResultInfo update(@Validated @RequestBody MemberGroup resources) { |
... | @@ -51,8 +48,6 @@ public class MemberGroupController { | ... | @@ -51,8 +48,6 @@ public class MemberGroupController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/{id}") | 51 | @DeleteMapping(value = "/{id}") |
57 | @ApiOperation("删除MemberGroup") | 52 | @ApiOperation("删除MemberGroup") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -5,7 +5,6 @@ import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; | ... | @@ -5,7 +5,6 @@ import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
5 | import com.topdraw.business.module.member.service.MemberService; | 5 | import com.topdraw.business.module.member.service.MemberService; |
6 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 6 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
7 | import com.topdraw.common.ResultInfo; | 7 | import com.topdraw.common.ResultInfo; |
8 | import com.topdraw.annotation.Log; | ||
9 | import com.topdraw.business.module.member.profile.domain.MemberProfile; | 8 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
10 | import com.topdraw.business.module.member.profile.service.MemberProfileService; | 9 | import com.topdraw.business.module.member.profile.service.MemberProfileService; |
11 | import com.topdraw.utils.StringUtils; | 10 | import com.topdraw.utils.StringUtils; |
... | @@ -44,7 +43,6 @@ public class MemberProfileController { | ... | @@ -44,7 +43,6 @@ public class MemberProfileController { |
44 | return ResultInfo.success(MemberProfileService.queryAll(criteria)); | 43 | return ResultInfo.success(MemberProfileService.queryAll(criteria)); |
45 | }*/ | 44 | }*/ |
46 | 45 | ||
47 | @Log | ||
48 | @PostMapping(value = "/create") | 46 | @PostMapping(value = "/create") |
49 | @ApiOperation("新增MemberProfile") | 47 | @ApiOperation("新增MemberProfile") |
50 | @AnonymousAccess | 48 | @AnonymousAccess |
... | @@ -53,7 +51,6 @@ public class MemberProfileController { | ... | @@ -53,7 +51,6 @@ public class MemberProfileController { |
53 | return ResultInfo.success(); | 51 | return ResultInfo.success(); |
54 | } | 52 | } |
55 | 53 | ||
56 | @Log | ||
57 | @PutMapping(value = "/update") | 54 | @PutMapping(value = "/update") |
58 | @ApiOperation("修改MemberProfile") | 55 | @ApiOperation("修改MemberProfile") |
59 | @AnonymousAccess | 56 | @AnonymousAccess |
... | @@ -78,7 +75,6 @@ public class MemberProfileController { | ... | @@ -78,7 +75,6 @@ public class MemberProfileController { |
78 | return ResultInfo.success(); | 75 | return ResultInfo.success(); |
79 | } | 76 | } |
80 | 77 | ||
81 | @Log | ||
82 | @PutMapping | 78 | @PutMapping |
83 | @ApiOperation("修改MemberProfile") | 79 | @ApiOperation("修改MemberProfile") |
84 | @AnonymousAccess | 80 | @AnonymousAccess |
... | @@ -87,8 +83,6 @@ public class MemberProfileController { | ... | @@ -87,8 +83,6 @@ public class MemberProfileController { |
87 | return ResultInfo.success(); | 83 | return ResultInfo.success(); |
88 | } | 84 | } |
89 | 85 | ||
90 | |||
91 | @Log | ||
92 | @DeleteMapping(value = "/delete/{id}") | 86 | @DeleteMapping(value = "/delete/{id}") |
93 | @ApiOperation("删除MemberProfile") | 87 | @ApiOperation("删除MemberProfile") |
94 | public ResultInfo delete(@PathVariable Long id) { | 88 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -6,7 +6,6 @@ import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedI | ... | @@ -6,7 +6,6 @@ import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedI |
6 | import com.topdraw.business.module.member.service.MemberService; | 6 | import com.topdraw.business.module.member.service.MemberService; |
7 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 7 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
8 | import com.topdraw.common.ResultInfo; | 8 | import com.topdraw.common.ResultInfo; |
9 | import com.topdraw.annotation.Log; | ||
10 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; | 9 | import com.topdraw.business.module.member.relatedinfo.domain.MemberRelatedInfo; |
11 | import com.topdraw.business.module.member.relatedinfo.service.MemberRelatedInfoService; | 10 | import com.topdraw.business.module.member.relatedinfo.service.MemberRelatedInfoService; |
12 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; | 11 | import com.topdraw.business.module.member.relatedinfo.service.dto.MemberRelatedInfoQueryCriteria; |
... | @@ -46,7 +45,6 @@ public class MemberRelatedInfoController { | ... | @@ -46,7 +45,6 @@ public class MemberRelatedInfoController { |
46 | return ResultInfo.successPage(MemberRelatedInfoService.queryAll(criteria,pageable)); | 45 | return ResultInfo.successPage(MemberRelatedInfoService.queryAll(criteria,pageable)); |
47 | } | 46 | } |
48 | 47 | ||
49 | @Log | ||
50 | @PostMapping(value = "/create") | 48 | @PostMapping(value = "/create") |
51 | @ApiOperation("新增MemberRelatedInfo") | 49 | @ApiOperation("新增MemberRelatedInfo") |
52 | @AnonymousAccess | 50 | @AnonymousAccess |
... | @@ -55,7 +53,6 @@ public class MemberRelatedInfoController { | ... | @@ -55,7 +53,6 @@ public class MemberRelatedInfoController { |
55 | return ResultInfo.success(); | 53 | return ResultInfo.success(); |
56 | } | 54 | } |
57 | 55 | ||
58 | @Log("修改MemberRelatedInfo") | ||
59 | @PutMapping(value = "/update") | 56 | @PutMapping(value = "/update") |
60 | @ApiOperation("修改MemberRelatedInfo") | 57 | @ApiOperation("修改MemberRelatedInfo") |
61 | @AnonymousAccess | 58 | @AnonymousAccess |
... | @@ -96,7 +93,6 @@ public class MemberRelatedInfoController { | ... | @@ -96,7 +93,6 @@ public class MemberRelatedInfoController { |
96 | return ResultInfo.success(MemberRelatedInfoService.findById(id)); | 93 | return ResultInfo.success(MemberRelatedInfoService.findById(id)); |
97 | } | 94 | } |
98 | 95 | ||
99 | @Log | ||
100 | @DeleteMapping(value = "/delete/{id}") | 96 | @DeleteMapping(value = "/delete/{id}") |
101 | @ApiOperation("删除MemberRelatedInfo") | 97 | @ApiOperation("删除MemberRelatedInfo") |
102 | @AnonymousAccess | 98 | @AnonymousAccess | ... | ... |
1 | package com.topdraw.business.module.member.rest; | 1 | package com.topdraw.business.module.member.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.AnonymousAccess; | 3 | import com.topdraw.annotation.AnonymousAccess; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.member.domain.Member; | 4 | import com.topdraw.business.module.member.domain.Member; |
6 | import com.topdraw.business.module.member.service.MemberService; | 5 | import com.topdraw.business.module.member.service.MemberService; |
7 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 6 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
... | @@ -36,7 +35,6 @@ public class MemberController { | ... | @@ -36,7 +35,6 @@ public class MemberController { |
36 | @Autowired | 35 | @Autowired |
37 | private UserOperationService userTvOperationService; | 36 | private UserOperationService userTvOperationService; |
38 | 37 | ||
39 | @Log | ||
40 | @GetMapping(value = "/findById/{id}") | 38 | @GetMapping(value = "/findById/{id}") |
41 | @ApiOperation("新增UserTv会员") | 39 | @ApiOperation("新增UserTv会员") |
42 | public ResultInfo findById(@PathVariable Long id) { | 40 | public ResultInfo findById(@PathVariable Long id) { |
... | @@ -44,7 +42,6 @@ public class MemberController { | ... | @@ -44,7 +42,6 @@ public class MemberController { |
44 | return ResultInfo.success(memberDTO); | 42 | return ResultInfo.success(memberDTO); |
45 | } | 43 | } |
46 | 44 | ||
47 | @Log | ||
48 | @PostMapping(value = "/createMemberByUserTv") | 45 | @PostMapping(value = "/createMemberByUserTv") |
49 | @ApiOperation("新增UserTv会员") | 46 | @ApiOperation("新增UserTv会员") |
50 | public ResultInfo createMemberByUserTv(@Validated @RequestBody UserTv resources) { | 47 | public ResultInfo createMemberByUserTv(@Validated @RequestBody UserTv resources) { |
... | @@ -54,7 +51,6 @@ public class MemberController { | ... | @@ -54,7 +51,6 @@ public class MemberController { |
54 | return ResultInfo.success(result); | 51 | return ResultInfo.success(result); |
55 | } | 52 | } |
56 | 53 | ||
57 | @Log | ||
58 | @PostMapping(value = "/create") | 54 | @PostMapping(value = "/create") |
59 | @ApiOperation("新增Member") | 55 | @ApiOperation("新增Member") |
60 | public ResultInfo create(@Validated @RequestBody Member resources) { | 56 | public ResultInfo create(@Validated @RequestBody Member resources) { |
... | @@ -62,7 +58,6 @@ public class MemberController { | ... | @@ -62,7 +58,6 @@ public class MemberController { |
62 | return ResultInfo.success(id); | 58 | return ResultInfo.success(id); |
63 | } | 59 | } |
64 | 60 | ||
65 | @Log | ||
66 | @PostMapping(value = "/doUpdateVip") | 61 | @PostMapping(value = "/doUpdateVip") |
67 | @ApiOperation("修改Member等级") | 62 | @ApiOperation("修改Member等级") |
68 | public ResultInfo doUpdateVip(@RequestBody Member member) { | 63 | public ResultInfo doUpdateVip(@RequestBody Member member) { |
... | @@ -70,7 +65,6 @@ public class MemberController { | ... | @@ -70,7 +65,6 @@ public class MemberController { |
70 | return ResultInfo.success(); | 65 | return ResultInfo.success(); |
71 | } | 66 | } |
72 | 67 | ||
73 | @Log | ||
74 | @PutMapping(value = "/update") | 68 | @PutMapping(value = "/update") |
75 | @ApiOperation("修改Member") | 69 | @ApiOperation("修改Member") |
76 | @AnonymousAccess | 70 | @AnonymousAccess | ... | ... |
... | @@ -81,13 +81,13 @@ public class MemberDTO implements Serializable { | ... | @@ -81,13 +81,13 @@ public class MemberDTO implements Serializable { |
81 | private Integer bindIptvPlatformType; | 81 | private Integer bindIptvPlatformType; |
82 | 82 | ||
83 | // iptv账号绑定时间 | 83 | // iptv账号绑定时间 |
84 | private Timestamp bindIptvTime; | 84 | private LocalDateTime bindIptvTime; |
85 | 85 | ||
86 | // 创建时间 | 86 | // 创建时间 |
87 | private Timestamp createTime; | 87 | private LocalDateTime createTime; |
88 | 88 | ||
89 | // 更新时间 | 89 | // 更新时间 |
90 | private Timestamp updateTime; | 90 | private LocalDateTime updateTime; |
91 | 91 | ||
92 | // 是否在黑名单 1:是;0否 | 92 | // 是否在黑名单 1:是;0否 |
93 | private Long blackStatus; | 93 | private Long blackStatus; | ... | ... |
1 | package com.topdraw.business.module.member.viphistory.rest; | 1 | package com.topdraw.business.module.member.viphistory.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.Log; | ||
4 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | 3 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; |
5 | import com.topdraw.business.module.member.viphistory.service.MemberVipHistoryService; | 4 | import com.topdraw.business.module.member.viphistory.service.MemberVipHistoryService; |
6 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryQueryCriteria; | 5 | import com.topdraw.business.module.member.viphistory.service.dto.MemberVipHistoryQueryCriteria; |
... | @@ -36,7 +35,6 @@ public class MemberVipHistoryController { | ... | @@ -36,7 +35,6 @@ public class MemberVipHistoryController { |
36 | return ResultInfo.success(memberVipHistoryService.queryAll(criteria)); | 35 | return ResultInfo.success(memberVipHistoryService.queryAll(criteria)); |
37 | } | 36 | } |
38 | 37 | ||
39 | @Log | ||
40 | @PostMapping | 38 | @PostMapping |
41 | @ApiOperation("新增MemberVipHistory") | 39 | @ApiOperation("新增MemberVipHistory") |
42 | public ResultInfo create(@Validated @RequestBody MemberVipHistory resources) { | 40 | public ResultInfo create(@Validated @RequestBody MemberVipHistory resources) { |
... | @@ -44,7 +42,6 @@ public class MemberVipHistoryController { | ... | @@ -44,7 +42,6 @@ public class MemberVipHistoryController { |
44 | return ResultInfo.success(); | 42 | return ResultInfo.success(); |
45 | } | 43 | } |
46 | 44 | ||
47 | @Log | ||
48 | @PutMapping | 45 | @PutMapping |
49 | @ApiOperation("修改MemberVipHistory") | 46 | @ApiOperation("修改MemberVipHistory") |
50 | public ResultInfo update(@Validated @RequestBody MemberVipHistory resources) { | 47 | public ResultInfo update(@Validated @RequestBody MemberVipHistory resources) { |
... | @@ -52,8 +49,6 @@ public class MemberVipHistoryController { | ... | @@ -52,8 +49,6 @@ public class MemberVipHistoryController { |
52 | return ResultInfo.success(); | 49 | return ResultInfo.success(); |
53 | } | 50 | } |
54 | 51 | ||
55 | |||
56 | @Log | ||
57 | @DeleteMapping(value = "/{id}") | 52 | @DeleteMapping(value = "/{id}") |
58 | @ApiOperation("删除MemberVipHistory") | 53 | @ApiOperation("删除MemberVipHistory") |
59 | public ResultInfo delete(@PathVariable Long id) { | 54 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.points.standingbook.rest; | 1 | package com.topdraw.business.module.points.standingbook.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.points.standingbook.domain.PointsStandingBook; | 4 | import com.topdraw.business.module.points.standingbook.domain.PointsStandingBook; |
6 | import com.topdraw.business.module.points.standingbook.service.PointsStandingBookService; | 5 | import com.topdraw.business.module.points.standingbook.service.PointsStandingBookService; |
7 | import com.topdraw.business.module.points.standingbook.service.dto.PointsStandingBookQueryCriteria; | 6 | import com.topdraw.business.module.points.standingbook.service.dto.PointsStandingBookQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class PointsStandingBookController { | ... | @@ -35,7 +34,6 @@ public class PointsStandingBookController { |
35 | return ResultInfo.success(PointsStandingBookService.queryAll(criteria)); | 34 | return ResultInfo.success(PointsStandingBookService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping | 37 | @PostMapping |
40 | @ApiOperation("新增PointsStandingBook") | 38 | @ApiOperation("新增PointsStandingBook") |
41 | public ResultInfo create(@Validated @RequestBody PointsStandingBook resources) { | 39 | public ResultInfo create(@Validated @RequestBody PointsStandingBook resources) { |
... | @@ -43,7 +41,6 @@ public class PointsStandingBookController { | ... | @@ -43,7 +41,6 @@ public class PointsStandingBookController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping | 44 | @PutMapping |
48 | @ApiOperation("修改PointsStandingBook") | 45 | @ApiOperation("修改PointsStandingBook") |
49 | public ResultInfo update(@Validated @RequestBody PointsStandingBook resources) { | 46 | public ResultInfo update(@Validated @RequestBody PointsStandingBook resources) { |
... | @@ -51,8 +48,6 @@ public class PointsStandingBookController { | ... | @@ -51,8 +48,6 @@ public class PointsStandingBookController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/{id}") | 51 | @DeleteMapping(value = "/{id}") |
57 | @ApiOperation("删除PointsStandingBook") | 52 | @ApiOperation("删除PointsStandingBook") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.rights.permanentrights.rest; | 1 | package com.topdraw.business.module.rights.permanentrights.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.rights.permanentrights.domain.PermanentRights; | 4 | import com.topdraw.business.module.rights.permanentrights.domain.PermanentRights; |
6 | import com.topdraw.business.module.rights.permanentrights.service.PermanentRightsService; | 5 | import com.topdraw.business.module.rights.permanentrights.service.PermanentRightsService; |
7 | import com.topdraw.business.module.rights.permanentrights.service.dto.PermanentRightsQueryCriteria; | 6 | import com.topdraw.business.module.rights.permanentrights.service.dto.PermanentRightsQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class PermanentRightsController { | ... | @@ -35,7 +34,6 @@ public class PermanentRightsController { |
35 | return ResultInfo.success(PermanentRightsService.findById(id)); | 34 | return ResultInfo.success(PermanentRightsService.findById(id)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping(value = "/create") | 37 | @PostMapping(value = "/create") |
40 | @ApiOperation("新增PermanentRights") | 38 | @ApiOperation("新增PermanentRights") |
41 | public ResultInfo create(@Validated @RequestBody PermanentRights resources) { | 39 | public ResultInfo create(@Validated @RequestBody PermanentRights resources) { |
... | @@ -43,7 +41,6 @@ public class PermanentRightsController { | ... | @@ -43,7 +41,6 @@ public class PermanentRightsController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping(value = "/update") | 44 | @PutMapping(value = "/update") |
48 | @ApiOperation("修改PermanentRights") | 45 | @ApiOperation("修改PermanentRights") |
49 | public ResultInfo update(@Validated @RequestBody PermanentRights resources) { | 46 | public ResultInfo update(@Validated @RequestBody PermanentRights resources) { |
... | @@ -51,7 +48,6 @@ public class PermanentRightsController { | ... | @@ -51,7 +48,6 @@ public class PermanentRightsController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | @Log | ||
55 | @DeleteMapping(value = "/delete/{id}") | 51 | @DeleteMapping(value = "/delete/{id}") |
56 | @ApiOperation("删除PermanentRights") | 52 | @ApiOperation("删除PermanentRights") |
57 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.task.attribute.rest; | 1 | package com.topdraw.business.module.task.attribute.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.task.attribute.domain.TaskAttr; | 4 | import com.topdraw.business.module.task.attribute.domain.TaskAttr; |
6 | import com.topdraw.business.module.task.attribute.service.TaskAttrService; | 5 | import com.topdraw.business.module.task.attribute.service.TaskAttrService; |
7 | import com.topdraw.business.module.task.attribute.service.dto.TaskAttrQueryCriteria; | 6 | import com.topdraw.business.module.task.attribute.service.dto.TaskAttrQueryCriteria; |
... | @@ -39,7 +38,6 @@ public class TaskAttrController { | ... | @@ -39,7 +38,6 @@ public class TaskAttrController { |
39 | return ResultInfo.success(TaskAttrService.queryAll(criteria)); | 38 | return ResultInfo.success(TaskAttrService.queryAll(criteria)); |
40 | } | 39 | } |
41 | 40 | ||
42 | @Log | ||
43 | @PostMapping | 41 | @PostMapping |
44 | @ApiOperation("新增TaskAttr") | 42 | @ApiOperation("新增TaskAttr") |
45 | public ResultInfo create(@Validated @RequestBody TaskAttr resources) { | 43 | public ResultInfo create(@Validated @RequestBody TaskAttr resources) { |
... | @@ -47,7 +45,6 @@ public class TaskAttrController { | ... | @@ -47,7 +45,6 @@ public class TaskAttrController { |
47 | return ResultInfo.success(); | 45 | return ResultInfo.success(); |
48 | } | 46 | } |
49 | 47 | ||
50 | @Log | ||
51 | @PutMapping | 48 | @PutMapping |
52 | @ApiOperation("修改TaskAttr") | 49 | @ApiOperation("修改TaskAttr") |
53 | public ResultInfo update(@Validated @RequestBody TaskAttr resources) { | 50 | public ResultInfo update(@Validated @RequestBody TaskAttr resources) { |
... | @@ -55,8 +52,6 @@ public class TaskAttrController { | ... | @@ -55,8 +52,6 @@ public class TaskAttrController { |
55 | return ResultInfo.success(); | 52 | return ResultInfo.success(); |
56 | } | 53 | } |
57 | 54 | ||
58 | |||
59 | @Log | ||
60 | @DeleteMapping(value = "/{id}") | 55 | @DeleteMapping(value = "/{id}") |
61 | @ApiOperation("删除TaskAttr") | 56 | @ApiOperation("删除TaskAttr") |
62 | public ResultInfo delete(@PathVariable Long id) { | 57 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.task.progress.rest; | 1 | package com.topdraw.business.module.task.progress.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.task.progress.domain.TrTaskProgress; | 4 | import com.topdraw.business.module.task.progress.domain.TrTaskProgress; |
6 | import com.topdraw.business.module.task.progress.service.TrTaskProgressService; | 5 | import com.topdraw.business.module.task.progress.service.TrTaskProgressService; |
7 | import com.topdraw.business.module.task.progress.service.dto.TrTaskProgressQueryCriteria; | 6 | import com.topdraw.business.module.task.progress.service.dto.TrTaskProgressQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class TrTaskProgressController { | ... | @@ -35,7 +34,6 @@ public class TrTaskProgressController { |
35 | return ResultInfo.success(TrTaskProgressService.queryAll(criteria)); | 34 | return ResultInfo.success(TrTaskProgressService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping | 37 | @PostMapping |
40 | @ApiOperation("新增TrTaskProgress") | 38 | @ApiOperation("新增TrTaskProgress") |
41 | public ResultInfo create(@Validated @RequestBody TrTaskProgress resources) { | 39 | public ResultInfo create(@Validated @RequestBody TrTaskProgress resources) { |
... | @@ -43,7 +41,6 @@ public class TrTaskProgressController { | ... | @@ -43,7 +41,6 @@ public class TrTaskProgressController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping | 44 | @PutMapping |
48 | @ApiOperation("修改TrTaskProgress") | 45 | @ApiOperation("修改TrTaskProgress") |
49 | public ResultInfo update(@Validated @RequestBody TrTaskProgress resources) { | 46 | public ResultInfo update(@Validated @RequestBody TrTaskProgress resources) { |
... | @@ -51,8 +48,6 @@ public class TrTaskProgressController { | ... | @@ -51,8 +48,6 @@ public class TrTaskProgressController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/{id}") | 51 | @DeleteMapping(value = "/{id}") |
57 | @ApiOperation("删除TrTaskProgress") | 52 | @ApiOperation("删除TrTaskProgress") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.task.rest; | 1 | package com.topdraw.business.module.task.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.task.domain.Task; | 4 | import com.topdraw.business.module.task.domain.Task; |
6 | import com.topdraw.business.module.task.service.TaskService; | 5 | import com.topdraw.business.module.task.service.TaskService; |
7 | import com.topdraw.business.module.task.service.dto.TaskQueryCriteria; | 6 | import com.topdraw.business.module.task.service.dto.TaskQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class TaskController { | ... | @@ -35,7 +34,6 @@ public class TaskController { |
35 | return ResultInfo.success(TaskService.queryAll(criteria)); | 34 | return ResultInfo.success(TaskService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping | 37 | @PostMapping |
40 | @ApiOperation("新增Task") | 38 | @ApiOperation("新增Task") |
41 | public ResultInfo create(@Validated @RequestBody Task resources) { | 39 | public ResultInfo create(@Validated @RequestBody Task resources) { |
... | @@ -43,7 +41,6 @@ public class TaskController { | ... | @@ -43,7 +41,6 @@ public class TaskController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping | 44 | @PutMapping |
48 | @ApiOperation("修改Task") | 45 | @ApiOperation("修改Task") |
49 | public ResultInfo update(@Validated @RequestBody Task resources) { | 46 | public ResultInfo update(@Validated @RequestBody Task resources) { |
... | @@ -51,8 +48,6 @@ public class TaskController { | ... | @@ -51,8 +48,6 @@ public class TaskController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/{id}") | 51 | @DeleteMapping(value = "/{id}") |
57 | @ApiOperation("删除Task") | 52 | @ApiOperation("删除Task") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.module.task.template.rest; | 1 | package com.topdraw.business.module.task.template.rest; |
2 | 2 | ||
3 | import com.topdraw.common.ResultInfo; | 3 | import com.topdraw.common.ResultInfo; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.task.template.domain.TaskTemplate; | 4 | import com.topdraw.business.module.task.template.domain.TaskTemplate; |
6 | import com.topdraw.business.module.task.template.service.TaskTemplateService; | 5 | import com.topdraw.business.module.task.template.service.TaskTemplateService; |
7 | import com.topdraw.business.module.task.template.service.dto.TaskTemplateQueryCriteria; | 6 | import com.topdraw.business.module.task.template.service.dto.TaskTemplateQueryCriteria; |
... | @@ -35,7 +34,6 @@ public class TaskTemplateController { | ... | @@ -35,7 +34,6 @@ public class TaskTemplateController { |
35 | return ResultInfo.success(TaskTemplateService.queryAll(criteria)); | 34 | return ResultInfo.success(TaskTemplateService.queryAll(criteria)); |
36 | } | 35 | } |
37 | 36 | ||
38 | @Log | ||
39 | @PostMapping | 37 | @PostMapping |
40 | @ApiOperation("新增TaskTemplate") | 38 | @ApiOperation("新增TaskTemplate") |
41 | public ResultInfo create(@Validated @RequestBody TaskTemplate resources) { | 39 | public ResultInfo create(@Validated @RequestBody TaskTemplate resources) { |
... | @@ -43,7 +41,6 @@ public class TaskTemplateController { | ... | @@ -43,7 +41,6 @@ public class TaskTemplateController { |
43 | return ResultInfo.success(); | 41 | return ResultInfo.success(); |
44 | } | 42 | } |
45 | 43 | ||
46 | @Log | ||
47 | @PutMapping | 44 | @PutMapping |
48 | @ApiOperation("修改TaskTemplate") | 45 | @ApiOperation("修改TaskTemplate") |
49 | public ResultInfo update(@Validated @RequestBody TaskTemplate resources) { | 46 | public ResultInfo update(@Validated @RequestBody TaskTemplate resources) { |
... | @@ -51,8 +48,6 @@ public class TaskTemplateController { | ... | @@ -51,8 +48,6 @@ public class TaskTemplateController { |
51 | return ResultInfo.success(); | 48 | return ResultInfo.success(); |
52 | } | 49 | } |
53 | 50 | ||
54 | |||
55 | @Log | ||
56 | @DeleteMapping(value = "/{id}") | 51 | @DeleteMapping(value = "/{id}") |
57 | @ApiOperation("删除TaskTemplate") | 52 | @ApiOperation("删除TaskTemplate") |
58 | public ResultInfo delete(@PathVariable Long id) { | 53 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -15,4 +15,6 @@ public interface UserTvRepository extends JpaRepository<UserTv, Long>, JpaSpecif | ... | @@ -15,4 +15,6 @@ public interface UserTvRepository extends JpaRepository<UserTv, Long>, JpaSpecif |
15 | Optional<UserTv> findByPlatformAccount(String platformAccount); | 15 | Optional<UserTv> findByPlatformAccount(String platformAccount); |
16 | 16 | ||
17 | Optional<UserTv> findByPriorityMemberCode(String memberCode); | 17 | Optional<UserTv> findByPriorityMemberCode(String memberCode); |
18 | |||
19 | Optional<UserTv> findByMemberId(Long memberId); | ||
18 | } | 20 | } | ... | ... |
... | @@ -2,7 +2,6 @@ package com.topdraw.business.module.user.iptv.rest; | ... | @@ -2,7 +2,6 @@ package com.topdraw.business.module.user.iptv.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.AnonymousAccess; | 3 | import com.topdraw.annotation.AnonymousAccess; |
4 | import com.topdraw.common.ResultInfo; | 4 | import com.topdraw.common.ResultInfo; |
5 | import com.topdraw.annotation.Log; | ||
6 | import com.topdraw.business.module.user.iptv.domain.UserTv; | 5 | import com.topdraw.business.module.user.iptv.domain.UserTv; |
7 | import com.topdraw.business.module.user.iptv.service.UserTvService; | 6 | import com.topdraw.business.module.user.iptv.service.UserTvService; |
8 | import com.topdraw.business.module.user.iptv.service.dto.UserTvQueryCriteria; | 7 | import com.topdraw.business.module.user.iptv.service.dto.UserTvQueryCriteria; |
... | @@ -36,7 +35,6 @@ public class UserTvController { | ... | @@ -36,7 +35,6 @@ public class UserTvController { |
36 | return ResultInfo.success(UserTvService.queryAll(criteria)); | 35 | return ResultInfo.success(UserTvService.queryAll(criteria)); |
37 | } | 36 | } |
38 | 37 | ||
39 | @Log | ||
40 | @PostMapping(value = "/create") | 38 | @PostMapping(value = "/create") |
41 | @ApiOperation("新增UserTv") | 39 | @ApiOperation("新增UserTv") |
42 | @AnonymousAccess | 40 | @AnonymousAccess |
... | @@ -45,7 +43,6 @@ public class UserTvController { | ... | @@ -45,7 +43,6 @@ public class UserTvController { |
45 | return ResultInfo.success(); | 43 | return ResultInfo.success(); |
46 | } | 44 | } |
47 | 45 | ||
48 | @Log | ||
49 | @PutMapping | 46 | @PutMapping |
50 | @ApiOperation("修改UserTv") | 47 | @ApiOperation("修改UserTv") |
51 | @AnonymousAccess | 48 | @AnonymousAccess |
... | @@ -54,7 +51,6 @@ public class UserTvController { | ... | @@ -54,7 +51,6 @@ public class UserTvController { |
54 | return ResultInfo.success(); | 51 | return ResultInfo.success(); |
55 | } | 52 | } |
56 | 53 | ||
57 | @Log | ||
58 | @DeleteMapping(value = "/{id}") | 54 | @DeleteMapping(value = "/{id}") |
59 | @ApiOperation("删除UserTv") | 55 | @ApiOperation("删除UserTv") |
60 | public ResultInfo delete(@PathVariable Long id) { | 56 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
... | @@ -44,4 +44,6 @@ public interface UserTvService { | ... | @@ -44,4 +44,6 @@ public interface UserTvService { |
44 | UserTvDTO findByPlatformAccount(String platformAccount); | 44 | UserTvDTO findByPlatformAccount(String platformAccount); |
45 | 45 | ||
46 | UserTvDTO findByPriorityMemberCode(String memberCode); | 46 | UserTvDTO findByPriorityMemberCode(String memberCode); |
47 | |||
48 | UserTvDTO findByMemberId(Long memberId); | ||
47 | } | 49 | } | ... | ... |
... | @@ -115,5 +115,15 @@ public class UserTvServiceImpl implements UserTvService { | ... | @@ -115,5 +115,15 @@ public class UserTvServiceImpl implements UserTvService { |
115 | return null; | 115 | return null; |
116 | } | 116 | } |
117 | 117 | ||
118 | @Override | ||
119 | public UserTvDTO findByMemberId(Long memberId) { | ||
120 | Optional<UserTv> userTv = UserTvRepository.findByMemberId(memberId); | ||
121 | if (userTv.isPresent()) { | ||
122 | ValidationUtil.isNull( userTv.get().getId(),"UserTv","id",userTv.get().getId()); | ||
123 | return UserTvMapper.toDto(userTv.get()); | ||
124 | } | ||
125 | return null; | ||
126 | } | ||
127 | |||
118 | 128 | ||
119 | } | 129 | } | ... | ... |
... | @@ -2,7 +2,6 @@ package com.topdraw.business.module.user.weixin.rest; | ... | @@ -2,7 +2,6 @@ package com.topdraw.business.module.user.weixin.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.AnonymousAccess; | 3 | import com.topdraw.annotation.AnonymousAccess; |
4 | import com.topdraw.common.ResultInfo; | 4 | import com.topdraw.common.ResultInfo; |
5 | import com.topdraw.annotation.Log; | ||
6 | import com.topdraw.business.module.user.weixin.domain.UserWeixin; | 5 | import com.topdraw.business.module.user.weixin.domain.UserWeixin; |
7 | import com.topdraw.business.module.user.weixin.service.UserWeixinService; | 6 | import com.topdraw.business.module.user.weixin.service.UserWeixinService; |
8 | import com.topdraw.business.module.user.weixin.service.dto.UserWeixinQueryCriteria; | 7 | import com.topdraw.business.module.user.weixin.service.dto.UserWeixinQueryCriteria; |
... | @@ -36,7 +35,6 @@ public class UserWeixinController { | ... | @@ -36,7 +35,6 @@ public class UserWeixinController { |
36 | return ResultInfo.success(UserWeixinService.queryAll(criteria)); | 35 | return ResultInfo.success(UserWeixinService.queryAll(criteria)); |
37 | } | 36 | } |
38 | 37 | ||
39 | @Log | ||
40 | @PostMapping(value = "/create") | 38 | @PostMapping(value = "/create") |
41 | @ApiOperation("新增UserWeixin") | 39 | @ApiOperation("新增UserWeixin") |
42 | @AnonymousAccess | 40 | @AnonymousAccess |
... | @@ -45,7 +43,6 @@ public class UserWeixinController { | ... | @@ -45,7 +43,6 @@ public class UserWeixinController { |
45 | return ResultInfo.success(); | 43 | return ResultInfo.success(); |
46 | } | 44 | } |
47 | 45 | ||
48 | @Log | ||
49 | @PutMapping(value = "/update") | 46 | @PutMapping(value = "/update") |
50 | @ApiOperation("修改UserWeixin") | 47 | @ApiOperation("修改UserWeixin") |
51 | @AnonymousAccess | 48 | @AnonymousAccess |
... | @@ -54,8 +51,6 @@ public class UserWeixinController { | ... | @@ -54,8 +51,6 @@ public class UserWeixinController { |
54 | return ResultInfo.success(); | 51 | return ResultInfo.success(); |
55 | } | 52 | } |
56 | 53 | ||
57 | |||
58 | @Log | ||
59 | @PutMapping(value = "/updateWeixinMemberProfile") | 54 | @PutMapping(value = "/updateWeixinMemberProfile") |
60 | @ApiOperation("修改UserWeixin") | 55 | @ApiOperation("修改UserWeixin") |
61 | @AnonymousAccess | 56 | @AnonymousAccess |
... | @@ -64,8 +59,6 @@ public class UserWeixinController { | ... | @@ -64,8 +59,6 @@ public class UserWeixinController { |
64 | return ResultInfo.success(); | 59 | return ResultInfo.success(); |
65 | } | 60 | } |
66 | 61 | ||
67 | |||
68 | @Log | ||
69 | @DeleteMapping(value = "/{id}") | 62 | @DeleteMapping(value = "/{id}") |
70 | @ApiOperation("删除UserWeixin") | 63 | @ApiOperation("删除UserWeixin") |
71 | public ResultInfo delete(@PathVariable Long id) { | 64 | public ResultInfo delete(@PathVariable Long id) { | ... | ... |
1 | package com.topdraw.business.process.rest; | 1 | package com.topdraw.business.process.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.Log; | ||
4 | import com.topdraw.business.process.domian.TempCoupon; | 3 | import com.topdraw.business.process.domian.TempCoupon; |
5 | import com.topdraw.business.process.service.CouponOperationService; | 4 | import com.topdraw.business.process.service.CouponOperationService; |
6 | import com.topdraw.common.ResultInfo; | 5 | import com.topdraw.common.ResultInfo; |
... | @@ -23,7 +22,6 @@ public class CouponOperationController { | ... | @@ -23,7 +22,6 @@ public class CouponOperationController { |
23 | @Autowired | 22 | @Autowired |
24 | private CouponOperationService couponOperationService; | 23 | private CouponOperationService couponOperationService; |
25 | 24 | ||
26 | @Log | ||
27 | @PostMapping(value = "/grantCouponByManual") | 25 | @PostMapping(value = "/grantCouponByManual") |
28 | @ApiOperation("手动发放优惠券") | 26 | @ApiOperation("手动发放优惠券") |
29 | public ResultInfo grantCouponByManual(List<TempCoupon> tempCouponList) { | 27 | public ResultInfo grantCouponByManual(List<TempCoupon> tempCouponList) { | ... | ... |
1 | package com.topdraw.business.process.rest; | 1 | package com.topdraw.business.process.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.Log; | ||
4 | import com.topdraw.business.process.domian.TempCoupon; | 3 | import com.topdraw.business.process.domian.TempCoupon; |
5 | import com.topdraw.business.process.domian.TempExp; | 4 | import com.topdraw.business.process.domian.TempExp; |
6 | import com.topdraw.business.process.service.CouponOperationService; | 5 | import com.topdraw.business.process.service.CouponOperationService; |
... | @@ -30,7 +29,6 @@ public class ExpOperationController { | ... | @@ -30,7 +29,6 @@ public class ExpOperationController { |
30 | @Autowired | 29 | @Autowired |
31 | private ExpOperationService expOperationService; | 30 | private ExpOperationService expOperationService; |
32 | 31 | ||
33 | @Log | ||
34 | @PostMapping(value = "/grantExpByManual") | 32 | @PostMapping(value = "/grantExpByManual") |
35 | @ApiOperation("手动发放成长值") | 33 | @ApiOperation("手动发放成长值") |
36 | public ResultInfo grantExpByManual(@Validated @RequestBody TempExp tempExp) { | 34 | public ResultInfo grantExpByManual(@Validated @RequestBody TempExp tempExp) { | ... | ... |
1 | package com.topdraw.business.process.rest; | 1 | package com.topdraw.business.process.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.AnonymousAccess; | 3 | import com.topdraw.annotation.AnonymousAccess; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; | 4 | import com.topdraw.business.module.member.profile.service.dto.MemberProfileDTO; |
6 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 5 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
7 | import com.topdraw.business.module.user.weixin.service.dto.UserWeixinQueryCriteria; | 6 | import com.topdraw.business.module.user.weixin.service.dto.UserWeixinQueryCriteria; |
... | @@ -23,7 +22,6 @@ public class MemberOperationController { | ... | @@ -23,7 +22,6 @@ public class MemberOperationController { |
23 | @Autowired | 22 | @Autowired |
24 | private MemberOperationService memberOperationService; | 23 | private MemberOperationService memberOperationService; |
25 | 24 | ||
26 | @Log("获取会员基本信息并且检查vip状态") | ||
27 | @GetMapping("/getMemberProfileAndCheckVip/{appId}/{memberId}") | 25 | @GetMapping("/getMemberProfileAndCheckVip/{appId}/{memberId}") |
28 | @ApiOperation("获取会员基本信息并且检查vip状态") | 26 | @ApiOperation("获取会员基本信息并且检查vip状态") |
29 | @AnonymousAccess | 27 | @AnonymousAccess |
... | @@ -32,7 +30,6 @@ public class MemberOperationController { | ... | @@ -32,7 +30,6 @@ public class MemberOperationController { |
32 | return ResultInfo.success(memberProfileDTO); | 30 | return ResultInfo.success(memberProfileDTO); |
33 | } | 31 | } |
34 | 32 | ||
35 | @Log("购买vip") | ||
36 | @PutMapping("/buyVip") | 33 | @PutMapping("/buyVip") |
37 | @ApiOperation("购买vip") | 34 | @ApiOperation("购买vip") |
38 | @AnonymousAccess | 35 | @AnonymousAccess | ... | ... |
1 | package com.topdraw.business.process.rest; | 1 | package com.topdraw.business.process.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.Log; | ||
4 | import com.topdraw.business.module.member.service.MemberService; | 3 | import com.topdraw.business.module.member.service.MemberService; |
5 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 4 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
6 | import com.topdraw.business.module.points.available.service.PointsAvailableService; | 5 | import com.topdraw.business.module.points.available.service.PointsAvailableService; |
... | @@ -74,7 +73,6 @@ public class PointsOperationController { | ... | @@ -74,7 +73,6 @@ public class PointsOperationController { |
74 | return ResultInfo.successPage(pointsAvailableService.queryAll(criteria,pageable)); | 73 | return ResultInfo.successPage(pointsAvailableService.queryAll(criteria,pageable)); |
75 | } | 74 | } |
76 | 75 | ||
77 | @Log | ||
78 | @GetMapping(value = "/cleanInvalidPointsAndCalculateCurrentPoints/{id}") | 76 | @GetMapping(value = "/cleanInvalidPointsAndCalculateCurrentPoints/{id}") |
79 | @ApiOperation("清除过期积分并计算总积分,供客户端会员查询积分时调用") | 77 | @ApiOperation("清除过期积分并计算总积分,供客户端会员查询积分时调用") |
80 | public ResultInfo cleanInvalidPointsAndCalculateCurrentPoints(@PathVariable("id") Long id) { | 78 | public ResultInfo cleanInvalidPointsAndCalculateCurrentPoints(@PathVariable("id") Long id) { |
... | @@ -82,7 +80,6 @@ public class PointsOperationController { | ... | @@ -82,7 +80,6 @@ public class PointsOperationController { |
82 | return ResultInfo.success(Objects.isNull(aLong) ? 0L : aLong); | 80 | return ResultInfo.success(Objects.isNull(aLong) ? 0L : aLong); |
83 | } | 81 | } |
84 | 82 | ||
85 | @Log | ||
86 | @PostMapping(value = "/grantPointsByManual") | 83 | @PostMapping(value = "/grantPointsByManual") |
87 | @ApiOperation("手动发放积分") | 84 | @ApiOperation("手动发放积分") |
88 | public ResultInfo grantPointsByManual(@Validated @RequestBody TempPoints tempPoints) { | 85 | public ResultInfo grantPointsByManual(@Validated @RequestBody TempPoints tempPoints) { |
... | @@ -105,7 +102,6 @@ public class PointsOperationController { | ... | @@ -105,7 +102,6 @@ public class PointsOperationController { |
105 | * @param tempIptvUser | 102 | * @param tempIptvUser |
106 | * @return | 103 | * @return |
107 | */ | 104 | */ |
108 | @Log | ||
109 | @PostMapping(value = "/customPointsByUserTvPlatformAccount") | 105 | @PostMapping(value = "/customPointsByUserTvPlatformAccount") |
110 | @ApiOperation("通过大屏账户积分消耗") | 106 | @ApiOperation("通过大屏账户积分消耗") |
111 | public ResultInfo customPointsByUserTvPlatformAccount(@Validated @RequestBody TempCustomPointBean tempIptvUser) { | 107 | public ResultInfo customPointsByUserTvPlatformAccount(@Validated @RequestBody TempCustomPointBean tempIptvUser) { |
... | @@ -144,7 +140,6 @@ public class PointsOperationController { | ... | @@ -144,7 +140,6 @@ public class PointsOperationController { |
144 | * @param tempPoints | 140 | * @param tempPoints |
145 | * @return | 141 | * @return |
146 | */ | 142 | */ |
147 | @Log | ||
148 | @PostMapping(value = "/customPointsByUserId") | 143 | @PostMapping(value = "/customPointsByUserId") |
149 | @ApiOperation("积分消耗") | 144 | @ApiOperation("积分消耗") |
150 | public ResultInfo customPointsByUserId(@Validated @RequestBody TempPoints tempPoints) { | 145 | public ResultInfo customPointsByUserId(@Validated @RequestBody TempPoints tempPoints) { |
... | @@ -185,7 +180,6 @@ public class PointsOperationController { | ... | @@ -185,7 +180,6 @@ public class PointsOperationController { |
185 | return userWeixinDTO.getMemberId(); | 180 | return userWeixinDTO.getMemberId(); |
186 | } | 181 | } |
187 | 182 | ||
188 | @Log | ||
189 | @PostMapping(value = "/consumePoints") | 183 | @PostMapping(value = "/consumePoints") |
190 | @ApiOperation("积分消耗") | 184 | @ApiOperation("积分消耗") |
191 | public ResultInfo customPoints(@Validated @RequestBody TempPoints tempPoints) { | 185 | public ResultInfo customPoints(@Validated @RequestBody TempPoints tempPoints) { | ... | ... |
1 | package com.topdraw.business.process.rest; | 1 | package com.topdraw.business.process.rest; |
2 | 2 | ||
3 | import com.topdraw.annotation.AnonymousAccess; | 3 | import com.topdraw.annotation.AnonymousAccess; |
4 | import com.topdraw.annotation.Log; | ||
5 | import com.topdraw.business.process.domian.TempIptvUser; | 4 | import com.topdraw.business.process.domian.TempIptvUser; |
6 | import com.topdraw.business.process.service.TaskOperationService; | 5 | import com.topdraw.business.process.service.TaskOperationService; |
7 | import com.topdraw.common.ResultInfo; | 6 | import com.topdraw.common.ResultInfo; |
... | @@ -26,7 +25,6 @@ public class TaskOperationController { | ... | @@ -26,7 +25,6 @@ public class TaskOperationController { |
26 | * | 25 | * |
27 | * @param criteria 消息 | 26 | * @param criteria 消息 |
28 | */ | 27 | */ |
29 | @Log | ||
30 | @PostMapping(value = "/dealTask") | 28 | @PostMapping(value = "/dealTask") |
31 | @ApiOperation("事件处理") | 29 | @ApiOperation("事件处理") |
32 | @AnonymousAccess | 30 | @AnonymousAccess |
... | @@ -42,7 +40,6 @@ public class TaskOperationController { | ... | @@ -42,7 +40,6 @@ public class TaskOperationController { |
42 | * 1.用户每天首次进入活动详情页的时候赠送5个积分 | 40 | * 1.用户每天首次进入活动详情页的时候赠送5个积分 |
43 | * 2.判断任务是否已经做过,没有做过的话,保存任务记录,任务记录通过redis保存即可 | 41 | * 2.判断任务是否已经做过,没有做过的话,保存任务记录,任务记录通过redis保存即可 |
44 | */ | 42 | */ |
45 | @Log | ||
46 | @PostMapping(value = "/createPoint4ChongQing") | 43 | @PostMapping(value = "/createPoint4ChongQing") |
47 | @ApiOperation("针对重庆大屏20211220号的积分兑换活动专门定制的接口") | 44 | @ApiOperation("针对重庆大屏20211220号的积分兑换活动专门定制的接口") |
48 | @Deprecated | 45 | @Deprecated | ... | ... |
... | @@ -4,7 +4,6 @@ import cn.hutool.core.util.ObjectUtil; | ... | @@ -4,7 +4,6 @@ import cn.hutool.core.util.ObjectUtil; |
4 | import cn.hutool.core.util.StrUtil; | 4 | import cn.hutool.core.util.StrUtil; |
5 | import com.alibaba.fastjson.JSONObject; | 5 | import com.alibaba.fastjson.JSONObject; |
6 | import com.topdraw.annotation.AnonymousAccess; | 6 | import com.topdraw.annotation.AnonymousAccess; |
7 | import com.topdraw.annotation.Log; | ||
8 | import com.topdraw.business.module.member.profile.domain.MemberProfile; | 7 | import com.topdraw.business.module.member.profile.domain.MemberProfile; |
9 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 8 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
10 | import com.topdraw.business.module.user.iptv.domain.UserTv; | 9 | import com.topdraw.business.module.user.iptv.domain.UserTv; |
... | @@ -57,7 +56,6 @@ public class UserOperationController { | ... | @@ -57,7 +56,6 @@ public class UserOperationController { |
57 | @Autowired | 56 | @Autowired |
58 | private RedisUtils redisUtils; | 57 | private RedisUtils redisUtils; |
59 | 58 | ||
60 | @Log("新增大屏账户同时创建会员信息") | ||
61 | @PostMapping(value = "/createUserAndCreateMember") | 59 | @PostMapping(value = "/createUserAndCreateMember") |
62 | @ApiOperation("新增大屏账户同时创建会员信息") | 60 | @ApiOperation("新增大屏账户同时创建会员信息") |
63 | @AnonymousAccess | 61 | @AnonymousAccess |
... | @@ -68,7 +66,6 @@ public class UserOperationController { | ... | @@ -68,7 +66,6 @@ public class UserOperationController { |
68 | return ResultInfo.success(result); | 66 | return ResultInfo.success(result); |
69 | } | 67 | } |
70 | 68 | ||
71 | @Log("新增小屏账户同时创建会员信息") | ||
72 | @PostMapping(value = "/createWeixinUserAndCreateMember") | 69 | @PostMapping(value = "/createWeixinUserAndCreateMember") |
73 | @ApiOperation("新增小屏账户同时创建会员信息") | 70 | @ApiOperation("新增小屏账户同时创建会员信息") |
74 | @AnonymousAccess | 71 | @AnonymousAccess |
... | @@ -93,7 +90,6 @@ public class UserOperationController { | ... | @@ -93,7 +90,6 @@ public class UserOperationController { |
93 | return ResultInfo.success(result); | 90 | return ResultInfo.success(result); |
94 | } | 91 | } |
95 | 92 | ||
96 | @Log("获取大屏绑定的小屏会员列表") | ||
97 | @GetMapping(value = "/findBindByPlatformAccount/{platformAccount}") | 93 | @GetMapping(value = "/findBindByPlatformAccount/{platformAccount}") |
98 | @AnonymousAccess | 94 | @AnonymousAccess |
99 | public ResultInfo findBindByPlatformAccount(@PathVariable("platformAccount") String platformAccount) { | 95 | public ResultInfo findBindByPlatformAccount(@PathVariable("platformAccount") String platformAccount) { |
... | @@ -102,7 +98,6 @@ public class UserOperationController { | ... | @@ -102,7 +98,6 @@ public class UserOperationController { |
102 | return ResultInfo.success(result); | 98 | return ResultInfo.success(result); |
103 | } | 99 | } |
104 | 100 | ||
105 | @Log("带参二维码") | ||
106 | @PostMapping(value = "/sendQrCodeMessage") | 101 | @PostMapping(value = "/sendQrCodeMessage") |
107 | @ApiOperation("带参二维码") | 102 | @ApiOperation("带参二维码") |
108 | @AnonymousAccess | 103 | @AnonymousAccess |
... | @@ -112,7 +107,6 @@ public class UserOperationController { | ... | @@ -112,7 +107,6 @@ public class UserOperationController { |
112 | return ResultInfo.success(result); | 107 | return ResultInfo.success(result); |
113 | } | 108 | } |
114 | 109 | ||
115 | @Log("删除全部收藏") | ||
116 | @PostMapping(value = "/deleteAllCollection") | 110 | @PostMapping(value = "/deleteAllCollection") |
117 | @ApiOperation("删除全部收藏") | 111 | @ApiOperation("删除全部收藏") |
118 | @AnonymousAccess | 112 | @AnonymousAccess |
... | @@ -122,7 +116,6 @@ public class UserOperationController { | ... | @@ -122,7 +116,6 @@ public class UserOperationController { |
122 | return ResultInfo.success(result); | 116 | return ResultInfo.success(result); |
123 | } | 117 | } |
124 | 118 | ||
125 | @Log("删除收藏") | ||
126 | @PostMapping(value = "/deleteCollection") | 119 | @PostMapping(value = "/deleteCollection") |
127 | @ApiOperation("删除收藏") | 120 | @ApiOperation("删除收藏") |
128 | @AnonymousAccess | 121 | @AnonymousAccess |
... | @@ -132,7 +125,6 @@ public class UserOperationController { | ... | @@ -132,7 +125,6 @@ public class UserOperationController { |
132 | return ResultInfo.success(result); | 125 | return ResultInfo.success(result); |
133 | } | 126 | } |
134 | 127 | ||
135 | @Log("添加收藏") | ||
136 | @PostMapping(value = "/addCollection") | 128 | @PostMapping(value = "/addCollection") |
137 | @ApiOperation("添加收藏") | 129 | @ApiOperation("添加收藏") |
138 | @AnonymousAccess | 130 | @AnonymousAccess |
... | @@ -142,9 +134,6 @@ public class UserOperationController { | ... | @@ -142,9 +134,6 @@ public class UserOperationController { |
142 | return ResultInfo.success(result); | 134 | return ResultInfo.success(result); |
143 | } | 135 | } |
144 | 136 | ||
145 | |||
146 | |||
147 | @Log("大屏用户解绑") | ||
148 | @PutMapping(value = "/unbind") | 137 | @PutMapping(value = "/unbind") |
149 | @ApiOperation("大屏用户解绑") | 138 | @ApiOperation("大屏用户解绑") |
150 | @AnonymousAccess | 139 | @AnonymousAccess |
... | @@ -155,7 +144,6 @@ public class UserOperationController { | ... | @@ -155,7 +144,6 @@ public class UserOperationController { |
155 | return ResultInfo.success(); | 144 | return ResultInfo.success(); |
156 | } | 145 | } |
157 | 146 | ||
158 | @Log("大屏更换主账号") | ||
159 | @PutMapping(value = "/changeMainAccount") | 147 | @PutMapping(value = "/changeMainAccount") |
160 | @ApiOperation("大屏更换主账号") | 148 | @ApiOperation("大屏更换主账号") |
161 | @AnonymousAccess | 149 | @AnonymousAccess |
... | @@ -166,7 +154,6 @@ public class UserOperationController { | ... | @@ -166,7 +154,6 @@ public class UserOperationController { |
166 | return ResultInfo.success("update success"); | 154 | return ResultInfo.success("update success"); |
167 | } | 155 | } |
168 | 156 | ||
169 | @Log("微信服务号(H5)登录") | ||
170 | @PostMapping("/serviceLogin") | 157 | @PostMapping("/serviceLogin") |
171 | @ApiOperation("微信服务号(H5)登录") | 158 | @ApiOperation("微信服务号(H5)登录") |
172 | @AnonymousAccess | 159 | @AnonymousAccess |
... | @@ -175,7 +162,6 @@ public class UserOperationController { | ... | @@ -175,7 +162,6 @@ public class UserOperationController { |
175 | return ResultInfo.success(o); | 162 | return ResultInfo.success(o); |
176 | } | 163 | } |
177 | 164 | ||
178 | @Log("微信小程序登录") | ||
179 | @PostMapping("/appletLogin") | 165 | @PostMapping("/appletLogin") |
180 | @ApiOperation("微信小程序登录") | 166 | @ApiOperation("微信小程序登录") |
181 | @AnonymousAccess | 167 | @AnonymousAccess |
... | @@ -184,7 +170,6 @@ public class UserOperationController { | ... | @@ -184,7 +170,6 @@ public class UserOperationController { |
184 | return ResultInfo.success(result); | 170 | return ResultInfo.success(result); |
185 | } | 171 | } |
186 | 172 | ||
187 | @Log("微信小程序绑定大屏") | ||
188 | @PostMapping("/appletBind") | 173 | @PostMapping("/appletBind") |
189 | @ApiOperation("微信小程序绑定大屏") | 174 | @ApiOperation("微信小程序绑定大屏") |
190 | @AnonymousAccess | 175 | @AnonymousAccess |
... | @@ -201,7 +186,6 @@ public class UserOperationController { | ... | @@ -201,7 +186,6 @@ public class UserOperationController { |
201 | return ResultInfo.success(result); | 186 | return ResultInfo.success(result); |
202 | } | 187 | } |
203 | 188 | ||
204 | @Log("微信公众号关注") | ||
205 | @PostMapping("/subscribe") | 189 | @PostMapping("/subscribe") |
206 | @ApiOperation("微信公众号关注") | 190 | @ApiOperation("微信公众号关注") |
207 | @AnonymousAccess | 191 | @AnonymousAccess |
... | @@ -293,7 +277,6 @@ public class UserOperationController { | ... | @@ -293,7 +277,6 @@ public class UserOperationController { |
293 | } | 277 | } |
294 | } | 278 | } |
295 | 279 | ||
296 | @Log("微信公众号取关") | ||
297 | @PostMapping("/unsubscribe") | 280 | @PostMapping("/unsubscribe") |
298 | @ApiOperation("微信公众号取关") | 281 | @ApiOperation("微信公众号取关") |
299 | @AnonymousAccess | 282 | @AnonymousAccess |
... | @@ -315,7 +298,6 @@ public class UserOperationController { | ... | @@ -315,7 +298,6 @@ public class UserOperationController { |
315 | * @author Hongyan Wang | 298 | * @author Hongyan Wang |
316 | * @date 2021/8/24 4:54 下午 | 299 | * @date 2021/8/24 4:54 下午 |
317 | */ | 300 | */ |
318 | @Log("保存大屏侧信息") | ||
319 | @PostMapping(value = "/saveUserInfo") | 301 | @PostMapping(value = "/saveUserInfo") |
320 | @ApiOperation("保存大屏侧信息") | 302 | @ApiOperation("保存大屏侧信息") |
321 | @AnonymousAccess | 303 | @AnonymousAccess |
... | @@ -334,7 +316,6 @@ public class UserOperationController { | ... | @@ -334,7 +316,6 @@ public class UserOperationController { |
334 | return ResultInfo.success(s); | 316 | return ResultInfo.success(s); |
335 | } | 317 | } |
336 | 318 | ||
337 | @Log("保存用户手机号信息") | ||
338 | @PostMapping(value = "/saveUserWeixinPhone") | 319 | @PostMapping(value = "/saveUserWeixinPhone") |
339 | @ApiOperation("保存用户手机号信息") | 320 | @ApiOperation("保存用户手机号信息") |
340 | @AnonymousAccess | 321 | @AnonymousAccess | ... | ... |
... | @@ -4,6 +4,8 @@ import com.topdraw.business.module.coupon.history.domain.CouponHistory; | ... | @@ -4,6 +4,8 @@ import com.topdraw.business.module.coupon.history.domain.CouponHistory; |
4 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; | 4 | import com.topdraw.business.module.coupon.history.service.CouponHistoryService; |
5 | import com.topdraw.business.module.coupon.service.CouponService; | 5 | import com.topdraw.business.module.coupon.service.CouponService; |
6 | import com.topdraw.business.module.member.domain.Member; | 6 | import com.topdraw.business.module.member.domain.Member; |
7 | import com.topdraw.business.module.member.service.MemberService; | ||
8 | import com.topdraw.business.module.member.service.dto.MemberDTO; | ||
7 | import com.topdraw.business.process.service.CouponOperationService; | 9 | import com.topdraw.business.process.service.CouponOperationService; |
8 | import com.topdraw.business.process.service.MemberOperationService; | 10 | import com.topdraw.business.process.service.MemberOperationService; |
9 | import com.topdraw.business.process.domian.TempCoupon; | 11 | import com.topdraw.business.process.domian.TempCoupon; |
... | @@ -39,6 +41,8 @@ public class CouponOperationServiceImpl implements CouponOperationService { | ... | @@ -39,6 +41,8 @@ public class CouponOperationServiceImpl implements CouponOperationService { |
39 | @Autowired | 41 | @Autowired |
40 | RightsOperationService rightsOperationService; | 42 | RightsOperationService rightsOperationService; |
41 | @Autowired | 43 | @Autowired |
44 | MemberService memberService; | ||
45 | @Autowired | ||
42 | RedissonClient redissonClient; | 46 | RedissonClient redissonClient; |
43 | @Autowired | 47 | @Autowired |
44 | ThreadPoolTaskExecutor threadPoolTaskExecutor; | 48 | ThreadPoolTaskExecutor threadPoolTaskExecutor; |
... | @@ -123,14 +127,23 @@ public class CouponOperationServiceImpl implements CouponOperationService { | ... | @@ -123,14 +127,23 @@ public class CouponOperationServiceImpl implements CouponOperationService { |
123 | * @param expireSoonCouponCount | 127 | * @param expireSoonCouponCount |
124 | */ | 128 | */ |
125 | private void doUpdateMemberInfo(Long memberId, Long currentCoupon, Long expireSoonCouponCount) { | 129 | private void doUpdateMemberInfo(Long memberId, Long currentCoupon, Long expireSoonCouponCount) { |
130 | MemberDTO memberDTO = this.findMemberByMemberId(memberId); | ||
131 | |||
126 | Member member = new Member(); | 132 | Member member = new Member(); |
127 | member.setId(memberId); | 133 | BeanUtils.copyProperties(memberDTO,member); |
134 | |||
128 | member.setCouponAmount(currentCoupon); | 135 | member.setCouponAmount(currentCoupon); |
129 | member.setDueCouponAmount(expireSoonCouponCount); | 136 | member.setDueCouponAmount(expireSoonCouponCount); |
130 | member.setUpdateTime(TimestampUtil.now()); | 137 | member.setUpdateTime(LocalDateTime.now()); |
131 | this.memberOperationService.doUpdateMemberInfo(member); | 138 | this.memberOperationService.doUpdateMemberInfo(member); |
132 | } | 139 | } |
133 | 140 | ||
141 | private MemberDTO findMemberByMemberId(Long memberId) { | ||
142 | MemberDTO memberDTO = this.memberService.findById(memberId); | ||
143 | return memberDTO; | ||
144 | } | ||
145 | |||
146 | |||
134 | 147 | ||
135 | /** | 148 | /** |
136 | * 当前优惠券数量 = 总优惠券-已过期的优惠券 | 149 | * 当前优惠券数量 = 总优惠券-已过期的优惠券 |
... | @@ -149,8 +162,8 @@ public class CouponOperationServiceImpl implements CouponOperationService { | ... | @@ -149,8 +162,8 @@ public class CouponOperationServiceImpl implements CouponOperationService { |
149 | * @return | 162 | * @return |
150 | */ | 163 | */ |
151 | private Long getTotalExpireSoonCoupon(Long userId, Integer expireFactor) { | 164 | private Long getTotalExpireSoonCoupon(Long userId, Integer expireFactor) { |
152 | Timestamp expireTime = TimestampUtil.localDateTime2Timestamp(LocalDateTime.now().plusDays(expireFactor)); | 165 | LocalDateTime expireTime = LocalDateTime.now().plusDays(expireFactor); |
153 | return this.couponHistoryService.countByUserIdAndExpireTimeBetween(userId,TimestampUtil.now(),expireTime); | 166 | return this.couponHistoryService.countByUserIdAndExpireTimeBetween(userId,LocalDateTime.now(),expireTime); |
154 | } | 167 | } |
155 | 168 | ||
156 | 169 | ||
... | @@ -160,7 +173,7 @@ public class CouponOperationServiceImpl implements CouponOperationService { | ... | @@ -160,7 +173,7 @@ public class CouponOperationServiceImpl implements CouponOperationService { |
160 | * @return | 173 | * @return |
161 | */ | 174 | */ |
162 | private Long getTotalExpireCoupon(Long userId) { | 175 | private Long getTotalExpireCoupon(Long userId) { |
163 | return this.couponHistoryService.countByUserIdAndExpireTimeBefore(userId,TimestampUtil.now()); | 176 | return this.couponHistoryService.countByUserIdAndExpireTimeBefore(userId,LocalDateTime.now()); |
164 | } | 177 | } |
165 | 178 | ||
166 | 179 | ||
... | @@ -187,7 +200,7 @@ public class CouponOperationServiceImpl implements CouponOperationService { | ... | @@ -187,7 +200,7 @@ public class CouponOperationServiceImpl implements CouponOperationService { |
187 | couponHistory.setCouponCode(tempCoupon.getCode()); | 200 | couponHistory.setCouponCode(tempCoupon.getCode()); |
188 | couponHistory.setUserNickname(tempCoupon.getUserNickname()); | 201 | couponHistory.setUserNickname(tempCoupon.getUserNickname()); |
189 | couponHistory.setOrderDetailId(tempCoupon.getOrderId()); | 202 | couponHistory.setOrderDetailId(tempCoupon.getOrderId()); |
190 | couponHistory.setReceiveTime(TimestampUtil.now()); | 203 | couponHistory.setReceiveTime(LocalDateTime.now()); |
191 | couponHistory.setUseStatus(Objects.nonNull(couponHistory.getUseStatus()) ? couponHistory.getUseStatus():0); | 204 | couponHistory.setUseStatus(Objects.nonNull(couponHistory.getUseStatus()) ? couponHistory.getUseStatus():0); |
192 | this.couponHistoryService.create(couponHistory); | 205 | this.couponHistoryService.create(couponHistory); |
193 | } | 206 | } | ... | ... |
... | @@ -5,6 +5,7 @@ import com.topdraw.business.module.exp.detail.service.ExpDetailService; | ... | @@ -5,6 +5,7 @@ import com.topdraw.business.module.exp.detail.service.ExpDetailService; |
5 | import com.topdraw.business.module.member.domain.Member; | 5 | import com.topdraw.business.module.member.domain.Member; |
6 | import com.topdraw.business.module.member.level.service.MemberLevelService; | 6 | import com.topdraw.business.module.member.level.service.MemberLevelService; |
7 | import com.topdraw.business.module.member.level.service.dto.MemberLevelDTO; | 7 | import com.topdraw.business.module.member.level.service.dto.MemberLevelDTO; |
8 | import com.topdraw.business.module.member.service.MemberService; | ||
8 | import com.topdraw.business.module.member.service.dto.MemberDTO; | 9 | import com.topdraw.business.module.member.service.dto.MemberDTO; |
9 | import com.topdraw.business.process.service.ExpOperationService; | 10 | import com.topdraw.business.process.service.ExpOperationService; |
10 | import com.topdraw.business.process.service.MemberOperationService; | 11 | import com.topdraw.business.process.service.MemberOperationService; |
... | @@ -23,6 +24,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; | ... | @@ -23,6 +24,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
23 | import org.springframework.stereotype.Service; | 24 | import org.springframework.stereotype.Service; |
24 | import org.springframework.util.CollectionUtils; | 25 | import org.springframework.util.CollectionUtils; |
25 | 26 | ||
27 | import java.time.LocalDateTime; | ||
26 | import java.util.List; | 28 | import java.util.List; |
27 | import java.util.Objects; | 29 | import java.util.Objects; |
28 | 30 | ||
... | @@ -41,6 +43,8 @@ public class ExpOperationServiceImpl implements ExpOperationService { | ... | @@ -41,6 +43,8 @@ public class ExpOperationServiceImpl implements ExpOperationService { |
41 | @Autowired | 43 | @Autowired |
42 | MemberLevelService memberLevelService; | 44 | MemberLevelService memberLevelService; |
43 | @Autowired | 45 | @Autowired |
46 | MemberService memberService; | ||
47 | @Autowired | ||
44 | RedissonClient redissonClient; | 48 | RedissonClient redissonClient; |
45 | @Autowired | 49 | @Autowired |
46 | ThreadPoolTaskExecutor threadPoolTaskExecutor; | 50 | ThreadPoolTaskExecutor threadPoolTaskExecutor; |
... | @@ -137,14 +141,22 @@ public class ExpOperationServiceImpl implements ExpOperationService { | ... | @@ -137,14 +141,22 @@ public class ExpOperationServiceImpl implements ExpOperationService { |
137 | * @param memberId 会员id | 141 | * @param memberId 会员id |
138 | */ | 142 | */ |
139 | private void updateMemberInfo(Integer level,Long totalExp,Long memberId) { | 143 | private void updateMemberInfo(Integer level,Long totalExp,Long memberId) { |
144 | MemberDTO memberDTO = this.findMemberByMemberId(memberId); | ||
145 | |||
140 | Member member = new Member(); | 146 | Member member = new Member(); |
141 | member.setId(memberId); | 147 | BeanUtils.copyProperties(memberDTO,member); |
148 | |||
142 | member.setExp(totalExp); | 149 | member.setExp(totalExp); |
143 | member.setLevel(level); | 150 | member.setLevel(level); |
144 | member.setUpdateTime(TimestampUtil.now()); | 151 | member.setUpdateTime(LocalDateTime.now()); |
145 | this.memberOperationService.doUpdateMemberInfo(member); | 152 | this.memberOperationService.doUpdateMemberInfo(member); |
146 | } | 153 | } |
147 | 154 | ||
155 | private MemberDTO findMemberByMemberId(Long memberId) { | ||
156 | MemberDTO memberDTO = this.memberService.findById(memberId); | ||
157 | return memberDTO; | ||
158 | } | ||
159 | |||
148 | private Integer compareExp(long newExp, MemberLevelDTO memberLevelDTO,MemberDTO memberDTO) { | 160 | private Integer compareExp(long newExp, MemberLevelDTO memberLevelDTO,MemberDTO memberDTO) { |
149 | if (Objects.nonNull(memberLevelDTO)) { | 161 | if (Objects.nonNull(memberLevelDTO)) { |
150 | Long nextLevelExp = memberLevelDTO.getExpValue(); | 162 | Long nextLevelExp = memberLevelDTO.getExpValue(); | ... | ... |
... | @@ -497,12 +497,15 @@ public class PointsOperationServiceImpl implements PointsOperationService { | ... | @@ -497,12 +497,15 @@ public class PointsOperationServiceImpl implements PointsOperationService { |
497 | * @param currentPoints 当前总积分 | 497 | * @param currentPoints 当前总积分 |
498 | */ | 498 | */ |
499 | private void freshMemberCurrentPoints(Long memberId, Long currentPoints,long duePoints,TempPoints tempPoints) { | 499 | private void freshMemberCurrentPoints(Long memberId, Long currentPoints,long duePoints,TempPoints tempPoints) { |
500 | |||
501 | MemberDTO memberDTO = this.findMemberByMemberId(memberId); | ||
502 | |||
500 | Member member = new Member(); | 503 | Member member = new Member(); |
501 | member.setId(memberId); | 504 | BeanUtils.copyProperties(memberDTO,member); |
505 | |||
502 | member.setPoints(Objects.nonNull(currentPoints)?currentPoints:0); | 506 | member.setPoints(Objects.nonNull(currentPoints)?currentPoints:0); |
503 | member.setDuePoints(duePoints); | 507 | member.setDuePoints(duePoints); |
504 | member.setUpdateTime(Timestamp.valueOf(LocalDateTime.now())); | 508 | member.setUpdateTime(LocalDateTime.now()); |
505 | member.setCode(tempPoints.getMemberCode()); | ||
506 | try { | 509 | try { |
507 | this.memberOperationService.doUpdateMemberPoints(member); | 510 | this.memberOperationService.doUpdateMemberPoints(member); |
508 | } catch (Exception e){ | 511 | } catch (Exception e){ |
... | @@ -510,6 +513,11 @@ public class PointsOperationServiceImpl implements PointsOperationService { | ... | @@ -510,6 +513,11 @@ public class PointsOperationServiceImpl implements PointsOperationService { |
510 | } | 513 | } |
511 | } | 514 | } |
512 | 515 | ||
516 | private MemberDTO findMemberByMemberId(Long memberId) { | ||
517 | MemberDTO memberDTO = this.memberService.findById(memberId); | ||
518 | return memberDTO; | ||
519 | } | ||
520 | |||
513 | /** | 521 | /** |
514 | * 计算当前总积分 | 522 | * 计算当前总积分 |
515 | * @param memberId 会员id | 523 | * @param memberId 会员id | ... | ... |
... | @@ -33,6 +33,7 @@ import com.topdraw.business.module.task.template.service.TaskTemplateService; | ... | @@ -33,6 +33,7 @@ import com.topdraw.business.module.task.template.service.TaskTemplateService; |
33 | import com.topdraw.business.process.domian.*; | 33 | import com.topdraw.business.process.domian.*; |
34 | import com.topdraw.business.process.service.UserOperationService; | 34 | import com.topdraw.business.process.service.UserOperationService; |
35 | import com.topdraw.common.ResultInfo; | 35 | import com.topdraw.common.ResultInfo; |
36 | import com.topdraw.exception.BadRequestException; | ||
36 | import com.topdraw.module.mq.DataSyncMsg; | 37 | import com.topdraw.module.mq.DataSyncMsg; |
37 | import com.topdraw.util.*; | 38 | import com.topdraw.util.*; |
38 | import lombok.extern.slf4j.Slf4j; | 39 | import lombok.extern.slf4j.Slf4j; |
... | @@ -44,6 +45,7 @@ import org.springframework.stereotype.Service; | ... | @@ -44,6 +45,7 @@ import org.springframework.stereotype.Service; |
44 | import org.springframework.util.CollectionUtils; | 45 | import org.springframework.util.CollectionUtils; |
45 | import org.springframework.util.StringUtils; | 46 | import org.springframework.util.StringUtils; |
46 | 47 | ||
48 | import javax.validation.constraints.NotNull; | ||
47 | import java.sql.Timestamp; | 49 | import java.sql.Timestamp; |
48 | import java.time.LocalDate; | 50 | import java.time.LocalDate; |
49 | import java.time.LocalDateTime; | 51 | import java.time.LocalDateTime; |
... | @@ -82,6 +84,8 @@ public class TaskOperationServiceImpl implements TaskOperationService { | ... | @@ -82,6 +84,8 @@ public class TaskOperationServiceImpl implements TaskOperationService { |
82 | MemberGroupService memberGroupService; | 84 | MemberGroupService memberGroupService; |
83 | @Autowired | 85 | @Autowired |
84 | TaskAttrService taskAttrService; | 86 | TaskAttrService taskAttrService; |
87 | @Autowired | ||
88 | UserTvService userTvService; | ||
85 | 89 | ||
86 | 90 | ||
87 | private static final Integer TASK_FINISH_STATUS = 1; | 91 | private static final Integer TASK_FINISH_STATUS = 1; |
... | @@ -108,20 +112,37 @@ public class TaskOperationServiceImpl implements TaskOperationService { | ... | @@ -108,20 +112,37 @@ public class TaskOperationServiceImpl implements TaskOperationService { |
108 | // 2.通过任务模板获取对应的任务列表 | 112 | // 2.通过任务模板获取对应的任务列表 |
109 | List<Task> taskList = this.loadListTaskByTaskTemplate(taskTemplate,dataSyncMsg); | 113 | List<Task> taskList = this.loadListTaskByTaskTemplate(taskTemplate,dataSyncMsg); |
110 | // 4.判断当前用户是否满足任务完成条件 | 114 | // 4.判断当前用户是否满足任务完成条件 |
111 | /*boolean checkResult = this.checkTaskCompletion(memberId,taskList); | 115 | boolean checkResult = this.checkTaskCompletion(memberId,taskList); |
112 | if (checkResult) { | 116 | if (checkResult) { |
113 | // 5.权益区分(积分、权益、成长值) | 117 | // 5.权益区分(积分、权益、成长值) |
114 | Map<RightType,Object> tempRightsMap = this.distinguishRight(memberId,taskList,msgData); | 118 | Map<RightType,Object> tempRightsMap = this.distinguishRight(memberId,taskList,msgData); |
115 | // 6.权益发放 | 119 | |
120 | // 6.风控检查 | ||
121 | boolean result = this.checkRiskManagement(memberId,tempRightsMap); | ||
122 | |||
123 | if (result) throw new BadRequestException("发放失败,已达风控上限"); | ||
124 | |||
125 | // 7.权益发放 | ||
116 | this.grantRight(tempRightsMap); | 126 | this.grantRight(tempRightsMap); |
117 | 127 | ||
118 | }*/ | 128 | } |
119 | System.out.println(taskList); | 129 | System.out.println(taskList); |
120 | return ResultInfo.success(); | 130 | return ResultInfo.success(); |
121 | 131 | ||
122 | } | 132 | } |
123 | 133 | ||
124 | /** | 134 | /** |
135 | * 风控检查 | ||
136 | * @param memberId | ||
137 | * @param tempRightsMap | ||
138 | * @return | ||
139 | */ | ||
140 | private boolean checkRiskManagement(Long memberId , Map<RightType, Object> tempRightsMap) { | ||
141 | |||
142 | return false; | ||
143 | } | ||
144 | |||
145 | /** | ||
125 | * 验证会员信息 | 146 | * 验证会员信息 |
126 | * @param memberId | 147 | * @param memberId |
127 | * @return | 148 | * @return |
... | @@ -224,6 +245,34 @@ public class TaskOperationServiceImpl implements TaskOperationService { | ... | @@ -224,6 +245,34 @@ public class TaskOperationServiceImpl implements TaskOperationService { |
224 | 245 | ||
225 | } | 246 | } |
226 | 247 | ||
248 | private Long getIptvPriorityMemberId(Long memberId1,DataSyncMsg.MsgData msgData) { | ||
249 | |||
250 | // | ||
251 | if (Objects.nonNull(memberId1)) { | ||
252 | return memberId1; | ||
253 | } | ||
254 | |||
255 | |||
256 | @NotNull Integer deviceType = msgData.getDeviceType(); | ||
257 | Long userId = msgData.getUserId(); | ||
258 | // 大屏 | ||
259 | if (Objects.nonNull(userId) || deviceType == 1) { | ||
260 | |||
261 | } | ||
262 | |||
263 | MemberDTO memberDTO = this.findMemberById(memberId1); | ||
264 | if (Objects.nonNull(memberDTO.getId())) { | ||
265 | Long userIptvId = memberDTO.getUserIptvId(); | ||
266 | // 绑定了大屏,直接返回小屏会员id | ||
267 | if (Objects.nonNull(userIptvId)) { | ||
268 | return memberDTO.getId(); | ||
269 | } else { | ||
270 | // | ||
271 | } | ||
272 | } | ||
273 | return null; | ||
274 | } | ||
275 | |||
227 | /** | 276 | /** |
228 | * 验证是否满足永久权益 | 277 | * 验证是否满足永久权益 |
229 | * @param permanentRights | 278 | * @param permanentRights |
... | @@ -929,8 +978,6 @@ public class TaskOperationServiceImpl implements TaskOperationService { | ... | @@ -929,8 +978,6 @@ public class TaskOperationServiceImpl implements TaskOperationService { |
929 | //////////////////////////////////////////////////////////////////////////////////////////////////////////// | 978 | //////////////////////////////////////////////////////////////////////////////////////////////////////////// |
930 | 979 | ||
931 | @Autowired | 980 | @Autowired |
932 | UserTvService userTvService; | ||
933 | @Autowired | ||
934 | private StringRedisTemplate stringRedisTemplate; | 981 | private StringRedisTemplate stringRedisTemplate; |
935 | @Autowired | 982 | @Autowired |
936 | private PointsOperationService pointsOperationService; | 983 | private PointsOperationService pointsOperationService; | ... | ... |
... | @@ -60,6 +60,7 @@ import org.springframework.transaction.annotation.Propagation; | ... | @@ -60,6 +60,7 @@ import org.springframework.transaction.annotation.Propagation; |
60 | import org.springframework.transaction.annotation.Transactional; | 60 | import org.springframework.transaction.annotation.Transactional; |
61 | import org.springframework.util.CollectionUtils; | 61 | import org.springframework.util.CollectionUtils; |
62 | 62 | ||
63 | import java.time.LocalDateTime; | ||
63 | import java.util.*; | 64 | import java.util.*; |
64 | import java.util.concurrent.TimeUnit; | 65 | import java.util.concurrent.TimeUnit; |
65 | import java.util.stream.Collectors; | 66 | import java.util.stream.Collectors; |
... | @@ -958,7 +959,7 @@ public class UserOperationServiceImpl implements UserOperationService { | ... | @@ -958,7 +959,7 @@ public class UserOperationServiceImpl implements UserOperationService { |
958 | 959 | ||
959 | if (memberDTO != null) { | 960 | if (memberDTO != null) { |
960 | memberDTO.setUserIptvId(userIptvId); | 961 | memberDTO.setUserIptvId(userIptvId); |
961 | memberDTO.setBindIptvTime(TimestampUtil.now()); | 962 | memberDTO.setBindIptvTime(LocalDateTime.now()); |
962 | memberDTO.setBindIptvPlatformType(bindIptvPlatformType); | 963 | memberDTO.setBindIptvPlatformType(bindIptvPlatformType); |
963 | } | 964 | } |
964 | 965 | ... | ... |
... | @@ -10,6 +10,8 @@ import com.topdraw.util.TimestampUtil; | ... | @@ -10,6 +10,8 @@ import com.topdraw.util.TimestampUtil; |
10 | import org.junit.Test; | 10 | import org.junit.Test; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 12 | ||
13 | import java.time.LocalDateTime; | ||
14 | |||
13 | public class MemberControllerTest extends BaseTest { | 15 | public class MemberControllerTest extends BaseTest { |
14 | 16 | ||
15 | 17 | ||
... | @@ -75,7 +77,7 @@ public class MemberControllerTest extends BaseTest { | ... | @@ -75,7 +77,7 @@ public class MemberControllerTest extends BaseTest { |
75 | member.setDueCouponAmount(0L); | 77 | member.setDueCouponAmount(0L); |
76 | member.setUserIptvId(1L); | 78 | member.setUserIptvId(1L); |
77 | member.setBindIptvPlatformType(0); | 79 | member.setBindIptvPlatformType(0); |
78 | member.setUpdateTime(TimestampUtil.now()); | 80 | member.setUpdateTime(LocalDateTime.now()); |
79 | String s = JSON.toJSONString(member); | 81 | String s = JSON.toJSONString(member); |
80 | ResultInfo byId = this.memberController.create(member); | 82 | ResultInfo byId = this.memberController.create(member); |
81 | LOG.info("===>>>"+byId); | 83 | LOG.info("===>>>"+byId); | ... | ... |
... | @@ -9,6 +9,8 @@ import com.topdraw.util.TimestampUtil; | ... | @@ -9,6 +9,8 @@ import com.topdraw.util.TimestampUtil; |
9 | import org.junit.Test; | 9 | import org.junit.Test; |
10 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
11 | 11 | ||
12 | import java.time.LocalDateTime; | ||
13 | |||
12 | public class MemberOperationServiceTest extends BaseTest { | 14 | public class MemberOperationServiceTest extends BaseTest { |
13 | 15 | ||
14 | @Autowired | 16 | @Autowired |
... | @@ -43,7 +45,7 @@ public class MemberOperationServiceTest extends BaseTest { | ... | @@ -43,7 +45,7 @@ public class MemberOperationServiceTest extends BaseTest { |
43 | member.setDueCouponAmount(0L); | 45 | member.setDueCouponAmount(0L); |
44 | member.setUserIptvId(1L); | 46 | member.setUserIptvId(1L); |
45 | member.setBindIptvPlatformType(0); | 47 | member.setBindIptvPlatformType(0); |
46 | member.setUpdateTime(TimestampUtil.now()); | 48 | member.setUpdateTime(LocalDateTime.now()); |
47 | String s = JSONObject.toJSONString(member); | 49 | String s = JSONObject.toJSONString(member); |
48 | 50 | ||
49 | this.memberOperationService.doUpdateMemberInfo(member); | 51 | this.memberOperationService.doUpdateMemberInfo(member); |
... | @@ -71,9 +73,9 @@ public class MemberOperationServiceTest extends BaseTest { | ... | @@ -71,9 +73,9 @@ public class MemberOperationServiceTest extends BaseTest { |
71 | member.setDueCouponAmount(0L); | 73 | member.setDueCouponAmount(0L); |
72 | member.setUserIptvId(1L); | 74 | member.setUserIptvId(1L); |
73 | member.setBindIptvPlatformType(0); | 75 | member.setBindIptvPlatformType(0); |
74 | member.setBindIptvTime(TimestampUtil.now()); | 76 | member.setBindIptvTime(LocalDateTime.now()); |
75 | member.setCreateTime(TimestampUtil.now()); | 77 | member.setCreateTime(LocalDateTime.now()); |
76 | member.setUpdateTime(TimestampUtil.now()); | 78 | member.setUpdateTime(LocalDateTime.now()); |
77 | // member.setUpdateTime(Timestamp.valueOf(LocalDateTime.now())); | 79 | // member.setUpdateTime(Timestamp.valueOf(LocalDateTime.now())); |
78 | this.memberOperationService.doInsertMember(member); | 80 | this.memberOperationService.doInsertMember(member); |
79 | } | 81 | } | ... | ... |
-
Please register or sign in to post a comment