甲乙方过滤出甲方

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了甲乙方过滤出甲方相关的知识,希望对你有一定的参考价值。

下面为过滤分离出甲方的相关项目,未整理,要整理加图解释

 

/**
* 接收控制器的参数,并判断如何 取数据 并 返回(PageModelView)
* @param employeeNo 作用:1、判断whichAB的值;2、过滤查询的数据
* @param which 0:未评价和初始化;1:已评价; 查询 就是加了过滤条件的查看未评价或已评价
* @param limit 每页加载总数
* @param page 第几页
* @param beginDate
* @param endDate
* @param keyQuery 查询项目名称关键字
* @return
*/
public PageModelView<ShowEvaluateList> evaluate(String employeeNo, int which, int limit, int page,
String beginDate, String endDate, String keyProName, String keyPartyA, String keyPartyB) {
//查询显示时无需知道employeeNo的身份,并为之查询相应的数据
String filterEmp;
EIP employeeInfo = eip.getEmployeeInfo(employeeNo);
switch (employeeInfo.getJobName()) {
case "CIO": //anson
filterEmp = "";
break;
case "PMO经理": //
filterEmp = "";
break;
case "PMO专员": //amy
filterEmp = "";
break;
default:
filterEmp = employeeNo;
break;
}
filterEmp = "";
//获取与这个人相关的所有项目,(为甲、为已、双方都是)
List<String> aboutProject = projectDao.listAboutAllProId(filterEmp, limit, page, beginDate, endDate, keyProName, keyPartyA, keyPartyB);
//再根据以上projectNo获取 所需内容
List<Requirement> releAllProInfo = requirementDao.getProInfo(aboutProject);
//先获取 作为甲方时(asSide = 0) 已评 的项目列表
List<String> evaluatedProByA = satisfactionSurveyDao.listEvaby(filterEmp, 0);
//先用 新类 封装标记,项目评价方甲、的评论与未评论
List<ShowEvaluateList> listNoEvaluateOfA = new ArrayList<>();
List<ShowEvaluateList> listEvaluatedOfA = new ArrayList<>();
int flag;
for(Requirement oneProInfo : releAllProInfo){
if(filterEmp != ""){
if(!oneProInfo.getPartyAManagerNo().equals(filterEmp)){
continue;
}
}
flag = 0;
ShowEvaluateList showEvaOfA = new ShowEvaluateList();
showEvaOfA.setProjectName(oneProInfo.getProjectName());
showEvaOfA.setProjectNo(oneProInfo.getProjectNo());
showEvaOfA.setActualEnd(oneProInfo.getCreateTime());//这里是吧project表的actualEnd数据存再了requirement表的createTime字段
showEvaOfA.setEvaluatePer(oneProInfo.getPartyAManager());//即甲方客户经理
showEvaOfA.setEvaluatePerId(oneProInfo.getPartyAManagerNo());
showEvaOfA.setWhichParty(0);//0:甲方
for(String oEvaOfA : evaluatedProByA){
if(oEvaOfA.equals(oneProInfo.getProjectNo())){
listEvaluatedOfA.add(showEvaOfA);
flag = 1;
break;
}
}
if(flag == 1){
continue;
}
listNoEvaluateOfA.add(showEvaOfA);
}

//最后根据which(0:未评;1:已评)在pageModel里装入对应的数据,返回页面
PageModelView<ShowEvaluateList> pageModel = new PageModelView<ShowEvaluateList>();
return pageModel;
}

以上是关于甲乙方过滤出甲方的主要内容,如果未能解决你的问题,请参考以下文章

合同协议书

这就是三次握手~

甲方VS乙方

一道概率题

失控中的“甲方”

家庭房产分配协议书