Browse Source

【微浦MES】条码站位下料逻辑补充

caosy 3 years ago
parent
commit
73d91a7bdf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

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

@@ -420,6 +420,8 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 					}
 					    sqls.add("update devsmtlocation set dsl_status=-1,dsl_cutman='"+SystemSession.getUser().getEm_name()+"',dsl_invalidtime=sysdate"
 							+" where dsl_linecode='"+linecode+"' and dsl_makecode='"+ma_code+"' and dsl_status=0 and dsl_location ='"+dsl_location+"' and dsl_table='"+map.get("DL_TABLE")+"' and dsl_invalidtime is  null");
+				        sqls.add("update devsmtlocation set dsl_status=-1,DSL_USABLE = 2 "
+						+" where dsl_linecode='"+linecode+"' and dsl_makecode='"+ma_code+"' and dsl_status=0 and dsl_location ='"+dsl_location+"' and dsl_table='"+map.get("DL_TABLE")+"' ");
 				    //记录日志下料
 				    rs = baseDao.queryForRowSet("select dl_macode,dl_hasmake from deviceline where dl_linecode =?",linecode);
 					int has_make=0;