12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package com.miniframe.bisiness.system;
- import com.miniframe.core.ExecProcessFlow;
- import com.miniframe.core.exception.BusinessException;
- import com.miniframe.core.ext.UtilTools;
- import com.miniframe.generate.business.system.model.B00027BaseModel;
- import com.miniframe.tools.XIFileUtils;
- import java.util.Map;
- /**
- * 基础系统,“获取文件URL”逻辑处理(重新生成不覆盖)。
- */
- public class B00027Service extends B00027BaseModel implements ExecProcessFlow {
- private static final long serialVersionUID = -7051358269847459502L;
- /**
- * 基础系统,“获取文件URL”业务核心处理
- */
- public void transExecute() throws Exception {
- String fileRelativePath = XIFileUtils.getFileUrl(this.getA_b00027().getFileId());
- if (UtilTools.isNullOrBlank(fileRelativePath)) {
- throw new BusinessException("EB2000008");
- }
- this.getD_b00027().setFileUrl(fileRelativePath);
- }
- /**
- * 基础系统,“获取文件URL”业务前处理
- */
- public void preTransFlow() throws Exception {
- this.validater();
- }
- /**
- * 基础系统,“获取文件URL”业务后处理
- */
- public void afterTransFlow() throws Exception {
- }
- /**
- * 基础系统,“获取文件URL”逻辑入口处理方法
- */
- @SuppressWarnings("rawtypes")
- @Override
- public Map execute(Map vars) throws Exception {
- this.setTransMap(vars);
- preTransFlow();// 执行业务开始的规则检查和校验
- transExecute();// 执行核心业务段
- afterTransFlow();// 执行核心逻辑完成后的收尾逻辑
- return this.getTransMap();
- }
- }
|