|
@@ -17,7 +17,8 @@ import java.util.Date;
|
|
|
*/
|
|
*/
|
|
|
@Getter
|
|
@Getter
|
|
|
@Setter
|
|
@Setter
|
|
|
-@SearchBean(tables = "(select * from gift_card_user_record where is_pay is true :condition:) gr left join user u on u.id = gr.user_id")
|
|
|
|
|
|
|
+@SearchBean(tables = "(select * from gift_card_user_record where is_pay is true :condition:) gr left join user u on u.id = gr.user_id" +
|
|
|
|
|
+ " left join user u2 on u2.id = gr.to_user_id")
|
|
|
public class GiftCardUserPayFrontView {
|
|
public class GiftCardUserPayFrontView {
|
|
|
@DbField("gr.id")
|
|
@DbField("gr.id")
|
|
|
private Long id;
|
|
private Long id;
|
|
@@ -64,10 +65,6 @@ public class GiftCardUserPayFrontView {
|
|
|
@DbField("gr.img")
|
|
@DbField("gr.img")
|
|
|
private String gcImg;
|
|
private String gcImg;
|
|
|
|
|
|
|
|
- public Boolean getUsed() {
|
|
|
|
|
- if (gcType == 1 && remainCash != null && remainCash.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
- return isUsed;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ @DbField("u2.nickname")
|
|
|
|
|
+ private String toNickname;
|
|
|
}
|
|
}
|