|  | @@ -0,0 +1,112 @@
 | 
	
		
			
				|  |  | +package com.miniframe.generate.business.es.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.es.A_ESHEAD;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.es.D_ESHEAD;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.es.A_ES0013;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.es.D_ES0013;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 无锡发动机,“项目求解”模型类(不要维护,重新生成将覆盖)。
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +@SuppressWarnings({ "rawtypes", "unchecked" })
 | 
	
		
			
				|  |  | +public class ES0013BaseModel extends BaseMapModel {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	private static final long serialVersionUID = -1326184831746814093L;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	A_ESHEAD a_eshead;//上行头
 | 
	
		
			
				|  |  | +	D_ESHEAD d_eshead;//下行头
 | 
	
		
			
				|  |  | +	A_ES0013 a_es0013;//上行体
 | 
	
		
			
				|  |  | +	D_ES0013 d_es0013;//下行体
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public ES0013BaseModel(){
 | 
	
		
			
				|  |  | +		a_eshead=new A_ESHEAD();
 | 
	
		
			
				|  |  | +		d_eshead=new D_ESHEAD();
 | 
	
		
			
				|  |  | +		a_es0013=new A_ES0013();
 | 
	
		
			
				|  |  | +		d_es0013=new D_ES0013();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void validater() throws Exception {
 | 
	
		
			
				|  |  | +		this.a_eshead.validater();
 | 
	
		
			
				|  |  | +		this.a_es0013.validater();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setTransMap(Map map) throws Exception {
 | 
	
		
			
				|  |  | +		Map headMap = HttpMapFormater.format(map, A_ESHEAD.class);
 | 
	
		
			
				|  |  | +		this.a_eshead = UtilTools.map2Obj(headMap, A_ESHEAD.class);
 | 
	
		
			
				|  |  | +		Map bodyMap = HttpMapFormater.format(map, A_ES0013.class);
 | 
	
		
			
				|  |  | +		this.a_es0013 = UtilTools.map2Obj(bodyMap, A_ES0013.class);
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public Map getTransMap() throws Exception {
 | 
	
		
			
				|  |  | +		Map reMap = new LinkedHashMap();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_eshead).getTransCode())){
 | 
	
		
			
				|  |  | +			(this.d_eshead).setTransCode((this.a_eshead).getTransCode());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_eshead).getChannelNo())){
 | 
	
		
			
				|  |  | +			(this.d_eshead).setChannelNo((this.a_eshead).getChannelNo());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_eshead).getUserId())){
 | 
	
		
			
				|  |  | +			(this.d_eshead).setUserId((this.a_eshead).getUserId());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +        if(UtilTools.isNullOrBlank((this.d_eshead).getTransTime())){
 | 
	
		
			
				|  |  | +            (this.d_eshead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		reMap.putAll(UtilTools.obj2Map(this.d_eshead));
 | 
	
		
			
				|  |  | +		reMap.putAll(UtilTools.obj2Map(this.d_es0013));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		return reMap;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public A_ESHEAD getA_eshead() {
 | 
	
		
			
				|  |  | +		return this.a_eshead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setA_eshead(A_ESHEAD a_eshead) {
 | 
	
		
			
				|  |  | +		this.a_eshead=a_eshead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public D_ESHEAD getD_eshead() {
 | 
	
		
			
				|  |  | +		return d_eshead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setD_eshead(D_ESHEAD d_eshead) {
 | 
	
		
			
				|  |  | +		this.d_eshead=d_eshead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public A_ES0013 getA_es0013() {
 | 
	
		
			
				|  |  | +		return a_es0013;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setA_es0013(A_ES0013 a_es0013) {
 | 
	
		
			
				|  |  | +		this.a_es0013=a_es0013;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public D_ES0013 getD_es0013() {
 | 
	
		
			
				|  |  | +		return this.d_es0013;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setD_es0013(D_ES0013 d_es0013) {
 | 
	
		
			
				|  |  | +		this.d_es0013=d_es0013;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	@Override
 | 
	
		
			
				|  |  | +	public String toString() {
 | 
	
		
			
				|  |  | +		try {
 | 
	
		
			
				|  |  | +			return UtilTools.obj2Json(this,true);
 | 
	
		
			
				|  |  | +		} catch (IOException e) {
 | 
	
		
			
				|  |  | +			return "";
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +}
 |