代码解析2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | public List<Map> intfQueryPage(Page<Map> page, JSONObject params) { String dictTypeKey = params.getString( "dictTypeKey" ); String dictTypeId = params.getString( "dictTypeId" ); int size = params.getInteger( "size" ); int current = params.getInteger( "current" ); List<Map> list = new ArrayList<>(); EntityWrapper<BaseDictionaryEntity> ew = new EntityWrapper<>(); if (StringUtil.isNotEmpty(dictTypeKey)) { ew.and( "a.DICT_TYPE_KEY = {0}" , dictTypeKey); } if (StringUtil.isNotEmpty(dictTypeId)) { ew.and( "bdt.DICT_TYPE_ID = {0}" , dictTypeId); } ew.orderBy( "a.DICT_ORDER" , true ); if (size > 0 && current > 0 ) { page.setSize(size); page.setCurrent(current); list = baseDictionaryDao.intfQueryPage(page, ew); } else { list = baseDictionaryDao.intfQueryPage(ew); } return list; } |
老师麻烦帮我解析一下这个代码,详细一点呀,不是课本上的内容,直接看代码解析就可以,谢谢啦
16
收起
正在回答 回答被采纳积分+1
1回答
java工程师2020版
- 参与学习 人
- 提交作业 9403 份
- 解答问题 16556 个
综合就业常年第一,编程排行常年霸榜,无需脱产即可学习,北上广深月薪过万 无论你是未就业的学生还是想转行的在职人员,不需要基础,只要你有梦想,想高薪
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