# PmsServiceImpl.java

    package com.mycim.server.pms.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.pms.manager.PmsScheduleManager;
    import com.mycim.valueobject.ems.*;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;

    import java.util.List;
    import java.util.Map;

    @Service
    @SofaService(interfaceType = PmsService.class, bindings = {@SofaServiceBinding(bindingType = "bolt")})
    public class PmsServiceImpl implements PmsService {

        @Autowired
        PmsScheduleManager pmsScheduleManager;

        @Override
        public String pmsCheck(Entity entity, String type) {
            return pmsScheduleManager.pmsCheck(entity, type);
        }

        @Override
        public List<Map> getPmListByCheckList(long checklistRrn) {
            return pmsScheduleManager.getPmListByCheckList(checklistRrn);
        }

        @Override
        public Page qryPmsEqptHist(Map<String, Object> condition, Page page) {
            return pmsScheduleManager.qryPmsEqptHist(condition, page);
        }

        @Override
        public List qryChecklistJobDataHist(Long checklistJobRrn) {
            return pmsScheduleManager.qryChecklistJobDataHist(checklistJobRrn);
        }

        @Override
        public Page qryEqptPMInfo(PmsSchedule schedule, Page page) {
            return pmsScheduleManager.qryEqptPMInfo(schedule, page);
        }

        @Override
        public List<PmsSchedule> qryEqptPMInfo(PmsSchedule schedule) {
            return pmsScheduleManager.qryEqptPMInfo(schedule);
        }

        @Override
        public PmsSchedule qryEqptPMInfo(long pmRrn) {
            return pmsScheduleManager.qryEqptPMInfo(pmRrn);
        }

        @Override
        public void addPmSchedule(PmsSchedule schedule) {
            pmsScheduleManager.addPmSchedule(schedule);
        }

        @Override
        public void modifyPmSchedule(PmsSchedule schedule) {
            pmsScheduleManager.modifyPmSchedule(schedule);
        }

        @Override
        public void pmsPmStart(PmsSchedule schedule) {
            pmsScheduleManager.pmsPmStart(schedule);
        }

        @Override
        public void pmsPmEnd(PmsSchedule schedule) {
            pmsScheduleManager.pmsPmEnd(schedule);
        }

        @Override
        public void pmsPmEnd(List<PmsSchedule> schedules) {
            pmsScheduleManager.pmsPmEnd(schedules);
        }

        @Override
        public void onOffChange(PmsSchedule schedule) {
            pmsScheduleManager.onOffChange(schedule);
        }

        @Override
        public void deletePmSchedule(PmsSchedule schedule) {
            pmsScheduleManager.deletePmSchedule(schedule);
        }

        @Override
        public PmSchedule selectPMScheduleDetail(long checklistRrn, long entityRrn, long sequenceNum) {
            return pmsScheduleManager.selectPMScheduleDetail(checklistRrn, entityRrn, sequenceNum);
        }

        @Override
        public void updatePmScheduleNext(PmSchedule pms) {
            pmsScheduleManager.updatePmScheduleNext(pms);
        }

        @Override
        public void pmsAutoEvent(PmsSchedule pmItem) {
            pmsScheduleManager.pmsAutoEvent(pmItem);
        }

        @Override
        public void addTriggerMaintain(EquipmentTriggerMaintainQuery maintainQuery) {
            pmsScheduleManager.addTriggerMaintain(maintainQuery);
        }

        @Override
        public void modifyTriggerMaintain(EquipmentTriggerMaintainQuery maintainQuery, List<PmsSchedule> list) {
            pmsScheduleManager.modifyTriggerMaintain(maintainQuery, list);
        }

        @Override
        public void deleteTriggerMaintain(EquipmentTriggerMaintainQuery maintainQuery) {
            pmsScheduleManager.deleteTriggerMaintain(maintainQuery);
        }

        @Override
        public List<EquipmentTriggerMaintain> queryTriggerCodeByEquipment(EquipmentTriggerMaintainQuery maintainQuery) {
            return pmsScheduleManager.queryTriggerCodeByEquipment(maintainQuery);
        }

        @Override
        public Page queryMaintainByPage(Page page, EquipmentTriggerMaintainQuery maintainQuery) {
            return pmsScheduleManager.queryMaintainByPage(page, maintainQuery);
        }

        @Override
        public Page queryMaintainHistoryByPage(Page page, EquipmentTriggerMaintainQuery maintainQuery) {
            return pmsScheduleManager.queryMaintainHistoryByPage(page, maintainQuery);
        }

        @Override
        public EquipmentTriggerMaintain getTriggerMaintain(EquipmentTriggerMaintainQuery maintainQuery) {
            return pmsScheduleManager.getTriggerMaintain(maintainQuery);
        }

        @Override
        public void batchUpdateTriggerMaintain(String equipmentId, List<PmsSchedule> maintainList, List<EquipmentTriggerMaintain> triggerMaintainList, String transId) {
            pmsScheduleManager.batchUpdateTriggerMaintain(equipmentId, maintainList, triggerMaintainList, transId);
        }

        @Override
        public void addTriggerMaintaiList(List<EquipmentTriggerMaintainQuery> maintainQuerys) {
            for (EquipmentTriggerMaintainQuery maintainQuery: maintainQuerys) {
                this.addTriggerMaintain(maintainQuery);
            }
        }

    }