| | |
| | | @ApiOperation(value = "app管理-分页列表查询", notes = "app管理-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public R queryPageList(AppManage appManage, Query query) { |
| | | IPage<AppManage> pageList = appManageService.page(Condition.getPage(query), Condition.getQueryWrapper(appManage)); |
| | | IPage<AppManage> pageList = appManageService.page(Condition.getPage(query), Condition.getQueryWrapper(appManage).orderByDesc("create_time")); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | |
| | | */ |
| | | JSONObject jump_wxa = new JSONObject(); |
| | | |
| | | jump_wxa.put("path", "/pages/home/index"); |
| | | jump_wxa.put("path", "/subPackage/user/historical/index"); |
| | | jump_wxa.put("query", ""); |
| | | jump_wxa.put("env_version", "release"); |
| | | params.put("jump_wxa", jump_wxa); |
| | |
| | | String result = template.postForObject(url, params, String.class); |
| | | JSONObject resultObj = (JSONObject) JSONObject.parse(result); |
| | | String openLink = resultObj.getString("openlink"); |
| | | Integer code = resultObj.getInteger("errCode"); |
| | | if (code.equals(0)) { |
| | | Integer errCode = resultObj.getInteger("errcode"); |
| | | String errMsg = resultObj.getString("errmsg"); |
| | | if (errCode.equals(0)) { |
| | | return R.data(openLink); |
| | | } else { |
| | | return R.fail(""); |
| | | return R.fail(errMsg); |
| | | } |
| | | |
| | | } |