# Edc2MyspcParser.java

    package com.mycim.server.edcmyspc.myspc;

    import com.mycim.framework.logging.Logger;
    import com.mycim.framework.logging.LoggerFactory;
    import com.mycim.framework.utils.msg.model.Request;
    import com.mycim.server.spc.BaseEdc2SpcParser;
    import org.springframework.stereotype.Component;

    import java.util.List;
    import java.util.stream.Collectors;

    /**
     * @author Johnson.Wang
     * @version 6.0.0
     * @date 2019/11/8
     **/
    @Component
    public class Edc2MyspcParser extends BaseEdc2SpcParser<Request> {
        Logger logger = LoggerFactory.getLogger(Edc2MyspcParser.class);

        @Override
        public List<String> parser(List<Request> request) {
            List<String> requestMsgs = request.stream().map(req -> {
                String requestMsg = super.parser(req);
                logger.info(requestMsg);
                return requestMsg;
            }).collect(Collectors.toList());
            return requestMsgs;
        }

    }