修复设备信息查询 SQL 语句中的列名引用

- 在 DevInfoMapper.xml 文件中,将 identify_code 列名前添加表别名 d
- 此修改解决了 SQL 语句中列名引用不明确的问题,确保查询能够正确执行
This commit is contained in:
syruan 2025-09-16 13:15:27 +08:00
parent 2a4f714d9c
commit dcc6e79df1
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDevInfoByMaId" parameterType="Long" resultType="com.bonus.material.device.domain.vo.DevInfoVo">
SELECT d.ma_id as maId,
d.code as code,
identify_code as identifyCode,
d.identify_code as identifyCode,
d.device_name as deviceName,
d.device_weight as deviceWeight,
d.device_count as deviceCount,