| package com.xzx.gc.system.service;  | 
|   | 
| import com.xzx.gc.entity.AccountInfo;  | 
| import com.xzx.gc.system.mapper.AccountMapper;  | 
| import org.springframework.beans.factory.annotation.Autowired;  | 
| import org.springframework.stereotype.Service;  | 
| import org.springframework.transaction.annotation.Transactional;  | 
| import tk.mybatis.mapper.entity.Example;  | 
|   | 
| import java.util.List;  | 
|   | 
| @Service  | 
| @Transactional  | 
| public class AccountService {  | 
|   | 
|     @Autowired  | 
|     private AccountMapper accountMapper;  | 
|   | 
|   | 
|   | 
|     public List<AccountInfo> findThanZero(){  | 
|         Example example = new Example(AccountInfo.class);  | 
|         Example.Criteria criteria = example.createCriteria();  | 
|         criteria.andEqualTo("delFlag", 0);  | 
|         criteria.andGreaterThan("money",0);  | 
|         List<AccountInfo> accountInfos = accountMapper.selectByExample(example);  | 
|         return accountInfos;  | 
|     }  | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
| }  |