时间:2021-07-01 10:21:17 帮助过:7人阅读
2.js代码
3.NoticeAction代码
/** * checkbox不提示公告,需要修改TBussinessSet中的屏蔽状态,ajax异步请求 */ public void noTipsNotice(){ try { PrintWriter out = this.getResponse().getWriter(); bussinessSet = BussinessSetService.queryById(getUserId()); String state = ""; if(isSelect==null){//noticeType==null没有选中checkbox state = "11"; } else{ state = "10"; } if("25".equals(noticeType)){ bussinessSet.setSaleBack(state); } else if("63".equals(noticeType)){ bussinessSet.setRemittanceBank(state); } else if("64".equals(noticeType)){ bussinessSet.setRemittanceOnline(state); } BussinessSetService.update(bussinessSet); out.print(""); } catch (Exception e) { log.error(e.fillInStackTrace()); } }