ernesto logo
Torna al Magazine
Consulente filosofico: come trovare insegnanti di meditazione
consigli
Consulente filosofico: come trovare insegnanti di meditazione

Come Trovare un Consulente Filosofico per Insegnare Meditazione

Consigli per Trovare un Consulente Filosofico per Imparare la Meditazione.

Scopri come trovare un consulente filosofico per insegnare meditazione e migliorare il tuo benessere interiore. Questo articolo offre suggerimenti pratici per scegliere il professionista giusto, esplorando le competenze necessarie e i benefici della meditazione. Unisciti a noi per un viaggio verso la serenità e la consapevolezza.

Trova professionisti vicino a te

Trova professionisti
package com.ningpai.system.controller; import java.io.IOException; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.view.RedirectView; import com.ningpai.logger.util.OperaLogUtil; import com.ningpai.system.bean.Logo; import com.ningpai.system.service.ILogoService; import com.ningpai.system.util.SelectBean; import com.ningpai.util.MyLogger; import com.ningpai.util.PageBean; /** * 公司logo控制器 * * @Description: * @author NINGPAI_xiaomm * @since 2014-03-27 17:44:59 * @version V1.0 */ @Controller public class LogoController { /** 记录日志对象 */ private static final MyLogger LOGGER = new MyLogger(LogoController.class); private static final String LOGINUSERID = "loginUserId"; private static final String OPERAPATH = "operaPath"; /** logoService */ private ILogoService logoService; /** * 分页查询 日志 * * @param pageBean * @param selectBean * @return */ @RequestMapping("/findLogoByPageBean") public ModelAndView findLogoByPageBean(PageBean pageBean, SelectBean selectBean) { // 设置总行数 pageBean.setRows(this.logoService.findTotalCount(selectBean)); // 获取数据 List logoList = this.logoService.findByPageBean(pageBean, selectBean); // 返回结果 return new ModelAndView("jsp/system/logo_list", "logoList", logoList).addObject("pageBean", pageBean).addObject("selectBean", selectBean); } /** * 根据logoId获取logo信息 * * @param logoId * @return */ @RequestMapping("/getLogoByLogoId") @ResponseBody public Logo getLogoByLogoId(Long logoId) { return this.logoService.getLogoByLogoId(logoId); } /** * 保存logo * * @param logo * @return */ @RequestMapping("/saveLogo") public ModelAndView saveLogo(Logo logo, HttpServletRequest request, String flag) { if (null != logo) { if ("1".equals(flag)) { logo.setLogoDelflag("1"); } else { logo.setLogoDelflag("0"); } // 判断是否为新添加 if (null == logo.getLogoId()) { logo.setLogoCreateTime(new Date()); // 添加操作 this.logoService.saveLogo(logo); // 记录日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "添加公司logo", "添加公司logo-->logo名称【" + logo.getLogoName() + "】", (String) request.getSession().getAttribute(OPERAPATH)); // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } else { // 修改操作 this.logoService.updateLogo(logo); // 记录日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "修改公司logo", "修改公司logo-->logo名称【" + logo.getLogoName() + "】", (String) request.getSession().getAttribute(OPERAPATH)); // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } } else { // 返回结果 return new ModelAndView("jsp/system/logo_list"); } } /** * 根据logoId删除logo * * @param logoId * @return */ @RequestMapping("/deleteLogo") public ModelAndView deleteLogo(Long logoId, HttpServletRequest request) { // 根据logoId查询logo信息 Logo logo = this.logoService.getLogoByLogoId(logoId); if (null != logo) { // 删除操作 this.logoService.deleteLogo(logoId); // 记录操作日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "删除公司logo", "删除公司logo-->logo名称【" + logo.getLogoName() + "】", (String) request.getSession().getAttribute(OPERAPATH)); } // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } /** * 批量删除logo * * @param logoIds * @return */ @RequestMapping("/batchDelLogo") public ModelAndView batchDelLogo(Long[] logoIds, HttpServletRequest request) { if (null != logoIds && logoIds.length > 0) { // 批量删除操作 this.logoService.batchDelLogo(logoIds); // 记录操作日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "批量删除公司logo", "批量删除公司logo-->logoID【" + logoIds + "】", (String) request.getSession().getAttribute(OPERAPATH)); } // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } /** * 更改logo使用状态 * * @param logo * @return */ @RequestMapping("/updateLogoStatus") @ResponseBody public int updateLogoStatus(Logo logo) { try { // 更改操作 this.logoService.updateLogo(logo); return 1; } catch (Exception e) { LOGGER.error("更改logo使用状态错误:=>", e); return 0; } } /** * 根据logoId更新logo使用状态 * * @param logoId * @param logoStatus * @param request * @return */ @RequestMapping("/updateLogoStatusByLogoId") public ModelAndView updateLogoStatusByLogoId(Long logoId, String logoStatus, HttpServletRequest request) { Logo logo = this.logoService.getLogoByLogoId(logoId); if (null != logo) { logo.setLogoStatus(logoStatus); // 更新操作 this.logoService.updateLogo(logo); // 记录操作日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "更新公司logo使用状态", "更新公司logo使用状态-->logo名称【" + logo.getLogoName() + "】", (String) request.getSession().getAttribute(OPERAPATH)); } // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } /** * 根据logoId设置默认logo * * @param logoId * @param request * @return */ @RequestMapping("/setDefaultLogo") public ModelAndView setDefaultLogo(Long logoId, HttpServletRequest request) { Logo logo = this.logoService.getLogoByLogoId(logoId); if (null != logo) { // 更新原来的默认logo this.logoService.updateDefaultLogo(); // 设置新的默认logo this.logoService.setDefaultLogo(logoId); // 记录操作日志 OperaLogUtil.addOperaLog(request, (String) request.getSession().getAttribute(LOGINUSERID), "设置公司logo为默认logo", "设置公司logo为默认logo-->logo名称【" + logo.getLogoName() + "】", (String) request.getSession().getAttribute(OPERAPATH)); } // 返回结果 return new ModelAndView(new RedirectView(request.getContextPath() + "/findLogoByPageBean.htm")); } /** * 根据logoId查看logo * * @param logoId * @param request * @param response * @throws IOException */ @RequestMapping("/showLogo") public void showLogo(Long logoId, HttpServletRequest request, HttpServletResponse response) throws IOException { // 根据logoId查询logo Logo logo = this.logoService.getLogoByLogoId(logoId); if (null != logo) { response.setContentType("image/jpeg; charset=GB2312"); response.getOutputStream().write(logo.getLogoImg()); response.getOutputStream().flush(); } } /** * 根据logoId查看logo * * @param logoId * @param request * @param response * @throws IOException */ @RequestMapping("/showLogoByLogoId") @ResponseBody public Map showLogoByLogoId(Long logoId, HttpServletRequest request, HttpServletResponse response) throws IOException { // 根据logoId查询logo Logo logo = this.logoService.getLogoByLogoId(logoId); // 定义返回结果 Map resultMap = new HashMap(); if (null != logo) { resultMap.put("logo", logo); } // 返回结果 return resultMap; } public ILogoService getLogoService() { return logoService; } @Resource(name = "logoService") public void setLogoService(ILogoService logoService) { this.logoService = logoService; } }
Ultimo aggiornamento
30 Mar 2025
Andrea Galli
Andrea Galli

Esperto nella comunicazione tra clienti e professionisti, con attenzione all’efficienza e al confronto prezzi dei preventivi.