/** * @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 plyappno 投保单号 * @param plyno 保单号 * @param edrappno 批单申请号 * @param edrno 批单号 * @param taskid * @return */ @SuppressWarnings("unused") private boolean isExistOutMsg(String plyno, String edrno, long taskid) { boolean flag = false; int count = dao.queryForExistOutMsg(plyno, edrno, taskid); if (count > 0) flag = true; else flag = false; return flag; }
/** * @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 * @param plyno 保单号 * @param edrno 批单号 * @param taskid */ @SuppressWarnings("unused") private void delExistOutMsg(String plyno, String edrno, long taskid) { dao.delExistOutMsg(plyno, edrno, taskid); }
public List<CalUndrTaskVo> queryForReadyTask() { return dao.queryForReadyTask(); }
/** * @author hanluoxing * @changelog 2011-11-14 下午02:16:39 hanluoxing 修改部分:->构造基本信息对象 * @param plyappno 保单申请单号 * @param plyno 保单号 * @param edrappno 批单申请单号 * @param edrno 批单号 * @return */ private PLY_INFO buildPlyInfoVo(String plyappno, String plyno, String edrappno, String edrno) { return dao.queryPlyInfo(plyappno, plyno, edrappno, edrno); }
/** * @author hanluoxing * @changelog 2011-11-14 下午02:45:34 hanluoxing 修改部分:->查询分期信息 * @param plyappno 保单申请单号 * @param plyno 保单号 * @param edrappno 批单申请单号 * @param edrno 批单号 * @return */ private List<PlyPayPlanInfoVo> buildPayPlanListVo( String plyappno, String plyno, String edrappno, String edrno) { return dao.queryForPayPlan(plyappno, plyno, edrappno, edrno); }