示例#1
0
  /**
   * @Title: queryDdbrwsjmxbList @Description: TODO(待办任务查询)
   *
   * @param @param dbmxid 待办模型id
   * @param @param maxNum 最大查询条数
   * @param @param response 设定文件
   * @return void 返回类型
   * @throws
   */
  @RequestMapping(value = "/queryDdbrwsjmxbList", method = RequestMethod.GET)
  public @ResponseBody EasyUIPage queryDdbrwsjmxbList(
      EasyUIPage page, @RequestParam(value = "rows") Integer rows, DbrwDdbrwb entity) {
    page.setPagePara(rows);
    if (!StringUtils.isBlank(entity.getDbmxid())) {
      String dbzt = entity.getDbzt();

      if (dbzt.equals("wdb")) { // 未督办
        entity.setDbrwfqpcsdm(getSessionBean().getUserOrgCode());
        page = dbrwMainService.queryDdbrwsjmxb(page, entity);
      } else if (dbzt.equals("dbz")) { // 督办中
        DbrwDbrwb vo = new DbrwDbrwb();
        vo.setDbrwfqpcsdm(getSessionBean().getUserOrgCode());
        vo.setDbmxid(entity.getDbmxid());
        if (!StringUtils.isBlank(entity.getDdbsjx1())) {
          vo.setDbsjx1(entity.getDdbsjx1());
        }
        if (!StringUtils.isBlank(entity.getDdbsjx9())) {
          vo.setDbsjx9(entity.getDdbsjx9());
        }
        page = dbrwMainService.queryDbrwsjmxb(page, vo);

      } else if (dbzt.equals("ydb")) { // 已督办
        DbrwDbrwb vo = new DbrwDbrwb();
        vo.setDbrwfqpcsdm(getSessionBean().getUserOrgCode());
        vo.setDbmxid(entity.getDbmxid());
        if (!StringUtils.isBlank(entity.getDdbsjx1())) {
          vo.setDbsjx1(entity.getDdbsjx1());
        }
        if (!StringUtils.isBlank(entity.getDdbsjx9())) {
          vo.setDbsjx9(entity.getDdbsjx9());
        }
        vo.setSfwcdm("1");
        page = dbrwMainService.queryDbrwsjmxb(page, vo);
      }
    }

    return page;
  }
示例#2
0
  /**
   * @param id 从业人员id
   * @param dwid 单位id
   * @param dwmc 单位名称
   * @return
   */
  @RequestMapping(value = "/createPage", method = RequestMethod.GET)
  public @ResponseBody ModelAndView createPage(String id, String dwid) {
    ModelAndView mv = new ModelAndView("sydw_dl/dwfrfzrllyxxbAdd");
    SessionBean sessionBean = getSessionBean();
    Frfzrllrb entity = new Frfzrllrb();

    if (!StringUtils.isBlank(id)) {
      entity = frfzrllrbService.queryById(id);
    }
    if (sessionBean != null) {
      mv.addObject("pcsdm", sessionBean.getExtendValue("ssPcsCode"));
      mv.addObject("zrqdm", sessionBean.getUserOrgCode());
    }
    entity.setDwid(dwid);
    mv.addObject("entity", entity);
    return mv;
  }
示例#3
0
 /**
  * @Title: query @Description: query
  *
  * @param @param page
  * @param @param entity
  * @param @return 设定文件
  * @return EasyUIPage 返回类型
  * @throws
  */
 public EasyUIPage query(EasyUIPage page, AqffXcXcjyxxb entity) {
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("begin", page.getBegin());
   map.put("end", page.getEnd());
   String sort = page.getSort();
   String order = page.getOrder();
   if (StringUtils.isBlank(sort)) {
     sort = "kzrq";
     order = "desc";
   }
   map.put("sort", sort);
   map.put("order", order);
   map.put("entity", entity);
   page.setRows(queryForList("AqffXcXcjyxxb.queryList", map));
   page.setTotal((Integer) queryForObject("AqffXcXcjyxxb.queryListCount", map));
   return page;
 }
