소스 검색

no message

MS-PDRLKVHCADMG\Administrator 5 년 전
부모
커밋
4d9b03c348
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      api/application/controllers/Lampcontrol.php

+ 9 - 0
api/application/controllers/Lampcontrol.php

@@ -1766,6 +1766,15 @@ class Lampcontrol extends Base_Controller {
                     }else{
                         $msg[] = 'Table '.$num.' row.The number of street lamps numbered 1-999999';
                     }
+                }else{
+                    if ($this->Lamp_model->getDataCount(array('number'=>$value['number'], 'projectid'=>$projectid)) > 0) {
+                        $res = 1;
+                        if (empty($this->version)) {
+                            $msg[] = '表格第'.$num.'行,路灯编号已经存在';
+                        }else{
+                            $msg[] = 'Table '.$num.' row.Light control number already exists';
+                        }
+                    }   
                 }
             }