|  | @@ -0,0 +1,112 @@
 | 
	
		
			
				|  |  | +package com.miniframe.generate.business.ac.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.ac.A_ACHEAD;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.ac.D_ACHEAD;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.ac.A_AC00008;
 | 
	
		
			
				|  |  | +import com.miniframe.generate.comm.ac.D_AC00008;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/**
 | 
	
		
			
				|  |  | + * 气动设计,“日志获取”模型类(不要维护,重新生成将覆盖)。
 | 
	
		
			
				|  |  | + */
 | 
	
		
			
				|  |  | +@SuppressWarnings({ "rawtypes", "unchecked" })
 | 
	
		
			
				|  |  | +public class AC00008BaseModel extends BaseMapModel {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	private static final long serialVersionUID = -1326184831746814093L;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	A_ACHEAD a_achead;//上行头
 | 
	
		
			
				|  |  | +	D_ACHEAD d_achead;//下行头
 | 
	
		
			
				|  |  | +	A_AC00008 a_ac00008;//上行体
 | 
	
		
			
				|  |  | +	D_AC00008 d_ac00008;//下行体
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public AC00008BaseModel(){
 | 
	
		
			
				|  |  | +		a_achead=new A_ACHEAD();
 | 
	
		
			
				|  |  | +		d_achead=new D_ACHEAD();
 | 
	
		
			
				|  |  | +		a_ac00008=new A_AC00008();
 | 
	
		
			
				|  |  | +		d_ac00008=new D_AC00008();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void validater() throws Exception {
 | 
	
		
			
				|  |  | +		this.a_achead.validater();
 | 
	
		
			
				|  |  | +		this.a_ac00008.validater();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setTransMap(Map map) throws Exception {
 | 
	
		
			
				|  |  | +		Map headMap = HttpMapFormater.format(map, A_ACHEAD.class);
 | 
	
		
			
				|  |  | +		this.a_achead = UtilTools.map2Obj(headMap, A_ACHEAD.class);
 | 
	
		
			
				|  |  | +		Map bodyMap = HttpMapFormater.format(map, A_AC00008.class);
 | 
	
		
			
				|  |  | +		this.a_ac00008 = UtilTools.map2Obj(bodyMap, A_AC00008.class);
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public Map getTransMap() throws Exception {
 | 
	
		
			
				|  |  | +		Map reMap = new LinkedHashMap();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_achead).getTransCode())){
 | 
	
		
			
				|  |  | +			(this.d_achead).setTransCode((this.a_achead).getTransCode());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_achead).getChannelNo())){
 | 
	
		
			
				|  |  | +			(this.d_achead).setChannelNo((this.a_achead).getChannelNo());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		if(UtilTools.isNullOrBlank((this.d_achead).getUserId())){
 | 
	
		
			
				|  |  | +			(this.d_achead).setUserId((this.a_achead).getUserId());
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +        if(UtilTools.isNullOrBlank((this.d_achead).getTransTime())){
 | 
	
		
			
				|  |  | +            (this.d_achead).setTransTime(DateTimeFormatter.ofPattern(AppGlobalVariableSysconfig.DATETIMEFORMAT).format(ZonedDateTime.now()));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		reMap.putAll(UtilTools.obj2Map(this.d_achead));
 | 
	
		
			
				|  |  | +		reMap.putAll(UtilTools.obj2Map(this.d_ac00008));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		return reMap;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public A_ACHEAD getA_achead() {
 | 
	
		
			
				|  |  | +		return this.a_achead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setA_achead(A_ACHEAD a_achead) {
 | 
	
		
			
				|  |  | +		this.a_achead=a_achead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public D_ACHEAD getD_achead() {
 | 
	
		
			
				|  |  | +		return d_achead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setD_achead(D_ACHEAD d_achead) {
 | 
	
		
			
				|  |  | +		this.d_achead=d_achead;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public A_AC00008 getA_ac00008() {
 | 
	
		
			
				|  |  | +		return a_ac00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setA_ac00008(A_AC00008 a_ac00008) {
 | 
	
		
			
				|  |  | +		this.a_ac00008=a_ac00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public D_AC00008 getD_ac00008() {
 | 
	
		
			
				|  |  | +		return this.d_ac00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	public void setD_ac00008(D_AC00008 d_ac00008) {
 | 
	
		
			
				|  |  | +		this.d_ac00008=d_ac00008;
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	@Override
 | 
	
		
			
				|  |  | +	public String toString() {
 | 
	
		
			
				|  |  | +		try {
 | 
	
		
			
				|  |  | +			return UtilTools.obj2Json(this,true);
 | 
	
		
			
				|  |  | +		} catch (IOException e) {
 | 
	
		
			
				|  |  | +			return "";
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +}
 |