SQL("D2-DG","SELECT MIN(OUT_PROCESS_TIME) FROM sajet.G_GOLDENSAMPLE_TRAVEL WHERE CREATE_TIME BETWEEN TO_DATE('"+S2+"','YYYY-MM-DD HH24:MI:SS') AND TO_DATE('"+S3+"','YYYY-MM-DD HH24:MI:SS') AND PART_ID IN(SELECT PART_ID FROM SAJET.SYS_PART WHERE MODEL_ID IN(SELECR MODEL_ID FROM SAJET.SYS_MODEL WHERE MODEL_NAME='"+B2+"'AND TERMINAL_ID IN(SELECT TERMINAL_ID FROM SAJET.SYS_TERMINAL WHERE TERMINAL_NAME='"+Q2+"')))",1,1) |