From 258c781597200e0d82fda71fd53a9f8254b9ad91 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 14 Jun 2022 11:57:46 +0800
Subject: [PATCH] 农场,农产品,种类,种植,农事,采收,农产品库存新增租户农场id 字段,接口修改
---
src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml b/src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
index 873edb4..2ce7dbc 100644
--- a/src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
+++ b/src/main/java/org/springblade/modules/farmplant/mapper/FarmProductStockMapper.xml
@@ -20,6 +20,12 @@
<if test="farmProductStock.endTime!=null and farmProductStock.endTime!=''">
and sfps.time <= #{farmProductStock.endTime}
</if>
+ <if test="farmProductStock.deptId!=null and farmProductStock.deptId!=''">
+ and sfps.dept_id = #{farmProductStock.deptId}
+ </if>
+ <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''">
+ and sfps.tenant_id = #{farmProductStock.tenantId}
+ </if>
group by sfps.strain_id,ss.url,ss.strain_name
</select>
@@ -42,6 +48,12 @@
<if test="farmProductStock.endTime!=null and farmProductStock.endTime!=''">
and sfps.time <= #{farmProductStock.endTime}
</if>
+ <if test="farmProductStock.deptId!=null and farmProductStock.deptId!=''">
+ and sfps.dept_id = #{farmProductStock.deptId}
+ </if>
+ <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''">
+ and sfps.tenant_id = #{farmProductStock.tenantId}
+ </if>
group by sfps.strain_id,ss.url,ss.strain_name
</select>
--
Gitblit v1.9.3