|
|
@@ -21,6 +21,7 @@ import com.uas.search.b2b.model.SPage;
|
|
|
import com.uas.search.b2b.model.Sort;
|
|
|
import com.uas.search.b2b.util.SearchConstants;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.expression.AccessException;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -270,9 +271,12 @@ public class InviteRecordController {
|
|
|
* @return
|
|
|
*/
|
|
|
private Long checkByUserTel(Long userUU, String userTel) {
|
|
|
- if (null != userTel) {
|
|
|
- User user = userService.findUserByUserTel(userTel);
|
|
|
- userUU = user.getUserUU();
|
|
|
+ if (StringUtils.isEmpty(userUU)) {
|
|
|
+ try {
|
|
|
+ throw new AccessException("userUU不能为空");
|
|
|
+ } catch (AccessException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
return userUU;
|
|
|
}
|