| | |
| | | return fail("用户未登录", null); |
| | | } |
| | | |
| | | int count = downloadService.selectCountForUser(ue.getCreateUser(), 2, name); |
| | | int count = downloadService.selectCountForUser(ue.getId(), "2", name); |
| | | if (count == 0) { |
| | | return success(0, null); |
| | | } |
| | | List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getCreateUser(), 2, name, pageSize, pageSize * (pageIndex - 1)); |
| | | List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getId(), "2", name, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | public ResponseMsg<String> insertMap(@RequestBody ExportEntity entity, HttpServletRequest req) { |
| | | try { |
| | | boolean flag = entity.getXmin() == 0 && entity.getYmin() == 0 && entity.getXmax() == 0 && entity.getYmax() == 0; |
| | | if (entity == null || |
| | | StringHelper.isEmpty(entity.getLayers()) || |
| | | StringHelper.isEmpty(entity.getToken()) || |
| | | flag) { |
| | | if (StringHelper.isEmpty(entity.getLayers()) || StringHelper.isEmpty(entity.getToken()) || flag) { |
| | | return fail("参数不完整"); |
| | | } |
| | | |
| | |
| | | |
| | | return success("出图成功", str); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage()); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |