From 3660c62eca4ec4bf3fda22607abdf6d702f06abd Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Tue, 08 Jul 2025 16:34:33 +0800 Subject: [PATCH] 新增主键替代复合主键 --- oying-system/src/main/resources/mapper/sh/OrderAddressSnapshotMapper.xml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/oying-system/src/main/resources/mapper/sh/OrderAddressSnapshotMapper.xml b/oying-system/src/main/resources/mapper/sh/OrderAddressSnapshotMapper.xml index e5c36b7..10dd77d 100644 --- a/oying-system/src/main/resources/mapper/sh/OrderAddressSnapshotMapper.xml +++ b/oying-system/src/main/resources/mapper/sh/OrderAddressSnapshotMapper.xml @@ -31,4 +31,10 @@ </where> order by snapshot_id desc </select> -</mapper> \ No newline at end of file + <select id="queryByOrderNum" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from sh_order_address_snapshot + where order_num = #{orderNum} + </select> +</mapper> -- Gitblit v1.9.3