|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|