======================
查询指定用户的账户列表
======================
添加用于非空判断的包依赖:
org.apache.commons
commons-lang3
3.4
实现数据访问接口方法:
// 针对t_account表的数据访问接口实现
@Repository
public class AccountDao implements IAccountDao {
@Resource // 注入JDBC模板
private JdbcTemplate jdbcTemplate;
...
// 查询指定用户的账户列表
@Override
public List queryAccounts(
int userId, String accountName,
String accountType, String createTime) {
// 定义SQL语句
String sql = "select * from t_account where user_id = ?";
// 设置参数
List