123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package com.miniframe.bisiness.system;
- import java.util.HashMap;
- import java.util.Map;
- import com.miniframe.core.ExecProcessFlow;
- import com.miniframe.core.IniFileReader;
- import com.miniframe.generate.business.system.model.C00006BaseModel;
- import com.miniframe.tools.ali.HttpUtils;
- import org.apache.http.HttpResponse;
- /**
- * 基础系统,“项目求解日志”逻辑处理(重新生成不覆盖)。
- */
- public class C00006Service extends C00006BaseModel implements ExecProcessFlow {
-
- private static final long serialVersionUID = -7051358269847459502L;
-
- /**
- * 基础系统,“项目求解日志”业务核心处理
- */
- public void transExecute() throws Exception {
- IniFileReader ini = new IniFileReader("userconfig/user.properties");
- String host = ini.getStrValue("es.host")+"/searchAllLog";
- String path ="";
- String method="";
- Map<String, String> headers = new HashMap<>();
- Map<String, String> querys= new HashMap<>();
- Map<String, String> bodys= new HashMap<>();
- bodys.put("projectId",this.getA_c00006().getPid());
- HttpResponse response= HttpUtils.doPost(host,path,method,headers,querys,bodys);
- }
-
- /**
- * 基础系统,“项目求解日志”业务前处理
- */
- public void preTransFlow() throws Exception {
- this.validater();
- }
-
- /**
- * 基础系统,“项目求解日志”业务后处理
- */
- public void afterTransFlow() throws Exception {
-
- }
-
- /**
- * 基础系统,“项目求解日志”逻辑入口处理方法
- */
- @SuppressWarnings("rawtypes")
- @Override
- public Map execute(Map vars) throws Exception {
- this.setTransMap(vars);
- preTransFlow();// 执行业务开始的规则检查和校验
- transExecute();// 执行核心业务段
- afterTransFlow();// 执行核心逻辑完成后的收尾逻辑
- return this.getTransMap();
- }
- }
|