Explorar el Código

微浦MES,下料,全部下料,工单在线数据清空绑定飞达单号调整

xiaost hace 1 mes
padre
commit
ac15f8a353
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/com/uas/mes/pda/service/impl/PdaSMTServiceImpl.java

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

@@ -529,6 +529,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 								+" sysdate,'"+dsl_location+"','"+linecode+"','"+ma_code+"','"+table+"',"+isVir+" from feeder where fe_code='"+fecode+"' and fe_location='"+dsl_location+"'");
 						sql += " where fe_location='"+dsl_location+"' and fe_code='"+fecode+"'";
 						sqls.add(sql);
+						sqls.add("update devsmtlocation set dsl_fecode=null where dsl_fecode='"+fecode+"' and dsl_location='"+dsl_location+"'");
 					}
 				}else{
 					if(Untying==-1){
@@ -666,6 +667,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 								+" sysdate,'"+dsl_location+"','"+dl_linecode+"','"+dl_macode+"','"+dl_table+"',"+isVir+" from feeder where fe_code='"+fecode+"' and fe_location='"+dsl_location+"'");
 						sql += " where fe_location='"+dsl_location+"' and fe_code='"+fecode+"'";
 						sqls.add(sql);
+						sqls.add("update devsmtlocation set dsl_fecode=null where dsl_fecode='"+fecode+"' and dsl_location='"+dsl_location+"'");
 					}else {
 						if (Untying == -1) {
 							sqls.add("update feeder set fe_location='',fe_barcode='' where fe_location='" + dsl_location + "'");
@@ -761,6 +763,7 @@ public class PdaSMTServiceImpl implements PdaSMTService {
 							+ " sysdate,'" + dsl_location + "','" + dl_linecode + "','" + dl_macode + "','" + dl_table + "'," + isVir + " from feeder where fe_code='" + fecode + "' and fe_location='" + dsl_location + "'");
 					sql += " where fe_location='" + dsl_location + "' and fe_code='" + fecode + "'";
 					sqls.add(sql);
+					sqls.add("update devsmtlocation set dsl_fecode=null where dsl_fecode='"+fecode+"' and dsl_location='"+dsl_location+"'");
 				}
 			}