示例#4
0
 public EasyUIPage queryList(EasyUIPage page, Zdzxrwrzb entity) {
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("begin", page.getBegin());
   map.put("end", page.getEnd());
   String sort = page.getSort();
   String order = page.getOrder();
   if (StringUtils.isBlank(sort)) { // 默认排序
     sort = "xt_lrsj";
     order = "asc";
   }
   map.put("sort", sort);
   map.put("order", order);
   map.put("zdzxrwb", entity);
   page.setTotal((Integer) queryForObject("zdzxrwrzb.queryCount", map));
   page.setRows(queryForList("zdzxrwrzb.queryList", map));
   return page;
 }
示例#5
0
  // 婢跺嫮鎮婇弻銉嚄缂佹挻鐏�
  public void ProcessingResults(GzjkTemp gzjkBzdzTemp) {

    /*JSONObject  messageJson = new JSONObject();
    messageJson.element("type","1");
    messageJson.element("entity",gzjkBzdzTemp);
    Map coultMap = new HashMap();

    String returnString=gzjkBzdzTemp.getGxfxjdm()+","+gzjkBzdzTemp.getGxpcsdm()+","+gzjkBzdzTemp.getGxzrqdm()+",210200000000";
    coultMap.put("sendType", "3");
    coultMap.put("sendCode", returnString);
    coultMap.put("sendMsg",messageJson);
    coultMap.put("callback","BackFunc");
    SendWebSocket sendWebSocket = new SendWebSocket();
    sendWebSocket.shendMessage(coultMap);*/
    if (gzjkBzdzTemp != null) {

      CountBean countBean;
      String pcsdm = StringUtils.nullToStr(gzjkBzdzTemp.getGxpcsdm());
      String xtczsj = StringUtils.nullToStr(gzjkBzdzTemp.getXt_cjsj());
      String zhxgsj = StringUtils.nullToStr(gzjkBzdzTemp.getXt_lrsj());
      if (!StringUtils.isBlank(pcsdm)
          && pcsdm.length() >= 8
          && !StringUtils.isBlank(xtczsj)
          && !StringUtils.isBlank(zhxgsj)) {
        if ("2".equals(gzjkBzdzTemp.getBdlx())) {
          countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 4) + "00000000");
          if (countBean != null) {
            countBean.setCancellCont(countBean.getCancellCont() + 1);
            countBean.setCount(countBean.getCount() - 1);
          }
          countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 6) + "000000");
          if (countBean != null) {
            countBean.setCancellCont(countBean.getCancellCont() + 1);
            countBean.setCount(countBean.getCount() - 1);
          }
          countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 8) + "0000");
          if (countBean != null) {
            countBean.setCancellCont(countBean.getCancellCont() + 1);
            countBean.setCount(countBean.getCount() - 1);
          }
        } else {

          if ("1".equals(gzjkBzdzTemp.getBdlx())) {
            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 4) + "00000000");
            if (countBean != null) {
              countBean.setEditCount(countBean.getEditCount() + 1);
            }
            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 6) + "000000");
            if (countBean != null) {
              countBean.setEditCount(countBean.getEditCount() + 1);
            }
            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 8) + "0000");
            if (countBean != null) {
              countBean.setEditCount(countBean.getEditCount() + 1);
            }
          } else {

            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 4) + "00000000");
            if (countBean != null) {
              countBean.setAddCount(countBean.getAddCount() + 1);
              countBean.setCount(countBean.getCount() + 1);
            }
            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 6) + "000000");
            if (countBean != null) {
              countBean.setAddCount(countBean.getAddCount() + 1);
              countBean.setCount(countBean.getCount() + 1);
            }
            countBean = (CountBean) gzjkMapContList.get(pcsdm.substring(0, 8) + "0000");
            if (countBean != null) {
              countBean.setAddCount(countBean.getAddCount() + 1);
              countBean.setCount(countBean.getCount() + 1);
            }
          }
        }
      } else {
        gzjkBzdzTemp = null; // 娑撳秶顑侀崥鍫熸蒋娴犲墎娈戦弫鐗堝祦娑撳秴顦甸悶锟�
      }
    }
  }