/** * @title saveIssue * @description 保存问题件 * @param PDIsSue * @return PDIsSue */ @Override public PDIsSue saveIssue(PDIsSue pdIsSue, Invocation invocation) { try { PrpDuser user = (PrpDuser) invocation.getRequest().getSession().getAttribute("user"); pdIsSue.setOperator(user.getUserCode()); pdIsSue.setOperpostman(user.getUserCode()); pdIsSue.setMakeDate(DateUtil.getDate()); pdIsSue.setMaketime(DateUtil.getTime()); pdIsSue.setModifydate(DateUtil.getDate()); pdIsSue.setModifyTime(DateUtil.getTime()); } catch (Exception e) { e.printStackTrace(); } this.save(pdIsSue); return pdIsSue; }
/* * 进行核保订正 * @title uwResultModify * @author 薛玉强 * @see ins.prpall.proposal.service.facade.UWModifyService#uwResultModify(ins.prpall.proposal.model.LCGrpCont) */ @Override public void uwResultModify(LCGrpCont lcGrpCont, int pageNo, int pageSize) { // 查询问题件表(LCIssue)并删除其中的信息 QueryRule queryRule = QueryRule.getInstance(); queryRule.addEqual("id.grpContNo", lcGrpCont.getGrpContNo()); List<LCIssue> lcIssueList = (List<LCIssue>) this.find(LCIssue.class, queryRule); this.deleteAll(lcIssueList); // 查询个人契调项目表(LCSingleSearchItem)并删除其中的信息 queryRule = QueryRule.getInstance(); queryRule.addEqual("id.grpContNo", lcGrpCont.getGrpContNo()); List<LCSingleSearchItem> lcSingleSearchItemList = (List<LCSingleSearchItem>) this.find(LCSingleSearchItem.class, queryRule); this.deleteAll(lcSingleSearchItemList); // 查询个人契调信息表(LCSingleSearchInfo)并删除其中的信息 queryRule = QueryRule.getInstance(); queryRule.addEqual("id.grpContNo", lcGrpCont.getGrpContNo()); List<LCSingleSearchInfo> lcSingleSearchInfoList = (List<LCSingleSearchInfo>) this.find(LCSingleSearchInfo.class, queryRule); this.deleteAll(lcSingleSearchInfoList); // 查询团体契调项目表(LCSearchItem)并删除其中的信息 queryRule = QueryRule.getInstance(); queryRule.addEqual("id.grpContNo", lcGrpCont.getGrpContNo()); List<LCSearchItem> lcSearchItemList = (List<LCSearchItem>) this.find(LCSearchItem.class, queryRule); this.deleteAll(lcSearchItemList); // 查询团体契调信息表(LCSearchItem)并删除其中的信息 queryRule = QueryRule.getInstance(); queryRule.addEqual("id.grpContNo", lcGrpCont.getGrpContNo()); List<LCSearchInfo> lcSearchInfoList = (List<LCSearchInfo>) this.find(LCSearchInfo.class, queryRule); this.deleteAll(lcSearchInfoList); // 查询个人保单表(LCCont)并更新其中的信息 PrpDuser user = (PrpDuser) ActionContext.getContext().getSession().get("user"); String operator = user.getUserName(); queryRule = QueryRule.getInstance(); queryRule.addEqual("grpContNo", lcGrpCont.getGrpContNo()); List<LCCont> lcContList = (List<LCCont>) this.find(LCCont.class, queryRule); if (null != lcContList && lcContList.size() > 0) { for (int i = 0; i < lcContList.size(); i++) { lcContList.get(i).setState(FinalCollection.CONT_STATE6); lcContList.get(i).setUwFlag(null); lcContList.get(i).setRemark(null); lcContList.get(i).setUwOperator(null); lcContList.get(i).setUwDate(null); lcContList.get(i).setUwTime(null); lcContList.get(i).setOperator(operator); lcContList.get(i).setModifyDate(new Date()); lcContList.get(i).setModifyTime(DateUtil.getTime()); } } this.saveAll(lcContList); // 查询集体保单表(LCGrpCont)并更新其中的数据 queryRule = QueryRule.getInstance(); queryRule.addEqual("grpContNo", lcGrpCont.getGrpContNo()); LCGrpCont lcGrpContTemp = (LCGrpCont) this.findUnique(queryRule); lcGrpContTemp.setState(FinalCollection.CONT_STATE6); lcGrpContTemp.setUwFlag(null); lcGrpContTemp.setRemark(null); lcGrpContTemp.setUwOperator(null); lcGrpContTemp.setUwDate(null); lcGrpContTemp.setUwTime(null); lcGrpContTemp.setOperator(operator); lcGrpContTemp.setModifyDate(new Date()); lcGrpContTemp.setModifyTime(DateUtil.getTime()); this.update(lcGrpContTemp); }