| | |
| | | * 数据申请 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "运维管理\\数据申请") |
| | | @Api(tags = "综合展示\\数据申请") |
| | | @RestController |
| | | @RequestMapping("/apply") |
| | | public class ApplyController extends BaseController { |
| | |
| | | if (null == reqEntity.getTabs() || null == reqEntity.getEntities() || reqEntity.getTabs().size() != reqEntity.getEntities().size()) { |
| | | return fail("请选择要下载的实体名"); |
| | | } |
| | | if (null == reqEntity.getIds() || reqEntity.getIds().isEmpty()) { |
| | | return fail("请选择单位ID"); |
| | | if (null == reqEntity.getDepcodes() || reqEntity.getDepcodes().isEmpty()) { |
| | | return fail("请选择单位编码"); |
| | | } |
| | | |
| | | reqEntity.setWkt(AesHelper.decrypt(reqEntity.getWkt())); |
| | |
| | | } |
| | | |
| | | reqEntity.setPwd(AesHelper.decrypt(reqEntity.getPwd())); |
| | | if (!StringHelper.checkPwdValid(reqEntity.getPwd())) { |
| | | if (StringHelper.isPwdInvalid(reqEntity.getPwd())) { |
| | | return fail("密码不符合要求"); |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | } |