package com.eactive.eai.rms.onl.manage.inflow.history;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

import com.eactive.eai.data.entity.onl.inflow.InflowControlLog;
import com.eactive.eai.data.mapper.GenericMapper;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface InflowControlHistoryManMapper extends GenericMapper<InflowControlHistoryManUI, InflowControlLog> {
	@Override
	@Mapping(source = "id.eaibzwkdstcd", target = "eaibzwkdstcd")
	@Mapping(source = "id.msgdpstyms", target = "msgdpstyms")
	@Mapping(source = "id.eaisvcserno", target = "eaisvcserno")
	InflowControlHistoryManUI toVo(InflowControlLog entity);

	@Override
	@InheritInverseConfiguration
	InflowControlLog toEntity(InflowControlHistoryManUI vo);
}
