|
@@ -369,8 +369,15 @@ public class SapUserService extends BaseService {
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public GetToBeConfirmedListOutput selectToBeConfirmedPrimaryList(GetToBeConfirmedListDTO dto) throws Exception {
|
|
|
- List<SapUser> data = (List<SapUser>) findList("SapUserMapper.selectToBeConfirmedPrimaryList", dto);
|
|
|
- Long total = (Long) findObject("SapUserMapper.selectToBeConfirmedPrimaryTotal", dto);
|
|
|
+ PageData pd = new PageData();
|
|
|
+ pd.put("name", dto.getName());
|
|
|
+ pd.put("type", dto.getType());
|
|
|
+ if (dto.getPageNumber() != null && dto.getPageSize() != null) {
|
|
|
+ pd.put("pageCurrent", String.valueOf(dto.getPageSize() * (dto.getPageNumber() - 1)));
|
|
|
+ pd.put("pageSize", String.valueOf(dto.getPageSize()));
|
|
|
+ }
|
|
|
+ List<SapUser> data = (List<SapUser>) findList("SapUserMapper.selectToBeConfirmedPrimaryList", pd);
|
|
|
+ Long total = (Long) findObject("SapUserMapper.selectToBeConfirmedPrimaryTotal", dto);
|
|
|
return GetToBeConfirmedListOutput.builder().data(toInfoDetails(data)).total(total).build();
|
|
|
}
|
|
|
|