瀏覽代碼

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';
+                        }
+                    }   
                 }
             }