@@ -86,6 +86,9 @@ public class LuckyDrawView {
@DbField("ld.status")
private Boolean status;
+ @DbIgnore
+ private Long recordId;
+
/**
* 中奖人数
*/
@@ -230,6 +230,7 @@ public class MarketFrontServiceImpl implements MarketFrontService {
record.setUserId(userId);
record.setDrawId(luckyDraw.getId());
luckyDrawRecordMapper.insert(record);
+ luckyDraw.setRecordId(record.getId());
return luckyDraw;
}