@@ -84,7 +104,9 @@ class ExchangerateUpload extends Component
...
@@ -84,7 +104,9 @@ class ExchangerateUpload extends Component
privatefunctionprocessFileForPatch($filePath)
privatefunctionprocessFileForPatch($filePath)
{
{
$fileContent=Storage::get($filePath);
$fileContent=file_get_contents($filePath);
$lines=explode("\n",$fileContent);
$lines=explode("\n",$fileContent);
$needChkDup=true;
$needChkDup=true;
$array_cur=[];
$array_cur=[];
...
@@ -115,26 +137,34 @@ class ExchangerateUpload extends Component
...
@@ -115,26 +137,34 @@ class ExchangerateUpload extends Component
$AMMENDDATE=now()->format('Ymd')+543;
$AMMENDDATE=now()->format('Ymd')+543;
if($needChkDup&&$this->createPatch){
if($needChkDup&&$this->createPatch){
$latestRecord=CenterConfExchangerate::selectRaw('MONTH(MAX(exdate)) as month, YEAR(MAX(exdate)) as year')
$latestRecord=CenterConfExchangerate::selectRaw('MONTH(MAX(center_conf_exchangerate.exdate)) as month, YEAR(MAX(center_conf_exchangerate.exdate)) as year')