¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mdc.dto.MdcEquDepDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquProDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquipmentDto; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipment; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipmentMonitor; |
| | | import org.jeecg.modules.mdc.model.MdcEquipmentTree; |
| | | import org.jeecg.modules.mdc.vo.MdcEfficiencyReportQueryVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEfficiencyReportShiftQueryVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentVo; |
| | | import org.jeecg.modules.mdc.vo.WorkshopEquipmentVo; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: 设å¤è¡¨ |
| | | * @Author: liuS |
| | | * @Date: 2023-03-22 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMdcEquipmentService extends IService<MdcEquipment> { |
| | | |
| | | /** |
| | | * æ ¹æ® equipmentIdsæ¥è¯¢ï¼æ¥è¯¢è®¾å¤æå±é¨é¨çåç§°ï¼å¤ä¸ªé¨é¨åéå·éå¼ï¼ |
| | | */ |
| | | Map<String, String> getDepNamesByEquipmentIds(List<String> equipmentIds); |
| | | |
| | | /** |
| | | * æ ¹æ® equipmentIdsæ¥è¯¢ï¼æ¥è¯¢è®¾å¤æå±äº§çº¿çåç§°ï¼å¤ä¸ªäº§çº¿åéå·éå¼ï¼ |
| | | */ |
| | | Map<String, String> getProNamesByEquipmentIds(List<String> equipmentIds); |
| | | |
| | | /** |
| | | * ä¿åè®¾å¤ |
| | | * |
| | | * @param mdcEquipment è®¾å¤ |
| | | * @param selectedDeparts éæ©çé¨é¨idï¼å¤ä¸ªä»¥éå·éå¼ |
| | | * @param selectedProduction éæ©ç产线idï¼å¤ä¸ªä»¥éå·éå¼ |
| | | */ |
| | | void saveMdcEquipment(MdcEquipment mdcEquipment, String selectedDeparts, String selectedProduction); |
| | | |
| | | /** |
| | | * ä¿®æ¹è®¾å¤ |
| | | * |
| | | * @param mdcEquipment è®¾å¤ |
| | | */ |
| | | void editMdcEquipment(MdcEquipment mdcEquipment); |
| | | |
| | | /** |
| | | * å é¤è®¾å¤ |
| | | * |
| | | * @param id 设å¤id |
| | | * @return |
| | | */ |
| | | boolean deleteById(String id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è®¾å¤ |
| | | * |
| | | * @param equipmentIds 设å¤idéå |
| | | * @return |
| | | */ |
| | | boolean deleteByIds(List<String> equipmentIds); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> pageListByDepId(Page<MdcEquipment> page, String departId, String equipmentId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> pageListByProId(Page<MdcEquipment> page, String productionId, String equipmentId); |
| | | |
| | | /** |
| | | * ç§»é¤è®¾å¤åé¨é¨å
³ç³» |
| | | */ |
| | | void removeEquipmentForDepart(String departId, String equipmentId); |
| | | |
| | | /** |
| | | * æ¹éç§»é¤é¨é¨å设å¤å
³ç³» |
| | | */ |
| | | void removeEquipmentsForDepart(String departId, List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * ç§»é¤è®¾å¤å产线å
³ç³» |
| | | */ |
| | | void removeEquipmentForProduction(String productionId, String equipmentId); |
| | | |
| | | /** |
| | | * æ¹éç§»é¤äº§çº¿å设å¤å
³ç³» |
| | | */ |
| | | void removeEquipmentsForProduction(String productionId, List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * å è½½é¨é¨è®¾å¤æ |
| | | */ |
| | | List<MdcEquipmentTree> loadTreeListByDepart(String userId); |
| | | |
| | | /** |
| | | * å è½½äº§çº¿è®¾å¤æ |
| | | */ |
| | | List<MdcEquipmentTree> loadTreeListByProduction(String userId); |
| | | |
| | | /** |
| | | * 设å¤çæ§å表 |
| | | */ |
| | | List<MdcEquipmentMonitor> queryEquipmentMonitorList(String userId, String key); |
| | | |
| | | /** |
| | | * 设å¤çæ§ - 设å¤è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | Map<String, Object> mdcEquipmentDetailedInfo(String id); |
| | | |
| | | /** |
| | | * éè¿ç¨æ·é¨é¨å
³ç³»è·å设å¤idéå |
| | | */ |
| | | List<String> getEquipmentIdsByDepart(String userId, String key); |
| | | |
| | | /** |
| | | * éè¿ç¨æ·äº§çº¿å
³ç³»è·å设å¤idéå |
| | | */ |
| | | List<String> getEquipmentIdsProduction(String userId, String key); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤idæ¥è¯¢è®¾å¤åç§° |
| | | * |
| | | * @param equipmentId |
| | | * @return |
| | | */ |
| | | MdcEquipment findEquipmentNameByEquipmentId(String equipmentId); |
| | | |
| | | /** |
| | | * éæ©è®¾å¤å页å表 |
| | | */ |
| | | IPage<MdcEquipment> findEquipmentList(Page<MdcEquipment> page, String userId, MdcEquipmentVo mdcEquipment); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿å±çº§æ¥è¯¢è®¾å¤å个 |
| | | */ |
| | | MdcEquipment getEquipmentByPid(String pid, String userId); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤ç¼å·æ¥è¯¢è®¾å¤ä¿¡æ¯åé¨é¨ä¿¡æ¯ |
| | | * |
| | | * @param equipmentIdList |
| | | * @return |
| | | */ |
| | | List<MdcEquDepDto> findEquDepList(List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤ç¼å·æ¥è¯¢è®¾å¤ä¿¡æ¯åäº§çº¿ä¿¡æ¯ |
| | | * |
| | | * @param equipmentIdList |
| | | * @return |
| | | */ |
| | | List<MdcEquProDto> findEquProList(List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨å±çº§æ¥è¯¢è®¾å¤å个 |
| | | */ |
| | | MdcEquipment getEquipmentByDepPid(String pid, String userId); |
| | | |
| | | /** |
| | | * æ ¹æ®å¤§å±è½¦é´idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> getEquipmentByWorkshopId(Page<MdcEquipment> page, WorkshopEquipmentVo workshopEquipmentVo); |
| | | |
| | | List<String> listEquipmentId(MdcEfficiencyReportQueryVo vo); |
| | | |
| | | /** |
| | | * å表æ¥è¯¢ |
| | | */ |
| | | IPage<MdcEquipment> pageList(Page<MdcEquipment> page, MdcEquipmentVo mdcEquipment, HttpServletRequest req); |
| | | |
| | | /** |
| | | * çæ§è®¾å¤è¿è¡åæ°ä»»å¡ |
| | | */ |
| | | void monitoringSpeedProcess(); |
| | | |
| | | /** |
| | | * 导åºList |
| | | * |
| | | * @param mdcEquipment |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> exportXlsList(MdcEquipmentVo mdcEquipment); |
| | | |
| | | /** |
| | | * éè¿è½¦é´idsè·åè®¾å¤æ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | List<MdcEquipmentTree> loadTreeListByProductionIds(String ids); |
| | | |
| | | /** |
| | | * æ¥è¯¢åè¡¨æ°æ® |
| | | * |
| | | * @param tableName |
| | | * @return |
| | | */ |
| | | MdcEquipmentDto getWorkLineLast(String tableName); |
| | | |
| | | List<String> listEquipmentIdShift(MdcEfficiencyReportShiftQueryVo vo); |
| | | |
| | | /** |
| | | * ä»è®¾å¤å°è´¦æå
¥MDCè®¾å¤ |
| | | * @param mdcEquipment |
| | | * @param productionId |
| | | */ |
| | | void addNewEquipmentFromEam(MdcEquipment mdcEquipment, String productionId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idéåæ¥è¯¢è®¾å¤å表 |
| | | * @param mdcProductionIds |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> findByProductionIds(List<String> mdcProductionIds); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idéååé
éå°ç»æ¥è¯¢è®¾å¤å表 |
| | | * @param allProductionIds |
| | | * @param teamCodelist |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> findByProIdsAndTeamCode(List<String> allProductionIds, List<String> teamCodelist); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idéåå设å¤ç±»åæ¥è¯¢è®¾å¤å表 |
| | | * @param allProductionIds |
| | | * @param typeList |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> findByProIdsAndType(List<String> allProductionIds, List<String> typeList); |
| | | |
| | | List<String> getEquIdsByProIds(List<String> proIds); |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·æ¥è¯¢è®¾å¤åè¡¨ä¿¡æ¯ |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> getEquipmentList(); |
| | | } |