caipin 5 anos atrás
pai
commit
f11f293f57

+ 1 - 1
protected/controller/MainController.php

@@ -3311,7 +3311,7 @@ class MainController extends DooController {
 			$othstr = " cid in (" . $this->staff [0] ['cid'] . ")";
 		
 		$data ['reLongle'] = $longle->count ( array (
-				'where' => $othstr . '  and (status=1 or responsible="")' 
+				'where' => $othstr . '  and (status=1 or responsible="")  and make_day>="2019-01-01"' 
 		) );
 
         $data['lidKey']=$lidKey;

+ 1 - 1
protected/model/longle.php

@@ -76,7 +76,7 @@ class longle extends DooModel {
 		else 
 			$str= " cid in (".$cid." )";
 			
-		return $this->find ( array ('where' => $str." and (status=".$status." or responsible='')", 'asArray' => TRUE ) );
+		return $this->find ( array ('where' => $str." and (status=".$status." or responsible='') and make_day>='2019-01-01'", 'asArray' => TRUE ) );
 	}
 	
 	public function getLongleBykeynum($keynum){