From 72398b758a5e1944270ac83f2c496b80df1e38d3 Mon Sep 17 00:00:00 2001 From: xuyang <748613696@qq.com> Date: Tue, 12 Sep 2023 15:52:08 +0800 Subject: [PATCH] =?UTF-8?q?SQL=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/njcn/csdevice/mapper/mapping/CsLinePOMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsLinePOMapper.xml b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsLinePOMapper.xml index c8a409b..923a6d6 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsLinePOMapper.xml +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsLinePOMapper.xml @@ -29,10 +29,10 @@ from cs_equipment_delivery t0 left join cs_ledger t1 on - t0.id = t1.Id + t0.id = t1.Id and t1.State = 1 left join cs_ledger t2 on - t1.Id = t2.Pid - left join cs_line t3 on t2.Id = t3.line_id + t1.Id = t2.Pid and t2.State = 1 + left join cs_line t3 on t2.Id = t3.line_id and t3.status = 1 where t0.ndid = #{id}