Commit 932b0c98 932b0c989e7257d5c0ce09a4c7b22ac1254ba371 by xianghan

1.update

1 parent 8e2c13c0
...@@ -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 }
1 package com.topdraw.business.process.service; 1 package com.topdraw.business.process.service;
2 2
3 import com.topdraw.business.process.domian.TempPoints;
4
5 import java.util.List;
6
7 /** 3 /**
8 * @description 积分操作接口 4 * @description 积分操作接口
9 * @author XiangHan 5 * @author XiangHan
......
...@@ -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 }
......