|
|
@@ -217,8 +217,8 @@ class ReportingWork extends Api
|
|
|
}
|
|
|
// $res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
|
|
|
$res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
|
|
|
- if ($res['UniqId'] < 100000000){
|
|
|
- $data['UniqId'] = 100000000;
|
|
|
+ if (empty($res['UniqId'])){
|
|
|
+ $data['UniqId'] = 1;
|
|
|
}else{
|
|
|
$data['UniqId'] = $res['UniqId'] + 1;
|
|
|
}
|