- 优化:total 改为long类型

This commit is contained in:
cherishsince 2020-05-14 17:03:51 +08:00
parent 230ace1959
commit 4f095309fd

View File

@ -65,7 +65,7 @@ public class SmsServiceImpl implements SmsService {
// TODO DOME FROM 芋艿 to 小范mybatis-plus QueryWrapper 不要到 Service 可以抽 Dao 方法里哈其它的类似可以瞅瞅噢
IPage<SmsSignDO> signPage = smsSignMapper.listSmsSign(queryDTO);
List<ListSmsSignBO> signList = SmsSignConvert.INSTANCE.convert(signPage.getRecords());
return new PageResult<ListSmsSignBO>().setList(signList).setTotal((int) signPage.getTotal());
return new PageResult<ListSmsSignBO>().setList(signList).setTotal(signPage.getTotal());
}
@Override
@ -77,7 +77,7 @@ public class SmsServiceImpl implements SmsService {
if (CollectionUtils.isEmpty(templateList)) {
// TODO DOME FROM 芋艿 to 小范Collections.EMPTY_LIST =Collections.emptyList();另外可以考虑直接 Convert
return new PageResult<ListSmsTemplateBO>().setList(Collections.emptyList()).setTotal((int) signPage.getTotal());
return new PageResult<ListSmsTemplateBO>().setList(Collections.emptyList()).setTotal(signPage.getTotal());
}
// 获取 sign
@ -100,7 +100,7 @@ public class SmsServiceImpl implements SmsService {
}
});
return new PageResult<ListSmsTemplateBO>().setList(templateList).setTotal((int) signPage.getTotal());
return new PageResult<ListSmsTemplateBO>().setList(templateList).setTotal(signPage.getTotal());
}
@Override