diff --git a/gys_system/controllers/feedback.php b/gys_system/controllers/feedback.php
index 51ce24ab..dbe27b21 100644
--- a/gys_system/controllers/feedback.php
+++ b/gys_system/controllers/feedback.php
@@ -27,8 +27,13 @@ class Feedback extends CI_Controller {
public function checkunback() {
$data = array();
- $vei_sn = $this->permission->admin()->LMI_VEI_SN;
- $check_day_start = date("Y-m-d", strtotime("-6 month"));
+ $passVeiSn = $this->input->get_post("veisn");
+ if (!empty($passVeiSn)){
+ $vei_sn = $this->input->get_post('veisn');
+ } else {
+ $vei_sn = $this->permission->admin()->LMI_VEI_SN;
+ }
+ $check_day_start = date("Y-m-d", strtotime("-3 month"));
$check_day_end = date("Y-m-d", strtotime("-1 month"));
$group_list = $this->Groupinfo_model->get_eva_objectinfo(100, false, false, $vei_sn, false, false, null, " EOI_Date between '$check_day_start' and '$check_day_end' ", ' EOI_Date ASC ');
if (empty($group_list)) {
@@ -36,7 +41,8 @@ class Feedback extends CI_Controller {
} else {
$feedbackstring='';
foreach ($group_list as $item){
- $feedbackstring=$feedbackstring."
| $item->groupname | $item->EOI_Date | EOI_SN&GSN=$item->EOI_GRI_SN','MainBodyFrame');\" >查看 |
";
+ //$feedbackstring=$feedbackstring."| $item->groupname | $item->EOI_Date | EOI_SN&GSN=$item->EOI_GRI_SN','MainBodyFrame');\" >查看 |
";
+ $feedbackstring=$feedbackstring."| $item->groupname | $item->EOI_Date | EOI_GRI_SN/$item->EOI_SN','MainBodyFrame');\" >查看 |
";
}
$data[] = array('name' => 'yes', 'value' => $feedbackstring);
}
diff --git a/gys_system/models/groupinfo_model.php b/gys_system/models/groupinfo_model.php
index 9a33ccd0..d996ecc9 100644
--- a/gys_system/models/groupinfo_model.php
+++ b/gys_system/models/groupinfo_model.php
@@ -92,7 +92,11 @@ class Groupinfo_model extends CI_Model {
empty($eoi_type) ? false : $sql.=' AND EOI_Type= ' . $this->HT->escape($eoi_type);
empty($eoi_date) ? false : $sql.=' AND ' . $eoi_date;
//查找没有添加反馈表的团
- ($eoi_fillworkers_sn !== null) ? false : $sql.=' AND EOI_FillWorkers_SN IS NULL AND EOI_VerifyUser_SN IS NULL AND (select COUNT(*) from InfoManager.dbo.tga_feedback_evaluation where group_id=EOI_GRI_SN and travel_agency_id=EOI_VEI_SN )=0';
+ //($eoi_fillworkers_sn !== null) ? false : $sql.=' AND EOI_FillWorkers_SN IS NULL AND EOI_VerifyUser_SN IS NULL AND (select COUNT(*) from InfoManager.dbo.tga_feedback_evaluation where group_id=EOI_GRI_SN and travel_agency_id=EOI_VEI_SN )=0';
+ //新判断方式
+ $feedbackSql = " and ( select COUNT(*) from Eva_FrontReception where EFR_GRI_SN=EOI_GRI_SN and EFR_VEI_SN=EOI_VEI_SN )=0
+ and ( select VAS_NewTP from VendorArrangeState where VAS_GRI_SN=EOI_GRI_SN and VAS_VEI_SN=EOI_VEI_SN )=1 ";
+ ($eoi_fillworkers_sn !== null) ? false : $sql.=$feedbackSql ;
$sql.=' ORDER BY ' . $orderby;
$query = $this->HT->query($sql);