|
|
@@ -31,6 +31,7 @@ import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.user.bo.OrgListBo;
|
|
|
import com.goafanti.user.bo.OrgPartnerDetailBo;
|
|
|
import com.goafanti.user.bo.OrgUnitNames;
|
|
|
+import com.goafanti.user.bo.StarListBo;
|
|
|
import com.goafanti.user.bo.UserDownLoadBo;
|
|
|
import com.goafanti.user.bo.UserListBo;
|
|
|
import com.goafanti.user.bo.UserNames;
|
|
|
@@ -432,4 +433,41 @@ public class UserServiceImpl extends BaseMybatisDao<UserMapper> implements UserS
|
|
|
return userMapper.findOrgPartnerDetail(uid, TokenManager.getUserId());
|
|
|
}
|
|
|
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ @Override
|
|
|
+ public Pagination<StarListBo> listStar(Integer number, String engagedField, String username,
|
|
|
+ String professionalTitle, String workUnit, Integer pNo, Integer pSize) {
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+
|
|
|
+ if (null != number){
|
|
|
+ params.put("number", number);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(engagedField)){
|
|
|
+ params.put("engagedField", engagedField);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(username)){
|
|
|
+ params.put("username", username);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(professionalTitle)){
|
|
|
+ params.put("professionalTitle", professionalTitle);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(workUnit)){
|
|
|
+ params.put("workUnit", workUnit);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (pNo == null || pNo < 0) {
|
|
|
+ pNo = 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (pSize == null || pSize < 0 || pSize > 10) {
|
|
|
+ pSize = 10;
|
|
|
+ }
|
|
|
+ return (Pagination<StarListBo>) findPage("findStarListByPage", "findStarCount", params,
|
|
|
+ pNo, pSize);
|
|
|
+ }
|
|
|
+
|
|
|
}
|