为项目上传图片: '富力营销'
  1. 富力营销
  2. FLMA-238

优化【认购单】认购单引入客户时做创建时间检验判断,增加弹框提示

    问题详情

    • 类型: 需求
    • 状态: 9.关闭 (查看工作流)
    • 优先级: 普通
    • 解决结果: 已解决
    • 模块: 运维
    • 标签:

      描述

      现发现部分认购日期早于客户创建日期,认购单新增时间校验,引入客户点击确定时判断认购创建时间是否早于客户表创建时间,增加弹框提示。
      弹框内容:该客户未在XX:XX:XX前报备,请关闭认购单后重新打开。

        附件

          活动

          隐藏
          chenjunjie 陈俊杰 (未生效) 添加了备注 -

          // cjj 获取认购单的认购日期
          UFDate dsubscdate = (UFDate) AppPsUtil.getAppSession().getAttribute(
          "dsubscdate");
          // cjj 如果是认购,则执行下面代码,验证认购单创建时间是否比客户创建时间晚,不是认购,执行原代码
          if (dsubscdate != null) {
          for (BDCustomerVO bdCustomer : selectedCusList) {
          if (bdCustomer.getDregdate().beforeDate(dsubscdate)) {

          //由单据,如排号,认购单据上的客户表体带过来的客户数据
          existedCusVOList=AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList")==null?new ArrayList<BDCustomerVO>():(ArrayList<BDCustomerVO>)AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList");
          List<String> existedCusVOPKList = new ArrayList<String>();
          if(null!=existedCusVOList && existedCusVOList.size()>0){
          for(BDCustomerVO tempcusvo:existedCusVOList)

          { existedCusVOPKList.add(tempcusvo.getPk_customer()); }

          }
          //本次所选客户和由单据传过来的已存在客户对比后,过滤掉重复客户,需新增加的客户数据
          List<BDCustomerVO> needAddCusList = new ArrayList<BDCustomerVO>();
          //由单据传过来有客户信息,进行过滤
          if(null!=existedCusVOList && existedCusVOList.size()>0){
          for(BDCustomerVO tempvo:selectedCusList){
          if(!existedCusVOPKList.contains(tempvo.getPk_customer()))

          { needAddCusList.add(tempvo); }

          }
          }else{ //如无传来的客户数据,无需校验,则将本次所选客户加入即可
          for(BDCustomerVO tempvo:selectedCusList)

          { needAddCusList.add(tempvo); }

          }
          if(null!=needAddCusList && needAddCusList.size()>0){
          selectedCusVO=(BDCustomerVO[])needAddCusList.toArray(new BDCustomerVO[0]);
          //更新已存在客户队列信息,将本次新增加的客户数据加入。
          for(BDCustomerVO tempcusvo:needAddCusList)

          { existedCusVOList.add(tempcusvo); }

          }else

          { selectedCusVO=null; }

          } else

          { AppInteractionUtil.showErrorDialog(bdCustomer.getVcname() + "客户未在" + dsubscdate.toString().substring(0, 10) + "前报备,请关闭认购单后重新打开!"); return; }

          }
          } else {

          //由单据,如排号,认购单据上的客户表体带过来的客户数据
          existedCusVOList=AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList")==null?new ArrayList<BDCustomerVO>():(ArrayList<BDCustomerVO>)AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList");
          List<String> existedCusVOPKList = new ArrayList<String>();
          if(null!=existedCusVOList && existedCusVOList.size()>0){
          for(BDCustomerVO tempcusvo:existedCusVOList)

          { existedCusVOPKList.add(tempcusvo.getPk_customer()); }

          }
          //本次所选客户和由单据传过来的已存在客户对比后,过滤掉重复客户,需新增加的客户数据
          List<BDCustomerVO> needAddCusList = new ArrayList<BDCustomerVO>();
          //由单据传过来有客户信息,进行过滤
          if(null!=existedCusVOList && existedCusVOList.size()>0){
          for(BDCustomerVO tempvo:selectedCusList){
          if(!existedCusVOPKList.contains(tempvo.getPk_customer()))

          { needAddCusList.add(tempvo); }

          }
          }else{ //如无传来的客户数据,无需校验,则将本次所选客户加入即可
          for(BDCustomerVO tempvo:selectedCusList)

          { needAddCusList.add(tempvo); }

          }
          if(null!=needAddCusList && needAddCusList.size()>0){
          selectedCusVO=(BDCustomerVO[])needAddCusList.toArray(new BDCustomerVO[0]);
          //更新已存在客户队列信息,将本次新增加的客户数据加入。
          for(BDCustomerVO tempcusvo:needAddCusList)

          { existedCusVOList.add(tempcusvo); }

          }else

          { selectedCusVO=null; }

          }

          显示
          chenjunjie 陈俊杰 (未生效) 添加了备注 - // cjj 获取认购单的认购日期 UFDate dsubscdate = (UFDate) AppPsUtil.getAppSession().getAttribute( "dsubscdate"); // cjj 如果是认购,则执行下面代码,验证认购单创建时间是否比客户创建时间晚,不是认购,执行原代码 if (dsubscdate != null) { for (BDCustomerVO bdCustomer : selectedCusList) { if (bdCustomer.getDregdate().beforeDate(dsubscdate)) { //由单据,如排号,认购单据上的客户表体带过来的客户数据 existedCusVOList=AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList")==null?new ArrayList<BDCustomerVO>():(ArrayList<BDCustomerVO>)AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList"); List<String> existedCusVOPKList = new ArrayList<String>(); if(null!=existedCusVOList && existedCusVOList.size()>0){ for(BDCustomerVO tempcusvo:existedCusVOList) { existedCusVOPKList.add(tempcusvo.getPk_customer()); } } //本次所选客户和由单据传过来的已存在客户对比后,过滤掉重复客户,需新增加的客户数据 List<BDCustomerVO> needAddCusList = new ArrayList<BDCustomerVO>(); //由单据传过来有客户信息,进行过滤 if(null!=existedCusVOList && existedCusVOList.size()>0){ for(BDCustomerVO tempvo:selectedCusList){ if(!existedCusVOPKList.contains(tempvo.getPk_customer())) { needAddCusList.add(tempvo); } } }else{ //如无传来的客户数据,无需校验,则将本次所选客户加入即可 for(BDCustomerVO tempvo:selectedCusList) { needAddCusList.add(tempvo); } } if(null!=needAddCusList && needAddCusList.size()>0){ selectedCusVO=(BDCustomerVO[])needAddCusList.toArray(new BDCustomerVO [0] ); //更新已存在客户队列信息,将本次新增加的客户数据加入。 for(BDCustomerVO tempcusvo:needAddCusList) { existedCusVOList.add(tempcusvo); } }else { selectedCusVO=null; } } else { AppInteractionUtil.showErrorDialog(bdCustomer.getVcname() + "客户未在" + dsubscdate.toString().substring(0, 10) + "前报备,请关闭认购单后重新打开!"); return; } } } else { //由单据,如排号,认购单据上的客户表体带过来的客户数据 existedCusVOList=AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList")==null?new ArrayList<BDCustomerVO>():(ArrayList<BDCustomerVO>)AppPsUtil.getAppSession().getAttribute("selectedCustomerVOList"); List<String> existedCusVOPKList = new ArrayList<String>(); if(null!=existedCusVOList && existedCusVOList.size()>0){ for(BDCustomerVO tempcusvo:existedCusVOList) { existedCusVOPKList.add(tempcusvo.getPk_customer()); } } //本次所选客户和由单据传过来的已存在客户对比后,过滤掉重复客户,需新增加的客户数据 List<BDCustomerVO> needAddCusList = new ArrayList<BDCustomerVO>(); //由单据传过来有客户信息,进行过滤 if(null!=existedCusVOList && existedCusVOList.size()>0){ for(BDCustomerVO tempvo:selectedCusList){ if(!existedCusVOPKList.contains(tempvo.getPk_customer())) { needAddCusList.add(tempvo); } } }else{ //如无传来的客户数据,无需校验,则将本次所选客户加入即可 for(BDCustomerVO tempvo:selectedCusList) { needAddCusList.add(tempvo); } } if(null!=needAddCusList && needAddCusList.size()>0){ selectedCusVO=(BDCustomerVO[])needAddCusList.toArray(new BDCustomerVO [0] ); //更新已存在客户队列信息,将本次新增加的客户数据加入。 for(BDCustomerVO tempcusvo:needAddCusList) { existedCusVOList.add(tempcusvo); } }else { selectedCusVO=null; } }

            用户

            • 经办人:
              close 归档
              报告人:
              yangjiechun 杨洁纯
              开发人员:
              陈俊杰 (未生效)
            • 投票:
              0 为这个问题投票
              关注人:
              2 关注这个问题

              日期

              • 创建:
                更新:
                解决:
                预计完成日期:

                时间追踪

                预估时间:
                原预估时间 - 尚未登记
                尚未登记
                剩余时间:
                剩余时间 - 0 分
                0m
                实际工作时间:
                耗费时间 - 1 天
                1d