|
|
@@ -0,0 +1,40 @@
|
|
|
+package com.cyksj.model.views;
|
|
|
+
|
|
|
+import com.ejlchina.searcher.bean.DbField;
|
|
|
+import com.ejlchina.searcher.bean.SearchBean;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 项目名: yhlxj2
|
|
|
+ * 文件名: UserMirrorShopDsJoinOrderDetailView
|
|
|
+ * 创建者: JavaZou
|
|
|
+ * 创建时间:2024/11/12 10:20
|
|
|
+ */
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+@SearchBean(tables = "(select o.id,o.user_id,o.money,o.refund_money,o.created_time from user_mirror_shop_fee_order_don o where :yhs_id: and o.status not in ('close','noPayment') :time:) od" +
|
|
|
+ " inner join user_mirror_shop_distribute_waiting_send_points dp on dp.order_id = od.id and dp.type = 2")
|
|
|
+public class UserMirrorShopDsJoinOrderDetailView {
|
|
|
+
|
|
|
+ @DbField("select nickname from user where id = od.user_id limit 1")
|
|
|
+ private String nickname;
|
|
|
+
|
|
|
+ @DbField("cast(od.money/100 as decimal(10,2))")
|
|
|
+ private BigDecimal money;
|
|
|
+
|
|
|
+ @DbField("TRUNCATE(dp.money/100,2)")
|
|
|
+ private BigDecimal reMoney = BigDecimal.ZERO;
|
|
|
+
|
|
|
+ @DbField("if(send_status = 'success',TRUNCATE(dp.refund_money/100,2),0)")
|
|
|
+ private BigDecimal rdMoney;
|
|
|
+
|
|
|
+ @DbField("dp.send_status")
|
|
|
+ private String sendStatus;
|
|
|
+
|
|
|
+ @DbField("od.created_time")
|
|
|
+ private Date createdTime;
|
|
|
+}
|