master
elf 3 years ago
parent 45ad045dc6
commit 124a2b6b0f

@ -3255,4 +3255,14 @@ function array_repeat($array,$keyid="id",$desc=false)
$c = array_rsort($c,true); $c = array_rsort($c,true);
} }
return $c; return $c;
}
function getShiftingMends(array $userIds = null)
{
$map = ['status' => 0];
if (!is_null($userIds)) {
$map['user_id'] = ['in', $userIds];
}
$mends = M('mend', 'tab_')->field(['id', 'user_id'])->where($map)->select();
return index_by_column('user_id', $mends);
} }
Loading…
Cancel
Save