master
elf 3 years ago
parent 45ad045dc6
commit 124a2b6b0f

@ -3256,3 +3256,13 @@ function array_repeat($array,$keyid="id",$desc=false)
}
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