| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.jsh.erp.datasource.entities.SysDict; |
| | | import com.jsh.erp.dto.ConfigSecurityCreateOrUpdate; |
| | | import com.jsh.erp.dto.ConfigSecurityQuery; |
| | |
| | | BaseResponseInfo res = new BaseResponseInfo(); |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | try { |
| | | List<ConfigSecurity> dataList = configSecurityService.findList(configSecurityQuery); |
| | | Long total = configSecurityService.findListCount(configSecurityQuery); |
| | | map.put("total", total); |
| | | map.put("rows", dataList); |
| | | // List<ConfigSecurity> dataList = configSecurityService.findList(configSecurityQuery); |
| | | // Long total = configSecurityService.findListCount(configSecurityQuery); |
| | | // map.put("total", total); |
| | | // map.put("rows", dataList); |
| | | PageInfo<ConfigSecurity> pageInfo =configSecurityService.findPageInfo(configSecurityQuery); |
| | | map.put("total",pageInfo.getTotal()); |
| | | map.put("rows",pageInfo.getList()); |
| | | res.code = 200; |
| | | res.data = map; |
| | | } catch(Exception e){ |