地接计划:Trippest计划预订了多地项目导致重复发送问题

hotfix/远程访问多媒体中心
lyt 6 years ago
parent 5e0d9dab8f
commit 403e626b20

@ -902,7 +902,7 @@ class Tulanduo
$this->ci->BIZ_order->insert_biz_order_log($coli_sn, "vendorPlanUpdateSendout_" . $tour_code); $this->ci->BIZ_order->insert_biz_order_log($coli_sn, "vendorPlanUpdateSendout_" . $tour_code);
} }
/** VendorArrangeState VAS_IsReceive */ /** VendorArrangeState VAS_IsReceive */
$this->ci->Group_model->set_plan_received($vas_sn); $this->ci->Group_model->set_plan_received($vas_sn, $gri_sn);
} }
} }
return "[Tulanduo>push_trippest] Done. " . $COLI_ID; return "[Tulanduo>push_trippest] Done. " . $COLI_ID;

@ -296,10 +296,13 @@ class Group_model extends CI_Model {
return $eva_g_sn; return $eva_g_sn;
} }
public function set_plan_received($vas_sn=0) public function set_plan_received($vas_sn=0, $gri_sn=null)
{ {
$sql = "UPDATE VendorArrangeState set VAS_IsReceive=1,VAS_ReceiveTime=GETDATE() where VAS_SN=? "; $sql = "UPDATE VendorArrangeState set VAS_IsReceive=1,VAS_ReceiveTime=GETDATE() where VAS_SN=$vas_sn ";
return $this->HT->query($sql, array($vas_sn)); if ($gri_sn !== null) {
$sql = "UPDATE VendorArrangeState set VAS_IsReceive=1,VAS_ReceiveTime=GETDATE() where VAS_GRI_SN=$gri_sn ";
}
return $this->HT->query($sql);
} }
/*! /*!

Loading…
Cancel
Save