From 9db60cbfb882aea3c59571b361433d322ade1bed Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: Tue, 02 Nov 2021 16:01:13 +0800
Subject: [PATCH] 供货商订单管理 页码总数问题
---
src/main/java/com/nanometer/smartlab/dao/SupplierOpeOrderDao.xml | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/nanometer/smartlab/dao/SupplierOpeOrderDao.xml b/src/main/java/com/nanometer/smartlab/dao/SupplierOpeOrderDao.xml
index 701803b..2a48f44 100644
--- a/src/main/java/com/nanometer/smartlab/dao/SupplierOpeOrderDao.xml
+++ b/src/main/java/com/nanometer/smartlab/dao/SupplierOpeOrderDao.xml
@@ -94,6 +94,33 @@
where 1 = 1
and oo.id = #{id}
</select>
+ <select id="getSupplierListTotal" resultType="java.lang.Integer">
+ select (count(0))
+ from (
+ select count(0)
+ from ope_order oo
+ LEFT JOIN ope_apply_order oao on oo.id = oao.ope_order_id
+ left join ope_apply as oa on oao.ope_apply_id = oa.id
+ where 1 = 1
+ <if test="code != null and code != ''">
+ and oo.order_code like concat('%',#{code},'%')
+ </if>
+ <if test="status != null">
+ and oo.status = #{status}
+ </if>
+ <if test="orderTime != null">
+ and oo.create_time >= #{orderTime}
+ </if>
+ <if test="orderEndTime != null">
+ and #{orderEndTime} >= oo.create_time
+ </if>
+ <if test="applyCode != null and applyCode != ''">
+ and oa.apply_code like concat('%',#{applyCode},'%')
+ </if>
+ GROUP BY oo.id
+ ) as a
+
+ </select>
<update id="updateDestoryFlagById" parameterType="com.nanometer.smartlab.entity.SupplierOrder">
update ope_order set destory_flag=1 where id=#{id}
--
Gitblit v1.9.2