Commit f22c7700 by chenxi

fix(rpc-dj-financial): 修正查询条件中字段的命名错误

- 将查询语句中 sp_no 字段修改为 oat.sp_no,确保字段作用域正确
- 修复了 SQL 语句的字段引用,避免潜在的数据过滤错误
- 提升查询语句的准确性和稳定性
- 改善代码可读性,明确字段所属表别名
1 parent 354084d7
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
on ad_ncbt.serial_no = cbtd2.acc_detail_serial_no and ad_ncbt.deleted_flag = 'N' and ad_ncbt.cd_sign = 1 on ad_ncbt.serial_no = cbtd2.acc_detail_serial_no and ad_ncbt.deleted_flag = 'N' and ad_ncbt.cd_sign = 1
<where> <where>
oat.deleted_flag = 'N' oat.deleted_flag = 'N'
and sp_no in and oat.sp_no in
<foreach close=")" collection="spNoList" index="index" item="item" open="(" separator=","> <foreach close=")" collection="spNoList" index="index" item="item" open="(" separator=",">
#{item} #{item}
</foreach> </foreach>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!