@Override
 public List<PDLMRiskDutyFactor> findDutyParams(String dutyCode) {
   QueryRule qr = QueryRule.getInstance();
   qr.addEqual("id.dutyCode", dutyCode);
   List<PDLMRiskDutyFactor> list = this.find(qr);
   return list;
 }
예제 #2
0
  /*
   * 进行核保订正
   * @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);
  }