/** * 该用户更换桌面背景 * @param bean * @throws Exception */ public void updateDesktopBackGround(DeskTopBackGround bean)throws Exception{ String sql = "updateDesktopBlackGround"; executor.updateBean(dbname, sql, bean); }
/** * 更新单条背景信息 * @param bean * @throws Exception */ public void updateDesktopStyleCustom(DeskTopBackGround bean)throws Exception{ String sql = "updateDesktopStyleCustom"; executor.updateBean(dbname, sql, bean); } /**
public void updateBean( String sqlname, Object bean) throws SQLException { if(bean == null ) return ; // List datas = new ArrayList(); // datas.add(bean); // updateBeans( null, sqlname, datas); updateBean( null,sqlname, bean); }
public void updateMenuWinSize(ItemMenuCustom bean)throws Exception{ String sql = "updateDeskMenuWinSize"; executor.updateBean(dbname, sql, bean); }
/** * 修改节点参数配置 * @param nodevariable */ public void updateNodevariableParamvalue(Nodevariable nodevariable){ try { executor.updateBean("updateNodevariable", nodevariable); } catch (Exception e) { e.printStackTrace(); } }
/** * 更新 * @param bean * @return */ public boolean updateIpControl(IpControl bean){ boolean flag = false; try { executor.updateBean("updateIpControl", bean); flag =true; } catch (SQLException e) { e.printStackTrace(); } return flag; } // /**
@Override public void switchDocCommentAudit(int channelId, int switchFlag) throws SQLException { Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("channelId", channelId); paramMap.put("switchFlag", switchFlag); executor.updateBean("switchDocCommentAudit", paramMap); } }
public void updateRoleType(RoleType roleType) throws RoleTypeException { try { executor.updateBean("updateRoleType", roleType); } catch (Throwable e) { throw new RoleTypeException("update RoleType failed::", e); } } public RoleType getRoleType(String typeId) throws RoleTypeException {
public void updateResource(Resource resource) throws ResourceException { try { executor.updateBean("updateResource", resource); } catch (Throwable e) { throw new ResourceException("update Resource failed::", e); } } public Resource getResource(String resId) throws ResourceException {
public void updateRole(Role role) throws RoleException { try { executor.updateBean("updateRole", role); } catch (Throwable e) { throw new RoleException("update Role failed::", e); } } public Role getRole(String roleId) throws RoleException {
public void updateCmsWxtoken(CmsWxtoken cmsWxtoken) throws CmsWxtokenException { try { executor.updateBean("updateCmsWxtoken", cmsWxtoken); } catch (Throwable e) { throw new CmsWxtokenException("update CmsWxtoken failed::", e); } } public void updateCmsWxtokenState(CmsWxtoken cmsWxtoken) throws CmsWxtokenException {
public void updateApiXml(ApiXml apiXml) throws ApiXmlException { try { executor.updateBean("updateApiXml", apiXml); } catch (Throwable e) { throw new ApiXmlException("update ApiXml failed::", e); } } public ApiXml getApiXml(int id) throws ApiXmlException {
public void updateSmOrganization(SmOrganization smOrganization) throws SmOrganizationException { try { executor.updateBean("updateSmOrganization", smOrganization); } catch (Throwable e) { throw new SmOrganizationException("update SmOrganization failed::", e); } } public SmOrganization getSmOrganization(String orgId) throws SmOrganizationException {
public void updateSmUserWx(SmUserWx smUserWx) throws SmUserWxException { try { executor.updateBean("updateSmUserWx", smUserWx); } catch (Throwable e) { throw new SmUserWxException("update SmUserWx failed::", e); } }
public void updateCmsWxtokenState(CmsWxtoken cmsWxtoken) throws CmsWxtokenException { try { executor.updateBean("updateCmsWxtokenState", cmsWxtoken); } catch (Throwable e) { throw new CmsWxtokenException("update CmsWxtoken failed::", e); } } public CmsWxtoken getCmsWxtoken(long id) throws CmsWxtokenException {
/** * 更新单个业务类别 * @param businessType * @return */ public int update(BusinessType businessType) { int result = 0; try { System.out.println(businessType.getUseFlag()); executor.updateBean("updateBusinessType", businessType); result = 1; } catch (Exception e) { logger.error(e); } return result; }
/** * 保存委托代办信息 * @param condition * @throws Exception */ @Override public WfEntrust saveWfEntrust(WfEntrust wfEntrust) throws Exception{ if(wfEntrust!=null){ if(StringUtils.isNotEmpty(wfEntrust.getId())){ executor.updateBean("updateWfEntrust", wfEntrust); }else{ wfEntrust.setId(UUID.randomUUID().toString()); executor.insertBean("insertWfEntrust", wfEntrust); } } return wfEntrust; }
@Override public void saveTemple(TempleCondition template) throws Exception { // 新增保存 if (StringUtil.isEmpty(template.getTempleId())) { template.setTempleId(UUID.randomUUID().toString()); String id = AccessControl.getAccessControl().getUserAccount(); String creator = activitiService.userIdToUserName(id, "1"); template.setCreateTime1(new Timestamp(new Date().getTime())); template.setCreator(creator); executor.insertBean("insertMessTemplate", template); // 修改保存 } else { template.setLastUpdatetime(new Timestamp(new Date().getTime())); executor.updateBean("updateMessTemplate", template); } }
public void updateApplication(Application application) throws ApplicationException { try { if(StringUtils.isNotEmpty(application.getAppSecret())){ application.setAppSecretText(application.getAppSecret()); application.setAppSecret(ApplicationSecretEncrpy.encodePassword(application.getAppSecret())); }else if(StringUtils.isNotEmpty(application.getAppSecretText())){ application.setAppSecret(ApplicationSecretEncrpy.encodePassword(application.getAppSecretText())); } executor.updateBean("updateApplication", application); } catch (Throwable e) { throw new ApplicationException("update Application failed::", e); } } public Application getApplication(String appId) throws ApplicationException {
public void updateSmUser(SmUser smUser) throws SmUserException { try { handlLisan( smUser); if(StringUtils.isNotEmpty(smUser.getUserPassword())){ smUser.setPasswordText(smUser.getUserPassword()); smUser.setUserPassword(EncrpyPwd.encodePassword(smUser.getUserPassword())); }else if(StringUtils.isNotEmpty(smUser.getPasswordText())){ smUser.setUserPassword(EncrpyPwd.encodePassword(smUser.getPasswordText())); } if(AccessControl.isDefaultAdmin(smUser.getUserId())) { smUser.setUserIsvalid(Constants.USER_STATUS_NORMAL); smUser.setPasswordDualtime(-1); } executor.updateBean("updateSmUser", smUser); } catch (Throwable e) { throw new SmUserException("update SmUser failed::", e); } } public SmUser getSmUser(String userId) throws SmUserException {