From 06b182905fcb8ea1931f8a6dd69fd6ef2d4928b8 Mon Sep 17 00:00:00 2001 From: shiyunteng <shiyunteng@example.com> Date: 星期五, 28 三月 2025 15:52:18 +0800 Subject: [PATCH] 合同明细中序列号唯一性判断 台账中业务判断 --- platformx-device-biz/src/main/resources/mapper/InventoryFlowWaterMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/platformx-device-biz/src/main/resources/mapper/InventoryFlowWaterMapper.xml b/platformx-device-biz/src/main/resources/mapper/InventoryFlowWaterMapper.xml index 3ca2275..9f9ab0b 100644 --- a/platformx-device-biz/src/main/resources/mapper/InventoryFlowWaterMapper.xml +++ b/platformx-device-biz/src/main/resources/mapper/InventoryFlowWaterMapper.xml @@ -18,4 +18,23 @@ <result property="updateTime" column="update_time"/> <result property="delFlag" column="del_flag"/> </resultMap> + <select id="pageNew" resultType="com.by4cloud.platformx.device.entity.vo.InventoryFlowWaterPageVo"> + select + ifw.id, + d.name devicName, + dc.name className, + d.create_time , + ifw.operate_type, + di.serial_no + from + inventory_flow_water ifw + join device d on d.id = ifw.device_id + join device_class dc on dc.id = ifw.class_id + join device_inventory di on di.id = ifw.inventory_id + where + ifw.del_flag = '0' + <if test="queryDTO.deviceName != null and queryDTO.deviceName !=''"> + and d.name like CONCAT('%', #{queryDTO.deviceName}, '%') + </if> + </select> </mapper> -- Gitblit v1.9.1