$aryData['sub_job_id'][$no] = $data['sub_job_id']; } } $aryTmp = $oMgr->getSubPostData($aryData['user_id'], true); if (is_array($aryTmp)) { foreach ($aryTmp as $no => $data) { $aryData['sub_post_id'][$no] = $data['sub_post_id']; } } $aryTmp = $oMgr->getSubStaffIdData($aryData['user_id'], true); if (is_array($aryTmp)) { foreach ($aryTmp as $no => $data) { $aryData['sub_staff_id'][$no] = $data['sub_staff_id']; } } $_SESSION['LOGIN_USER_ID'] = $aryData['update_id']; // 更新 $ret = $oMgr->updateUserBaseData($aryData); if (!$ret) { Debug_Trace("基本情報予約データ反映に失敗しました。", 621); Debug_Trace($aryData); exit; } $oMgr->oDb->begin(); // 完了フラグ1を立てる $sql = "UPDATE user_base_reserve SET complete_flg = '1' WHERE user_id = " . $aryData['user_id']; $oMgr->oDb->query($sql); $oMgr->oDb->end(); } } exit;
(select job_id from job_mst where job_code = {$job_code_nm}) as job_id, '{$joukin_kbn}' as joukin_kbn, '1' as user_type_id, to_char(now(),'yyyy/MM/dd hh24:mm:ss') as start_date FROM idodata {$where} SQL; $request = $oMgr->oDb->getRow($sql); list($y, $m, $d) = explode("/", $request['birthday']); $request['birth_year'] = $y; $request['birth_mon'] = $m; $request['birth_day'] = $d; if ($user_id != "") { // 既存 $ret = $oMgr->updateUserBaseData($request); if (!$ret) { echo $err_msg . "利用者基本情報更新に失敗しました。"; $has_error = true; continue; } $ret = $oMgr->updateUserNcvcData($request); if (!$ret) { echo $err_msg . "利用者NCVC情報更新に失敗しました。"; $has_error = true; continue; } } else { // 新規 $ret = $oMgr->insertUserData(&$request); if (!$ret) {