@ -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);