123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- #include <stdio.h> /*標準輸入輸出定義*/
- #include <stdlib.h> /*標準函數庫定義*/
- #include <string.h>
- #include <stdint.h>
- #include <time.h>
- #include "../Config.h"
- #include "../Log/log.h"
- #include "../Define/define.h"
- #include "../ShareMemory/shmMem.h"
- //------------------------------------------------------------------------------
- #define DB_FILE "/Storage/ChargeLog/localCgargingRecord.db"
- #define DEDUCT_FILE "/Storage/ChargeLog/localDeductRecord.db"
- //------------------------------------------------------------------------------
- static sqlite3 *localDb;
- static sqlite3 *deductDb;
- //------------------------------------------------------------------------------
- //===============================================
- // SQLite3 related routine
- //===============================================
- int DB_Open(void)
- {
- int result = PASS;
- char *errMsg = NULL;
- char *createRecordSql = "CREATE TABLE IF NOT EXISTS charging_record("
- "idx integer primary key AUTOINCREMENT, "
- "reservationId text, "
- "transactionId text, "
- "startMethod text, "
- "userId text, "
- "dateTimeStart text, "
- "dateTimeStop text,"
- "socStart text, "
- "socStop text, "
- "chargeEnergy text, "
- "stopReason text"
- ");";
- /*char *createCfgSql = "CREATE TABLE IF NOT EXISTS `config` ( "
- "`idx` INTEGER PRIMARY KEY AUTOINCREMENT, "
- "`IsAvailable` TEXT NOT NULL, "
- "`connector` INTEGER NOT NULL, "
- "`val` TEXT NOT NULL, unique(IsAvailable,connector) on conflict replace);";
- */
- //DS60-120 add
- char *createCfgSql = "CREATE TABLE IF NOT EXISTS `config` ( "
- "`idx` INTEGER PRIMARY KEY AUTOINCREMENT, "
- "`item` TEXT NOT NULL, "
- "`connector` INTEGER NOT NULL, "
- "`val` TEXT NOT NULL, unique(item,connector) on conflict replace);";
- char *createrecordSql = "CREATE TABLE IF NOT EXISTS `event_record` ( "
- "`idx` INTEGER PRIMARY KEY AUTOINCREMENT, "
- "`occurDatetime` TEXT NOT NULL, "
- "`statusCode` TEXT NOT NULL, unique(occurDatetime,statusCode) on conflict replace);";
- char *createrebootSql = "CREATE TABLE IF NOT EXISTS `reboot_record` ( "
- "`idx` INTEGER PRIMARY KEY AUTOINCREMENT, "
- "`rebootDatetime` TEXT NOT NULL, unique(rebootDatetime) on conflict replace);";
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- log_info( "Local charging record database open successfully.");
- if (sqlite3_exec(localDb, createRecordSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Create local charging record table error message: %s", errMsg);
- } else {
- log_info( "Opened local charging record table successfully");
- }
- if (sqlite3_exec(localDb, createCfgSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Create local config table error message: %s", errMsg);
- } else {
- log_info( "Opened local config table successfully");
- }
- //DS60-120
- if (sqlite3_exec(localDb, createrecordSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Create local record table error message: %s", errMsg);
- } else {
- log_info( "Opened local record table successfully");
- }
- if (sqlite3_exec(localDb, createrebootSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Create reboot record table error message: %s", errMsg);
- } else {
- log_info( "Opened reboot record table successfully");
- }
- //-----
- sqlite3_close(localDb);
- }
- return result;
- }
- int DB_Insert_Record(int gunIndex)
- {
- int result = PASS;
- char *errMsg = NULL;
- char insertSql[1024];
- struct ChargingInfoData *pDcChargingInfo = (struct ChargingInfoData *)GetDcChargingInfoData(gunIndex);
- struct OCPP16Data *ShmOCPP16Data = (struct OCPP16Data *)GetShmOCPP16Data();
- sprintf(insertSql, "insert into charging_record(reservationId, transactionId, startMethod, userId, dateTimeStart, dateTimeStop, socStart, socStop, chargeEnergy, stopReason) "
- "values('%d', '%d', '%d', '%s', '%s', '%s', '%d', '%d', '%f', '%s');",
- pDcChargingInfo->ReservationId, //DS60-120 add
- ShmOCPP16Data->StartTransaction[gunIndex].ResponseTransactionId,
- pDcChargingInfo->StartMethod,
- pDcChargingInfo->StartUserId,
- pDcChargingInfo->StartDateTime,
- pDcChargingInfo->StopDateTime,
- pDcChargingInfo->EvBatteryStartSoc,
- pDcChargingInfo->EvBatterySoc,
- pDcChargingInfo->PresentChargedEnergy,
- ShmOCPP16Data->StopTransaction[gunIndex].StopReason);
- //if (sqlite3_open("/Storage/ChargeLog/localCgargingRecord.db", &db)) {
- if (sqlite3_open(DB_FILE, &localDb)) { //DS60-120 add
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- //log_info( "Local charging record database open successfully.");
- if (sqlite3_exec(localDb, insertSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Insert local charging record error message: %s", errMsg);
- } else {
- //log_info( "Insert local charging record successfully");
- }
- //DS60-120 add
- sprintf(insertSql, "delete from charging_record where idx < (select idx from charging_record order by idx desc limit 1)-2000;");
- if (sqlite3_exec(localDb, insertSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "delete local charging error message: %s", errMsg);
- } else {
- //log_info( "delete local charging record successfully");
- }
- sqlite3_close(localDb);
- }
- return result;
- }
- int DB_Update_Operactive(uint8_t gunIndex, uint8_t IsAvailable)
- {
- uint8_t result = false;
- char *errMsg = NULL;
- char sqlStr[1024];
- srand(time(NULL));
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- log_info( "Local charging record database open successfully (%d).", IsAvailable);
- //sprintf(sqlStr, "insert or replace into config (IsAvailable, connector, val) values('IsAvailable', %d, %d);", gunIndex, IsAvailable);
- sprintf(sqlStr,
- "insert or replace into config (item, connector, val) values('IsAvailable', %d, %d);",
- gunIndex,
- IsAvailable); //DS60-120 add
- log_info("sqlStr= %s", sqlStr);
- if (sqlite3_exec(localDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "update config error message: %s", errMsg);
- } else {
- log_info("update connector-%d config item isOperactive to %d", gunIndex, IsAvailable);
- }
- sqlite3_close(localDb);
- }
- return result;
- }
- int DB_Get_Operactive(uint8_t gunIndex)
- {
- uint8_t result = true;
- char *errMsg = NULL;
- char sqlStr[1024];
- char **rs;
- int rows, cols;
- //sprintf(sqlStr, "select * from config where IsAvailable='IsAvailable' and connector=%d;", gunIndex);
- sprintf(sqlStr, "select * from config where item='IsAvailable' and connector=%d;", gunIndex); //DS60-120 add
- //DEBUG_INFO("sqlStr= %s", sqlStr);
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- log_info( "Local config query database open successfully.");
- sqlite3_get_table(localDb, sqlStr, &rs, &rows, &cols, &errMsg);
- if (rows > 0) {
- for (int idxRow = 1; idxRow <= rows; idxRow++) {
- if (strcmp(rs[(idxRow * cols) + 3], "0") == 0) {
- result = false;
- }
- log_info("Query connector-%d isOperactive: %s", gunIndex, rs[(idxRow * cols) + 3]);
- }
- } else {
- log_info("Query connector-%d fail, set default value to operactive.", gunIndex);
- }
- sqlite3_free_table(rs);
- sqlite3_close(localDb);
- }
- return result;
- }
- int DB_Reboot_Record(void)
- {
- int result = PASS;
- char *errMsg = NULL;
- char insertSql[256];
- sprintf(insertSql, "insert into reboot_record(rebootDatetime) values(CURRENT_TIMESTAMP);");
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- log_info( "Local charging record database open successfully.");
- if (sqlite3_exec(localDb, insertSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Insert reboot record error message: %s", errMsg);
- } else {
- log_info( "Insert reboot record successfully");
- }
- sprintf(insertSql, "delete from reboot_record where idx < (select idx from charging_record order by idx desc limit 1)-2000;");
- if (sqlite3_exec(localDb, insertSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "delete reboot record error message: %s", errMsg);
- } else {
- log_info( "delete reboot record successfully");
- }
- sqlite3_close(localDb);
- }
- return result;
- }
- //------------------------------------------------------------------------------
- //for Module_EventLog
- //------------------------------------------------------------------------------
- int CreateEventRecord(void)
- {
- int result = PASS;
- char *errMsg = NULL;
- char *createRecordSql = "CREATE TABLE IF NOT EXISTS event_record("
- "idx integer primary key AUTOINCREMENT, "
- "occurDatetime text NOT NULL, "
- "statusCode text NOT NULL"
- ");";
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_error( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- log_info( "Local event record database open successfully.");
- if (sqlite3_exec(localDb, createRecordSql, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_error( "Create local event record table error message: %s", errMsg);
- } else {
- log_info( "Opened local event record table successfully");
- }
- sqlite3_close(localDb);
- }
- return result;
- }
- int InsertEventRecord(uint8_t *statusCode)
- {
- int result = PASS;
- char *errMsg = NULL;
- char sqlStr[1024] = {0};
- sprintf(sqlStr, "insert into event_record(occurDatetime, statusCode) values(CURRENT_TIMESTAMP, '%s');", statusCode);
- if (sqlite3_open(DB_FILE, &localDb)) {
- result = FAIL;
- log_info( "Can't open database: %s", sqlite3_errmsg(localDb));
- sqlite3_close(localDb);
- } else {
- //log_info( "Local event record database open successfully.");
- if (sqlite3_exec(localDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "Insert local event record error message: %s", errMsg);
- } else {
- //log_info( "Insert local event record successfully");
- }
- sprintf(sqlStr, "delete from event_record where idx < (select idx from event_record order by idx desc limit 1)-2000;");
- if (sqlite3_exec(localDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK) {
- result = FAIL;
- log_info( "delete local event_record error message: %s", errMsg);
- } else {
- //log_info( "delete local event record successfully");
- }
- sqlite3_close(localDb);
- }
- return result;
- }
- int DeductDB_Open(void)
- {
- int result = PASS;
- char* errMsg = NULL;
- char* createDeductInfoSql="CREATE TABLE IF NOT EXISTS deduct_record("
- "idx integer primary key AUTOINCREMENT, "
- "gunIndex text, "
- "transactionId text, "
- "deductResult text, "
- "isDonate text, "
- "approvalNo text, "
- "cardNo text,"
- "vemData text, "
- "amount text, "
- "isUpload text"
- ");";
- if(sqlite3_open(DEDUCT_FILE, &deductDb))
- {
- result = FAIL;
- log_info("Can't open deduct database: %s", sqlite3_errmsg(deductDb));
- sqlite3_close(deductDb);
- }
- else
- {
- log_info("Deduct database open successfully.");
- if (sqlite3_exec(deductDb, createDeductInfoSql, 0, 0, &errMsg) != SQLITE_OK)
- {
- result = FAIL;
- log_info("Create deduct info table error message: %s", errMsg);
- }
- else
- {
- log_info("Opened deduct info table successfully");
- }
- sqlite3_close(deductDb);
- }
- return result;
- }
- int InsertDeductInfo(int gunIndex, RecordTransactionInfo *deductInfo)
- {
- int result = PASS;
- char *errMsg = NULL;
- char sqlStr[1024] = {0};
- char approNo[13];
- char carNo[21];
- char vemData[65];
- memset(approNo, 0x00, sizeof(approNo));
- memset(carNo, 0x00, sizeof(carNo));
- memset(vemData, 0x00, sizeof(vemData));
- memcpy(approNo, (char *)&deductInfo->ApprovalNo, sizeof(deductInfo->ApprovalNo));
- memcpy(carNo, (char *)&deductInfo->CardNo, sizeof(deductInfo->CardNo));
- memcpy(vemData, (char *)&deductInfo->VemData, sizeof(deductInfo->VemData));
- sprintf(sqlStr, "insert into deduct_record(gunIndex, transactionId, deductResult, isDonate, approvalNo, cardNo, vemData, amount, isUpload) "
- "values('%d', '%d', '%d', '%d', '%s', '%s', '%s', '%f', '%d');",
- gunIndex,
- deductInfo->TransactionId,
- deductInfo->DeductResult,
- deductInfo->IsDonateInvoice,
- approNo,
- carNo,
- vemData,
- deductInfo->Amount,
- deductInfo->IsUpload);
- if (sqlite3_open(DEDUCT_FILE, &deductDb))
- {
- result = FAIL;
- log_info( "Can't open deduct database: %s", sqlite3_errmsg(deductDb));
- sqlite3_close(deductDb);
- }
- else
- {
- //log_info( "Local event record database open successfully.");
- if (sqlite3_exec(deductDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK)
- {
- result = FAIL;
- log_info( "Insert deduct record error message: %s", errMsg);
- }
- else
- {
- //log_info( "Insert local event record successfully");
- }
- sprintf(sqlStr, "delete from deduct_record where idx < (select idx from deduct_record order by idx desc limit 1)-10000;");
- if (sqlite3_exec(deductDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK)
- {
- result = FAIL;
- log_info("delete deduct record error message: %s", errMsg);
- }
- else
- {
- //log_info("delete local charging record successfully");
- }
- sqlite3_close(deductDb);
- }
- return result;
- }
- int UpdateDeductInfoStatus(int gunIndex, RecordTransactionInfo *deductInfo)
- {
- int result = PASS;
- char *errMsg = NULL;
- char sqlStr[1024] = {0};
- sprintf(sqlStr, "update deduct_record set deductResult = %d, isUpload = %d where transactionId = %d;",
- deductInfo->DeductResult,
- deductInfo->IsUpload,
- deductInfo->TransactionId);
- if (sqlite3_open(DEDUCT_FILE, &deductDb))
- {
- result = FAIL;
- log_info( "Can't open deduct database: %s", sqlite3_errmsg(deductDb));
- sqlite3_close(deductDb);
- }
- else
- {
- //log_info( "Local event record database open successfully.");
- if (sqlite3_exec(deductDb, sqlStr, 0, 0, &errMsg) != SQLITE_OK)
- {
- result = FAIL;
- log_info( "update deduct record error message: %s", errMsg);
- }
- else
- {
- //log_info( "update deduct record successfully");
- }
- sqlite3_close(deductDb);
- }
- return result;
- }
- int DB_GetDeductInfo(int deductResult, int uploadState, int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- int result = PASS;
- char *errMsg = NULL;
- char sqlStr[1024];
- char **rs;
- int rows, cols;
- if(deductResult >= 0 && uploadState >= 0)
- {
- sprintf(sqlStr, "select * from deduct_record where deductResult = %d and isUpload = %d;", deductResult > 0 ? 1 : 0, uploadState > 0 ? 1 : 0);
- }
- else if(deductResult >= 0 && uploadState < 0)
- {
- sprintf(sqlStr, "select * from deduct_record where deductResult = %d;", deductResult > 0 ? 1 : 0);
- }
- else if(deductResult < 0 && uploadState >= 0)
- {
- sprintf(sqlStr, "select * from deduct_record where isUpload = %d;", uploadState > 0 ? 1 : 0);
- }
- else
- {
- sprintf(sqlStr, "select * from deduct_record;");
- }
- if (sqlite3_open(DEDUCT_FILE, &deductDb))
- {
- result = FAIL;
- log_info("Can't open deduct database: %s", sqlite3_errmsg(deductDb));
- sqlite3_close(deductDb);
- }
- else
- {
- sqlite3_get_table(deductDb, sqlStr, &rs, &rows, &cols, &errMsg);
- if (rows > 0)
- {
- for (int idxRow = 1; idxRow <= rows; idxRow++)
- {
- *gunIndex = atoi(rs[(idxRow * cols) + 1]);
- deductInfo->TransactionId = atoi(rs[(idxRow * cols) + 2]);
- deductInfo->DeductResult = atoi(rs[(idxRow * cols) + 3]);
- deductInfo->IsDonateInvoice = atoi(rs[(idxRow * cols) + 4]);
- strcpy((char *)&deductInfo->ApprovalNo, rs[(idxRow * cols) + 5]);
- strcpy((char *)&deductInfo->CardNo, rs[(idxRow * cols) + 6]);
- strcpy((char *)&deductInfo->VemData, rs[(idxRow * cols) + 7]);
- deductInfo->Amount = atoi(rs[(idxRow * cols) + 8]);
- deductInfo->IsUpload = atoi(rs[(idxRow * cols) + 9]);
- break;
- }
- }
- else
- {
- result = FAIL;
- }
- sqlite3_free_table(rs);
- sqlite3_close(deductDb);
- }
- return result;
- }
- int DB_GetReDeductInfo(int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- int result = PASS;
- if(DB_GetDeductInfo(0, -1, gunIndex, deductInfo) == PASS)
- {
- //log_info("GetReDeductInfo OK");
- }
- else
- {
- result = FAIL;
- //log_info("GetReDeductInfo NG");
- }
- return result;
- }
- int DB_GetReUploadDeduct(int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- int result = PASS;
- if(DB_GetDeductInfo(-1, 0, gunIndex, deductInfo) == PASS)
- {
- //log_info("GetReUploadDeduct OK");
- }
- else
- {
- result = FAIL;
- //log_info("GetReUploadDeduct NG");
- }
- return result;
- }
- // return quantity of DeductInfo
- int DB_GetMultiDeductInfo(int deductResult, int uploadState, int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- char *errMsg = NULL;
- char sqlStr[1024];
- char **rs;
- int rows = 0, cols = 0;
- if(deductResult >= 0 && uploadState >= 0)
- {
- sprintf(sqlStr, "select * from deduct_record where deductResult = %d and isUpload = %d;", deductResult > 0 ? 1 : 0, uploadState > 0 ? 1 : 0);
- }
- else if(deductResult >= 0 && uploadState < 0)
- {
- sprintf(sqlStr, "select * from deduct_record where deductResult = %d;", deductResult > 0 ? 1 : 0);
- }
- else if(deductResult < 0 && uploadState >= 0)
- {
- sprintf(sqlStr, "select * from deduct_record where isUpload = %d;", uploadState > 0 ? 1 : 0);
- }
- else
- {
- sprintf(sqlStr, "select * from deduct_record;");
- }
- if (sqlite3_open(DEDUCT_FILE, &deductDb))
- {
- log_info("Can't open deduct database: %s", sqlite3_errmsg(deductDb));
- sqlite3_close(deductDb);
- }
- else
- {
- sqlite3_get_table(deductDb, sqlStr, &rs, &rows, &cols, &errMsg);
- if (rows > 0)
- {
- for (int idxRow = 1; idxRow <= rows; idxRow++)
- {
- gunIndex[idxRow - 1] = atoi(rs[(idxRow * cols) + 1]);
- deductInfo[idxRow - 1].TransactionId = atoi(rs[(idxRow * cols) + 2]);
- deductInfo[idxRow - 1].DeductResult = atoi(rs[(idxRow * cols) + 3]);
- deductInfo[idxRow - 1].IsDonateInvoice = atoi(rs[(idxRow * cols) + 4]);
- strcpy((char *)&deductInfo[idxRow - 1].ApprovalNo, rs[(idxRow * cols) + 5]);
- strcpy((char *)&deductInfo[idxRow - 1].CardNo, rs[(idxRow * cols) + 6]);
- strcpy((char *)&deductInfo[idxRow - 1].VemData, rs[(idxRow * cols) + 7]);
- deductInfo[idxRow - 1].Amount = atoi(rs[(idxRow * cols) + 8]);
- deductInfo[idxRow - 1].IsUpload = atoi(rs[(idxRow * cols) + 9]);
- if(idxRow >= 128)
- {
- rows = 128;
- break;
- }
- }
- }
- sqlite3_free_table(rs);
- sqlite3_close(deductDb);
- }
- return rows;
- }
- int DB_GetMultiReDeductInfo(int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- int quantity = 0;
- quantity = DB_GetMultiDeductInfo(0, -1, gunIndex, deductInfo);
- return quantity;
- }
- int DB_GetMultiReUploadDeduct(int *gunIndex, RecordTransactionInfo *deductInfo)
- {
- int quantity = 0;
- quantity = DB_GetMultiDeductInfo(-1, 0, gunIndex, deductInfo);
- return quantity;
- }
- void ReDeductTest()
- {
- int quantity = 0;
- int gunList[128];
- RecordTransactionInfo deductInfo[128];
- quantity = DB_GetMultiReDeductInfo(gunList, deductInfo);
- if(quantity > 0)
- {
- for(int i = 0; i < quantity; i++)
- {
- printf("Gun %d Rededuct CardNo: %s", gunList[i], deductInfo[i].CardNo);
- }
- }
- }
|