修改贷前校验不能同时校验2个以上人的问题

This commit is contained in:
jianghongdong 2018-08-07 15:20:04 +08:00
parent bfa67277a9
commit 43fb912192

View File

@ -105,7 +105,7 @@ public class CreditBodyGuardAction {
}
//遍历personList,将执行过信贷校验的放入alreadypersonList,没执行过的就放入failedpersonList
BizObject queryListObject = bom3
.createQuery("select FINAL_DECISION from O where certid = "+personList.get(v).getAttribute("certId")+" AND flowunid=:FLOWUNID")
.createQuery("select FINAL_DECISION from O where certid = '"+personList.get(v).getAttribute("certId")+"' AND flowunid=:FLOWUNID")
.setParameter("FLOWUNID",flowunid).getSingleResult(false);
if(queryListObject != null){
alreadypersonList.add(queryListObject);
@ -120,7 +120,7 @@ public class CreditBodyGuardAction {
}else{
//遍历failedpersonList并查询Info表,二次校验查看在此次流程阶段是否已经执行信贷校验
for(int m=0;m<failedpersonList.size();m++){
BizObject queryObject1 = bom3.createQuery("select O.FINAL_DECISION from O where O.CERTID ="+failedpersonList.get(m).getAttribute("certId")+"AND O.flowunid=:FLOWUNID")
BizObject queryObject1 = bom3.createQuery("select O.FINAL_DECISION from O where O.CERTID ='"+failedpersonList.get(m).getAttribute("certId")+"' AND O.flowunid=:FLOWUNID")
.setParameter("FLOWUNID", flowunid)
.getSingleResult(false);
//查询如果为空则插入