Esempio n. 1
0
 /**
  * 查询你借款列表 @Title: findLeaveAppList @Description: TODO
  *
  * @param @param httpServletResponse
  * @param @param page
  * @param @param rows
  * @param @param leaveApp
  * @param @param bindingResult
  * @param @return
  * @author WANGXINCHENG
  * @return String
  * @date 2015年11月26日 下午3:14:10
  * @throws
  */
 @ResponseBody
 @RequestMapping(value = "/findLoanAppList", method = RequestMethod.POST)
 public String findLoanAppList(
     HttpServletResponse httpServletResponse,
     Integer page,
     Integer rows,
     @ModelAttribute("loanApp") LoanApp loanApp,
     BindingResult bindingResult) {
   PageUtil pageUtil = new PageUtil(page, rows);
   List<LoanApp> loanAppList = loanAppService.findLoanAppList(loanApp, pageUtil);
   Long count = loanAppService.findLoanCount(loanApp);
   OutputJson2(httpServletResponse, new GridModel(loanAppList, count));
   return null;
 }
Esempio n. 2
0
 /**
  * 查询借款人所在部门下的所有人 @Title: findOrgUserList @Description: TODO
  *
  * @param @param httpServletResponse
  * @param @param page
  * @param @param rows
  * @param @param loanApp
  * @param @param bindingResult
  * @param @return
  * @author WANGXINCHENG
  * @return String
  * @date 2015年11月26日 下午5:06:19
  * @throws
  */
 @ResponseBody
 @RequestMapping(value = "/findOrgUserList", method = RequestMethod.POST)
 public String findOrgUserList(HttpServletResponse httpServletResponse) {
   List<ComboBoxModel> list = loanAppService.findUserListByOrgId();
   OutputJson(httpServletResponse, list);
   return null;
 }
Esempio n. 3
0
  /**
   * 保存借款申请 @Title: saveLoanApp @Description: TODO
   *
   * @param @param httpServletResponse
   * @param @param loanApp
   * @param @param bindingResult
   * @param @return
   * @author WANGXINCHENG
   * @return String
   * @date 2015年11月26日 下午5:47:07
   * @throws
   */
  @ResponseBody
  @RequestMapping(value = "/saveLoanApp", method = RequestMethod.POST)
  public String saveLoanApp(
      HttpServletResponse httpServletResponse,
      @ModelAttribute("loanApp") LoanApp loanApp,
      BindingResult bindingResult) {
    // 判断填写过多少申请
    boolean flag = loanAppService.getLoanPurposeCount(loanApp);

    if (flag) {
      OutputJson2(httpServletResponse, new DataModel("提示", "同一个人最多申请两个同中类型借款用途!", false, null));
    } else {
      LoanApp app = loanAppService.saveOrUpdLoanApp(loanApp);
      OutputJson2(httpServletResponse, new DataModel("提示", "借款申请保存成功", true, app));
    }
    return null;
  }
Esempio n. 4
0
 /**
  * 根据申请编号删除借款申请 @Title: deleteLoanApp @Description: TODO
  *
  * @param @param httpServletResponse
  * @param @param appNo
  * @param @return
  * @author WANGXINCHENG
  * @return String
  * @date 2015年11月27日 上午9:52:50
  * @throws
  */
 @ResponseBody
 @RequestMapping(value = "/deleteLoanApp", method = RequestMethod.POST)
 public String deleteLoanApp(HttpServletResponse httpServletResponse, String appNo) {
   boolean flag = loanAppService.deleteLoanApp(appNo);
   if (flag) {
     OutputJson(httpServletResponse, new DataModel("提示", "借款申请删除成功!", true));
   } else {
     OutputJson(httpServletResponse, new DataModel("提示", "借款申请删除失败!", false));
   }
   return null;
 }
Esempio n. 5
0
 /**
  * 查询流程图 @Title: showBadgeProcess @Description: TODO
  *
  * @param @param httpServletResponse
  * @param @param btaId
  * @param @return
  * @author WANGXINCHENG
  * @return String
  * @date 2015年11月27日 上午11:33:52
  * @throws
  */
 @ResponseBody
 @RequestMapping(value = "/showBadgeProcess", method = RequestMethod.GET)
 public String showBadgeProcess(HttpServletResponse httpServletResponse, Integer btaId) {
   loanAppService.getDiagramResourceByPaId(httpServletResponse, btaId);
   return null;
 }