Selaa lähdekoodia

平台对接接口

huangxingxing 9 kuukautta sitten
vanhempi
säilyke
3405e1e083
72 muutettua tiedostoa jossa 2661 lisäystä ja 245 poistoa
  1. 4 0
      dbscript/init/generate/03-functionInit.sql
  2. 112 0
      generated/com/miniframe/generate/business/system/model/M00001BaseModel.java
  3. 112 0
      generated/com/miniframe/generate/business/system/model/M00002BaseModel.java
  4. 112 0
      generated/com/miniframe/generate/business/system/model/M00003BaseModel.java
  5. 112 0
      generated/com/miniframe/generate/business/system/model/M00004BaseModel.java
  6. 99 0
      generated/com/miniframe/generate/comm/httpclientapater/M00001Client.java
  7. 99 0
      generated/com/miniframe/generate/comm/httpclientapater/M00002Client.java
  8. 99 0
      generated/com/miniframe/generate/comm/httpclientapater/M00003Client.java
  9. 99 0
      generated/com/miniframe/generate/comm/httpclientapater/M00004Client.java
  10. 67 15
      generated/com/miniframe/generate/comm/system/A_M00001.java
  11. 22 22
      generated/com/miniframe/generate/comm/system/A_M00002.java
  12. 8 34
      generated/com/miniframe/generate/comm/system/A_M00003.java
  13. 8 60
      generated/com/miniframe/generate/comm/system/A_M00004.java
  14. 8 35
      generated/com/miniframe/generate/comm/system/D_M00001.java
  15. 1 41
      generated/com/miniframe/generate/comm/system/D_M00002.java
  16. 15 29
      generated/com/miniframe/generate/comm/system/D_M00003.java
  17. 41 1
      generated/com/miniframe/generate/comm/system/D_M00004.java
  18. 38 0
      generated/com/miniframe/generate/comm/system/D_M00004_LINES_RECODE.java
  19. 64 0
      generated/com/miniframe/generate/comm/system/D_M00004_PIPES_RECODE.java
  20. 74 0
      generated/validateform/a_m00001Form.xml
  21. 18 0
      generated/validateform/a_m00002Form.xml
  22. 12 0
      generated/validateform/a_m00003Form.xml
  23. 12 0
      generated/validateform/a_m00004Form.xml
  24. 15 0
      generated/validateform/d_m00003Form.xml
  25. 12 0
      generated/validateform/d_m00004Form.xml
  26. 15 0
      generated/validateform/d_m00004_lines_recodeForm.xml
  27. 21 0
      generated/validateform/d_m00004_pipes_recodeForm.xml
  28. 7 0
      generated/validator/resources_a_m00001Form_validator.properties
  29. 7 0
      generated/validator/resources_a_m00001Form_validator_zh_CN.properties
  30. 4 0
      generated/validator/resources_a_m00002Form_validator.properties
  31. 4 0
      generated/validator/resources_a_m00002Form_validator_zh_CN.properties
  32. 2 0
      generated/validator/resources_a_m00003Form_validator.properties
  33. 2 0
      generated/validator/resources_a_m00003Form_validator_zh_CN.properties
  34. 2 0
      generated/validator/resources_a_m00004Form_validator.properties
  35. 2 0
      generated/validator/resources_a_m00004Form_validator_zh_CN.properties
  36. 2 0
      generated/validator/resources_d_m00001Form_validator.properties
  37. 2 0
      generated/validator/resources_d_m00001Form_validator_zh_CN.properties
  38. 1 0
      generated/validator/resources_d_m00002Form_validator.properties
  39. 1 0
      generated/validator/resources_d_m00002Form_validator_zh_CN.properties
  40. 3 0
      generated/validator/resources_d_m00003Form_validator.properties
  41. 3 0
      generated/validator/resources_d_m00003Form_validator_zh_CN.properties
  42. 2 0
      generated/validator/resources_d_m00004Form_validator.properties
  43. 2 0
      generated/validator/resources_d_m00004Form_validator_zh_CN.properties
  44. 3 0
      generated/validator/resources_d_m00004_lines_recodeForm_validator.properties
  45. 3 0
      generated/validator/resources_d_m00004_lines_recodeForm_validator_zh_CN.properties
  46. 5 0
      generated/validator/resources_d_m00004_pipes_recodeForm_validator.properties
  47. 5 0
      generated/validator/resources_d_m00004_pipes_recodeForm_validator_zh_CN.properties
  48. 119 0
      modelsrc/com/miniframe/model/system/DMway.java
  49. 530 0
      modelsrc/com/miniframe/model/system/DMwaySQLBuilder.java
  50. 10 0
      modelsrc/com/miniframe/model/system/dao/DMwayMapper.java
  51. 2 1
      modelsrc/com/miniframe/model/system/dbconfig/MapperConfig-system.xml
  52. 50 0
      modelsrc/com/miniframe/model/system/xml/DMwayMapper.xml
  53. 4 5
      src/main/java/com/miniframe/bisiness/system/D00002Service.java
  54. 92 0
      src/main/java/com/miniframe/bisiness/system/M00001Service.java
  55. 86 0
      src/main/java/com/miniframe/bisiness/system/M00002Service.java
  56. 67 0
      src/main/java/com/miniframe/bisiness/system/M00003Service.java
  57. 101 0
      src/main/java/com/miniframe/bisiness/system/M00004Service.java
  58. 23 0
      src/main/java/com/miniframe/dbtransfer/DMwayDbTransfer.java
  59. 44 0
      src/test/java/com/miniframe/comm/httpclientapater/M00001Test.java
  60. 44 0
      src/test/java/com/miniframe/comm/httpclientapater/M00002Test.java
  61. 44 0
      src/test/java/com/miniframe/comm/httpclientapater/M00003Test.java
  62. 44 0
      src/test/java/com/miniframe/comm/httpclientapater/M00004Test.java
  63. 3 1
      系统设计/实体Bean/system(实体列表).csv
  64. 6 1
      系统设计/系统模块/SYSTEM(基础系统).csv
  65. 7 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00001_A(平台对接事故数据).csv
  66. 2 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00001_D(平台对接事故数据).csv
  67. 4 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00002_A(平台对接预设路径).csv
  68. 1 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00002_D(平台对接预设路径).csv
  69. 2 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00003_A(平台对接求解状态).csv
  70. 3 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00003_D(平台对接求解状态).csv
  71. 2 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00004_A(平台对接求解结果).csv
  72. 10 0
      系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00004_D(平台对接求解结果).csv

+ 4 - 0
dbscript/init/generate/03-functionInit.sql

@@ -78,3 +78,7 @@ INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('D1
 INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('D10034', '基础系统','预设路径节点添加修改',true);
 INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('D10035', '基础系统','预设路径节点删除',true);
 INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('D10036', '基础系统','路径求解结果获取',true);
+INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('M00001', '基础系统','平台对接事故数据',true);
+INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('M00002', '基础系统','平台对接预设路径',true);
+INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('M00003', '基础系统','平台对接求解状态',true);
+INSERT INTO SYS_FUNCTION(FUNCTIONID, CLASSNAME, FUNCTIONNAME ,ENABLE)VALUES ('M00004', '基础系统','平台对接求解结果',true);

+ 112 - 0
generated/com/miniframe/generate/business/system/model/M00001BaseModel.java

@@ -0,0 +1,112 @@
+package com.miniframe.generate.business.system.model;
+
+import java.util.Map;
+import java.io.IOException;
+import java.util.LinkedHashMap;
+import com.miniframe.core.BaseMapModel;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.core.ext.HttpMapFormater;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import com.miniframe.generate.global.AppGlobalVariableSysconfig;
+
+import com.miniframe.generate.comm.system.A_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.A_M00001;
+import com.miniframe.generate.comm.system.D_M00001;
+
+/**
+ * 系统服务,“平台对接事故数据”模型类(不要维护,重新生成将覆盖)。
+ */
+@SuppressWarnings({ "rawtypes", "unchecked" })
+public class M00001BaseModel extends BaseMapModel {
+
+	private static final long serialVersionUID = -1326184831746814093L;
+
+	A_SYSTEMHEAD a_systemhead;//上行头
+	D_SYSTEMHEAD d_systemhead;//下行头
+	A_M00001 a_m00001;//上行体
+	D_M00001 d_m00001;//下行体
+
+	public M00001BaseModel(){
+		a_systemhead=new A_SYSTEMHEAD();
+		d_systemhead=new D_SYSTEMHEAD();
+		a_m00001=new A_M00001();
+		d_m00001=new D_M00001();
+	}
+
+	public void validater() throws Exception {
+		this.a_systemhead.validater();
+		this.a_m00001.validater();
+	}
+
+	public void setTransMap(Map map) throws Exception {
+		Map headMap = HttpMapFormater.format(map, A_SYSTEMHEAD.class);
+		this.a_systemhead = UtilTools.map2Obj(headMap, A_SYSTEMHEAD.class);
+		Map bodyMap = HttpMapFormater.format(map, A_M00001.class);
+		this.a_m00001 = UtilTools.map2Obj(bodyMap, A_M00001.class);
+	}
+
+	public Map getTransMap() throws Exception {
+		Map reMap = new LinkedHashMap();
+
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getTransCode())){
+			(this.d_systemhead).setTransCode((this.a_systemhead).getTransCode());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getChannelNo())){
+			(this.d_systemhead).setChannelNo((this.a_systemhead).getChannelNo());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getUserId())){
+			(this.d_systemhead).setUserId((this.a_systemhead).getUserId());
+		}
+        if(UtilTools.isNullOrBlank((this.d_systemhead).getTransTime())){
+            (this.d_systemhead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
+        }
+
+		reMap.putAll(UtilTools.obj2Map(this.d_systemhead));
+		reMap.putAll(UtilTools.obj2Map(this.d_m00001));
+
+		return reMap;
+	}
+
+	public A_SYSTEMHEAD getA_systemhead() {
+		return this.a_systemhead;
+	}
+
+	public void setA_systemhead(A_SYSTEMHEAD a_systemhead) {
+		this.a_systemhead=a_systemhead;
+	}
+
+	public D_SYSTEMHEAD getD_systemhead() {
+		return d_systemhead;
+	}
+
+	public void setD_systemhead(D_SYSTEMHEAD d_systemhead) {
+		this.d_systemhead=d_systemhead;
+	}
+
+	public A_M00001 getA_m00001() {
+		return a_m00001;
+	}
+
+	public void setA_m00001(A_M00001 a_m00001) {
+		this.a_m00001=a_m00001;
+	}
+
+	public D_M00001 getD_m00001() {
+		return this.d_m00001;
+	}
+
+	public void setD_m00001(D_M00001 d_m00001) {
+		this.d_m00001=d_m00001;
+	}
+
+	@Override
+	public String toString() {
+		try {
+			return UtilTools.obj2Json(this,true);
+		} catch (IOException e) {
+			return "";
+		}
+	}
+}

+ 112 - 0
generated/com/miniframe/generate/business/system/model/M00002BaseModel.java

