/** * @param accountInfo 分公司财务账号信息 * @return Message */ @RequestMapping(value = "addAccountInfo") public @ResponseBody Message addAccountInfo(AccountInfo accountInfo) { Message message = new Message(); boolean flag = accountInfoService.addAccountInfo(accountInfo); message.setSuccess(flag); return message; }
/** * @param accountInfo 分公司财务账号信息 * @return Message */ @RequestMapping(value = "addOrUpdate") public @ResponseBody Message addOrUpdateAccountInfo(AccountInfo accountInfo) { Message message = new Message(); boolean flag; if (accountInfo.getAccountInfoId() == null || "".equals(accountInfo.getAccountInfoId())) { flag = accountInfoService.addAccountInfo(accountInfo); } else { flag = accountInfoService.updateAccountInfo(accountInfo); } message.setSuccess(flag); return message; }
/** * 保存登记展业计划 * * @param space * @return */ @RequestMapping("saveSpace") public @ResponseBody Message saveSpace(Space space) { Message message = new Message(); Long saveSpace = spaceService.saveSpace(space); if (saveSpace != null && saveSpace > 0) { message.setSuccess(true); message.setMsg("保存成功"); } else { message.setSuccess(false); message.setMsg("保存失败"); } return message; }
// 验证是否有申请中的变更数据 @RequestMapping(value = "checkApplicating") @ResponseBody public Message checkApplicating(Integer creditApplicationId) { Message message = new Message(); message.setSuccess(false); message.setMsg("修改银行卡申请已提交,待审批结束后,方能提交!"); List<Long> ModifyCatdAppIds = modifyCatdAppService.queryModifyCatdAppInSHENQINGZHONG(creditApplicationId); if (CommonUtil.isEmpty(ModifyCatdAppIds)) { message.setSuccess(true); message.setMsg("允许申请!"); } return message; }
/** * 为下载照片提供主键加密 * * @param value * @return */ @RequestMapping("encodingSpaceId") public @ResponseBody Message encodingSpaceId(String value) { Message message = new Message(); try { DESPlus desPlus = new DESPlus(); value = desPlus.encrypt(value); message.setSuccess(true); message.setMsg(value); } catch (Exception e) { message.setSuccess(false); message.setMsg("主键id加密失败"); e.printStackTrace(); } return message; }