cfmgrv3 init...3

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-06-24 11:31:54 +09:00
parent 6c9b17b552
commit ba095b51be

View File

@ -294,10 +294,15 @@ class CommonController extends BaseController
$message = "";
try {
$this->batchjob_init();
$entitys = array();
foreach ($uids as $uid) {
$entity = $this->_model->getEntity($uid);
$entity = $this->batchjob_validate($entity);
$entity = $this->batchjob_process($entity);
try {
$entity = $this->_model->getEntity($uid);
$entity = $this->batchjob_validate($entity);
array_push($entitys, $this->batchjob_process($entity));
} catch (\Exception $e) {
Log::add("warning", "{$uid}에 해당하는 다음 이유로 수정되지 않았습니다.\n<br>" . $e->getMessage());
}
}
$message = "총: " . count($uids) . "개의 수정(Batchjob)을 완료하였습니다.";
Log::save("{$this->_viewDatas['title']} {$message}");