@@ -0,0 +1,112 @@
+package com.miniframe.generate.business.system.model;
+
+import java.util.Map;
+import java.io.IOException;
+import java.util.LinkedHashMap;
+import com.miniframe.core.BaseMapModel;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.core.ext.HttpMapFormater;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import com.miniframe.generate.global.AppGlobalVariableSysconfig;
+
+import com.miniframe.generate.comm.system.A_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.A_M00002;
+import com.miniframe.generate.comm.system.D_M00002;
+
+/**
+ * 系统服务,“平台对接预设路径”模型类(不要维护,重新生成将覆盖)。
+ */
+@SuppressWarnings({ "rawtypes", "unchecked" })
+public class M00002BaseModel extends BaseMapModel {
+
+	private static final long serialVersionUID = -1326184831746814093L;
+
+	A_SYSTEMHEAD a_systemhead;//上行头
+	D_SYSTEMHEAD d_systemhead;//下行头
+	A_M00002 a_m00002;//上行体
+	D_M00002 d_m00002;//下行体
+
+	public M00002BaseModel(){
+		a_systemhead=new A_SYSTEMHEAD();
+		d_systemhead=new D_SYSTEMHEAD();
+		a_m00002=new A_M00002();
+		d_m00002=new D_M00002();
+	}
+
+	public void validater() throws Exception {
+		this.a_systemhead.validater();
+		this.a_m00002.validater();
+	}
+
+	public void setTransMap(Map map) throws Exception {
+		Map headMap = HttpMapFormater.format(map, A_SYSTEMHEAD.class);
+		this.a_systemhead = UtilTools.map2Obj(headMap, A_SYSTEMHEAD.class);
+		Map bodyMap = HttpMapFormater.format(map, A_M00002.class);
+		this.a_m00002 = UtilTools.map2Obj(bodyMap, A_M00002.class);
+	}
+
+	public Map getTransMap() throws Exception {
+		Map reMap = new LinkedHashMap();
+
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getTransCode())){
+			(this.d_systemhead).setTransCode((this.a_systemhead).getTransCode());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getChannelNo())){
+			(this.d_systemhead).setChannelNo((this.a_systemhead).getChannelNo());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getUserId())){
+			(this.d_systemhead).setUserId((this.a_systemhead).getUserId());
+		}
+        if(UtilTools.isNullOrBlank((this.d_systemhead).getTransTime())){
+            (this.d_systemhead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
+        }
+
+		reMap.putAll(UtilTools.obj2Map(this.d_systemhead));
+		reMap.putAll(UtilTools.obj2Map(this.d_m00002));
+
+		return reMap;
+	}
+
+	public A_SYSTEMHEAD getA_systemhead() {
+		return this.a_systemhead;
+	}
+
+	public void setA_systemhead(A_SYSTEMHEAD a_systemhead) {
+		this.a_systemhead=a_systemhead;
+	}
+
+	public D_SYSTEMHEAD getD_systemhead() {
+		return d_systemhead;
+	}
+
+	public void setD_systemhead(D_SYSTEMHEAD d_systemhead) {
+		this.d_systemhead=d_systemhead;
+	}
+
+	public A_M00002 getA_m00002() {
+		return a_m00002;
+	}
+
+	public void setA_m00002(A_M00002 a_m00002) {
+		this.a_m00002=a_m00002;
+	}
+
+	public D_M00002 getD_m00002() {
+		return this.d_m00002;
+	}
+
+	public void setD_m00002(D_M00002 d_m00002) {
+		this.d_m00002=d_m00002;
+	}
+
+	@Override
+	public String toString() {
+		try {
+			return UtilTools.obj2Json(this,true);
+		} catch (IOException e) {
+			return "";
+		}
+	}
+}

+ 112 - 0
generated/com/miniframe/generate/business/system/model/M00003BaseModel.java

@@ -0,0 +1,112 @@
+package com.miniframe.generate.business.system.model;
+
+import java.util.Map;
+import java.io.IOException;
+import java.util.LinkedHashMap;
+import com.miniframe.core.BaseMapModel;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.core.ext.HttpMapFormater;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import com.miniframe.generate.global.AppGlobalVariableSysconfig;
+
+import com.miniframe.generate.comm.system.A_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.A_M00003;
+import com.miniframe.generate.comm.system.D_M00003;
+
+/**
+ * 系统服务,“平台对接求解状态”模型类(不要维护,重新生成将覆盖)。
+ */
+@SuppressWarnings({ "rawtypes", "unchecked" })
+public class M00003BaseModel extends BaseMapModel {
+
+	private static final long serialVersionUID = -1326184831746814093L;
+
+	A_SYSTEMHEAD a_systemhead;//上行头
+	D_SYSTEMHEAD d_systemhead;//下行头
+	A_M00003 a_m00003;//上行体
+	D_M00003 d_m00003;//下行体
+
+	public M00003BaseModel(){
+		a_systemhead=new A_SYSTEMHEAD();
+		d_systemhead=new D_SYSTEMHEAD();
+		a_m00003=new A_M00003();
+		d_m00003=new D_M00003();
+	}
+
+	public void validater() throws Exception {
+		this.a_systemhead.validater();
+		this.a_m00003.validater();
+	}
+
+	public void setTransMap(Map map) throws Exception {
+		Map headMap = HttpMapFormater.format(map, A_SYSTEMHEAD.class);
+		this.a_systemhead = UtilTools.map2Obj(headMap, A_SYSTEMHEAD.class);
+		Map bodyMap = HttpMapFormater.format(map, A_M00003.class);
+		this.a_m00003 = UtilTools.map2Obj(bodyMap, A_M00003.class);
+	}
+
+	public Map getTransMap() throws Exception {
+		Map reMap = new LinkedHashMap();
+
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getTransCode())){
+			(this.d_systemhead).setTransCode((this.a_systemhead).getTransCode());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getChannelNo())){
+			(this.d_systemhead).setChannelNo((this.a_systemhead).getChannelNo());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getUserId())){
+			(this.d_systemhead).setUserId((this.a_systemhead).getUserId());
+		}
+        if(UtilTools.isNullOrBlank((this.d_systemhead).getTransTime())){
+            (this.d_systemhead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
+        }
+
+		reMap.putAll(UtilTools.obj2Map(this.d_systemhead));
+		reMap.putAll(UtilTools.obj2Map(this.d_m00003));
+
+		return reMap;
+	}
+
+	public A_SYSTEMHEAD getA_systemhead() {
+		return this.a_systemhead;
+	}
+
+	public void setA_systemhead(A_SYSTEMHEAD a_systemhead) {
+		this.a_systemhead=a_systemhead;
+	}
+
+	public D_SYSTEMHEAD getD_systemhead() {
+		return d_systemhead;
+	}
+
+	public void setD_systemhead(D_SYSTEMHEAD d_systemhead) {
+		this.d_systemhead=d_systemhead;
+	}
+
+	public A_M00003 getA_m00003() {
+		return a_m00003;
+	}
+
+	public void setA_m00003(A_M00003 a_m00003) {
+		this.a_m00003=a_m00003;
+	}
+
+	public D_M00003 getD_m00003() {
+		return this.d_m00003;
+	}
+
+	public void setD_m00003(D_M00003 d_m00003) {
+		this.d_m00003=d_m00003;
+	}
+
+	@Override
+	public String toString() {
+		try {
+			return UtilTools.obj2Json(this,true);
+		} catch (IOException e) {
+			return "";
+		}
+	}
+}

+ 112 - 0
generated/com/miniframe/generate/business/system/model/M00004BaseModel.java

@@ -0,0 +1,112 @@
+package com.miniframe.generate.business.system.model;
+
+import java.util.Map;
+import java.io.IOException;
+import java.util.LinkedHashMap;
+import com.miniframe.core.BaseMapModel;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.core.ext.HttpMapFormater;
+import java.time.ZonedDateTime;
+import java.time.format.DateTimeFormatter;
+import com.miniframe.generate.global.AppGlobalVariableSysconfig;
+
+import com.miniframe.generate.comm.system.A_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+import com.miniframe.generate.comm.system.A_M00004;
+import com.miniframe.generate.comm.system.D_M00004;
+
+/**
+ * 系统服务,“平台对接求解结果”模型类(不要维护,重新生成将覆盖)。
+ */
+@SuppressWarnings({ "rawtypes", "unchecked" })
+public class M00004BaseModel extends BaseMapModel {
+
+	private static final long serialVersionUID = -1326184831746814093L;
+
+	A_SYSTEMHEAD a_systemhead;//上行头
+	D_SYSTEMHEAD d_systemhead;//下行头
+	A_M00004 a_m00004;//上行体
+	D_M00004 d_m00004;//下行体
+
+	public M00004BaseModel(){
+		a_systemhead=new A_SYSTEMHEAD();
+		d_systemhead=new D_SYSTEMHEAD();
+		a_m00004=new A_M00004();
+		d_m00004=new D_M00004();
+	}
+
+	public void validater() throws Exception {
+		this.a_systemhead.validater();
+		this.a_m00004.validater();
+	}
+
+	public void setTransMap(Map map) throws Exception {
+		Map headMap = HttpMapFormater.format(map, A_SYSTEMHEAD.class);
+		this.a_systemhead = UtilTools.map2Obj(headMap, A_SYSTEMHEAD.class);
+		Map bodyMap = HttpMapFormater.format(map, A_M00004.class);
+		this.a_m00004 = UtilTools.map2Obj(bodyMap, A_M00004.class);
+	}
+
+	public Map getTransMap() throws Exception {
+		Map reMap = new LinkedHashMap();
+
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getTransCode())){
+			(this.d_systemhead).setTransCode((this.a_systemhead).getTransCode());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getChannelNo())){
+			(this.d_systemhead).setChannelNo((this.a_systemhead).getChannelNo());
+		}
+		if(UtilTools.isNullOrBlank((this.d_systemhead).getUserId())){
+			(this.d_systemhead).setUserId((this.a_systemhead).getUserId());
+		}
+        if(UtilTools.isNullOrBlank((this.d_systemhead).getTransTime())){
+            (this.d_systemhead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
+        }
+
+		reMap.putAll(UtilTools.obj2Map(this.d_systemhead));
+		reMap.putAll(UtilTools.obj2Map(this.d_m00004));
+
+		return reMap;
+	}
+
+	public A_SYSTEMHEAD getA_systemhead() {
+		return this.a_systemhead;
+	}
+
+	public void setA_systemhead(A_SYSTEMHEAD a_systemhead) {
+		this.a_systemhead=a_systemhead;
+	}
+
+	public D_SYSTEMHEAD getD_systemhead() {
+		return d_systemhead;
+	}
+
+	public void setD_systemhead(D_SYSTEMHEAD d_systemhead) {
+		this.d_systemhead=d_systemhead;
+	}
+
+	public A_M00004 getA_m00004() {
+		return a_m00004;
+	}
+
+	public void setA_m00004(A_M00004 a_m00004) {
+		this.a_m00004=a_m00004;
+	}
+
+	public D_M00004 getD_m00004() {
+		return this.d_m00004;
+	}
+
+	public void setD_m00004(D_M00004 d_m00004) {
+		this.d_m00004=d_m00004;
+	}
+
+	@Override
+	public String toString() {
+		try {
+			return UtilTools.obj2Json(this,true);
+		} catch (IOException e) {
+			return "";
+		}
+	}
+}

+ 99 - 0
generated/com/miniframe/generate/comm/httpclientapater/M00001Client.java

