リビジョン 31
MySql対応(update分での副問合せ方法修正)
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs | ||
---|---|---|
601 | 601 |
// 対象データが存在すれば更新する |
602 | 602 |
strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO SET CONSTRUCTIONSTATUSFLG = {0}", iCode1); |
603 | 603 |
strSQL += " WHERE CONSTRUCTIONCODE IN"; |
604 |
strSQL += " (SELECT CONSTRUCTIONCODE from ("; // MySql対応(Updateの副問合せ対応)
|
|
604 |
strSQL += " (SELECT CONSTRUCTIONCODE FROM"; // MySql対応(Updateの副問合せ対応)
|
|
605 | 605 |
strSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO WHERE DATE(ESTIMATESSUBMITTEDDATE) != DATE_FORMAT('0001/01/01','%Y/%m/%d')"; |
606 | 606 |
strSQL += string.Format(" AND DATE(ESTIMATESSUBMITTEDDATE + {0})", s_NonOrderDay); |
607 | 607 |
strSQL += string.Format(" < DATE_FORMAT('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString()); |
608 | 608 |
strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3); |
609 | 609 |
strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1}))", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget); |
610 |
strSQL += " ) AS TMP"; // MySql対応(Updateの副問合せ対応)
|
|
610 |
strSQL += " AS TMP)"; // MySql対応(Updateの副問合せ対応)
|
|
611 | 611 |
if (!BaseDB.ExecuteNonQuery(strSQL)) |
612 | 612 |
{ |
613 | 613 |
logger.ErrorFormat("工事基本情報更新エラー 非受注案件移行処理失敗:{0}:{1}", CommonMotions.GetMethodName(), strSQL); |
他の形式にエクスポート: Unified diff