¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | import org.jeecg.modules.system.model.MdcProductionTreeModel; |
| | | import org.jeecg.modules.system.model.ProductionIdModel; |
| | | import org.jeecg.modules.system.vo.MdcProOptionsVo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: 产线表 |
| | | * @Author: liuS |
| | | * @Date: 2023-03-23 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMdcProductionService extends IService<MdcProduction> { |
| | | |
| | | /** |
| | | * æ¥è¯¢ææäº§çº¿ä¿¡æ¯ï¼å¹¶åèç¹è¿è¡æ¾ç¤º |
| | | */ |
| | | List<MdcProductionTreeModel> queryTreeList(); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææäº§çº¿ä¿¡æ¯ï¼å¹¶åèç¹è¿è¡æ¾ç¤º(æ·»å ç³»ç»é
ç½®) |
| | | */ |
| | | List<MdcProductionTreeModel> queryTreeListByConfig(); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææäº§çº¿ä¿¡æ¯ï¼å¹¶åèç¹è¿è¡æ¾ç¤º |
| | | */ |
| | | List<MdcProductionTreeModel> queryTreeList(String ids); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææé¨é¨DepartIdä¿¡æ¯,å¹¶åèç¹è¿è¡æ¾ç¤º |
| | | */ |
| | | List<ProductionIdModel> queryProductionIdTreeList(); |
| | | |
| | | /** |
| | | * æ ¹æ®å
³é®åæç´¢ç¸å
³çäº§çº¿æ°æ® |
| | | */ |
| | | List<MdcProductionTreeModel> searchByKeyWord(String keyWord); |
| | | |
| | | /** |
| | | * ä¿åäº§çº¿æ°æ® |
| | | */ |
| | | void saveProductionData(MdcProduction mdcProduction); |
| | | |
| | | /** |
| | | * æ´æ°äº§çº¿æ°æ® |
| | | */ |
| | | boolean updateProductionDataById(MdcProduction mdcProduction); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idå é¤å¹¶å é¤å
¶å¯è½åå¨çå级产线 |
| | | */ |
| | | boolean delete(String id); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idæ¹éå é¤å¹¶å é¤å
¶å¯è½åå¨çå级产线 |
| | | */ |
| | | void deleteBatchWithChildren(List<String> ids); |
| | | |
| | | /** |
| | | * è·åä¸çº§äº§çº¿ |
| | | */ |
| | | List<MdcProduction> queryProdByPid(String pid); |
| | | |
| | | /** |
| | | * é彿¥è¯¢ææåèç¹ |
| | | */ |
| | | List<MdcProduction> recursionChildrenByPid(String pid); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idè·åäº§çº¿ä¸ææ é项 |
| | | */ |
| | | List<ProductionIdModel> loadProductionTreeOptions(String userId); |
| | | |
| | | /** |
| | | * é彿¥è¯¢ææåèç¹ |
| | | */ |
| | | List<String> recursionChildren(String productionId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idå车é´idè·åç¨æ·æ¥æç车é´id |
| | | * |
| | | * @param userId |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | String findFirstProduction(String userId, String productionId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idæ¥è¯¢ç¨æ·å·¥æ®µæé |
| | | */ |
| | | String findThreeProductionId(String userId); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææç¶èç¹åæ¬èç¹åç§° |
| | | * @param id |
| | | * @return |
| | | */ |
| | | List<String> findListParentTreeAll(String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææç¶èç¹åç§° |
| | | * @param parentId |
| | | * @param stringList |
| | | * @return |
| | | */ |
| | | List<String> findListParentTree(String parentId,List<String> stringList); |
| | | |
| | | /** |
| | | * è·åç¨æ·æå¨çé¨é¨ |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | Map<String, MdcProduction> getUserAssignedDepart(String userId); |
| | | |
| | | /** |
| | | * éè¿ä¸ç»idè·åé¨é¨ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | List<String> findAllProductionIds(List<String> ids); |
| | | |
| | | /** |
| | | * è·åæä¸ªèç¹ææä¸çº§èç¹çid |
| | | * @param parentId ç¶èç¹ id |
| | | * @param idList æ¥æ¶ç»æé |
| | | * @return |
| | | */ |
| | | List<String> findParentIdsForProduction(String parentId, List<String> idList); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææäº§çº¿ä¿¡æ¯ï¼å¹¶åèç¹è¿è¡æ¾ç¤º |
| | | */ |
| | | List<MdcProductionTreeModel> queryTreeListByMdc(String ids); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææäº§çº¿ä¿¡æ¯ï¼å¹¶åèç¹è¿è¡æ¾ç¤º |
| | | */ |
| | | List<MdcProductionTreeModel> queryTreeListByMdc(); |
| | | |
| | | /** |
| | | * æ¥è¯¢åèç¹ |
| | | * @param mdcProductionIds |
| | | * @return |
| | | */ |
| | | List<String> findChildren(List<String> mdcProductionIds); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idè·å产线(ä¸å¿)æçç»ä¸æé项 |
| | | * @param userId |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | List<MdcProOptionsVo> loadProductionOptions(String userId, String productionId); |
| | | |
| | | List<MdcProduction> findMdcPros(String userId, String productionId); |
| | | |
| | | /** |
| | | * |
| | | * @param userId |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | List<MdcProOptionsVo> loadTeamOptions(String userId, String productionId); |
| | | |
| | | /** |
| | | * |
| | | * @param userId |
| | | * @param allProductionIds |
| | | * @return |
| | | */ |
| | | List<String> findProIdsByUId(String userId, List<String> allProductionIds); |
| | | |
| | | /** |
| | | * |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | List<String> findChildByProId(String productionId); |
| | | |
| | | |
| | | String findProName(String equipmentId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿orgCodeæ¥è¯¢äº§çº¿ |
| | | * @param orgCode |
| | | * @return |
| | | */ |
| | | MdcProduction findByOrgCode(String orgCode); |
| | | } |