/** toArticleGroupPage 送刊 */ @RequestMapping(value = "/toArticleGroupPageSongKan", method = RequestMethod.GET) public ModelAndView toArticleGroupPageSongKan(HttpServletRequest request) { logger.info("排刊组稿PageSongKan:[ ]"); ModelAndView mav = new ModelAndView("editor_articleGroupPageSongKan"); List<PeriodicalInfo> periodicalInfos = periodicalInfoManager.queryList(null); mav.addObject("list", periodicalInfos); return mav; }
/** toGroupPage 组稿 */ @RequestMapping(value = "/toGroupPage") public ModelAndView toGroupPage( HttpServletRequest request, String periodicalId, String periodicalIssueNo, String periodicalYear) { logger.info("组稿Page:[ " + periodicalId + " ]"); ModelAndView mav = new ModelAndView("editor_groupPage"); PeriodicalInfoQuery periodicalInfoQuery = new PeriodicalInfoQuery(); periodicalInfoQuery.setPeriodicalId(periodicalId); periodicalInfoQuery.setPeriodicalYear(""); PeriodicalInfo periodicalInfo = periodicalInfoManager.selectByPeriodicalId(periodicalInfoQuery); PeriodicalQuery query = new PeriodicalQuery(); query.setPeriodicalId(periodicalId); query.setPeriodicalIssueNo(periodicalIssueNo); query.setPeriodicalYear(periodicalYear); String periodicalYear1 = periodicalYear.substring(2, 4); List<Periodical> periodicals = periodicalManager.queryList(query); if (null == periodicals || periodicals.isEmpty()) { for (int i = 1; i <= periodicalInfo.getCycle(); i++) { Periodical periodical = new Periodical(); periodical.setPeriodicalId(periodicalInfo.getPeriodicalId()); // periodical.setPeriodicalIssueNo(GenerateOrderNo.generateOrderNo()); // // 就用国内刊号 if (i < 10) { periodical.setPeriodicalIssueNo( periodicalInfo.getPeriodicalId() + "-" + periodicalYear1 + "0" + i); } else { periodical.setPeriodicalIssueNo( periodicalInfo.getPeriodicalId() + "-" + periodicalYear1 + i); } // periodical.setPeriodicalIssueNo(periodicalInfo.getCnNo()); periodical.setPeriodicalState(PeriodicalStateEnums.NEW.getCode()); periodical.setExtend2(PeriodicalStateEnums.NEW.getCode()); periodical.setCycleNums(i); periodical.setPeriodicalYear(periodicalYear); // // periodical.setPublishNums(periodicalInfo.getPublishNums()==null?10000:periodicalInfo.get); periodical.setCreateTime(new Date()); periodicalManager.savePeriodical(periodical); } periodicals = periodicalManager.queryList(query); } mav.addObject("list", periodicals); mav.addObject("p", periodicalInfo); return mav; }
/** toGroupPage 送刊 */ @RequestMapping(value = "/toGroupPageSongKan") public ModelAndView toGroupPageSongKan( HttpServletRequest request, String periodicalId, String periodicalIssueNo, String periodicalYear) { logger.info("组稿Page:[ " + periodicalId + " ]"); ModelAndView mav = new ModelAndView("editor_groupPageSongKan"); PeriodicalInfoQuery periodicalInfoQuery = new PeriodicalInfoQuery(); periodicalInfoQuery.setPeriodicalId(periodicalId); // periodicalInfoQuery.setPeriodicalYear(periodicalYear); PeriodicalInfo periodicalInfo = periodicalInfoManager.selectByPeriodicalId(periodicalInfoQuery); PeriodicalQuery query = new PeriodicalQuery(); query.setPeriodicalId(periodicalId); query.setPeriodicalIssueNo(periodicalIssueNo); query.setPeriodicalYear(periodicalYear); List<Periodical> periodicals = periodicalManager.queryList(query); mav.addObject("list", periodicals); mav.addObject("p", periodicalInfo); return mav; }