12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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 com.miniframe.generate.comm.system.A_SYSTEMHEAD;
- import com.miniframe.generate.comm.system.D_SYSTEMHEAD;
- import com.miniframe.generate.comm.system.A_HM0006;
- import com.miniframe.generate.comm.system.D_HM0006;
- /**
- * 系统服务,“文件上传”模型类(不要维护,重新生成将覆盖)。
- */
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public class HM0006BaseModel extends BaseMapModel {
- private static final long serialVersionUID = -1326184831746814093L;
- A_SYSTEMHEAD a_systemhead;//上行头
- D_SYSTEMHEAD d_systemhead;//下行头
- A_HM0006 a_hm0006;//上行体
- D_HM0006 d_hm0006;//下行体
-
- public HM0006BaseModel(){
- a_systemhead=new A_SYSTEMHEAD();
- d_systemhead=new D_SYSTEMHEAD();
- a_hm0006=new A_HM0006();
- d_hm0006=new D_HM0006();
- }
- public void validater() throws Exception {
- this.a_systemhead.validater();
- this.a_hm0006.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_HM0006.class);
- this.a_hm0006 = UtilTools.map2Obj(bodyMap, A_HM0006.class);
- }
-
- public Map getTransMap() throws Exception {
- Map reMap = new LinkedHashMap();
- reMap.putAll(UtilTools.obj2Map(this.d_systemhead));
- reMap.putAll(UtilTools.obj2Map(this.d_hm0006));
- 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_HM0006 getA_hm0006() {
- return a_hm0006;
- }
- public void setA_hm0006(A_HM0006 a_hm0006) {
- this.a_hm0006=a_hm0006;
- }
- public D_HM0006 getD_hm0006() {
- return this.d_hm0006;
- }
- public void setD_hm0006(D_HM0006 d_hm0006) {
- this.d_hm0006=d_hm0006;
- }
- @Override
- public String toString() {
- try {
- return UtilTools.obj2Json(this,true);
- } catch (IOException e) {
- return "";
- }
- }
- }
|