huangxingxing пре 1 година
родитељ
комит
dd60b5b70d

+ 13 - 0
generated/com/miniframe/generate/comm/system/D_D000015.java

@@ -9,4 +9,17 @@ import java.io.Serializable;
  */
 public class D_D000015 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
+	String logs;//日志
+	/**
+	 *日志
+	 */
+	public void setLogs(String logs) {
+		this.logs=logs;
+	}
+	/**
+	 *日志
+	 */
+	public String getLogs() {
+		return this.logs;
+	}
 }

+ 2 - 1
generated/validator/resources_d_d000015Form_validator.properties

@@ -1 +1,2 @@
-d_d000015Form = false
+d_d000015.logs = \u65E5\u5FD7
+d_d000015Form = true

+ 2 - 1
generated/validator/resources_d_d000015Form_validator_zh_CN.properties

@@ -1 +1,2 @@
-d_d000015Form = false
+d_d000015.logs = \u65E5\u5FD7
+d_d000015Form = true

+ 8 - 4
src/main/java/com/miniframe/bisiness/system/D000015Service.java

@@ -10,6 +10,7 @@ import com.miniframe.httpserver.HttpServerTransFile;
 import com.miniframe.model.system.DAccident;
 import com.miniframe.model.system.dao.DAccidentMapper;
 import com.miniframe.template.TemplateGenerator;
+import com.miniframe.tools.XIFileUtils;
 import com.miniframe.utils.MFMimeTypeUtils;
 
 /**
@@ -28,10 +29,13 @@ public class D000015Service extends D000015BaseModel implements ExecProcessFlow
 		DAccident accident= accidentDao.selectByPrimaryKey(aid);
 		String outPath= TemplateGenerator.BPATH+"/"+aid+"/"+accident.getJid()+"/"+accident.getStype().toLowerCase();
 		String fileName ="log.txt";
-		Path path = Paths.get(outPath+"/"+fileName);
-		String mimeType = MFMimeTypeUtils.getMimeType(path);
-		HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
-		UtilTools.setHttpServerTransFile(transFile);
+
+		String logs =XIFileUtils.readFileAsString(outPath+"/"+fileName);
+		this.getD_d000015().setLogs(logs);
+//		Path path = Paths.get(outPath+"/"+fileName);
+//		String mimeType = MFMimeTypeUtils.getMimeType(path);
+//		HttpServerTransFile transFile = new HttpServerTransFile(fileName, mimeType, path);
+//		UtilTools.setHttpServerTransFile(transFile);
 	}
 	
 	/**

+ 2 - 1
系统设计/通信设计/通讯报文/system(系统服务)/报文体/D000015_D(日志文件获取).csv

@@ -1 +1,2 @@
-序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+1,logs,日志,String,,,,,,,,,,,