修复设备信息查询 SQL 语句中的列名引用
- 在 DevInfoMapper.xml 文件中,将 identify_code 列名前添加表别名 d - 此修改解决了 SQL 语句中列名引用不明确的问题,确保查询能够正确执行
This commit is contained in:
parent
2a4f714d9c
commit
dcc6e79df1
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue