|
@@ -62,6 +62,7 @@ public class PtAccountServiceImpl implements IPtAccountService {
|
62
|
62
|
@Override
|
63
|
63
|
public TableDataInfo<PtAccountVo> queryPageList(PtAccountBo bo, PageQuery pageQuery) {
|
64
|
64
|
LambdaQueryWrapper<PtAccount> lqw = buildQueryWrapper(bo);
|
|
65
|
+ lqw.orderByDesc(PtAccount::getCreateTime);
|
65
|
66
|
Page<PtAccountVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
66
|
67
|
return TableDataInfo.build(result);
|
67
|
68
|
}
|
|
@@ -175,7 +176,7 @@ public class PtAccountServiceImpl implements IPtAccountService {
|
175
|
176
|
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) {
|
176
|
177
|
if(isValid){
|
177
|
178
|
if(ptOperatorMapper.selectCount(Wrappers.<PtOperator>lambdaQuery().in(PtOperator::getAccountId, ids)) > 0){
|
178
|
|
- throw new ServiceException("已有营业员绑定此账号,不能删除");
|
|
179
|
+ throw new ServiceException("已有营业员绑定此账号,请删除营业员数据后再删除!");
|
179
|
180
|
}
|
180
|
181
|
}
|
181
|
182
|
return baseMapper.deleteByIds(ids) > 0;
|