1.update
Showing
5 changed files
with
13 additions
and
23 deletions
| ... | @@ -84,6 +84,10 @@ public class PointsDetail implements Serializable { | ... | @@ -84,6 +84,10 @@ public class PointsDetail implements Serializable { |
| 84 | @Column(name = "description", nullable = false) | 84 | @Column(name = "description", nullable = false) |
| 85 | private String description; | 85 | private String description; |
| 86 | 86 | ||
| 87 | // 商品id | ||
| 88 | @Column(name = "item_id") | ||
| 89 | private Long itemId; | ||
| 90 | |||
| 87 | // 创建时间 | 91 | // 创建时间 |
| 88 | @CreatedDate | 92 | @CreatedDate |
| 89 | @Column(name = "create_time") | 93 | @Column(name = "create_time") | ... | ... |
| ... | @@ -55,6 +55,9 @@ public class PointsDetailDTO implements Serializable { | ... | @@ -55,6 +55,9 @@ public class PointsDetailDTO implements Serializable { |
| 55 | // 积分变化描述,用于管理侧显示 | 55 | // 积分变化描述,用于管理侧显示 |
| 56 | private String description; | 56 | private String description; |
| 57 | 57 | ||
| 58 | // 商品id | ||
| 59 | private Long itemId; | ||
| 60 | |||
| 58 | // 创建时间 | 61 | // 创建时间 |
| 59 | private Timestamp createTime; | 62 | private Timestamp createTime; |
| 60 | 63 | ... | ... |
| 1 | package com.topdraw.business.module.points.detail.service.dto; | ||
| 2 | |||
| 3 | import com.topdraw.annotation.Query; | ||
| 4 | import lombok.Data; | ||
| 5 | |||
| 6 | /** | ||
| 7 | * @author XiangHan | ||
| 8 | * @date 2021-10-22 | ||
| 9 | */ | ||
| 10 | @Data | ||
| 11 | public class PointsDetailQueryCriteria{ | ||
| 12 | |||
| 13 | @Query(type = Query.Type.EQUAL) | ||
| 14 | private Long memberId; | ||
| 15 | |||
| 16 | @Query(type = Query.Type.EQUAL) | ||
| 17 | private Long accountId; | ||
| 18 | |||
| 19 | } |
| ... | @@ -68,4 +68,10 @@ public class PointsOperationServiceImpl implements PointsOperationService { | ... | @@ -68,4 +68,10 @@ public class PointsOperationServiceImpl implements PointsOperationService { |
| 68 | pointsDetail.setMemberId(memberDTO.getId()); | 68 | pointsDetail.setMemberId(memberDTO.getId()); |
| 69 | this.pointsDetailService.create4Custom(pointsDetail); | 69 | this.pointsDetailService.create4Custom(pointsDetail); |
| 70 | } | 70 | } |
| 71 | |||
| 72 | public void asyncDeletePointsAvailable(PointsAvailable pointsAvailable) { | ||
| 73 | String code = pointsAvailable.getCode(); | ||
| 74 | PointsAvailableDTO pointsAvailableDTO = this.pointsAvailableService.getByCode(code); | ||
| 75 | this.pointsAvailableService.delete(pointsAvailableDTO.getId()); | ||
| 76 | } | ||
| 71 | } | 77 | } | ... | ... |
-
Please register or sign in to post a comment