فهرست منبع

[微浦MES]SMT检验逻辑调整

caosy 4 سال پیش
والد
کامیت
a149be6ee8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

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

@@ -1352,6 +1352,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
         Integer ps_id = 0;
         Integer dl_id = 0;
         boolean success = Boolean.valueOf(String.valueOf(map1.get("success")));
+		success = true;
         SqlRowList rs;
         int cn=0;
         cn=baseDao.getCount("select count(1) from devsmtlocation where dsl_linecode='"+linecode+"' and dsl_table ='"+map.get("DL_TABLE")+"' and dsl_location = '"+map1.get("dsl_location")+"' and dsl_status = 0");
@@ -1374,7 +1375,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 				}else if(ps_id!=rs.getInt("dl_smtid")){//更新排位表ID
 
 				}
-				baseDao.execute("update devsmtlocation set dsl_ifcheck=-1 where dsl_linecode=? and dsl_makecode=? and dsl_location=? and dsl_status=0",linecode,ma_code,location);
+				baseDao.execute("update devsmtlocation set dsl_ifcheck=-1 where dsl_linecode=? and dsl_makecode=? and dsl_location=? and dsl_status=0 and dsl_barcode = ?",linecode,ma_code,location,prodcode);
 			}
         }
 		//成功失败都记录日志