|
|
@@ -32,10 +32,10 @@ class ProductionLot extends Api
|
|
|
$where = [
|
|
|
'gd_statu' => '1-已完工',
|
|
|
];
|
|
|
- if (isset($param['search'])){
|
|
|
- $where['Gd_gdbh|Gd_客户代号|成品名称'] = ['like','%'.$param['search'].'%'];
|
|
|
- }else{
|
|
|
+ if (empty($param['search'])){
|
|
|
$where['Mod_rq'] = ['between',[date('Y-m-d 00:00:00',time()-1209600),date('Y-m-d H:i:s',time())]];
|
|
|
+ }else{
|
|
|
+ $where['Gd_gdbh|Gd_客户代号|成品名称'] = ['like','%'.$param['search'].'%'];
|
|
|
}
|
|
|
$list = \db('工单_基本资料')
|
|
|
->field('Gd_gdbh,Gd_cpmc,行号')
|