Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
33cf92ab
Commit
33cf92ab
authored
Dec 06, 2024
by
Sarun Mungthanya
Browse files
issue twice insert
parent
91c3b2e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/SmartUpdateController.php
View file @
33cf92ab
...
@@ -271,8 +271,7 @@ class SmartUpdateController extends Controller
...
@@ -271,8 +271,7 @@ class SmartUpdateController extends Controller
$conditionColumn
=
'exdate'
;
$conditionColumn
=
'exdate'
;
$conditionValue
=
$MONTH
;
$conditionValue
=
$MONTH
;
$additionalColumns
=
[
$additionalColumns
=
[
'amenddate'
=>
$UPDATECODE
,
'amenddate'
=>
$UPDATECODE
'usrname'
=>
''
];
];
$resultImport
=
static
::
generateInsertSQLWithCount
(
$sourceTable
,
$destinationTable
,
$conditionColumn
,
$conditionValue
,
$additionalColumns
);
$resultImport
=
static
::
generateInsertSQLWithCount
(
$sourceTable
,
$destinationTable
,
$conditionColumn
,
$conditionValue
,
$additionalColumns
);
$serverchk
=
$resultImport
[
"total"
];
$serverchk
=
$resultImport
[
"total"
];
...
@@ -290,7 +289,7 @@ class SmartUpdateController extends Controller
...
@@ -290,7 +289,7 @@ class SmartUpdateController extends Controller
$patchCode
=
str_replace
(
'$'
,
'#'
,
$patchCode
);
$patchCode
=
str_replace
(
'$'
,
'#'
,
$patchCode
);
$patchCode
=
str_replace
(
'##'
,
'$'
,
$patchCode
);
$patchCode
=
str_replace
(
'##'
,
'$'
,
$patchCode
);
eval
(
'$patchCode=<<<EOF2'
.
chr
(
13
)
.
$patchCode
.
chr
(
13
)
.
'EOF2;'
.
chr
(
13
));
eval
(
'$patchCode=<<<EOF2'
.
chr
(
13
)
.
$patchCode
.
chr
(
13
)
.
'EOF2;'
.
chr
(
13
));
$patchCode
=
str_replace
(
'#'
,
'$'
,
$patchCode
);
$patchCode
=
str_replace
(
'#'
,
'$'
,
$patchCode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment