From 81bda9441c1de11d78e518dbe5ee632ba7144c90 Mon Sep 17 00:00:00 2001 From: shiyunteng <shiyunteng@example.com> Date: 星期一, 31 三月 2025 11:55:57 +0800 Subject: [PATCH] 验收明细和出租台账中可按设备单次验收或出租 所有验收明细中设备数量与合同中设备数量一致修改合同状态 所有台账明细中设备数量与合同中设备数量一致修改合同状态 --- platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml b/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml index 2d6d259..635bf6f 100644 --- a/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml +++ b/platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml @@ -49,4 +49,21 @@ dll.id = #{ledgerId} and d.id = ci.device_id ); </select> + <select id="getDeviceListByContractId" resultType="com.by4cloud.platformx.device.entity.Device"> + select + * + from + device d + where + d.del_flag = '0' + and exists ( + select + ci.device_id + from + contract_item ci + where + ci.del_flag = '0' + and ci.contract_id = #{contractId} + and ci.device_id = d.id ) + </select> </mapper> -- Gitblit v1.9.1