@@ -0,0 +1,99 @@
+package com.miniframe.generate.comm.httpclientapater;
+
+import com.miniframe.spring.httpclient.MFHttpRespInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import com.miniframe.core.Transmitter;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.comm.system.D_M00001;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+
+import com.miniframe.generate.business.system.model.M00001BaseModel;
+
+public class M00001Client {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00001Client.class);
+	private MFHttpRespInfo respInfo;
+
+	public MFHttpRespInfo getRespInfo(){
+		return respInfo;
+	}
+
+	/**
+	 * 调用 [系统服务->平台对接事故数据((M00001)]的通讯接口
+	 * @param model 接口模型
+	 * @param extMap 扩展输入
+	 * @param url 请求地址
+	 * @return model 接口模型
+	 * @throws Exception
+	 */
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00001BaseModel execute(M00001BaseModel model,final Map extMap,final String url) throws Exception {
+		this.executeToRespInfo(model,extMap,url);
+		return model;
+	}
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00001BaseModel execute(M00001BaseModel model,final Map extMap) throws Exception {
+		this.executeToRespInfo(model,extMap,null);
+		return model;
+	}
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public MFHttpRespInfo executeToRespInfo(M00001BaseModel model,final Map extMap,final String url) throws Exception {
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00001BaseModel) - start");
+		}
+
+		if(UtilTools.isNullOrBlank(model.getA_systemhead().getTransCode())){
+			model.getA_systemhead().setTransCode("M00001");
+		}
+
+		Map inMap = new LinkedHashMap();
+		inMap.putAll(UtilTools.obj2Map(model.getA_systemhead()));
+		inMap.putAll(UtilTools.obj2Map(model.getA_m00001()));
+		if(extMap!=null && extMap.size()>0){
+			inMap.putAll(extMap);
+		}
+
+		Transmitter httpclientApater = (Transmitter) UtilTools.getBean("httpclientApater");
+		MFHttpRespInfo respInfo;
+		if(UtilTools.isNotNullAndBlank(url)){
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap,url);
+		}else{
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap);
+		}
+
+		if(respInfo!=null) {
+			Map outMap=respInfo.getParamMap();
+			D_SYSTEMHEAD d_systemhead =  UtilTools.map2Obj(outMap, D_SYSTEMHEAD.class);
+			D_M00001 d_m00001 =  UtilTools.map2Obj(outMap, D_M00001.class);
+			model.setD_systemhead(d_systemhead);
+			model.setD_m00001(d_m00001);
+
+
+		}
+
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00001BaseModel) - end");
+		}
+
+        this.respInfo=respInfo;
+
+		return respInfo;
+	}
+
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00001BaseModel execute(M00001BaseModel model) throws Exception {
+		return this.execute(model,null,null);
+	}
+
+
+}

+ 99 - 0
generated/com/miniframe/generate/comm/httpclientapater/M00002Client.java

@@ -0,0 +1,99 @@
+package com.miniframe.generate.comm.httpclientapater;
+
+import com.miniframe.spring.httpclient.MFHttpRespInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import com.miniframe.core.Transmitter;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.comm.system.D_M00002;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+
+import com.miniframe.generate.business.system.model.M00002BaseModel;
+
+public class M00002Client {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00002Client.class);
+	private MFHttpRespInfo respInfo;
+
+	public MFHttpRespInfo getRespInfo(){
+		return respInfo;
+	}
+
+	/**
+	 * 调用 [系统服务->平台对接预设路径((M00002)]的通讯接口
+	 * @param model 接口模型
+	 * @param extMap 扩展输入
+	 * @param url 请求地址
+	 * @return model 接口模型
+	 * @throws Exception
+	 */
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00002BaseModel execute(M00002BaseModel model,final Map extMap,final String url) throws Exception {
+		this.executeToRespInfo(model,extMap,url);
+		return model;
+	}
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00002BaseModel execute(M00002BaseModel model,final Map extMap) throws Exception {
+		this.executeToRespInfo(model,extMap,null);
+		return model;
+	}
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public MFHttpRespInfo executeToRespInfo(M00002BaseModel model,final Map extMap,final String url) throws Exception {
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00002BaseModel) - start");
+		}
+
+		if(UtilTools.isNullOrBlank(model.getA_systemhead().getTransCode())){
+			model.getA_systemhead().setTransCode("M00002");
+		}
+
+		Map inMap = new LinkedHashMap();
+		inMap.putAll(UtilTools.obj2Map(model.getA_systemhead()));
+		inMap.putAll(UtilTools.obj2Map(model.getA_m00002()));
+		if(extMap!=null && extMap.size()>0){
+			inMap.putAll(extMap);
+		}
+
+		Transmitter httpclientApater = (Transmitter) UtilTools.getBean("httpclientApater");
+		MFHttpRespInfo respInfo;
+		if(UtilTools.isNotNullAndBlank(url)){
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap,url);
+		}else{
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap);
+		}
+
+		if(respInfo!=null) {
+			Map outMap=respInfo.getParamMap();
+			D_SYSTEMHEAD d_systemhead =  UtilTools.map2Obj(outMap, D_SYSTEMHEAD.class);
+			D_M00002 d_m00002 =  UtilTools.map2Obj(outMap, D_M00002.class);
+			model.setD_systemhead(d_systemhead);
+			model.setD_m00002(d_m00002);
+
+
+		}
+
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00002BaseModel) - end");
+		}
+
+        this.respInfo=respInfo;
+
+		return respInfo;
+	}
+
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00002BaseModel execute(M00002BaseModel model) throws Exception {
+		return this.execute(model,null,null);
+	}
+
+
+}

+ 99 - 0
generated/com/miniframe/generate/comm/httpclientapater/M00003Client.java

@@ -0,0 +1,99 @@
+package com.miniframe.generate.comm.httpclientapater;
+
+import com.miniframe.spring.httpclient.MFHttpRespInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import com.miniframe.core.Transmitter;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.comm.system.D_M00003;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+
+import com.miniframe.generate.business.system.model.M00003BaseModel;
+
+public class M00003Client {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00003Client.class);
+	private MFHttpRespInfo respInfo;
+
+	public MFHttpRespInfo getRespInfo(){
+		return respInfo;
+	}
+
+	/**
+	 * 调用 [系统服务->平台对接求解状态((M00003)]的通讯接口
+	 * @param model 接口模型
+	 * @param extMap 扩展输入
+	 * @param url 请求地址
+	 * @return model 接口模型
+	 * @throws Exception
+	 */
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00003BaseModel execute(M00003BaseModel model,final Map extMap,final String url) throws Exception {
+		this.executeToRespInfo(model,extMap,url);
+		return model;
+	}
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00003BaseModel execute(M00003BaseModel model,final Map extMap) throws Exception {
+		this.executeToRespInfo(model,extMap,null);
+		return model;
+	}
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public MFHttpRespInfo executeToRespInfo(M00003BaseModel model,final Map extMap,final String url) throws Exception {
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00003BaseModel) - start");
+		}
+
+		if(UtilTools.isNullOrBlank(model.getA_systemhead().getTransCode())){
+			model.getA_systemhead().setTransCode("M00003");
+		}
+
+		Map inMap = new LinkedHashMap();
+		inMap.putAll(UtilTools.obj2Map(model.getA_systemhead()));
+		inMap.putAll(UtilTools.obj2Map(model.getA_m00003()));
+		if(extMap!=null && extMap.size()>0){
+			inMap.putAll(extMap);
+		}
+
+		Transmitter httpclientApater = (Transmitter) UtilTools.getBean("httpclientApater");
+		MFHttpRespInfo respInfo;
+		if(UtilTools.isNotNullAndBlank(url)){
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap,url);
+		}else{
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap);
+		}
+
+		if(respInfo!=null) {
+			Map outMap=respInfo.getParamMap();
+			D_SYSTEMHEAD d_systemhead =  UtilTools.map2Obj(outMap, D_SYSTEMHEAD.class);
+			D_M00003 d_m00003 =  UtilTools.map2Obj(outMap, D_M00003.class);
+			model.setD_systemhead(d_systemhead);
+			model.setD_m00003(d_m00003);
+
+
+		}
+
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00003BaseModel) - end");
+		}
+
+        this.respInfo=respInfo;
+
+		return respInfo;
+	}
+
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00003BaseModel execute(M00003BaseModel model) throws Exception {
+		return this.execute(model,null,null);
+	}
+
+
+}

+ 99 - 0
generated/com/miniframe/generate/comm/httpclientapater/M00004Client.java

@@ -0,0 +1,99 @@
+package com.miniframe.generate.comm.httpclientapater;
+
+import com.miniframe.spring.httpclient.MFHttpRespInfo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.LinkedHashMap;
+import java.util.Map;
+
+import com.miniframe.core.Transmitter;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.comm.system.D_M00004;
+import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
+
+import com.miniframe.generate.business.system.model.M00004BaseModel;
+
+public class M00004Client {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00004Client.class);
+	private MFHttpRespInfo respInfo;
+
+	public MFHttpRespInfo getRespInfo(){
+		return respInfo;
+	}
+
+	/**
+	 * 调用 [系统服务->平台对接求解结果((M00004)]的通讯接口
+	 * @param model 接口模型
+	 * @param extMap 扩展输入
+	 * @param url 请求地址
+	 * @return model 接口模型
+	 * @throws Exception
+	 */
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00004BaseModel execute(M00004BaseModel model,final Map extMap,final String url) throws Exception {
+		this.executeToRespInfo(model,extMap,url);
+		return model;
+	}
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00004BaseModel execute(M00004BaseModel model,final Map extMap) throws Exception {
+		this.executeToRespInfo(model,extMap,null);
+		return model;
+	}
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public MFHttpRespInfo executeToRespInfo(M00004BaseModel model,final Map extMap,final String url) throws Exception {
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00004BaseModel) - start");
+		}
+
+		if(UtilTools.isNullOrBlank(model.getA_systemhead().getTransCode())){
+			model.getA_systemhead().setTransCode("M00004");
+		}
+
+		Map inMap = new LinkedHashMap();
+		inMap.putAll(UtilTools.obj2Map(model.getA_systemhead()));
+		inMap.putAll(UtilTools.obj2Map(model.getA_m00004()));
+		if(extMap!=null && extMap.size()>0){
+			inMap.putAll(extMap);
+		}
+
+		Transmitter httpclientApater = (Transmitter) UtilTools.getBean("httpclientApater");
+		MFHttpRespInfo respInfo;
+		if(UtilTools.isNotNullAndBlank(url)){
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap,url);
+		}else{
+			respInfo = httpclientApater.doPostDataToRespInfo(inMap);
+		}
+
+		if(respInfo!=null) {
+			Map outMap=respInfo.getParamMap();
+			D_SYSTEMHEAD d_systemhead =  UtilTools.map2Obj(outMap, D_SYSTEMHEAD.class);
+			D_M00004 d_m00004 =  UtilTools.map2Obj(outMap, D_M00004.class);
+			model.setD_systemhead(d_systemhead);
+			model.setD_m00004(d_m00004);
+
+
+		}
+
+		if (logger.isDebugEnabled()) {
+			logger.debug("execute(M00004BaseModel) - end");
+		}
+
+        this.respInfo=respInfo;
+
+		return respInfo;
+	}
+
+
+
+	@SuppressWarnings({ "rawtypes", "unchecked" })
+	public M00004BaseModel execute(M00004BaseModel model) throws Exception {
+		return this.execute(model,null,null);
+	}
+
+
+}

