Ejemplo n.º 1
0
 /**
  * 澧炲姞鏂扮殑瀹炴湁浜哄彛淇敼淇℃伅
  *
  * @param ryid
  * @param type
  */
 public void addGzjkList(String ryid, String type) {
   GzjkTemp gzjkTemp = gzjkDao.queryGzjkByBzdzid(ryid);
   if (gzjkTemp != null) {
     gzjkTemp.setBdlx("0".equals(type) ? "0" : "1".equals(type) ? "1" : "2");
     gzjkDao.insertLSB(gzjkTemp);
     ProcessingResults(gzjkTemp);
   }
 }
Ejemplo n.º 2
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; // 娑撳秶顑侀崥鍫熸蒋娴犲墎娈戦弫鐗堝祦娑撳秴顦甸悶锟�
      }
    }
  }