Browse Source

微浦MES,增加飞达校验,等飞达相关修改

xiaost 3 days ago
parent
commit
d04e2f76d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

+ 1 - 1
src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

@@ -2626,7 +2626,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 		}
 		}
 		//如果站位是在线的devsmtlocation 表里面并且dsl_status=0,并且线别非虚拟线别 未校验不可以接料
 		//如果站位是在线的devsmtlocation 表里面并且dsl_status=0,并且线别非虚拟线别 未校验不可以接料
 		baseDao.execute("update devsmtlocation set dsl_iffeedcheck=0,DSL_FECODE=null where dsl_id in (select dsl_id from devsmtlocation left join line on dsl_linecode=li_code " +
 		baseDao.execute("update devsmtlocation set dsl_iffeedcheck=0,DSL_FECODE=null where dsl_id in (select dsl_id from devsmtlocation left join line on dsl_linecode=li_code " +
-				"where dsl_location=? )",location); //and nvl(li_isvirtual,0)=0 虚拟非虚拟线解绑都更新
+				"where dsl_location=? and dsl_fecode=?)",location,fecode); //and nvl(li_isvirtual,0)=0 虚拟非虚拟线解绑都更新
 		Map<String, Object> rmap = new HashMap<>();
 		Map<String, Object> rmap = new HashMap<>();
 		rmap.put("location",location);
 		rmap.put("location",location);
 		rmap.put("fecode",fecode);
 		rmap.put("fecode",fecode);