+ 67 - 15
generated/com/miniframe/generate/comm/system/A_M00001.java

@@ -5,34 +5,86 @@ package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
 /**
- * 获取角色列表
+ * 平台对接事故数据
  */
 public class A_M00001 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	String roleIds;//指定角色
+	String source;//事故来源
 	/**
-	 *指定角色
+	 *事故来源
 	 */
-	public void setRoleIds(String roleIds) {
-		this.roleIds=roleIds;
+	public void setSource(String source) {
+		this.source=source;
 	}
 	/**
-	 *指定角色
+	 *事故来源
 	 */
-	public String getRoleIds() {
-		return this.roleIds;
+	public String getSource() {
+		return this.source;
 	}
-	String showFlag;//显示选择
+	String type;//事故类型
 	/**
-	 *显示选择
+	 *事故类型
 	 */
-	public void setShowFlag(String showFlag) {
-		this.showFlag=showFlag;
+	public void setType(String type) {
+		this.type=type;
 	}
 	/**
-	 *显示选择
+	 *事故类型
 	 */
-	public String getShowFlag() {
-		return this.showFlag;
+	public String getType() {
+		return this.type;
+	}
+	String name;//事故名称
+	/**
+	 *事故名称
+	 */
+	public void setName(String name) {
+		this.name=name;
+	}
+	/**
+	 *事故名称
+	 */
+	public String getName() {
+		return this.name;
+	}
+	String sid;//事故来源ID
+	/**
+	 *事故来源ID
+	 */
+	public void setSid(String sid) {
+		this.sid=sid;
+	}
+	/**
+	 *事故来源ID
+	 */
+	public String getSid() {
+		return this.sid;
+	}
+	String stype;//灾情类型
+	/**
+	 *灾情类型
+	 */
+	public void setStype(String stype) {
+		this.stype=stype;
+	}
+	/**
+	 *灾情类型
+	 */
+	public String getStype() {
+		return this.stype;
+	}
+	int aid;//事故ID
+	/**
+	 *事故ID
+	 */
+	public void setAid(int aid) {
+		this.aid=aid;
+	}
+	/**
+	 *事故ID
+	 */
+	public int getAid() {
+		return this.aid;
 	}
 }

+ 22 - 22
generated/com/miniframe/generate/comm/system/A_M00002.java

@@ -5,47 +5,47 @@ package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
 /**
- * 获取功能列表
+ * 平台对接预设路径
  */
 public class A_M00002 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	String funcIds;//指定功能
+	int aid;//事故ID
 	/**
-	 *指定功能
+	 *事故ID
 	 */
-	public void setFuncIds(String funcIds) {
-		this.funcIds=funcIds;
+	public void setAid(int aid) {
+		this.aid=aid;
 	}
 	/**
-	 *指定功能
+	 *事故ID
 	 */
-	public String getFuncIds() {
-		return this.funcIds;
+	public int getAid() {
+		return this.aid;
 	}
-	String showFlag;//显示选择
+	String lname;//路径名称
 	/**
-	 *显示选择
+	 *路径名称
 	 */
-	public void setShowFlag(String showFlag) {
-		this.showFlag=showFlag;
+	public void setLname(String lname) {
+		this.lname=lname;
 	}
 	/**
-	 *显示选择
+	 *路径名称
 	 */
-	public String getShowFlag() {
-		return this.showFlag;
+	public String getLname() {
+		return this.lname;
 	}
-	String userSel;//用户可选(1-用户可选)
+	String lnodes;//路径通过节点编号组
 	/**
-	 *用户可选(1-用户可选)
+	 *路径通过节点编号组
 	 */
-	public void setUserSel(String userSel) {
-		this.userSel=userSel;
+	public void setLnodes(String lnodes) {
+		this.lnodes=lnodes;
 	}
 	/**
-	 *用户可选(1-用户可选)
+	 *路径通过节点编号组
 	 */
-	public String getUserSel() {
-		return this.userSel;
+	public String getLnodes() {
+		return this.lnodes;
 	}
 }

+ 8 - 34
generated/com/miniframe/generate/comm/system/A_M00003.java

@@ -5,47 +5,21 @@ package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
 /**
- * 获取菜单列表
+ * 平台对接求解状态
  */
 public class A_M00003 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	String menuIds;//指定菜单
+	int aid;//事故ID
 	/**
-	 *指定菜单
+	 *事故ID
 	 */
-	public void setMenuIds(String menuIds) {
-		this.menuIds=menuIds;
+	public void setAid(int aid) {
+		this.aid=aid;
 	}
 	/**
-	 *指定菜单
+	 *事故ID
 	 */
-	public String getMenuIds() {
-		return this.menuIds;
-	}
-	String showFlag;//显示选择
-	/**
-	 *显示选择
-	 */
-	public void setShowFlag(String showFlag) {
-		this.showFlag=showFlag;
-	}
-	/**
-	 *显示选择
-	 */
-	public String getShowFlag() {
-		return this.showFlag;
-	}
-	String userSel;//用户可选(1-用户可选)
-	/**
-	 *用户可选(1-用户可选)
-	 */
-	public void setUserSel(String userSel) {
-		this.userSel=userSel;
-	}
-	/**
-	 *用户可选(1-用户可选)
-	 */
-	public String getUserSel() {
-		return this.userSel;
+	public int getAid() {
+		return this.aid;
 	}
 }

+ 8 - 60
generated/com/miniframe/generate/comm/system/A_M00004.java

@@ -5,73 +5,21 @@ package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
 /**
- * 角色修改
+ * 平台对接求解结果
  */
 public class A_M00004 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	String roleId;//角色ID
+	int aid;//事故ID
 	/**
-	 *角色ID
+	 *事故ID
 	 */
-	public void setRoleId(String roleId) {
-		this.roleId=roleId;
+	public void setAid(int aid) {
+		this.aid=aid;
 	}
 	/**
-	 *角色ID
+	 *事故ID
 	 */
-	public String getRoleId() {
-		return this.roleId;
-	}
-	String roleName;//角色名称
-	/**
-	 *角色名称
-	 */
-	public void setRoleName(String roleName) {
-		this.roleName=roleName;
-	}
-	/**
-	 *角色名称
-	 */
-	public String getRoleName() {
-		return this.roleName;
-	}
-	String funcIds;//功能
-	/**
-	 *功能
-	 */
-	public void setFuncIds(String funcIds) {
-		this.funcIds=funcIds;
-	}
-	/**
-	 *功能
-	 */
-	public String getFuncIds() {
-		return this.funcIds;
-	}
-	String menuIds;//菜单列表
-	/**
-	 *菜单列表
-	 */
-	public void setMenuIds(String menuIds) {
-		this.menuIds=menuIds;
-	}
-	/**
-	 *菜单列表
-	 */
-	public String getMenuIds() {
-		return this.menuIds;
-	}
-	String roleDesc;//角色说明
-	/**
-	 *角色说明
-	 */
-	public void setRoleDesc(String roleDesc) {
-		this.roleDesc=roleDesc;
-	}
-	/**
-	 *角色说明
-	 */
-	public String getRoleDesc() {
-		return this.roleDesc;
+	public int getAid() {
+		return this.aid;
 	}
 }

+ 8 - 35
generated/com/miniframe/generate/comm/system/D_M00001.java

@@ -4,49 +4,22 @@
 package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
-import java.util.*;
 /**
- * 获取角色列表
+ * 平台对接事故数据
  */
 public class D_M00001 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	int total;//总数
+	int aid;//事故ID
 	/**
-	 *总数
+	 *事故ID
 	 */
-	public void setTotal(int total) {
-		this.total=total;
+	public void setAid(int aid) {
+		this.aid=aid;
 	}
 	/**
-	 *总数
+	 *事故ID
 	 */
-	public int getTotal() {
-		return this.total;
-	}
-	int count;//当页总数
-	/**
-	 *当页总数
-	 */
-	public void setCount(int count) {
-		this.count=count;
-	}
-	/**
-	 *当页总数
-	 */
-	public int getCount() {
-		return this.count;
-	}
-	List <D_M00001_ROWS_RECODE> rows;//数据
-	/**
-	 *数据
-	 */
-	public void setRows(List <D_M00001_ROWS_RECODE> rows) {
-		this.rows=rows;
-	}
-	/**
-	 *数据
-	 */
-	public List <D_M00001_ROWS_RECODE> getRows() {
-		return this.rows;
+	public int getAid() {
+		return this.aid;
 	}
 }

+ 1 - 41
generated/com/miniframe/generate/comm/system/D_M00002.java

@@ -4,49 +4,9 @@
 package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
-import java.util.*;
 /**
- * 获取功能列表
+ * 平台对接预设路径
  */
 public class D_M00002 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	int total;//总数
-	/**
-	 *总数
-	 */
-	public void setTotal(int total) {
-		this.total=total;
-	}
-	/**
-	 *总数
-	 */
-	public int getTotal() {
-		return this.total;
-	}
-	int count;//当页总数
-	/**
-	 *当页总数
-	 */
-	public void setCount(int count) {
-		this.count=count;
-	}
-	/**
-	 *当页总数
-	 */
-	public int getCount() {
-		return this.count;
-	}
-	List <D_M00002_ROWS_RECODE> rows;//数据
-	/**
-	 *数据
-	 */
-	public void setRows(List <D_M00002_ROWS_RECODE> rows) {
-		this.rows=rows;
-	}
-	/**
-	 *数据
-	 */
-	public List <D_M00002_ROWS_RECODE> getRows() {
-		return this.rows;
-	}
 }

+ 15 - 29
generated/com/miniframe/generate/comm/system/D_M00003.java

@@ -4,49 +4,35 @@
 package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
-import java.util.*;
 /**
- * 获取菜单列表
+ * 平台对接求解状态
  */
 public class D_M00003 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
-	int total;//总数
+	int aid;//事故ID
 	/**
-	 *总数
+	 *事故ID
 	 */
-	public void setTotal(int total) {
-		this.total=total;
+	public void setAid(int aid) {
+		this.aid=aid;
 	}
 	/**
-	 *总数
+	 *事故ID
 	 */
-	public int getTotal() {
-		return this.total;
+	public int getAid() {
+		return this.aid;
 	}
-	int count;//当页总数
+	String state;//事故ID
 	/**
-	 *当页总数
+	 *事故ID
 	 */
-	public void setCount(int count) {
-		this.count=count;
+	public void setState(String state) {
+		this.state=state;
 	}
 	/**
-	 *当页总数
+	 *事故ID
 	 */
-	public int getCount() {
-		return this.count;
-	}
-	List <D_M00003_ROWS_RECODE> rows;//数据
-	/**
-	 *数据
-	 */
-	public void setRows(List <D_M00003_ROWS_RECODE> rows) {
-		this.rows=rows;
-	}
-	/**
-	 *数据
-	 */
-	public List <D_M00003_ROWS_RECODE> getRows() {
-		return this.rows;
+	public String getState() {
+		return this.state;
 	}
 }

+ 41 - 1
generated/com/miniframe/generate/comm/system/D_M00004.java

@@ -4,9 +4,49 @@
 package com.miniframe.generate.comm.system;
 import com.miniframe.core.BaseMapModel;
 import java.io.Serializable;
+import java.util.*;
 /**
- * 角色修改
+ * 平台对接求解结果
  */
 public class D_M00004 extends BaseMapModel implements Serializable {
 	private static final long serialVersionUID = -1463838678425832212L;
+	int aid;//事故ID
+	/**
+	 *事故ID
+	 */
+	public void setAid(int aid) {
+		this.aid=aid;
+	}
+	/**
+	 *事故ID
+	 */
+	public int getAid() {
+		return this.aid;
+	}
+	List <D_M00004_PIPES_RECODE> pipes;//管道数据
+	/**
+	 *管道数据
+	 */
+	public void setPipes(List <D_M00004_PIPES_RECODE> pipes) {
+		this.pipes=pipes;
+	}
+	/**
+	 *管道数据
+	 */
+	public List <D_M00004_PIPES_RECODE> getPipes() {
+		return this.pipes;
+	}
+	List <D_M00004_LINES_RECODE> lines;//路径数据
+	/**
+	 *路径数据
+	 */
+	public void setLines(List <D_M00004_LINES_RECODE> lines) {
+		this.lines=lines;
+	}
+	/**
+	 *路径数据
+	 */
+	public List <D_M00004_LINES_RECODE> getLines() {
+		return this.lines;
+	}
 }

+ 38 - 0
generated/com/miniframe/generate/comm/system/D_M00004_LINES_RECODE.java

@@ -0,0 +1,38 @@
+/**
+ * 系统服务
+ */
+package com.miniframe.generate.comm.system;
+import com.miniframe.core.BaseMapModel;
+import java.io.Serializable;
+/**
+ * 平台对接求解结果->路径数据
+ */
+public class D_M00004_LINES_RECODE extends BaseMapModel implements Serializable {
+	private static final long serialVersionUID = -1463838678425832212L;
+	String lname;//路径名称
+	/**
+	 *路径名称
+	 */
+	public void setLname(String lname) {
+		this.lname=lname;
+	}
+	/**
+	 *路径名称
+	 */
+	public String getLname() {
+		return this.lname;
+	}
+	String level;//安全等级
+	/**
+	 *安全等级
+	 */
+	public void setLevel(String level) {
+		this.level=level;
+	}
+	/**
+	 *安全等级
+	 */
+	public String getLevel() {
+		return this.level;
+	}
+}

+ 64 - 0
generated/com/miniframe/generate/comm/system/D_M00004_PIPES_RECODE.java

@@ -0,0 +1,64 @@
+/**
+ * 系统服务
+ */
+package com.miniframe.generate.comm.system;
+import com.miniframe.core.BaseMapModel;
+import java.io.Serializable;
+/**
+ * 平台对接求解结果->管道数据
+ */
+public class D_M00004_PIPES_RECODE extends BaseMapModel implements Serializable {
+	private static final long serialVersionUID = -1463838678425832212L;
+	String time;//时间
+	/**
+	 *时间
+	 */
+	public void setTime(String time) {
+		this.time=time;
+	}
+	/**
+	 *时间
+	 */
+	public String getTime() {
+		return this.time;
+	}
+	String pcode;//管道编码
+	/**
+	 *管道编码
+	 */
+	public void setPcode(String pcode) {
+		this.pcode=pcode;
+	}
+	/**
+	 *管道编码
+	 */
+	public String getPcode() {
+		return this.pcode;
+	}
+	String pname;//管道名称
+	/**
+	 *管道名称
+	 */
+	public void setPname(String pname) {
+		this.pname=pname;
+	}
+	/**
+	 *管道名称
+	 */
+	public String getPname() {
+		return this.pname;
+	}
+	String grade;//危险等级
+	/**
+	 *危险等级
+	 */
+	public void setGrade(String grade) {
+		this.grade=grade;
+	}
+	/**
+	 *危险等级
+	 */
+	public String getGrade() {
+		return this.grade;
+	}
+}

+ 74 - 0
generated/validateform/a_m00001Form.xml

@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接事故数据Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="a_m00001Form">
+<field property="source" depends="required,minlength,maxlength">
+    <arg0 key="a_m00001.source"/>
+    <arg1 name="minlength" key="${var:minlength}"/>
+    <var>
+      <var-name>minlength</var-name>
+      <var-value>1</var-value>
+    </var>
+    <arg1 name="maxlength" key="${var:maxlength}"/>
+    <var>
+      <var-name>maxlength</var-name>
+      <var-value>128</var-value>
+    </var>
+</field>
+<field property="type" depends="required,minlength,maxlength">
+    <arg0 key="a_m00001.type"/>
+    <arg1 name="minlength" key="${var:minlength}"/>
+    <var>
+      <var-name>minlength</var-name>
+      <var-value>1</var-value>
+    </var>
+    <arg1 name="maxlength" key="${var:maxlength}"/>
+    <var>
+      <var-name>maxlength</var-name>
+      <var-value>128</var-value>
+    </var>
+</field>
+<field property="name" depends="required,minlength,maxlength">
+    <arg0 key="a_m00001.name"/>
+    <arg1 name="minlength" key="${var:minlength}"/>
+    <var>
+      <var-name>minlength</var-name>
+      <var-value>1</var-value>
+    </var>
+    <arg1 name="maxlength" key="${var:maxlength}"/>
+    <var>
+      <var-name>maxlength</var-name>
+      <var-value>128</var-value>
+    </var>
+</field>
+<field property="sid" depends="required,minlength,maxlength">
+    <arg0 key="a_m00001.sid"/>
+    <arg1 name="minlength" key="${var:minlength}"/>
+    <var>
+      <var-name>minlength</var-name>
+      <var-value>1</var-value>
+    </var>
+    <arg1 name="maxlength" key="${var:maxlength}"/>
+    <var>
+      <var-name>maxlength</var-name>
+      <var-value>128</var-value>
+    </var>
+</field>
+<field property="stype" depends="required,minlength,maxlength">
+    <arg0 key="a_m00001.stype"/>
+    <arg1 name="minlength" key="${var:minlength}"/>
+    <var>
+      <var-name>minlength</var-name>
+      <var-value>1</var-value>
+    </var>
+    <arg1 name="maxlength" key="${var:maxlength}"/>
+    <var>
+      <var-name>maxlength</var-name>
+      <var-value>128</var-value>
+    </var>
+</field>
+</form>
+</formset>
+</form-validation>

+ 18 - 0
generated/validateform/a_m00002Form.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接预设路径Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="a_m00002Form">
+<field property="aid" depends="required">
+    <arg0 key="a_m00002.aid"/>
+</field>
+<field property="lname" depends="required">
+    <arg0 key="a_m00002.lname"/>
+</field>
+<field property="lnodes" depends="required">
+    <arg0 key="a_m00002.lnodes"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 12 - 0
generated/validateform/a_m00003Form.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解状态Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="a_m00003Form">
+<field property="aid" depends="required">
+    <arg0 key="a_m00003.aid"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 12 - 0
generated/validateform/a_m00004Form.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解结果Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="a_m00004Form">
+<field property="aid" depends="required">
+    <arg0 key="a_m00004.aid"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 15 - 0
generated/validateform/d_m00003Form.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解状态Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="d_m00003Form">
+<field property="aid" depends="required">
+    <arg0 key="d_m00003.aid"/>
+</field>
+<field property="state" depends="required">
+    <arg0 key="d_m00003.state"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 12 - 0
generated/validateform/d_m00004Form.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解结果Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="d_m00004Form">
+<field property="aid" depends="required">
+    <arg0 key="d_m00004.aid"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 15 - 0
generated/validateform/d_m00004_lines_recodeForm.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解结果->路径数据Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="d_m00004_lines_recodeForm">
+<field property="lname" depends="required">
+    <arg0 key="d_m00004_lines_recode.lname"/>
+</field>
+<field property="level" depends="required">
+    <arg0 key="d_m00004_lines_recode.level"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 21 - 0
generated/validateform/d_m00004_pipes_recodeForm.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd">
+<!-- 平台对接求解结果->管道数据Form配置文件系统生成请勿修改,否则重新生成将覆盖 -->
+<form-validation>
+<formset>
+<form name="d_m00004_pipes_recodeForm">
+<field property="time" depends="required">
+    <arg0 key="d_m00004_pipes_recode.time"/>
+</field>
+<field property="pcode" depends="required">
+    <arg0 key="d_m00004_pipes_recode.pcode"/>
+</field>
+<field property="pname" depends="required">
+    <arg0 key="d_m00004_pipes_recode.pname"/>
+</field>
+<field property="grade" depends="required">
+    <arg0 key="d_m00004_pipes_recode.grade"/>
+</field>
+</form>
+</formset>
+</form-validation>

+ 7 - 0
generated/validator/resources_a_m00001Form_validator.properties

@@ -0,0 +1,7 @@
+a_m00001.source = \u4E8B\u6545\u6765\u6E90
+a_m00001.type = \u4E8B\u6545\u7C7B\u578B
+a_m00001.name = \u4E8B\u6545\u540D\u79F0
+a_m00001.sid = \u4E8B\u6545\u6765\u6E90ID
+a_m00001.stype = \u707E\u60C5\u7C7B\u578B
+a_m00001.aid = \u4E8B\u6545ID
+a_m00001Form = true

+ 7 - 0
generated/validator/resources_a_m00001Form_validator_zh_CN.properties

@@ -0,0 +1,7 @@
+a_m00001.source = \u4E8B\u6545\u6765\u6E90
+a_m00001.type = \u4E8B\u6545\u7C7B\u578B
+a_m00001.name = \u4E8B\u6545\u540D\u79F0
+a_m00001.sid = \u4E8B\u6545\u6765\u6E90ID
+a_m00001.stype = \u707E\u60C5\u7C7B\u578B
+a_m00001.aid = \u4E8B\u6545ID
+a_m00001Form = true

+ 4 - 0
generated/validator/resources_a_m00002Form_validator.properties

@@ -0,0 +1,4 @@
+a_m00002.aid = \u4E8B\u6545ID
+a_m00002.lname = \u8DEF\u5F84\u540D\u79F0
+a_m00002.lnodes = \u8DEF\u5F84\u901A\u8FC7\u8282\u70B9\u7F16\u53F7\u7EC4
+a_m00002Form = true

+ 4 - 0
generated/validator/resources_a_m00002Form_validator_zh_CN.properties

@@ -0,0 +1,4 @@
+a_m00002.aid = \u4E8B\u6545ID
+a_m00002.lname = \u8DEF\u5F84\u540D\u79F0
+a_m00002.lnodes = \u8DEF\u5F84\u901A\u8FC7\u8282\u70B9\u7F16\u53F7\u7EC4
+a_m00002Form = true

+ 2 - 0
generated/validator/resources_a_m00003Form_validator.properties

@@ -0,0 +1,2 @@
+a_m00003.aid = \u4E8B\u6545ID
+a_m00003Form = true

+ 2 - 0
generated/validator/resources_a_m00003Form_validator_zh_CN.properties

@@ -0,0 +1,2 @@
+a_m00003.aid = \u4E8B\u6545ID
+a_m00003Form = true

+ 2 - 0
generated/validator/resources_a_m00004Form_validator.properties

@@ -0,0 +1,2 @@
+a_m00004.aid = \u4E8B\u6545ID
+a_m00004Form = true

+ 2 - 0
generated/validator/resources_a_m00004Form_validator_zh_CN.properties

@@ -0,0 +1,2 @@
+a_m00004.aid = \u4E8B\u6545ID
+a_m00004Form = true

+ 2 - 0
generated/validator/resources_d_m00001Form_validator.properties

@@ -0,0 +1,2 @@
+d_m00001.aid = \u4E8B\u6545ID
+d_m00001Form = true

+ 2 - 0
generated/validator/resources_d_m00001Form_validator_zh_CN.properties

@@ -0,0 +1,2 @@
+d_m00001.aid = \u4E8B\u6545ID
+d_m00001Form = true

+ 1 - 0
generated/validator/resources_d_m00002Form_validator.properties

@@ -0,0 +1 @@
+d_m00002Form = false

+ 1 - 0
generated/validator/resources_d_m00002Form_validator_zh_CN.properties

@@ -0,0 +1 @@
+d_m00002Form = false

+ 3 - 0
generated/validator/resources_d_m00003Form_validator.properties

@@ -0,0 +1,3 @@
+d_m00003.aid = \u4E8B\u6545ID
+d_m00003.state = \u4E8B\u6545ID
+d_m00003Form = true

+ 3 - 0
generated/validator/resources_d_m00003Form_validator_zh_CN.properties

@@ -0,0 +1,3 @@
+d_m00003.aid = \u4E8B\u6545ID
+d_m00003.state = \u4E8B\u6545ID
+d_m00003Form = true

+ 2 - 0
generated/validator/resources_d_m00004Form_validator.properties

@@ -0,0 +1,2 @@
+d_m00004.aid = \u4E8B\u6545ID
+d_m00004Form = true

+ 2 - 0
generated/validator/resources_d_m00004Form_validator_zh_CN.properties

@@ -0,0 +1,2 @@
+d_m00004.aid = \u4E8B\u6545ID
+d_m00004Form = true

+ 3 - 0
generated/validator/resources_d_m00004_lines_recodeForm_validator.properties

@@ -0,0 +1,3 @@
+d_m00004_lines_recode.lname = \u8DEF\u5F84\u540D\u79F0
+d_m00004_lines_recode.level = \u5B89\u5168\u7B49\u7EA7
+d_m00004_lines_recodeForm = true

+ 3 - 0
generated/validator/resources_d_m00004_lines_recodeForm_validator_zh_CN.properties

@@ -0,0 +1,3 @@
+d_m00004_lines_recode.lname = \u8DEF\u5F84\u540D\u79F0
+d_m00004_lines_recode.level = \u5B89\u5168\u7B49\u7EA7
+d_m00004_lines_recodeForm = true

+ 5 - 0
generated/validator/resources_d_m00004_pipes_recodeForm_validator.properties

@@ -0,0 +1,5 @@
+d_m00004_pipes_recode.time = \u65F6\u95F4
+d_m00004_pipes_recode.pcode = \u7BA1\u9053\u7F16\u7801
+d_m00004_pipes_recode.pname = \u7BA1\u9053\u540D\u79F0
+d_m00004_pipes_recode.grade = \u5371\u9669\u7B49\u7EA7
+d_m00004_pipes_recodeForm = true

+ 5 - 0
generated/validator/resources_d_m00004_pipes_recodeForm_validator_zh_CN.properties

@@ -0,0 +1,5 @@
+d_m00004_pipes_recode.time = \u65F6\u95F4
+d_m00004_pipes_recode.pcode = \u7BA1\u9053\u7F16\u7801
+d_m00004_pipes_recode.pname = \u7BA1\u9053\u540D\u79F0
+d_m00004_pipes_recode.grade = \u5371\u9669\u7B49\u7EA7
+d_m00004_pipes_recodeForm = true

+ 119 - 0
modelsrc/com/miniframe/model/system/DMway.java

@@ -0,0 +1,119 @@
+package com.miniframe.model.system;
+
+import com.miniframe.system.MiniserviceBaseModel;
+import java.io.Serializable;
+import javax.persistence.*;
+
+@Table(name = "d_mway")
+public class DMway extends MiniserviceBaseModel implements Serializable {
+    @Id
+    private Integer id;
+
+    /**
+     * 事故ID
+     */
+    private Integer aid;
+
+    /**
+     * 路径名称
+     */
+    private String lname;
+
+    /**
+     * 路径通过节点编号组,已逗号分隔
+     */
+    private String lnodes;
+
+    /**
+     * 安全等级
+     */
+    private String level;
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * @return id
+     */
+    public Integer getId() {
+        return id;
+    }
+
+    /**
+     * @param id
+     */
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    /**
+     * 获取事故ID
+     *
+     * @return aid - 事故ID
+     */
+    public Integer getAid() {
+        return aid;
+    }
+
+    /**
+     * 设置事故ID
+     *
+     * @param aid 事故ID
+     */
+    public void setAid(Integer aid) {
+        this.aid = aid;
+    }
+
+    /**
+     * 获取路径名称
+     *
+     * @return lname - 路径名称
+     */
+    public String getLname() {
+        return lname;
+    }
+
+    /**
+     * 设置路径名称
+     *
+     * @param lname 路径名称
+     */
+    public void setLname(String lname) {
+        this.lname = lname == null ? null : lname.trim();
+    }
+
+    /**
+     * 获取路径通过节点编号组,已逗号分隔
+     *
+     * @return lnodes - 路径通过节点编号组,已逗号分隔
+     */
+    public String getLnodes() {
+        return lnodes;
+    }
+
+    /**
+     * 设置路径通过节点编号组,已逗号分隔
+     *
+     * @param lnodes 路径通过节点编号组,已逗号分隔
+     */
+    public void setLnodes(String lnodes) {
+        this.lnodes = lnodes == null ? null : lnodes.trim();
+    }
+
+    /**
+     * 获取安全等级
+     *
+     * @return level - 安全等级
+     */
+    public String getLevel() {
+        return level;
+    }
+
+    /**
+     * 设置安全等级
+     *
+     * @param level 安全等级
+     */
+    public void setLevel(String level) {
+        this.level = level == null ? null : level.trim();
+    }
+}

+ 530 - 0
modelsrc/com/miniframe/model/system/DMwaySQLBuilder.java

@@ -0,0 +1,530 @@
+package com.miniframe.model.system;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class DMwaySQLBuilder {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    public DMwaySQLBuilder() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIsNull() {
+            addCriterion("aid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIsNotNull() {
+            addCriterion("aid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidEqualTo(Integer value) {
+            addCriterion("aid =", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotEqualTo(Integer value) {
+            addCriterion("aid <>", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidGreaterThan(Integer value) {
+            addCriterion("aid >", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("aid >=", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidLessThan(Integer value) {
+            addCriterion("aid <", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidLessThanOrEqualTo(Integer value) {
+            addCriterion("aid <=", value, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidIn(List<Integer> values) {
+            addCriterion("aid in", values, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotIn(List<Integer> values) {
+            addCriterion("aid not in", values, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidBetween(Integer value1, Integer value2) {
+            addCriterion("aid between", value1, value2, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAidNotBetween(Integer value1, Integer value2) {
+            addCriterion("aid not between", value1, value2, "aid");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameIsNull() {
+            addCriterion("lname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameIsNotNull() {
+            addCriterion("lname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameEqualTo(String value) {
+            addCriterion("lname =", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameNotEqualTo(String value) {
+            addCriterion("lname <>", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameGreaterThan(String value) {
+            addCriterion("lname >", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameGreaterThanOrEqualTo(String value) {
+            addCriterion("lname >=", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameLessThan(String value) {
+            addCriterion("lname <", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameLessThanOrEqualTo(String value) {
+            addCriterion("lname <=", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameLike(String value) {
+            addCriterion("lname like", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameNotLike(String value) {
+            addCriterion("lname not like", value, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameIn(List<String> values) {
+            addCriterion("lname in", values, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameNotIn(List<String> values) {
+            addCriterion("lname not in", values, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameBetween(String value1, String value2) {
+            addCriterion("lname between", value1, value2, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnameNotBetween(String value1, String value2) {
+            addCriterion("lname not between", value1, value2, "lname");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesIsNull() {
+            addCriterion("lnodes is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesIsNotNull() {
+            addCriterion("lnodes is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesEqualTo(String value) {
+            addCriterion("lnodes =", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesNotEqualTo(String value) {
+            addCriterion("lnodes <>", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesGreaterThan(String value) {
+            addCriterion("lnodes >", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesGreaterThanOrEqualTo(String value) {
+            addCriterion("lnodes >=", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesLessThan(String value) {
+            addCriterion("lnodes <", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesLessThanOrEqualTo(String value) {
+            addCriterion("lnodes <=", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesLike(String value) {
+            addCriterion("lnodes like", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesNotLike(String value) {
+            addCriterion("lnodes not like", value, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesIn(List<String> values) {
+            addCriterion("lnodes in", values, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesNotIn(List<String> values) {
+            addCriterion("lnodes not in", values, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesBetween(String value1, String value2) {
+            addCriterion("lnodes between", value1, value2, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLnodesNotBetween(String value1, String value2) {
+            addCriterion("lnodes not between", value1, value2, "lnodes");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelIsNull() {
+            addCriterion("level is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelIsNotNull() {
+            addCriterion("level is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelEqualTo(String value) {
+            addCriterion("level =", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelNotEqualTo(String value) {
+            addCriterion("level <>", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelGreaterThan(String value) {
+            addCriterion("level >", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelGreaterThanOrEqualTo(String value) {
+            addCriterion("level >=", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelLessThan(String value) {
+            addCriterion("level <", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelLessThanOrEqualTo(String value) {
+            addCriterion("level <=", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelLike(String value) {
+            addCriterion("level like", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelNotLike(String value) {
+            addCriterion("level not like", value, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelIn(List<String> values) {
+            addCriterion("level in", values, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelNotIn(List<String> values) {
+            addCriterion("level not in", values, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelBetween(String value1, String value2) {
+            addCriterion("level between", value1, value2, "level");
+            return (Criteria) this;
+        }
+
+        public Criteria andLevelNotBetween(String value1, String value2) {
+            addCriterion("level not between", value1, value2, "level");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 10 - 0
modelsrc/com/miniframe/model/system/dao/DMwayMapper.java

@@ -0,0 +1,10 @@
+package com.miniframe.model.system.dao;
+
+import com.miniframe.model.system.DMway;
+import com.miniframe.model.system.DMwaySQLBuilder;
+import com.miniframe.spring.db.MFBaseMapper;
+import com.miniframe.system.MiniserviceBaseDao;
+
+public interface DMwayMapper extends MiniserviceBaseDao, MFBaseMapper<DMway> {
+    long countByExample(DMwaySQLBuilder example);
+}

+ 2 - 1
modelsrc/com/miniframe/model/system/dbconfig/MapperConfig-system.xml

@@ -5,7 +5,7 @@
     This file is generated by MyBatis Generator.
     This file is the shell of a Mapper Config file - in many cases you will need to add
       to this file before it is usable by MyBatis.
-    This file was generated on Fri Dec 06 09:33:28 CST 2024.
+    This file was generated on Fri Dec 06 11:29:41 CST 2024.
   -->
   <mappers>
     <mapper resource="com/miniframe/model/system/xml/SysAppcodeMapper.xml" />
@@ -41,5 +41,6 @@
     <mapper resource="com/miniframe/model/system/xml/DWaynodeMapper.xml" />
     <mapper resource="com/miniframe/model/system/xml/DWayResultMapper.xml" />
     <mapper resource="com/miniframe/model/system/xml/DWaynodeResultMapper.xml" />
+    <mapper resource="com/miniframe/model/system/xml/DMwayMapper.xml" />
   </mappers>
 </configuration>

+ 50 - 0
modelsrc/com/miniframe/model/system/xml/DMwayMapper.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.miniframe.model.system.dao.DMwayMapper">
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <select id="countByExample" parameterType="com.miniframe.model.system.DMwaySQLBuilder" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+    -->
+    select count(*) from d_mway
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <cache>
+    <!--
+      WARNING - @mbg.generated
+    -->
+  </cache>
+</mapper>

+ 4 - 5
src/main/java/com/miniframe/bisiness/system/D00002Service.java

@@ -37,11 +37,10 @@ public class D00002Service extends D00002BaseModel implements ExecProcessFlow {
 //			DAccidentSQLBuilder.Criteria asbc= asb.createCriteria();
 //			asbc.andSourceEqualTo(source);
 //			asbc.andSidEqualTo(sid);
-//		DAccident accident= projectDao.selectOneByExample(asb);
-//		if(accident!=null){
-//			throw new BusinessException("EB3000005");
-//		}
-
+//			DAccident accident= accDao.selectOneByExample(asb);
+//			if(accident!=null){
+//				throw new BusinessException("EB3000005");
+//			}
 			DAccident da = new DAccident();
 			da.setName(this.getA_d00002().getName());
 			da.setSid(this.getA_d00002().getSid());

+ 92 - 0
src/main/java/com/miniframe/bisiness/system/M00001Service.java

@@ -0,0 +1,92 @@
+package com.miniframe.bisiness.system;
+
+import java.util.Map;
+import com.miniframe.core.ExecProcessFlow;
+import com.miniframe.core.exception.BusinessException;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.business.system.model.M00001BaseModel;
+import com.miniframe.model.system.DAccident;
+import com.miniframe.model.system.DAccidentSQLBuilder;
+import com.miniframe.model.system.dao.DAccidentMapper;
+import com.miniframe.tools.XIDateTimeUtils;
+
+/**
+ * 基础系统,“平台对接事故数据”逻辑处理(重新生成不覆盖)。
+ */
+public class M00001Service extends M00001BaseModel implements ExecProcessFlow {
+	
+	private static final long serialVersionUID = -7051358269847459502L;
+		
+	/**
+	 * 基础系统,“平台对接事故数据”业务核心处理
+ 	 */
+	public void transExecute() throws Exception {
+		DAccidentMapper accDao  = UtilTools.getBean(DAccidentMapper.class);
+		String sid = this.getA_m00001().getSid();
+		String source =this.getA_m00001().getSource();
+
+		Integer aid =this.getA_m00001().getAid();
+
+		if(aid==null||aid<=0){//修改
+			DAccidentSQLBuilder asb = new DAccidentSQLBuilder();
+			DAccidentSQLBuilder.Criteria asbc= asb.createCriteria();
+			asbc.andSourceEqualTo(source);
+			asbc.andSidEqualTo(sid);
+			DAccident accident= accDao.selectOneByExample(asb);
+			if(accident!=null){
+				throw new BusinessException("EB3000005");
+			}
+			DAccident da = new DAccident();
+			da.setName(this.getA_m00001().getName());
+			da.setSid(this.getA_m00001().getSid());
+			da.setSource(this.getA_m00001().getSource());
+			da.setType(this.getA_m00001().getType());
+			da.setStype(this.getA_m00001().getStype());
+			da.setTime(XIDateTimeUtils.getNowStr());
+			accDao.insertSelective(da);
+			accident= accDao.selectOneByExample(asb);
+			this.getD_m00001().setAid(accident.getId());
+		}else{//修改
+			DAccident da =accDao.selectByPrimaryKey(aid);
+			if(da==null){
+				throw new BusinessException("EB3000002");
+			}
+			da.setName(this.getA_m00001().getName());
+			da.setSid(this.getA_m00001().getSid());
+			da.setSource(this.getA_m00001().getSource());
+			da.setType(this.getA_m00001().getType());
+			da.setStype(this.getA_m00001().getStype());
+//			da.setTime(XIDateTimeUtils.getNowStr());
+			accDao.updateByPrimaryKey(da);
+			this.getD_m00001().setAid(aid);
+		}
+	}
+	
+	/**
+	 * 基础系统,“平台对接事故数据”业务前处理
+ 	 */
+	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();
+	}
+
+}

+ 86 - 0
src/main/java/com/miniframe/bisiness/system/M00002Service.java

@@ -0,0 +1,86 @@
+package com.miniframe.bisiness.system;
+
+import java.util.List;
+import java.util.Map;
+import com.miniframe.core.ExecProcessFlow;
+import com.miniframe.core.exception.BusinessException;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.business.system.model.M00002BaseModel;
+import com.miniframe.model.system.DAccident;
+import com.miniframe.model.system.DMway;
+import com.miniframe.model.system.DMwaySQLBuilder;
+import com.miniframe.model.system.DWay;
+import com.miniframe.model.system.dao.DAccidentMapper;
+import com.miniframe.model.system.dao.DMwayMapper;
+
+import javax.rmi.CORBA.Util;
+
+/**
+ * 基础系统,“平台对接预设路径”逻辑处理(重新生成不覆盖)。
+ */
+public class M00002Service extends M00002BaseModel implements ExecProcessFlow {
+	
+	private static final long serialVersionUID = -7051358269847459502L;
+		
+	/**
+	 * 基础系统,“平台对接预设路径”业务核心处理
+ 	 */
+	public void transExecute() throws Exception {
+		Integer aid =this.getA_m00002().getAid();
+		String lname =this.getA_m00002().getLname();
+		String lnodes =this.getA_m00002().getLnodes();
+
+		DMwayMapper wdao = UtilTools.getBean(DMwayMapper.class);
+		DAccidentMapper accDao  = UtilTools.getBean(DAccidentMapper.class);
+		DAccident da =accDao.selectByPrimaryKey(aid);
+		if(da==null){
+			throw new BusinessException("EB3000002");
+		}
+
+		DMwaySQLBuilder wsb =new DMwaySQLBuilder();
+		DMwaySQLBuilder.Criteria wsc =wsb.createCriteria();
+		wsc.andAidEqualTo(aid);
+		wsc.andLnameEqualTo(lname);
+		List<DMway> ways= wdao.selectByExample(wsb);
+		if(ways.isEmpty()){
+			DMway mway =new DMway();
+			mway.setAid(aid);
+			mway.setLname(lname);
+			mway.setLnodes(lnodes);
+			wdao.insertSelective(mway);
+		}else{
+			DMway mway =ways.get(0);
+			mway.setLnodes(lnodes);
+			wdao.updateByPrimaryKey(mway);
+		}
+
+	}
+	
+	/**
+	 * 基础系统,“平台对接预设路径”业务前处理
+ 	 */
+	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();
+	}
+
+}

+ 67 - 0
src/main/java/com/miniframe/bisiness/system/M00003Service.java

@@ -0,0 +1,67 @@
+package com.miniframe.bisiness.system;
+
+import java.util.Map;
+import com.miniframe.core.ExecProcessFlow;
+import com.miniframe.core.exception.BusinessException;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.business.system.model.M00003BaseModel;
+import com.miniframe.model.system.DAccident;
+import com.miniframe.model.system.DJob;
+import com.miniframe.model.system.dao.DAccidentMapper;
+import com.miniframe.model.system.dao.DJobMapper;
+
+/**
+ * 基础系统,“平台对接求解状态”逻辑处理(重新生成不覆盖)。
+ */
+public class M00003Service extends M00003BaseModel implements ExecProcessFlow {
+	
+	private static final long serialVersionUID = -7051358269847459502L;
+		
+	/**
+	 * 基础系统,“平台对接求解状态”业务核心处理
+ 	 */
+	public void transExecute() throws Exception {
+		Integer aid =this.getA_m00003().getAid();
+		DAccidentMapper accDao  = UtilTools.getBean(DAccidentMapper.class);
+		DAccident da =accDao.selectByPrimaryKey(aid);
+		if(da==null){
+			throw new BusinessException("EB3000002");
+		}
+		DJobMapper jobDao =UtilTools.getBean(DJobMapper.class);
+		DJob job =jobDao.selectByPrimaryKey(da.getJid());
+		if(job ==null){
+			this.getD_m00003().setState("0");
+		}else{
+			this.getD_m00003().setState(job.getState());
+		}
+		this.getD_m00003().setAid(aid);
+	}
+	
+	/**
+	 * 基础系统,“平台对接求解状态”业务前处理
+ 	 */
+	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();
+	}
+
+}

+ 101 - 0
src/main/java/com/miniframe/bisiness/system/M00004Service.java

@@ -0,0 +1,101 @@
+package com.miniframe.bisiness.system;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import com.miniframe.core.ExecProcessFlow;
+import com.miniframe.core.exception.BusinessException;
+import com.miniframe.core.ext.UtilTools;
+import com.miniframe.generate.business.system.model.M00004BaseModel;
+import com.miniframe.generate.comm.system.D_M00004_LINES_RECODE;
+import com.miniframe.generate.comm.system.D_M00004_PIPES_RECODE;
+import com.miniframe.model.system.DAccident;
+import com.miniframe.model.system.DMway;
+import com.miniframe.model.system.DMwaySQLBuilder;
+import com.miniframe.model.system.dao.DAccidentMapper;
+import com.miniframe.model.system.dao.DMwayMapper;
+
+/**
+ * 基础系统,“平台对接求解结果”逻辑处理(重新生成不覆盖)。
+ */
+public class M00004Service extends M00004BaseModel implements ExecProcessFlow {
+	
+	private static final long serialVersionUID = -7051358269847459502L;
+		
+	/**
+	 * 基础系统,“平台对接求解结果”业务核心处理
+ 	 */
+	public void transExecute() throws Exception {
+		Integer aid =this.getA_m00004().getAid();
+		DAccidentMapper accDao  = UtilTools.getBean(DAccidentMapper.class);
+		DAccident da =accDao.selectByPrimaryKey(aid);
+		if(da==null){
+			throw new BusinessException("EB3000002");
+		}
+		List<D_M00004_PIPES_RECODE> pipes =new ArrayList<>();
+		D_M00004_PIPES_RECODE pipe1 =new D_M00004_PIPES_RECODE();
+		pipe1.setGrade("0");
+		pipe1.setPcode("pipes9");
+		pipe1.setPname("巷道9");
+		pipes.add(pipe1);
+		D_M00004_PIPES_RECODE pipe2 =new D_M00004_PIPES_RECODE();
+		pipe1.setGrade("1");
+		pipe1.setPcode("pipes8");
+		pipe1.setPname("巷道8");
+		pipes.add(pipe2);
+		D_M00004_PIPES_RECODE pipe3 =new D_M00004_PIPES_RECODE();
+		pipe1.setGrade("2");
+		pipe1.setPcode("pipes2");
+		pipe1.setPname("巷道2");
+		pipes.add(pipe3);
+		D_M00004_PIPES_RECODE pipe4 =new D_M00004_PIPES_RECODE();
+		pipe1.setGrade("3");
+		pipe1.setPcode("pipes3");
+		pipe1.setPname("巷道3");
+		pipes.add(pipe4);
+
+		DMwayMapper wdao = UtilTools.getBean(DMwayMapper.class);
+		DMwaySQLBuilder wsb =new DMwaySQLBuilder();
+		DMwaySQLBuilder.Criteria wsc =wsb.createCriteria();
+		wsc.andAidEqualTo(aid);
+		List<DMway> ways= wdao.selectByExample(wsb);
+		List<D_M00004_LINES_RECODE> lines =new ArrayList<>();
+		for (DMway w:ways) {
+			D_M00004_LINES_RECODE line = new D_M00004_LINES_RECODE();
+			line.setLname(w.getLname());
+			line.setLevel(w.getLevel());
+			lines.add(line);
+		}
+		this.getD_m00004().setAid(aid);
+		this.getD_m00004().setLines(lines);
+		this.getD_m00004().setPipes(pipes);
+	}
+	
+	/**
+	 * 基础系统,“平台对接求解结果”业务前处理
+ 	 */
+	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();
+	}
+
+}

+ 23 - 0
src/main/java/com/miniframe/dbtransfer/DMwayDbTransfer.java

@@ -0,0 +1,23 @@
+package com.miniframe.dbtransfer;
+
+import com.miniframe.core.DbTransfer;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Map;
+
+import com.miniframe.model.system.DMway;
+
+/**
+ * 实体列表,“D_MWAY”数据库数据转化逻辑处理(重新生成不覆盖)。
+ */
+public class DMwayDbTransfer extends DbTransfer implements Serializable {
+	
+	private static final long serialVersionUID = -7051358269847459502L;
+
+	@Override
+	public List transfer(final List l,Map map) throws Exception{
+		List<DMway> list=l;
+		return list;
+	};
+
+}

+ 44 - 0
src/test/java/com/miniframe/comm/httpclientapater/M00001Test.java

@@ -0,0 +1,44 @@
+package com.miniframe.comm.httpclientapater;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
+import com.miniframe.generate.comm.system.A_M00001;
+import com.miniframe.generate.comm.httpclientapater.M00001Client;
+import com.miniframe.generate.business.system.model.M00001BaseModel;
+
+public class M00001Test {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00001Test.class);
+
+	/**
+	 * 平台对接事故数据,获取报文体
+	 * @return
+	 */
+	public static A_M00001 getA_m00001() {
+		A_M00001 a_m00001 = new A_M00001();
+
+		// ----------以下增加【平台对接事故数据】上行体赋值-------------
+
+
+
+		// ---------------------------------------------------
+		return a_m00001;
+	}
+	
+	/**
+	 * 运行客户端测试,平台对接事故数据
+	 * 
+	 * @param args
+	 * @throws Exception
+	 */
+	public static void main(String[] args) throws Exception {
+		M00001BaseModel model = new M00001BaseModel();
+		model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("M00001"));
+		model.setA_m00001(M00001Test.getA_m00001());
+		M00001Client client = new M00001Client();
+		logger.error("客户端发送前总线:\r\n"+model);
+		model = client.execute(model);
+		logger.error("客户端发送后总线:\r\n"+model);
+	}
+}

+ 44 - 0
src/test/java/com/miniframe/comm/httpclientapater/M00002Test.java

@@ -0,0 +1,44 @@
+package com.miniframe.comm.httpclientapater;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
+import com.miniframe.generate.comm.system.A_M00002;
+import com.miniframe.generate.comm.httpclientapater.M00002Client;
+import com.miniframe.generate.business.system.model.M00002BaseModel;
+
+public class M00002Test {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00002Test.class);
+
+	/**
+	 * 平台对接预设路径,获取报文体
+	 * @return
+	 */
+	public static A_M00002 getA_m00002() {
+		A_M00002 a_m00002 = new A_M00002();
+
+		// ----------以下增加【平台对接预设路径】上行体赋值-------------
+
+
+
+		// ---------------------------------------------------
+		return a_m00002;
+	}
+	
+	/**
+	 * 运行客户端测试,平台对接预设路径
+	 * 
+	 * @param args
+	 * @throws Exception
+	 */
+	public static void main(String[] args) throws Exception {
+		M00002BaseModel model = new M00002BaseModel();
+		model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("M00002"));
+		model.setA_m00002(M00002Test.getA_m00002());
+		M00002Client client = new M00002Client();
+		logger.error("客户端发送前总线:\r\n"+model);
+		model = client.execute(model);
+		logger.error("客户端发送后总线:\r\n"+model);
+	}
+}

+ 44 - 0
src/test/java/com/miniframe/comm/httpclientapater/M00003Test.java

@@ -0,0 +1,44 @@
+package com.miniframe.comm.httpclientapater;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
+import com.miniframe.generate.comm.system.A_M00003;
+import com.miniframe.generate.comm.httpclientapater.M00003Client;
+import com.miniframe.generate.business.system.model.M00003BaseModel;
+
+public class M00003Test {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00003Test.class);
+
+	/**
+	 * 平台对接求解状态,获取报文体
+	 * @return
+	 */
+	public static A_M00003 getA_m00003() {
+		A_M00003 a_m00003 = new A_M00003();
+
+		// ----------以下增加【平台对接求解状态】上行体赋值-------------
+
+
+
+		// ---------------------------------------------------
+		return a_m00003;
+	}
+	
+	/**
+	 * 运行客户端测试,平台对接求解状态
+	 * 
+	 * @param args
+	 * @throws Exception
+	 */
+	public static void main(String[] args) throws Exception {
+		M00003BaseModel model = new M00003BaseModel();
+		model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("M00003"));
+		model.setA_m00003(M00003Test.getA_m00003());
+		M00003Client client = new M00003Client();
+		logger.error("客户端发送前总线:\r\n"+model);
+		model = client.execute(model);
+		logger.error("客户端发送后总线:\r\n"+model);
+	}
+}

+ 44 - 0
src/test/java/com/miniframe/comm/httpclientapater/M00004Test.java

@@ -0,0 +1,44 @@
+package com.miniframe.comm.httpclientapater;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.miniframe.comm.httpclientapater.HttpclientapaterUtil;
+import com.miniframe.generate.comm.system.A_M00004;
+import com.miniframe.generate.comm.httpclientapater.M00004Client;
+import com.miniframe.generate.business.system.model.M00004BaseModel;
+
+public class M00004Test {
+
+	private static final Logger logger = LoggerFactory.getLogger(M00004Test.class);
+
+	/**
+	 * 平台对接求解结果,获取报文体
+	 * @return
+	 */
+	public static A_M00004 getA_m00004() {
+		A_M00004 a_m00004 = new A_M00004();
+
+		// ----------以下增加【平台对接求解结果】上行体赋值-------------
+
+
+
+		// ---------------------------------------------------
+		return a_m00004;
+	}
+	
+	/**
+	 * 运行客户端测试,平台对接求解结果
+	 * 
+	 * @param args
+	 * @throws Exception
+	 */
+	public static void main(String[] args) throws Exception {
+		M00004BaseModel model = new M00004BaseModel();
+		model.setA_systemhead(HttpclientapaterUtil.getA_systemhead("M00004"));
+		model.setA_m00004(M00004Test.getA_m00004());
+		M00004Client client = new M00004Client();
+		logger.error("客户端发送前总线:\r\n"+model);
+		model = client.execute(model);
+		logger.error("客户端发送后总线:\r\n"+model);
+	}
+}

+ 3 - 1
系统设计/实体Bean/system(实体列表).csv

@@ -34,4 +34,6 @@
 28,d_way,预设路径,FALSE,
 29,D_WAYNODE,预设路径节点,FALSE,
 20,D_WAY_RESULT,路径求解结果,FALSE,
-21,D_WAYNODE_RESULT,路径节点求解结果,FALSE,
+21,D_WAYNODE_RESULT,路径节点求解结果,FALSE,
+
+22,D_MWAY,平台对接预设路径,FALSE,

+ 6 - 1
系统设计/系统模块/SYSTEM(基础系统).csv

@@ -84,4 +84,9 @@
 310018,D10034,预设路径节点添加修改,service,,
 310019,D10035,预设路径节点删除,service,,
 
-310020,D10036,路径求解结果获取,service,,
+310020,D10036,路径求解结果获取,service,,
+
+400001,M00001,平台对接事故数据,service,,
+400002,M00002,平台对接预设路径,service,,
+400003,M00003,平台对接求解状态,service,,
+400003,M00004,平台对接求解结果 ,service,,

+ 7 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00001_A(平台对接事故数据).csv

@@ -0,0 +1,7 @@
+序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+1,source,事故来源,string,,,是,1,128,,,,,,
+2,type,事故类型,string,,,是,1,128,,,,,,
+3,name,事故名称,string,,,是,1,128,,,,,,
+4,sid,事故来源ID,string,,,是,1,128,,,,,,
+5,stype,灾情类型,string,,,是,1,128,,,,,,
+6,aid,事故ID,int,,,,,,,,,,,

+ 2 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00001_D(平台对接事故数据).csv

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

+ 4 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00002_A(平台对接预设路径).csv

@@ -0,0 +1,4 @@
+序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+1,aid,事故ID,int,,,是,,,,,,,,
+2,lname,路径名称,string,,,是,,,,,,,,
+3,lnodes,路径通过节点编号组,string,,,是,,,,,,,,

+ 1 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00002_D(平台对接预设路径).csv

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

+ 2 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00003_A(平台对接求解状态).csv

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

+ 3 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00003_D(平台对接求解状态).csv

@@ -0,0 +1,3 @@
+序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+1,aid,事故ID,int,,,是,,,,,,,,
+2,state,事故ID,string,,,是,,,,,,,,

+ 2 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00004_A(平台对接求解结果).csv

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

+ 10 - 0
系统设计/通信设计/通讯报文/system(系统服务)/报文体/M00004_D(平台对接求解结果).csv

@@ -0,0 +1,10 @@
+序号,英文名称,中文名称,数据类型,默认值,格式化,非空/引用,最小(长度/值),最大(长度/值),验证规则,标准数据ID,XML样式,TAG标签,映射/子标签,CDATA
+1,aid,事故ID,int,,,是,,,,,,,,
+2,pipes,管道数据,list,,,,0,,,,,,,
+2.1,time,时间,string,,,是,,,,,,,,
+2.2,pcode,管道编码,string,,,是,,,,,,,,
+2.3,pname,管道名称,string,,,是,,,,,,,,
+2.4,grade,危险等级,string,,,是,,,,,,,,
+3,lines,路径数据,list,,,,0,,,,,,,
+3.1,lname,路径名称,string,,,是,,,,,,,,
+3.2,level,安全等级,string,,,是,,,,,,,,