@@ -407,8 +419,8 @@ int ProcessPosReqData(const char *indata, string &in, int *needrbk, int *reqType
...
@@ -407,8 +419,8 @@ int ProcessPosReqData(const char *indata, string &in, int *needrbk, int *reqType
std::stringstreamcreatsql,insetsql,updatesql;
std::stringstreamcreatsql,insetsql,updatesql;
creatsql<<"create table IF NOT EXISTS "<<DB_TABLE_NAME<<"(orderID varchar(200) NOT NULL,parentID varchar(60),businessDate date,PRIMARY KEY (orderID))";
creatsql<<"create table IF NOT EXISTS "<<DB_TABLE_NAME<<"(orderID varchar(200) NOT NULL,parentID varchar(60),businessDate date,PRIMARY KEY (orderID))";
insetsql<<"insert into "<<DB_TABLE_NAME<<"(orderID,parentID,businessDate)values('"<<tmpkey.str().c_str()<<"','"<<tmps.str().c_str()<<"','"<<date<<"')";
insetsql<<"insert into "<<DB_TABLE_NAME<<"(orderID,parentID,businessDate)values('"<<tmpkey.str().c_str()<<"','"<<tmps.str().c_str()<<"','"<<datastm.str().c_str()<<"')";
updatesql<<"update "<<DB_TABLE_NAME<<" set parentID='"<<tmps.str().c_str()<<"',businessDate='"<<date<<"' where orderID='"<<tmpkey.str().c_str()<<"'";
updatesql<<"update "<<DB_TABLE_NAME<<" set parentID='"<<tmps.str().c_str()<<"',businessDate='"<<datastm.str().c_str()<<"' where orderID='"<<tmpkey.str().c_str()<<"'";