/** * @author hanluoxing * @param vo * @changelog 2011-11-14 下午05:19:36 hanluoxing 修改部分:->保存出参 * @param msg */ public void insertOutMsg(OutContAccVo ovo, String msg) { if (!Utils.isEmpty(ovo)) { PLY_INFO vo = ovo.getPlyInfo(); String plyappno = vo.getPROPOSALNO(); String plyno = vo.getPOLICYNO(); String edrappno = vo.getEDRAPPNO(); String edrno = vo.getENDORSENO(); long taskid = 0; try { taskid = dao.queryForTaskId(plyappno, plyno, edrappno, edrno); } catch (Exception e) { e.printStackTrace(); log.info( "根据投保单号:" + plyappno + ",保单号:" + plyno + ",批单申请单号:" + edrappno + ",批单号:" + edrno + ",查询离线任务ID出错,错误信息为: " + e.getMessage()); } if (taskid != 0) { dao.insertOutMsg(ovo, msg, taskid); } // boolean isExist = isExistOutMsg(plyno, edrno, taskid); // if (isExist) { // delExistOutMsg(plyno, edrno, taskid); // } } }
/** * @author hanluoxing * @param vo * @return 判断当前保批单是否有未计算的记录 */ public boolean hasEdrNotCal(OutContAccVo vo) { boolean flag = false; if (!Utils.isEmpty(vo)) { PLY_INFO plyvo = vo.getPlyInfo(); TASK_INFO taskvo = vo.getTaskInfo(); String plyno = plyvo.getPOLICYNO(); String edrappno = plyvo.getEDRAPPNO(); String edrno = plyvo.getENDORSENO(); String serino = plyvo.getPROPOSALSERIALNO(); Timestamp starttm = taskvo.getTASKSTARTDATE(); String starttmstr = starttm.toString(); if (!Utils.isEmpty(edrappno) || !Utils.isEmpty(edrno)) { int count = 0; count = dao.queryForEdrCont(plyno, edrno, starttmstr, serino); if (count > 0) flag = true; else flag = false; } else flag = false; } return flag; }
/** * @author hanluoxing * @changelog 2011-11-14 下午04:17:54 hanluoxing 修改部分:->组装入参数据 * @param plyvo 基本信息 * @param taskvo 任务信息 * @param planlist 分期信息 * @return */ private OutContAccVo initOutContAccVo( PLY_INFO plyvo, TASK_INFO taskvo, List<PlyPayPlanInfoVo> planlist) { OutContAccVo vo = null; if (!Utils.isEmpty(plyvo) && !Utils.isEmpty(taskvo) && !Utils.isEmpty(planlist)) { vo = new OutContAccVo(); vo.setSERVICE_TYPE("3"); vo.setTRANSACTION_TYPE("1"); vo.setPlyInfo(plyvo); vo.setTaskInfo(taskvo); vo.setPlypayplaninfolist(planlist); } return vo; }