123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- package com.huimv.busi.xt.model;
- import java.util.List;
- import java.util.Map;
- import javax.servlet.ServletContext;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.springframework.web.servlet.ModelAndView;
- import com.huimv.xt.dataobject.XtGydm;
- /**
- * 公用服务接口
- * @author hongjun.hu
- * @version: 1.0
- */
- public interface CommonService extends BaseService {
- /**
- * 从缓存中获取公用代码
- * @param lbmc 类别名称
- * @param context context
- * @return 该类别公用代码集合
- * @throws Exception
- */
- public List<XtGydm> getGydm(String lbmc, ServletContext context) throws Exception;
-
- /**
- * 从缓存中获取公用代码(包括已作废)
- * @param lbmc
- * @param context
- * @return
- * @throws Exception
- */
- public List<XtGydm> getGydmContainUnuse(String lbmc, ServletContext context) throws Exception;
-
- /**
- * 获取系统参数值
- * @param csid
- * @return
- * @throws Exception
- */
- public String getXtcs(String csid) throws Exception;
-
- /**
- * 处理查询条件值获取
- *
- * @param searchParam
- * 查询参数MAP
- * @param request
- * request
- * @throws Exception
- * exception
- */
- public void processSearchParam(Map<String, Object> searchParam,
- HttpServletRequest request) throws Exception;
-
- /**
- * 根据新的searchParam和KeyList更新SessionHelper中保存的搜索条件
- * @param request
- * @param searchParam 新的搜索条件
- * @param KeyList 以保存的搜索条件中需要更新的条件项
- * @return retMap 更新后的搜索条件
- */
- public Map<String, Object> updateSearchParam(HttpServletRequest request, Map<String, Object> searchParam, List<String> keyList);
-
- /**
- * 判断实体的主键是否有值
- * @param key
- * @return
- */
- public boolean hasKeyValue(Integer key);
-
- /**
- * 对字节数组字符串进行BASE64解码并生成图片
- * @param imgStr BASE64编码格式的图片
- * @param imgFile 路径+文件名+后缀
- * @return
- */
- public boolean generateImage(String imgStr, String imgFile);
-
- /**
- * 根据图片路径删除图片
- * @param path 路径
- * @param str 匹配的字符串
- * @return
- */
- public int deleteImage(String path, String str);
-
- /**
- * 手机端登陆
- * @param request
- * @param response
- * @return
- * @throws Exception
- */
- public ModelAndView appLogin(HttpServletRequest request,
- HttpServletResponse response) throws Exception;
-
- /**
- * 环控端登陆
- * @param request
- * @param response
- * @return
- * @throws Exception
- */
- public ModelAndView hkClientLogin(HttpServletRequest request,
- HttpServletResponse response) throws Exception;
-
- /**
- * 新版口袋牧场登录
- * @param request
- * @param response
- * @return
- * @throws Exception
- */
- public ModelAndView haifmpLogin(HttpServletRequest request,
- HttpServletResponse response) throws Exception;
- }
|