|
@@ -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;
|