优化账户/仓库/经手人等模块的排序

This commit is contained in:
季圣华
2022-08-28 00:20:50 +08:00
parent 01e85bd477
commit e9ac176e5f
7 changed files with 15 additions and 13 deletions

View File

@@ -74,10 +74,11 @@ public class AccountService {
}
public List<Account> getAccount() throws Exception{
AccountExample example = new AccountExample();
example.createCriteria().andEnabledEqualTo(true).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
List<Account> list=null;
try{
AccountExample example = new AccountExample();
example.createCriteria().andEnabledEqualTo(true).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
example.setOrderByClause("sort asc, id desc");
list=accountMapper.selectByExample(example);
}catch(Exception e){
JshException.readFail(logger, e);
@@ -251,7 +252,7 @@ public class AccountService {
public List<Account> findBySelect()throws Exception {
AccountExample example = new AccountExample();
example.createCriteria().andEnabledEqualTo(true).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
example.setOrderByClause("id desc");
example.setOrderByClause("sort asc, id desc");
List<Account> list=null;
try{
list = accountMapper.selectByExample(example);