每次set的传入的还是一个相同值,这样不会有影响吗
在我粘贴代码的倒数3.4.5行
for (int i = 0; i < data.size(); i++){
prcsCtrlInfoDTO = new PrcsCtrlInfoDTO();
prcsCtrlInfoDTO = (PrcsCtrlInfoDTO) data.get(i);
OutAppyEvtDO outAppyEvtDO = new OutAppyEvtDO();
OutAppyEvtDTO outAppyEvtDTO = new OutAppyEvtDTO();
outAppyEvtDO.setServMattInstId(prcsCtrlInfoDTO.getBusinessKey());
List<OutAppyEvtDO> outAppyEvtDOS = outAppyEvtDAO.queryByCondition(outAppyEvtDO);
if (outAppyEvtDOS.size() > 0){
outAppyEvtDO = outAppyEvtDOS.get(0);
} else {
pageResult.setRecordCounts(pageResult.getRecordCounts() - 1);
WorkFlowUtil.closeFlow(prcsCtrlInfoDTO.getPrcsId());
continue;
}
ObjectConversionUtil.convert(outAppyEvtDTO, outAppyEvtDO);
outAppyEvtDTO.setTaskId(prcsCtrlInfoDTO.getTaskId());
outAppyEvtDTO.setTaskName(prcsCtrlInfoDTO.getNodeName());
outAppyEvtDTO.setTaskStates(prcsCtrlInfoDTO.getStates());
list.add(outAppyEvtDTO);
}