|
|
@@ -812,19 +812,23 @@ class Transfer extends Start_Controller {
|
|
|
|
|
|
}
|
|
|
$fid = '';
|
|
|
- $info_list_cr = $this->systemtransfer_cr->find_all($cr);
|
|
|
- foreach ($info_list_cr as $v)
|
|
|
- {
|
|
|
- $fid .= "id = '".$v['fid']."' or ";
|
|
|
- }
|
|
|
- if($fid)
|
|
|
- {
|
|
|
- $where .= ' and ('.trim($fid,'or ').')';
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- $where .= ' and id = 0';
|
|
|
- }
|
|
|
+
|
|
|
+ $where .=" and id IN (SELECT DISTINCT fid FROM crowd_systemtransfer_cr WHERE $cr)";
|
|
|
+ // $info_list_cr = $this->systemtransfer_cr->find_all($cr);
|
|
|
+ // foreach ($info_list_cr as $v)
|
|
|
+ // {
|
|
|
+ // $fid .= "id = '".$v['fid']."' or ";
|
|
|
+ // }
|
|
|
+ // if($fid)
|
|
|
+ // {
|
|
|
+ // $where .= ' and ('.trim($fid,'or ').')';
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+ // $where .= ' and id = 0';
|
|
|
+ // }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//取得信息列表
|
|
|
$info_list = $this->systemtransfer->find_all($where,'id,number,is_jiaji,pm,shipremarks,printtime,time,ctime12',$order_str,$start,$perpage);
|