diff --git a/src/main/java/com/example/demo/domain/dou/Pay.java b/src/main/java/com/example/demo/domain/dou/Pay.java
index 73aa8fb..4c6a1bd 100644
--- a/src/main/java/com/example/demo/domain/dou/Pay.java
+++ b/src/main/java/com/example/demo/domain/dou/Pay.java
@@ -20,7 +20,7 @@ public class Pay {
private String nickname;
private BigDecimal price;
private Integer count;
- private Integer payStyle;
+ private String payStyle;
private Integer state;
private Integer platfrom;
private Integer successTime;
diff --git a/src/main/java/com/example/demo/domain/dou/RechargeTotal.java b/src/main/java/com/example/demo/domain/dou/RechargeTotal.java
index de69f52..70c2301 100644
--- a/src/main/java/com/example/demo/domain/dou/RechargeTotal.java
+++ b/src/main/java/com/example/demo/domain/dou/RechargeTotal.java
@@ -19,7 +19,7 @@ public class RechargeTotal {
private String type;
private BigDecimal priceTotal;
private Integer countTotal;
- private Integer payStyle;
+ private String payStyle;
private String deptName;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@DateTimeFormat(pattern = "yyyy-MM-dd")
diff --git a/src/main/java/com/example/demo/domain/dou/Spend.java b/src/main/java/com/example/demo/domain/dou/Spend.java
index 9d9eb2d..3a8a8c4 100644
--- a/src/main/java/com/example/demo/domain/dou/Spend.java
+++ b/src/main/java/com/example/demo/domain/dou/Spend.java
@@ -37,4 +37,5 @@ public class Spend implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date endTime;
private String room;
+ private Integer sourceType;
}
diff --git a/src/main/resources/mapperLink/DouMapper.xml b/src/main/resources/mapperLink/DouMapper.xml
index c9e4a9c..3fdbb36 100644
--- a/src/main/resources/mapperLink/DouMapper.xml
+++ b/src/main/resources/mapperLink/DouMapper.xml
@@ -83,7 +83,7 @@
fm.nickname,
fy.content,
fy.pay_type,
- fy.source_type AS good,
+ fy.source_type,
fm.jwcode,
fm.ip_address,
fy.money_free,
@@ -109,10 +109,10 @@
AND fy.source_name = #{sourceName}
-
+
AND fy.pay_type = #{payType}
-
+
AND fy.source_type = #{good}
@@ -144,10 +144,10 @@
AND fy.source_name = #{sourceName}
-
+
AND fy.pay_type = #{payType}
-
+
AND fy.source_type = #{sourceType}
diff --git a/src/main/resources/mapperPay/PayMapper.xml b/src/main/resources/mapperPay/PayMapper.xml
index 64425de..89b8469 100644
--- a/src/main/resources/mapperPay/PayMapper.xml
+++ b/src/main/resources/mapperPay/PayMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- and go.pay_style = #{payStyle}
+ and gps.`name` = #{payStyle}
and mi.deptName = #{deptName}
@@ -44,6 +44,7 @@ LEFT JOIN member_info as mi on go.jwcode = mi.jwcode
sum(price) as priceTotal,
sum(count) as countTotal
FROM g_order as go
+ LEFT JOIN g_pay_style gps on go.pay_style=gps.id
and go.jwcode = #{jwcode}
@@ -55,7 +56,7 @@ LEFT JOIN member_info as mi on go.jwcode = mi.jwcode
and go.type = #{type}
- and go.pay_style = #{payStyle}
+ and gps.`name` = #{payStyle}
and mi.deptName = #{deptName}