|
|
@@ -1053,12 +1053,12 @@ public class PdaSMTServiceImpl implements PdaSMTService {
|
|
|
//更新湿敏条码状态为暴露中,操作日志为全部下料
|
|
|
//记录湿敏元器件下料,更新为暴露中@add xiaost 20200302,并且记录湿敏元器件日志
|
|
|
baseDao.execute("update msdbarcode set MB_EXPOSURETIME=nvl(mb_exposuretime,0) + round((sysdate - nvl(MB_ACTIONDATE,sysdate)) * 24.0 * 60.0,2) " +
|
|
|
- " ,mb_status='暴露中',MB_ACTIONDATE=sysdate ,mb_planoventime=0 where mb_barcode in(select dsl_barcode from devsmtlocation where dsl_linecode=? and dsl_makecode=? and dsl_status=0 and dsl_table = ? and dsl_usable<>2 and dsl_invalidtime is null) and mb_status='已上线'",dl_linecode,ma_oldcode,dl_table);
|
|
|
+ " ,mb_status='暴露中',MB_ACTIONDATE=sysdate ,mb_planoventime=0 where mb_barcode in(select dsl_barcode from devsmtlocation left join barcode on ba_code=dsl_barcode where dsl_linecode=? and dsl_makecode=? and dsl_status=0 and dsl_table = ? and dsl_usable<>2 and dsl_invalidtime is null and bar_place=1 and (bar_remain<0 or bar_remain=0)) and mb_status='已上线'",dl_linecode,ma_oldcode,dl_table);
|
|
|
baseDao.execute("insert into MSDLog(ms_id,ms_date,ms_barcode,ms_level,ms_lifetime,ms_action,"+
|
|
|
" ms_man,ms_location,ms_prodcode,ms_planoventime,ms_oventime,MS_REMARK) "+
|
|
|
" select msdlog_seq.nextval,sysdate,mb_barcode,mb_msdlevel,round((nvl(mb_floorlife,0.0) * 60.0 - nvl(mb_exposuretime,0)),2),'下料','" +
|
|
|
SystemSession.getUser().getEm_name()+"','',mb_prodcode,0,0,'线别:"+dl_linecode+",工单:"+ma_oldcode+",切换工单'"+
|
|
|
- " from msdbarcode where mb_barcode in(select dsl_barcode from devsmtlocation where dsl_linecode=? and dsl_makecode=? and dsl_status=0 and dsl_table = ? and dsl_usable<>2 and dsl_invalidtime is null) and mb_status='暴露中'",dl_linecode,ma_oldcode,dl_table);
|
|
|
+ " from msdbarcode where mb_barcode in(select dsl_barcode from devsmtlocation left join barcode on bar_code=dsl_barcode where dsl_linecode=? and dsl_makecode=? and dsl_status=0 and dsl_table = ? and dsl_usable<>2 and dsl_invalidtime is null and bar_place=1 and (bar_remain<0 or bar_remain=0)) and mb_status='暴露中'",dl_linecode,ma_oldcode,dl_table);
|
|
|
|
|
|
baseDao.execute("update devsmtlocation set dsl_status=-1, dsl_invalidtime=sysdate,dsl_cutman='"+SystemSession.getUser().getEm_name()+"'"
|
|
|
+" where dsl_linecode=? and dsl_makecode=? and dsl_status=0 and dsl_table = ? and dsl_usable<>2 and dsl_invalidtime is null",dl_linecode,ma_oldcode,dl_table);//原工单号
|