|  | @@ -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_M00008;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.system.D_M00008;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 系统服务,“平台管道映射删除”模型类(不要维护,重新生成将覆盖)。
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +@SuppressWarnings({ "rawtypes", "unchecked" })
 | 
	
		
			
				|  |  | +public class M00008BaseModel extends BaseMapModel {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	private static final long serialVersionUID = -1326184831746814093L;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	A_SYSTEMHEAD a_systemhead;//上行头
 | 
	
		
			
				|  |  | +	D_SYSTEMHEAD d_systemhead;//下行头
 | 
	
		
			
				|  |  | +	A_M00008 a_m00008;//上行体
 | 
	
		
			
				|  |  | +	D_M00008 d_m00008;//下行体
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public M00008BaseModel(){
 | 
	
		
			
				|  |  | +		a_systemhead=new A_SYSTEMHEAD();
 | 
	
		
			
				|  |  | +		d_systemhead=new D_SYSTEMHEAD();
 | 
	
		
			
				|  |  | +		a_m00008=new A_M00008();
 | 
	
		
			
				|  |  | +		d_m00008=new D_M00008();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void validater() throws Exception {
 | 
	
		
			
				|  |  | +		this.a_systemhead.validater();
 | 
	
		
			
				|  |  | +		this.a_m00008.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_M00008.class);
 | 
	
		
			
				|  |  | +		this.a_m00008 = UtilTools.map2Obj(bodyMap, A_M00008.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_m00008));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		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_M00008 getA_m00008() {
 | 
	
		
			
				|  |  | +		return a_m00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setA_m00008(A_M00008 a_m00008) {
 | 
	
		
			
				|  |  | +		this.a_m00008=a_m00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public D_M00008 getD_m00008() {
 | 
	
		
			
				|  |  | +		return this.d_m00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setD_m00008(D_M00008 d_m00008) {
 | 
	
		
			
				|  |  | +		this.d_m00008=d_m00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	@Override
 | 
	
		
			
				|  |  | +	public String toString() {
 | 
	
		
			
				|  |  | +		try {
 | 
	
		
			
				|  |  | +			return UtilTools.obj2Json(this,true);
 | 
	
		
			
				|  |  | +		} catch (IOException e) {
 | 
	
		
			
				|  |  | +			return "";
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +}
 |