| 
															
																@@ -1790,13 +1790,13 @@ class Whlabel_bh extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			$this->db->trans_begin(); 
															 | 
															
															 | 
															
																 			$this->db->trans_begin(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			$this->whlabel_bh_transfer->save($save_data,$lb['id']); 
															 | 
															
															 | 
															
																 			$this->whlabel_bh_transfer->save($save_data,$lb['id']); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			if($cz == 2){ 
															 | 
															
															 | 
															
																 			if($cz == 2){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-				$this->whlabel_bh_transfer_cr->insert(['fid'=>$lb['id'],'lx'=>$transfer,'type'=>$cz,'time'=>time(),'is_over'=>1]); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+				$this->whlabel_bh_transfer_cr->insert(['fid'=>$lb['id'],'lx'=>$transfer,'type'=>$cz,'time'=>time(),'is_over'=>1,'number'=>$lb['number']]); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				$ct_info = $this->whlabel_bh_transfer_cr->find("fid = ".$lb['id']." and lx = ".$transfer." and type = 1 and is_over = 0","*",'id desc'); 
															 | 
															
															 | 
															
																 				$ct_info = $this->whlabel_bh_transfer_cr->find("fid = ".$lb['id']." and lx = ".$transfer." and type = 1 and is_over = 0","*",'id desc'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if($ct_info){ 
															 | 
															
															 | 
															
																 				if($ct_info){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 					$this->whlabel_bh_transfer_cr->save(['is_over'=>1],$ct_info['id']); 
															 | 
															
															 | 
															
																 					$this->whlabel_bh_transfer_cr->save(['is_over'=>1],$ct_info['id']); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				} 
															 | 
															
															 | 
															
																 				} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			}else{ 
															 | 
															
															 | 
															
																 			}else{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-				$this->whlabel_bh_transfer_cr->insert(['fid'=>$lb['id'],'lx'=>$transfer,'type'=>$cz,'time'=>time(),'is_over'=>0]); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+				$this->whlabel_bh_transfer_cr->insert(['fid'=>$lb['id'],'lx'=>$transfer,'type'=>$cz,'time'=>time(),'is_over'=>0,'number'=>$lb['number']]); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			} 
															 | 
															
															 | 
															
																 			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			 
															 | 
															
															 | 
															
																 			 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			if ($this->db->trans_status() === TRUE){ 
															 | 
															
															 | 
															
																 			if ($this->db->trans_status() === TRUE){ 
															 |