|
|
|
@ -6,8 +6,10 @@ import com.hai.common.exception.SysCode; |
|
|
|
|
import com.hai.common.security.SessionObject; |
|
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
|
import com.hai.dao.HighGoldRecMapper; |
|
|
|
|
import com.hai.dao.HighUserMapper; |
|
|
|
|
import com.hai.entity.HighGoldRec; |
|
|
|
|
import com.hai.entity.HighGoldRecExample; |
|
|
|
|
import com.hai.entity.HighUser; |
|
|
|
|
import com.hai.entity.HighUserExample; |
|
|
|
|
import com.hai.model.HighUserModel; |
|
|
|
@ -50,6 +52,9 @@ public class HighUserServiceImpl implements HighUserService { |
|
|
|
|
@Resource |
|
|
|
|
private UserCenter userCenter; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private HighGoldRecMapper highGoldRecMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<HighUser> getListUser(Map<String, String> map) { |
|
|
|
|
|
|
|
|
@ -224,4 +229,11 @@ public class HighUserServiceImpl implements HighUserService { |
|
|
|
|
HighUserExample example = new HighUserExample(); |
|
|
|
|
return highUserMapper.countByExample(example); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Boolean findGoldRepeat(Integer resType, Long resId) { |
|
|
|
|
HighGoldRecExample example = new HighGoldRecExample(); |
|
|
|
|
example.createCriteria().andResIdEqualTo(resId).andResTypeEqualTo(resType); |
|
|
|
|
return highGoldRecMapper.selectByExample(example) != null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|