From 98bc7d08ae6fff8c4ed5b87e55336f98d235b7b9 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Mon, 06 Jun 2022 15:25:16 +0800
Subject: [PATCH] 农资统计
---
src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml b/src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
index 933d5ff..a601d8d 100644
--- a/src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
+++ b/src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
@@ -196,10 +196,10 @@
WHERE stock_type1 = 1
AND type1 = 0
<if test="startTime!=null and startTime!=''">
- and time1 >= #{stock.startTime}
+ and time1 >= #{startTime}
</if>
<if test="endTime!=null and endTime!=''">
- and time1 <= #{stock.endTime}
+ and time1 <= #{endTime}
</if>
GROUP BY stock_id1) cg ON cg.stock_id1 = a.id
LEFT JOIN (SELECT stock_id1, SUM(census) AS dbrknum
@@ -207,10 +207,10 @@
WHERE stock_type1 = 1
AND type1 = 1
<if test="startTime!=null and startTime!=''">
- and time1 >= #{stock.startTime}
+ and time1 >= #{startTime}
</if>
<if test="endTime!=null and endTime!=''">
- and time1 <= #{stock.endTime}
+ and time1 <= #{endTime}
</if>
GROUP BY stock_id1) dbr ON dbr.stock_id1 = a.id
LEFT JOIN (SELECT stock_id1, SUM(census) AS lycknum
@@ -218,10 +218,10 @@
WHERE stock_type1 = 0
AND type1 = 0
<if test="startTime!=null and startTime!=''">
- and time1 >= #{stock.startTime}
+ and time1 >= #{startTime}
</if>
<if test="endTime!=null and endTime!=''">
- and time1 <= #{stock.endTime}
+ and time1 <= #{endTime}
</if>
GROUP BY stock_id1) lyc ON lyc.stock_id1 = a.id
LEFT JOIN (SELECT stock_id1, SUM(census) AS dbcknum
@@ -229,10 +229,10 @@
WHERE stock_type1 = 0
AND type1 = 1
<if test="startTime!=null and startTime!=''">
- and time1 >= #{stock.startTime}
+ and time1 >= #{startTime}
</if>
<if test="endTime!=null and endTime!=''">
- and time1 <= #{stock.endTime}
+ and time1 <= #{endTime}
</if>
GROUP BY stock_id1) dbc ON dbc.stock_id1 = a.id
LEFT JOIN (SELECT stock_id1, SUM(census) AS bfcknum
@@ -240,10 +240,10 @@
WHERE stock_type1 = 0
AND type1 = 2
<if test="startTime!=null and startTime!=''">
- and time1 >= #{stock.startTime}
+ and time1 >= #{startTime}
</if>
<if test="endTime!=null and endTime!=''">
- and time1 <= #{stock.endTime}
+ and time1 <= #{endTime}
</if>
GROUP BY stock_id1) bfc ON bfc.stock_id1 = a.id
</select>
--
Gitblit v1.9.3