|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.fouram.constants.WebConstants;
|
|
|
+import org.fouram.core.base.model.PageData;
|
|
|
import org.fouram.core.base.service.BaseService;
|
|
|
import org.fouram.core.base.service.RequestService;
|
|
|
import org.fouram.core.plugin.weixin.cp.util.WXCpUserUtil;
|
|
@@ -198,7 +199,10 @@ public class SapUserService extends BaseService {
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public List<SapUser> selectListByDepartIdAndLevel(String departId) throws Exception {
|
|
|
SapOrg sapOrg = sapOrgService.selectById(departId);
|
|
|
- return (List<SapUser>) findList("SapUserMapper.selectListByDepartIdAndLevel", sapOrg);
|
|
|
+ PageData pd = new PageData();
|
|
|
+ pd.put("departId", departId);
|
|
|
+ pd.put("level", sapOrg.getLevel());
|
|
|
+ return (List<SapUser>) findList("SapUserMapper.selectListByDepartIdAndLevel", pd);
|
|
|
}
|
|
|
|
|
|
public SapUser toInfoDetail(SapUser sapUser) throws Exception {
|