|
@@ -1167,8 +1167,8 @@ class WorkOrderProcess extends Api
|
|
|
if (empty($params['id'])) {
|
|
if (empty($params['id'])) {
|
|
|
$this->error('工艺ID不能为空');
|
|
$this->error('工艺ID不能为空');
|
|
|
}
|
|
}
|
|
|
- if (empty($params['number']) || intval($params['number']) < 2) {
|
|
|
|
|
- $this->error('拆分工序数量不能小于2');
|
|
|
|
|
|
|
+ if (empty($params['number']) ) {
|
|
|
|
|
+ $this->error('拆分工序数量不能为空');
|
|
|
}
|
|
}
|
|
|
if (empty($params['sys_id'])) {
|
|
if (empty($params['sys_id'])) {
|
|
|
$this->error('操作人不能为空');
|
|
$this->error('操作人不能为空');
|