|
@@ -1572,9 +1572,12 @@ class WorkOrder extends Api
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- //新增工艺资料->工艺资料添加
|
|
|
|
|
-
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 新增工艺资料->工艺资料添加
|
|
|
|
|
+ * @return void
|
|
|
|
|
+ * @throws \think\db\exception\BindParamException
|
|
|
|
|
+ * @throws \think\exception\PDOException
|
|
|
|
|
+ */
|
|
|
public function ProcessDetailAdd()
|
|
public function ProcessDetailAdd()
|
|
|
{
|
|
{
|
|
|
if (Request::instance()->isPost() === false){
|
|
if (Request::instance()->isPost() === false){
|
|
@@ -1590,6 +1593,21 @@ class WorkOrder extends Api
|
|
|
}else{
|
|
}else{
|
|
|
$lastId = $lastId + 1;
|
|
$lastId = $lastId + 1;
|
|
|
}
|
|
}
|
|
|
|
|
+ $param['Sys_rq'] = date('Y-m-d H:i:s',time());
|
|
|
|
|
+ $param['Mod_rq'] = '1900-01-01 00:00:00';
|
|
|
|
|
+ $param['Gy0_sj1'] = '1900-01-01 00:00:00';
|
|
|
|
|
+ $param['Gy0_sj2'] = '1900-01-01 00:00:00';
|
|
|
|
|
+ $param['PD_WG'] = '1900-01-01 00:00:00';
|
|
|
|
|
+ $param['UniqId'] = $lastId;
|
|
|
|
|
+ $sql = \db('工单_工艺资料')
|
|
|
|
|
+ ->fetchSql(true)
|
|
|
|
|
+ ->insert($param);
|
|
|
|
|
+ $res = \db()->query($sql);
|
|
|
|
|
+ if ($res !== false){
|
|
|
|
|
+ $this->success('成功');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $this->error('失败');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|