fix(dms): 修复PDA关机列表查询的SQL语法错误

- 在where条件中为shut_end_time和shut_reason_id字段添加表别名前缀
- 在order by子句中为shut_begin_time字段添加表别名前缀
- 确保SQL查询语句的字段引用准确性
master
zangch@mesnac.com 4 days ago
parent 88b3f40e5a
commit be0ae3b4ff

@ -136,8 +136,8 @@
<select id="selectPdaShutDownList" resultMap="DmsRecordShutDownResult">
<include refid="selectDmsRecordShutDownVo"/>
where (shut_end_time is null or shut_reason_id = 1)
order by shut_begin_time desc
where (r.shut_end_time is null or r.shut_reason_id = 1)
order by r.shut_begin_time desc
</select>
<update id="batchUpdateShutReason">

Loading…
Cancel
Save