|
|
|
@ -1038,7 +1038,7 @@ namespace ibk.IPD.Controller.IPD_PS
|
|
|
|
|
//strSql.AppendLine(" AND IS_STATE='1' ");
|
|
|
|
|
|
|
|
|
|
strSql.AppendLine(" select ");
|
|
|
|
|
strSql.AppendLine(" to_date(INS_DATE, 'yyyy-mm-dd hh24:mi:ss') send_date ");
|
|
|
|
|
strSql.AppendLine(" to_date(INS_DATE, 'yyyy-mm-dd hh24:mi:ss') SEND_DATE ");
|
|
|
|
|
strSql.AppendLine(" ,PLATE_NO,SMP_NO,NVL(COSTS, 0) COSTS ");
|
|
|
|
|
strSql.AppendLine(" ,case DISPOSE when '1' then '并号' when '2' then '不符标准' when '3' then '无试样' else '并样' end types ");
|
|
|
|
|
strSql.AppendLine(" , case SYNOPSIS when 2 then '不发送' else '发送' end IS_PDI ");
|
|
|
|
@ -1168,20 +1168,26 @@ namespace ibk.IPD.Controller.IPD_PS
|
|
|
|
|
if (QAGP.START_TIME != DateTime.MinValue)
|
|
|
|
|
{
|
|
|
|
|
//strSql.AppendLine(" AND TO_DATE('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss')+t.timestamp/86400000 >= TO_DATE('" + QAGP.START_TIME + "','yyyy-MM-dd HH24:mi:ss')");
|
|
|
|
|
strSql.AppendLine(" AND to_date(SUBSTR( INS_DATE,0,8) ,'yyyy-mm-dd') >= TO_DATE('" + QAGP.START_TIME.ToString().Substring(0,10) + "', 'yyyy-MM-dd') ");
|
|
|
|
|
//AND to_date(SUBSTR(INS_DATE,0,8) ,'YYYY-MM-DD HH24:MI:SS') >= TO_DATE('2024/4/25 0:00:00', 'YYYY-MM-DD HH24:MI:SS')
|
|
|
|
|
strSql.AppendLine(" AND to_date(SUBSTR( INS_DATE,0,8) ,'YYYY-MM-DD HH24:MI:SS') >= TO_DATE('" + QAGP.START_TIME.ToString() + "', 'YYYY-MM-DD HH24:MI:SS') ");
|
|
|
|
|
}
|
|
|
|
|
if (QAGP.END_TIME != DateTime.MinValue)
|
|
|
|
|
{
|
|
|
|
|
//strSql.AppendLine(" AND TO_DATE('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss')+t.timestamp/86400000 <= TO_DATE('" + QAGP.END_TIME + "','yyyy-MM-dd HH24:mi:ss')");
|
|
|
|
|
strSql.AppendLine(" AND to_date(SUBSTR( INS_DATE,0,8) ,'yyyy-mm-dd') <= TO_DATE('" + QAGP.END_TIME.ToString().Substring(0, 10) + "', 'yyyy-MM-dd') ");
|
|
|
|
|
////strSql.AppendLine(" AND TO_DATE('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss')+t.timestamp/86400000 <= TO_DATE('" + QAGP.END_TIME + "','yyyy-MM-dd HH24:mi:ss')");
|
|
|
|
|
//strSql.AppendLine(" AND to_date(SUBSTR( INS_DATE,0,8) ,'yyyy-mm-dd') <= TO_DATE('" + QAGP.END_TIME.ToString().Substring(0, 10) + "', 'yyyy-MM-dd') ");
|
|
|
|
|
strSql.AppendLine(" AND to_date(SUBSTR( INS_DATE,0,8) ,'YYYY-MM-DD HH24:MI:SS') <= TO_DATE('" + QAGP.END_TIME.ToString() + "', 'YYYY-MM-DD HH24:MI:SS') ");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
strSql.AppendLine("ORDER BY INS_DATE");
|
|
|
|
|
#endregion
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//开启数据库连接查询数据
|
|
|
|
|
using (IDbContext db = ObjectContainer.GetObject<IDbContext>("db"))
|
|
|
|
|
{
|
|
|
|
|
logger.InfoFormat("GetPDI_SMP_NO 报错SQL {0} ", QAGP.START_TIME.ToString());
|
|
|
|
|
logger.InfoFormat("GetPDI_SMP_NO 报错SQL {0} ", QAGP.END_TIME.ToString());
|
|
|
|
|
logger.InfoFormat("GetPDI_SMP_NO 报错SQL {0} ", strSql.ToString());
|
|
|
|
|
|
|
|
|
|
dtCheck = db.Query(strSql.ToString());
|
|
|
|
|
dtCheck.Columns.Add("PROC_CD_NOW");
|
|
|
|
|
dtCheck.Columns.Add("SMP_NO_NOW");
|
|
|
|
|