# ResistServiceImpl.java

    package com.mycim.server.resist.service;

    import com.alipay.sofa.runtime.api.annotation.SofaService;
    import com.alipay.sofa.runtime.api.annotation.SofaServiceBinding;
    import com.mycim.framework.jdbc.Page;
    import com.mycim.server.resist.manager.ResistEqptMappingManager;
    import com.mycim.server.resist.manager.ResistManager;
    import com.mycim.server.resist.manager.ResistMappingManager;
    import com.mycim.server.resist.manager.ResistRcpMappingManager;
    import com.mycim.valueobject.ems.Resist;
    import com.mycim.valueobject.ems.ResistEqptMapping;
    import com.mycim.valueobject.ems.ResistMapping;
    import com.mycim.valueobject.ems.ResistRcpMapping;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;

    import java.util.Map;

    /**
     * @author yanbing.chen
     * @version 6.0.0
     * @date 2019/10/28
     **/
    @Service
    @SofaService(interfaceType = ResistService.class, bindings = {@SofaServiceBinding(bindingType = "bolt")})
    public class ResistServiceImpl implements ResistService {

        @Autowired
        ResistManager resistManager;

        @Autowired
        ResistMappingManager resistMappingManager;

        @Autowired
        ResistEqptMappingManager resistEqptMappingManager;

        @Autowired
        ResistRcpMappingManager resistRcpMappingManager;

        @Override
        public Page qryResistByPage(Page page, Map<String, Object> argMap) {
            return resistManager.qryResistByPage(page, argMap);
        }

        @Override
        public Boolean hasVendorBarodeReceived(String vendorBarcode) {
            return resistManager.hasVendorBarodeReceived(vendorBarcode);
        }

        @Override
        public Boolean hasResistIdReceived(String resistId) {
            return resistManager.hasResistIdReceived(resistId);
        }

        @Override
        public ResistMapping getResistMappingByResistNo(String resistNo) {
            return resistMappingManager.getResistMappingByResistNo(resistNo);
        }

        @Override
        public Long getMaxSerialNumber(String resistNo) {
            return resistManager.getMaxSerialNumber(resistNo);
        }

        @Override
        public Page qryResistMappingByPage(Page page, Map<String, String> argMap) {
            return resistMappingManager.qryResistMappingByPage(page, argMap);
        }

        @Override
        public void addResistMapping(ResistMapping resistMapping) {
            resistMappingManager.addResistMapping(resistMapping);
        }

        @Override
        public void modifyResistMapping(ResistMapping resistMapping) {
            resistMappingManager.modifyResistMapping(resistMapping);
        }

        @Override
        public void deleteResistMapping(ResistMapping resistMapping) {
            resistMappingManager.deleteResistMapping(resistMapping);
        }

        @Override
        public Page qryResistEqptMappingByPage(ResistEqptMapping mapping, Page page) {
            return resistEqptMappingManager.qryResistEqptMappingByPage(mapping, page);
        }

        @Override
        public Page qryResistMappingHistByPage(Page page, Map<String, String> argMap) {
            return resistMappingManager.qryResistMappingHistByPage(page, argMap);
        }

        @Override
        public void addResist(Resist resist) {
            resistManager.addResist(resist);
        }

        @Override
        public Resist getResistByResistId(String instanceId) {
            return resistManager.getResistByResistId(instanceId);
        }

        @Override
        public Resist getRecommendResist(Resist resist) {
            return resistManager.getRecommendResist(resist);
        }

        @Override
        public void modifyResistExpireDate(Resist resist) {
            resistManager.modifyResistExpireDate(resist);
        }

        @Override
        public void deleteResist(Resist resist) {
            resistManager.deleteResist(resist);
        }

        @Override
        public void changeResistStatus(Map transMap) {
            resistManager.changeResistStatus(transMap);
        }

        @Override
        public void resistMoveInAndRemove(String eventId, Resist resist) {
            resistManager.resistMoveInAndRemove(eventId, resist);
        }

        @Override
        public void resistExchange(Resist oldResist, Resist newResist, String targetEventIdForOld,
                                   String targetEventIdForNew) {
            resistManager.resistExchange(oldResist, newResist, targetEventIdForOld, targetEventIdForNew);
        }

        @Override
        public Page qryResistHistByPage(Map<String, Object> paramMap, Page page) {
            return resistManager.qryResistHistByPage(paramMap, page);
        }

        @Override
        public boolean isOnlyRealPipe(String eqptId, String prPipe, String chamberId) {
            return resistEqptMappingManager.isOnlyRealPipe(eqptId, prPipe, chamberId);
        }

        @Override
        public void addResistEqptMapping(ResistEqptMapping mapping) {
            resistEqptMappingManager.addResistEqptMapping(mapping);
        }

        @Override
        public void deleteResistEqptMapping(ResistEqptMapping mapping) {
            resistEqptMappingManager.deleteResistEqptMapping(mapping);
        }

        @Override
        public void modifyResistEqptMapping(ResistEqptMapping mapping) {
            resistEqptMappingManager.modifyResistEqptMapping(mapping);
        }

        @Override
        public Page qryResistEqptMappingHByPage(ResistEqptMapping mapping, Page page) {
            return resistEqptMappingManager.qryResistEqptMappingHByPage(mapping, page);
        }

        @Override
        public void defrostAllResist() {
            resistManager.defrostAllResist();
        }

        @Override
        public void holdExpireResist() {
            resistManager.holdExpireResist();
        }

        @Override
        public Page qryResistRcpMappingByPage(ResistRcpMapping mapping, Page page) {
            return resistRcpMappingManager.qryResistRcpMappingByPage(mapping, page);
        }

        @Override
        public void addResistRcpMapping(ResistRcpMapping mapping) {
            resistRcpMappingManager.addResistRcpMapping(mapping);
        }

        @Override
        public void deleteResistRcpMapping(String resistNo,  String rcpLetter) {
            resistRcpMappingManager.deleteResistRcpMapping(resistNo,  rcpLetter);
        }

        @Override
        public Page qryResistRcpMappingHistByPage(ResistRcpMapping mapping, Page page) {
            return resistRcpMappingManager.qryResistRcpMappingHistByPage(mapping, page);
        }

        @Override
        public void modifyResistRcpMapping(ResistRcpMapping mapping) {
            resistRcpMappingManager.modifyResistRcpMapping(mapping);
        }

        @Override
        public String getResistEventIdBy2Status(long resistRrn, String currentStatus, String targetStatus) {
            return resistManager.getResistEventIdBy2Status(resistRrn, currentStatus, targetStatus);
        }

        @Override
        public ResistEqptMapping getResistEqptMappingByResist(Resist resist) {
            return resistEqptMappingManager.getResistEqptMappingByResist(resist);
        }

    }