CommonService.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package com.huimv.busi.xt.model;
  2. import java.util.List;
  3. import java.util.Map;
  4. import javax.servlet.ServletContext;
  5. import javax.servlet.http.HttpServletRequest;
  6. import javax.servlet.http.HttpServletResponse;
  7. import org.springframework.web.servlet.ModelAndView;
  8. import com.huimv.xt.dataobject.XtGydm;
  9. /**
  10. * 公用服务接口
  11. * @author hongjun.hu
  12. * @version: 1.0
  13. */
  14. public interface CommonService extends BaseService {
  15. /**
  16. * 从缓存中获取公用代码
  17. * @param lbmc 类别名称
  18. * @param context context
  19. * @return 该类别公用代码集合
  20. * @throws Exception
  21. */
  22. public List<XtGydm> getGydm(String lbmc, ServletContext context) throws Exception;
  23. /**
  24. * 从缓存中获取公用代码(包括已作废)
  25. * @param lbmc
  26. * @param context
  27. * @return
  28. * @throws Exception
  29. */
  30. public List<XtGydm> getGydmContainUnuse(String lbmc, ServletContext context) throws Exception;
  31. /**
  32. * 获取系统参数值
  33. * @param csid
  34. * @return
  35. * @throws Exception
  36. */
  37. public String getXtcs(String csid) throws Exception;
  38. /**
  39. * 处理查询条件值获取
  40. *
  41. * @param searchParam
  42. * 查询参数MAP
  43. * @param request
  44. * request
  45. * @throws Exception
  46. * exception
  47. */
  48. public void processSearchParam(Map<String, Object> searchParam,
  49. HttpServletRequest request) throws Exception;
  50. /**
  51. * 根据新的searchParam和KeyList更新SessionHelper中保存的搜索条件
  52. * @param request
  53. * @param searchParam 新的搜索条件
  54. * @param KeyList 以保存的搜索条件中需要更新的条件项
  55. * @return retMap 更新后的搜索条件
  56. */
  57. public Map<String, Object> updateSearchParam(HttpServletRequest request, Map<String, Object> searchParam, List<String> keyList);
  58. /**
  59. * 判断实体的主键是否有值
  60. * @param key
  61. * @return
  62. */
  63. public boolean hasKeyValue(Integer key);
  64. /**
  65. * 对字节数组字符串进行BASE64解码并生成图片
  66. * @param imgStr BASE64编码格式的图片
  67. * @param imgFile 路径+文件名+后缀
  68. * @return
  69. */
  70. public boolean generateImage(String imgStr, String imgFile);
  71. /**
  72. * 根据图片路径删除图片
  73. * @param path 路径
  74. * @param str 匹配的字符串
  75. * @return
  76. */
  77. public int deleteImage(String path, String str);
  78. /**
  79. * 手机端登陆
  80. * @param request
  81. * @param response
  82. * @return
  83. * @throws Exception
  84. */
  85. public ModelAndView appLogin(HttpServletRequest request,
  86. HttpServletResponse response) throws Exception;
  87. /**
  88. * 环控端登陆
  89. * @param request
  90. * @param response
  91. * @return
  92. * @throws Exception
  93. */
  94. public ModelAndView hkClientLogin(HttpServletRequest request,
  95. HttpServletResponse response) throws Exception;
  96. /**
  97. * 新版口袋牧场登录
  98. * @param request
  99. * @param response
  100. * @return
  101. * @throws Exception
  102. */
  103. public ModelAndView haifmpLogin(HttpServletRequest request,
  104. HttpServletResponse response) throws Exception;
  105. }