Commit 33cf92ab authored by Sarun Mungthanya's avatar Sarun Mungthanya
Browse files

issue twice insert

parent 91c3b2e5
......@@ -271,8 +271,7 @@ class SmartUpdateController extends Controller
$conditionColumn = 'exdate';
$conditionValue = $MONTH;
$additionalColumns = [
'amenddate' => $UPDATECODE,
'usrname' => ''
'amenddate' => $UPDATECODE
];
$resultImport = static::generateInsertSQLWithCount($sourceTable, $destinationTable, $conditionColumn, $conditionValue, $additionalColumns);
$serverchk = $resultImport["total"];
......@@ -290,7 +289,7 @@ class SmartUpdateController extends Controller
$patchCode = str_replace('$', '#', $patchCode);
$patchCode = str_replace('##', '$', $patchCode);
eval('$patchCode=<<<EOF2' . chr(13) . $patchCode . chr(13) . 'EOF2;' . chr(13));
$patchCode = str_replace('#', '$', $patchCode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment