Skip to content

Commit ee661f1

Browse files
committed
update lastupdate timestamps and enhance debug logging in InDmNhvt model and Dmnhvt component
1 parent bd2c489 commit ee661f1

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

src/Models/InDmNhvt.php

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @author Tran Ngoc Duc <ductn@diepxuan.com>
99
* @author Tran Ngoc Duc <caothu91@gmail.com>
1010
*
11-
* @lastupdate 2025-08-02 20:04:36
11+
* @lastupdate 2025-08-02 20:51:14
1212
*/
1313

1414
namespace Diepxuan\Simba\Models;
@@ -83,15 +83,22 @@ public function scopeHasParent($query, $parent = '')
8383
*/
8484
public static function getAsINGetDMNHVT(array $params): Collection
8585
{
86-
return collect(DB::connection((new static())->getConnectionName())->select('EXECUTE asINGetDMNHVT
87-
@pMa_Cty = :pMa_Cty,
88-
@pMa_nhvt = :pMa_nhvt,
89-
@pStruct = :pStruct
90-
', [
91-
'pMa_Cty' => $params['pMa_Cty'] ?? '',
92-
'pMa_nhvt' => $params['pMa_nhvt'] ?? null,
93-
'pStruct' => $params['pStruct'] ?? null,
94-
]));
86+
\Debugbar::info($params);
87+
88+
return collect(DB::connection((new static())->getConnectionName())->select(
89+
<<<'EOF'
90+
EXECUTE asINGetDMNHVT
91+
@pMa_Cty = :pMa_Cty,
92+
@pMa_nhvt = :pMa_nhvt,
93+
@pStruct = :pStruct
94+
EOF
95+
,
96+
[
97+
'pMa_Cty' => $params['pMa_Cty'] ?? '',
98+
'pMa_nhvt' => $params['pMa_nhvt'] ?? null,
99+
'pStruct' => $params['pStruct'] ?? null,
100+
]
101+
));
95102
}
96103

97104
/**

0 commit comments

Comments
 (0)