package com.eactive.eai.rms.onl.manage.control.log;

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

import com.eactive.eai.data.entity.onl.restrict.RestrictInfo;
import com.eactive.eai.data.entity.onl.restrict.RestrictInfoHistory;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ControlLogManMapper {
	
	ControlLogManUI toVo(ControlLogServiceDto serviceDto);
	
	@Mapping(target = "id.eaictrlname", source = "eaictrlname")
	@Mapping(target = "id.ctrlprcssyms", source = "ctrlprcssyms")
    RestrictInfoHistory toHistoryEntity(RestrictInfo info);
}
