|
@@ -62,12 +62,12 @@ class Manufacture extends Api
|
|
|
$this->error('参数错误');
|
|
$this->error('参数错误');
|
|
|
}
|
|
}
|
|
|
if ($param['status'] === '计划中'){
|
|
if ($param['status'] === '计划中'){
|
|
|
- $status = '计划中';
|
|
|
|
|
|
|
+ $status = '3-计划中';
|
|
|
}else{
|
|
}else{
|
|
|
- $status = '已完工';
|
|
|
|
|
|
|
+ $status = '1-已完工';
|
|
|
}
|
|
}
|
|
|
$where = [
|
|
$where = [
|
|
|
- 'gd_statu' => ['LIKE','%'.$status],
|
|
|
|
|
|
|
+ 'gd_statu' => $status,
|
|
|
'行号' => '1',
|
|
'行号' => '1',
|
|
|
];
|
|
];
|
|
|
$field = 'rtrim(Gd_生产分类) as 生产分类,rtrim(Gd_gdbh) as 工单编号,rtrim(Gd_cpdh) as 产品代号,rtrim(Gd_cpmc) as 产品名称,
|
|
$field = 'rtrim(Gd_生产分类) as 生产分类,rtrim(Gd_gdbh) as 工单编号,rtrim(Gd_cpdh) as 产品代号,rtrim(Gd_cpmc) as 产品名称,
|
|
@@ -116,7 +116,7 @@ class Manufacture extends Api
|
|
|
rtrim(印刷方式) as 印刷方式,rtrim(版距) as 版距,rtrim(Sys_id) as 创建用户,rtrim(Sys_rq) as 创建时间,rtrim(Mod_rq) as 修改时间,rtrim(UniqId) as UNIQID';
|
|
rtrim(印刷方式) as 印刷方式,rtrim(版距) as 版距,rtrim(Sys_id) as 创建用户,rtrim(Sys_rq) as 创建时间,rtrim(Mod_rq) as 修改时间,rtrim(UniqId) as UNIQID';
|
|
|
$list = Db::table('工单_工艺资料')->where($where)->field($filed)->select();
|
|
$list = Db::table('工单_工艺资料')->where($where)->field($filed)->select();
|
|
|
if (empty($list)){
|
|
if (empty($list)){
|
|
|
- $this->error('失败');
|
|
|
|
|
|
|
+ $this->success('',[]);
|
|
|
}
|
|
}
|
|
|
foreach ($list as $key=>$value){
|
|
foreach ($list as $key=>$value){
|
|
|
if ((int)$value['Gy0_yjno'] <10){
|
|
if ((int)$value['Gy0_yjno'] <10){
|