Commit fc5768da authored by tianbo's avatar tianbo

fix(jg): 修复设备报废取消查询中的状态过滤逻辑

- 在查询条件中添加了设备状态不等于'3'或状态为空的过滤条件 - 防止已报废设备在取消操作中被错误包含 - 确保查询结果只返回符合条件的有效设备记录
parent 6c6a8bb7
...@@ -350,6 +350,7 @@ ...@@ -350,6 +350,7 @@
and pc.use_unit_credit_code=#{useUnitCreditCode} and pc.use_unit_credit_code=#{useUnitCreditCode}
and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '') and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '')
and pc.equ_category = '8300' and pc.equ_category = '8300'
and (pc.equ_state != '3' or pc.equ_state is null)
<if test="proIds != null and proIds.size() > 0"> <if test="proIds != null and proIds.size() > 0">
and pc.sequence_nbr not in and pc.sequence_nbr not in
<foreach collection="proIds" item="projectContraptionId" open="(" close=")" separator=","> <foreach collection="proIds" item="projectContraptionId" open="(" close=")" separator=",">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment