C00006Service.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.miniframe.bisiness.system;
  2. import java.util.HashMap;
  3. import java.util.Map;
  4. import com.miniframe.core.ExecProcessFlow;
  5. import com.miniframe.core.IniFileReader;
  6. import com.miniframe.generate.business.system.model.C00006BaseModel;
  7. import com.miniframe.tools.ali.HttpUtils;
  8. import org.apache.http.HttpResponse;
  9. /**
  10. * 基础系统,“项目求解日志”逻辑处理(重新生成不覆盖)。
  11. */
  12. public class C00006Service extends C00006BaseModel implements ExecProcessFlow {
  13. private static final long serialVersionUID = -7051358269847459502L;
  14. /**
  15. * 基础系统,“项目求解日志”业务核心处理
  16. */
  17. public void transExecute() throws Exception {
  18. IniFileReader ini = new IniFileReader("userconfig/user.properties");
  19. String host = ini.getStrValue("es.host")+"/searchAllLog";
  20. String path ="";
  21. String method="";
  22. Map<String, String> headers = new HashMap<>();
  23. Map<String, String> querys= new HashMap<>();
  24. Map<String, String> bodys= new HashMap<>();
  25. bodys.put("projectId",this.getA_c00006().getPid());
  26. HttpResponse response= HttpUtils.doPost(host,path,method,headers,querys,bodys);
  27. }
  28. /**
  29. * 基础系统,“项目求解日志”业务前处理
  30. */
  31. public void preTransFlow() throws Exception {
  32. this.validater();
  33. }
  34. /**
  35. * 基础系统,“项目求解日志”业务后处理
  36. */
  37. public void afterTransFlow() throws Exception {
  38. }
  39. /**
  40. * 基础系统,“项目求解日志”逻辑入口处理方法
  41. */
  42. @SuppressWarnings("rawtypes")
  43. @Override
  44. public Map execute(Map vars) throws Exception {
  45. this.setTransMap(vars);
  46. preTransFlow();// 执行业务开始的规则检查和校验
  47. transExecute();// 执行核心业务段
  48. afterTransFlow();// 执行核心逻辑完成后的收尾逻辑
  49. return this.getTransMap();
  50. }
  51. }