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