最后一站反馈表增加第六个问题。

master
赵鹏 2 years ago
parent cbfbbaf937
commit b6a003c4c4

@ -74,12 +74,16 @@ class Welcome extends CI_Controller {
$data['group_service'] = $this->Groupinfo_model->get_group_service($eoi_sn, $vei_sn);//执行两次,第一次可能因为数据没有建立 $data['group_service'] = $this->Groupinfo_model->get_group_service($eoi_sn, $vei_sn);//执行两次,第一次可能因为数据没有建立
$data['service_question_four'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, $data['group_service']->QSFour); $data['service_question_four'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, $data['group_service']->QSFour);
$data['service_question_five'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, $data['group_service']->QSFive); $data['service_question_five'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, $data['group_service']->QSFive);
$data['service_question_six'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, '223016'); //第六个问题 20241017 zp
//问题6 //问题6
$data['other_service_question'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, 223012); $data['other_service_question'] = $this->Groupinfo_model->get_eva_feedback($gri_sn, $vei_sn, $eoi_sn, 223012);
//判断是否已经由小助手那边提交了反馈数据 //判断是否已经由小助手那边提交了反馈数据
$data['CheckXzsSubmit'] = $this->Groupinfo_model->CheckXzsSubmit($gri_sn,$vei_sn); $data['CheckXzsSubmit'] = $this->Groupinfo_model->CheckXzsSubmit($gri_sn,$vei_sn);
//判断是否是最后一站城市
$data['CheckLastCity'] = $this->Groupinfo_model->CheckLastCity($gri_sn,$vei_sn);
$this->load->view('header', $data); $this->load->view('header', $data);
$this->load->view('feedback_detail'); $this->load->view('feedback_detail');
$this->load->view('footer'); $this->load->view('footer');

@ -427,4 +427,26 @@ class Groupinfo_model extends CI_Model {
} }
//判断企业是否是最后一站城市
function CheckLastCity($gri_sn,$vei_sn){
$sql = "select 1 where ?=(select top 1 ACI_VEI_SN
from ArrangeConfirmInfo
where ACI_GRI_SN=?
and ACI_ServiceType in ('6','7','8','D')
and ACI_VEI_SN>0
order by ACI_DayNo desc)";
// echo ($sql.",".$gri_sn.",".$vei_sn);
$query = $this->HT->query($sql,array($vei_sn,$gri_sn));
if ($query->num_rows() > 0){
$result = true;
}else{
$result = false;
}
return $result;
}
} }

@ -237,6 +237,21 @@
</div> </div>
</div> </div>
<?php if ($CheckLastCity){ //20241017 新增第六问题 zp ?>
<div class="row">
<div class="col-md-24">
<h3>6.Where is your desired destination for your next trip?</h3>
<input type="hidden" name="q6_eef_type" value="223016" />
<div class="row">
<div class="col-md-24">
<textarea class="col-md-20" rows="3" name="q6_eef_content"><?php echo empty($service_question_six)?false:$service_question_six->EEF_Content; ?></textarea>
</div>
</div>
</div>
</div>
<?php } ?>
<?php <?php
if (1==2) { // 2019-6-24 暂时不需要 if (1==2) { // 2019-6-24 暂时不需要

Loading…
Cancel
Save