maven项目生成代码 排序 日期查询
排序查询
1 Map<String, Object> conditions = new HashMap<>(); 2 conditions.put("delFlag", false); 3 conditions.put("sortColumns", " code desc");//排序要用数据库字段,不能用驼峰后的 4 List<Dictionary> dictionaryMaxList = webBaseDictionaryService.findPageBreakByCondition(conditions, 0, 1);
日期查询
1 Map<String, Object> conditions = new HashMap<>(); 2 conditions.put("portfolioId", portfolioId); 3 conditions.put("securityCode", securityCode); 4 conditions.put("exchangeCode", exchangeCode); 5 conditions.put("positionDateBegin", positionDate); 6 conditions.put("positionDateEnd", positionDate); 7 conditions.put("delFlag", false); 8 return positionStatsMybatisDao.findByCondition(conditions);