|
|
@@ -161,10 +161,15 @@ class QcodeAdd extends Backend
|
|
|
$this->error('添加失败');
|
|
|
}
|
|
|
$flow = [
|
|
|
- 'l_flow' => (int)$batchList['l_flow'],
|
|
|
+ 'l_flow' => (int)$batchList['large_endnum'],
|
|
|
'bach_num' => $batchList['bach_num'],
|
|
|
];
|
|
|
- $resetFlow->name($userinfo['company'].'_'."reset_flow")->where('product_id',$batchList['matter_id'])->update($flow);
|
|
|
+ if ($resetFlow->name($userinfo['company'].'_'."reset_flow")->where('product_id',$batchList['matter_id'])->find()){
|
|
|
+ $resetFlow->name($userinfo['company'].'_'."reset_flow")->where('product_id',$batchList['matter_id'])->update($flow);
|
|
|
+ }else{
|
|
|
+ $flow['product_id'] = $batchList['matter_id'];
|
|
|
+ $resetFlow->save($flow);
|
|
|
+ }
|
|
|
$last_id = $bach->getLastInsID();
|
|
|
if ($last_id){
|
|
|
//插入大小二维码数据
|