|
@@ -251,7 +251,13 @@ class WorkOrderSpotCheck extends Api
|
|
|
$req['Sczl_rq'] = $req['Sczl_rq'].' 00:00:00';
|
|
$req['Sczl_rq'] = $req['Sczl_rq'].' 00:00:00';
|
|
|
}
|
|
}
|
|
|
$req['Sys_rq'] = date('Y-m-d H:i:s');
|
|
$req['Sys_rq'] = date('Y-m-d H:i:s');
|
|
|
-
|
|
|
|
|
|
|
+ $UniqId = db()->table('db_抽检记录')->order('UniqId desc')->value('UniqId');
|
|
|
|
|
+ if ($UniqId < 1000000){
|
|
|
|
|
+ $UniqId = 1000000;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $UniqId = $UniqId + 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ $req['UniqId'] = $UniqId;
|
|
|
//开启事务
|
|
//开启事务
|
|
|
db()->startTrans();
|
|
db()->startTrans();
|
|
|
try{
|
|
try{
|