|
|
|
@ -63,7 +63,7 @@ class Index extends BaseController |
|
|
|
|
$params['data_check'] = 'car_frame_check'; |
|
|
|
|
} |
|
|
|
|
if(isset($params['data_check']) && $params['data_check'] == 'car_frame_check'){ |
|
|
|
|
$query = Db::table('repeat_data_t')->rightJoin('repeat_frame_t','repeat_frame_t.car_frame_no = car_info_t.car_frame_no')->field('car_info_t.*')->where($map)->order('repeat_frame_t.car_frame_no desc'); |
|
|
|
|
$query = Db::table('repeat_data_t')->alias('car_info_t')->rightJoin('repeat_frame_t','repeat_frame_t.car_frame_no = car_info_t.car_frame_no')->field('car_info_t.*')->where($map)->order('repeat_frame_t.car_frame_no desc'); |
|
|
|
|
if (isset($params['is_delete_frame']) && $params['is_delete_frame'] > 0) { |
|
|
|
|
$query = $query->where('repeat_data_t.repeat_id', '=', $params['is_delete_frame']); |
|
|
|
|
} |
|
|
|
|