|
@@ -716,11 +716,20 @@ class Transfer extends Start_Controller {
|
|
$where .= " and ctime12 > '$timetk' and ctime12 < '$timetj'";
|
|
$where .= " and ctime12 > '$timetk' and ctime12 < '$timetj'";
|
|
if($type)
|
|
if($type)
|
|
{
|
|
{
|
|
- $type = ($type==1)?'rk':'ck';
|
|
|
|
- if($transfer)
|
|
|
|
- {
|
|
|
|
- $where .= " and $type like '%|".$transfer."|%'";
|
|
|
|
- }
|
|
|
|
|
|
+ if($type == 3){
|
|
|
|
+ if($transfer)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and rk like '%|".$transfer."|%' and rk != ck";
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ $type = ($type==1)?'rk':'ck';
|
|
|
|
+ if($transfer)
|
|
|
|
+ {
|
|
|
|
+ $where .= " and $type like '%|".$transfer."|%'";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -735,11 +744,16 @@ class Transfer extends Start_Controller {
|
|
$cr = "time > '$timetk' and time < '$timetj'";
|
|
$cr = "time > '$timetk' and time < '$timetj'";
|
|
if($transfer)
|
|
if($transfer)
|
|
{
|
|
{
|
|
- $cr .= " and lx = '".$transfer."'";
|
|
|
|
|
|
+ $cr .= " and lx = '".$transfer."' ";
|
|
}
|
|
}
|
|
if($type)
|
|
if($type)
|
|
{
|
|
{
|
|
- $cr .= " and type = '".$type."'";
|
|
|
|
|
|
+ if($type == 3){
|
|
|
|
+ $cr .= " and is_over = 0 ";
|
|
|
|
+ }else{
|
|
|
|
+ $cr .= " and type = '".$type."' ";
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
$fid = '';
|
|
$fid = '';
|
|
$info_list_cr = $this->systemtransfer_cr->find_all($cr);
|
|
$info_list_cr = $this->systemtransfer_cr->find_all($cr);
|