# LotInqServiceImpl.java

    package com.mycim.server.wip.service;

    import com.alipay.sofa.runtime.api.annotation.SofaService;
    import com.alipay.sofa.runtime.api.annotation.SofaServiceBinding;
    import com.fa.sesa.monitor.datapermission.DataPermission;
    import com.mycim.server.wip.manager.LotAttributeQueryManager;
    import com.mycim.server.wip.manager.LotInqManager;
    import com.mycim.valueobject.wip.Lot;
    import com.mycim.valueobject.wip.dto.LotProcessStepDto;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;

    import java.util.List;

    /**
     * @author finatice.yang
     * @date 2021/12/15
     **/
    @Service
    @SofaService(interfaceType = LotInqService.class, bindings = {@SofaServiceBinding(bindingType = "bolt")})
    public class LotInqServiceImpl implements LotInqService {

        @Autowired
        LotInqManager lotInqManager;

        @Autowired
        LotAttributeQueryManager lotAttributeQueryManager;

        @Override
        public String getLotId(Long lotRrn) {
            return lotInqManager.getLotId(lotRrn);
        }

        @Override
        public Long getLotRrn(String lotId) {
            return lotInqManager.getLotRrn(lotId);
        }

        @Override
        public Lot getLot(String lotId) {
            return lotInqManager.getLot(lotId);
        }

        @Override
        public Lot getLot(Long lotRrn) {
            return lotInqManager.getLot(lotRrn);
        }

        @Override
        @DataPermission
        public Lot getLotWhitDataPermission(String lotId) { return lotInqManager.getLot(lotId); }

        @Override
        @DataPermission
        public Lot getLotWhitDataPermission(Long lotRrn) { return lotInqManager.getLot(lotRrn); }

        @Override
        public List<Lot> getLotListByCarrierRrn(Long carrierRrn) {
            return lotInqManager.getLotListByCarrierRrn(carrierRrn);
        }

        @Override
        public List<Lot> getLotListByCarrierId(String carrierId) {
            return lotInqManager.getLotListByCarrierId(carrierId);
        }

        @Override
        public List<Lot> getLotListByJobRrn(Long jobRrn) {
            return lotInqManager.getLotListByJobRrn(jobRrn);
        }

        @Override
        public String getLotStatus(Long lotRrn) {
            return lotInqManager.getLotStatus(lotRrn);
        }

        @Override
        public String getProcessLocation(LotProcessStepDto lotProcessStep) {
            return lotAttributeQueryManager.getProcessLocation(lotProcessStep);
        }

        @Override
        public String checkLotCarrierType(String lotId, String actionPoint) {
            return lotInqManager.checkLotCarrierType(lotId, actionPoint);
        }

    }