package com.miniframe.bisiness.system; import org.apache.log4j.Logger; import java.util.Map; import com.miniframe.core.ExecProcessFlow; import com.miniframe.generate.business.system.model.HM0005BaseModel; /** * 基础系统,“日志清理”逻辑处理(重新生成不覆盖)。 */ public class HM0005Service extends HM0005BaseModel implements ExecProcessFlow { private static final Logger logger = Logger.getLogger(HM0005Service.class); private static final long serialVersionUID = -7051358269847459502L; /** * 基础系统,“日志清理”业务核心处理 */ public void transExecute() throws Exception { logger.error("批处理交易调用日志清理成功!"); } /** * 基础系统,“日志清理”业务前处理 */ public void preTransFlow() throws Exception { //批处理交易,没有入口参数,屏蔽 //this.validater(); } /** * 基础系统,“日志清理”业务后处理 */ public void afterTransFolw() throws Exception { } /** * 基础系统,“日志清理”逻辑入口处理方法 */ @SuppressWarnings("rawtypes") @Override public Map execute(Map vars) throws Exception { //批处理交易,没有入口参数,屏蔽 //this.setTransMap(vars); preTransFlow();// 执行业务开始的规则检查和校验 transExecute();// 执行核心业务段 afterTransFolw();// 执行核心逻辑完成后的收尾逻辑 return this.getTransMap(); } }