¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.mdc.dto.MdcEquDepDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquProDto; |
| | | import org.jeecg.modules.mdc.dto.MdcEquipmentDetailedDto; |
| | | 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.vo.MdcEquipmentDepVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentProVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEquipmentVo; |
| | | import org.jeecg.modules.mdc.vo.WorkshopEquipmentVo; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: 设å¤è¡¨ |
| | | * @Author: liuS |
| | | * @Date: 2023-03-22 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MdcEquipmentMapper extends BaseMapper<MdcEquipment> { |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤Ids,æ¥è¯¢è®¾å¤æå±é¨é¨åç§°ä¿¡æ¯ |
| | | */ |
| | | List<MdcEquipmentDepVo> getDepNamesByEquipmentIds(@Param("equipmentIds") List<String> equipmentIds); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤Ids,æ¥è¯¢è®¾å¤æå±äº§çº¿åç§°ä¿¡æ¯ |
| | | */ |
| | | List<MdcEquipmentProVo> getProNamesByEquipmentIds(@Param("equipmentIds") List<String> equipmentIds); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> pageListByDepId(Page<MdcEquipment> page, @Param("departId") String departId, @Param("equipmentId") String equipmentId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> pageListByProId(Page<MdcEquipment> page, @Param("productionId") String productionId, @Param("equipmentId") String equipmentId); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨idæ¥è¯¢è®¾å¤ |
| | | */ |
| | | List<MdcEquipment> queryByDepartId(@Param("departId") String departId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idæ¥è¯¢è®¾å¤ |
| | | */ |
| | | List<MdcEquipment> queryByProductionId(@Param("productionId") String productionId); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idãtypeãå·²åé
æéæ°æ® æ¥è¯¢è®¾å¤ |
| | | */ |
| | | List<MdcEquipment> queryByProductionIdAndType(@Param("productionId") String productionId, @Param("deviceIds") List<String> deviceIds); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨idsãå·²åé
æéæ°æ® æ¥è¯¢è®¾å¤ |
| | | */ |
| | | List<MdcEquipment> queryByDepartIdsAndType(@Param("productionIds") List<String> productionIds, @Param("deviceIds") List<String> deviceIds); |
| | | |
| | | /** |
| | | * æ¥æ¾è®¾å¤çæ§ä¿¡æ¯ |
| | | */ |
| | | List<MdcEquipmentMonitor> checkStatusFromEquipmentIds(@Param("equipmentIds") List<String> equipmentIds); |
| | | |
| | | /** |
| | | * æ ¹æ®äº§çº¿idæ¥è¯¢è®¾å¤idéå |
| | | */ |
| | | List<String> queryIdsByProductions(@Param("allProductionIds") List<String> allProductionIds); |
| | | |
| | | /** |
| | | * æ ¹æ®é¨é¨idæ¥è¯¢è®¾å¤idéå |
| | | */ |
| | | List<String> queryIdsByDeparts(@Param("allDepartIds") List<String> allDepartIds); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤ç¼å·æ¥è¯¢è®¾å¤ä¿¡æ¯åé¨é¨ä¿¡æ¯ |
| | | * |
| | | * @param equipmentIdList |
| | | * @return |
| | | */ |
| | | List<MdcEquDepDto> findEquDepList(@Param("equipmentIdList") List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * æ ¹æ®è®¾å¤ç¼å·æ¥è¯¢è®¾å¤ä¿¡æ¯åäº§çº¿ä¿¡æ¯ |
| | | * |
| | | * @param equipmentIdList |
| | | * @return |
| | | */ |
| | | List<MdcEquProDto> findEquProList(@Param("equipmentIdList") List<String> equipmentIdList); |
| | | |
| | | /** |
| | | * æ ¹æ®å¤§å±è½¦é´idæ¥è¯¢è®¾å¤å表 |
| | | */ |
| | | IPage<MdcEquipment> getEquipmentByWorkshopId(Page<MdcEquipment> page, @Param("workshopEquipmentVo") WorkshopEquipmentVo workshopEquipmentVo); |
| | | |
| | | /** |
| | | * å页å表 |
| | | */ |
| | | IPage<MdcEquipment> pageList(Page<MdcEquipment> page, @Param("mdcEquipment") MdcEquipmentVo mdcEquipment); |
| | | |
| | | @InterceptorIgnore(tenantLine = "1") |
| | | @Select("select TOP 1 CollectTime ${columns} from [${tableName}] order by CollectTime desc") |
| | | Map<String, Object> getWorkLineLast(Map<String, Object> param); |
| | | |
| | | /** |
| | | * 导åºlist |
| | | * @param mdcEquipment |
| | | * @return |
| | | */ |
| | | List<MdcEquipment> exportXlsList(@Param("mdcEquipment") MdcEquipmentVo mdcEquipment); |
| | | |
| | | /** |
| | | * æ¥è¯¢åè¡¨æ°æ® |
| | | * @param tableName |
| | | * @return |
| | | */ |
| | | @InterceptorIgnore(tenantLine = "1") |
| | | MdcEquipmentDto findWorkLineLast(@Param("tableName") String tableName); |
| | | |
| | | /** |
| | | * æ ¹æ®idè·å设å¤ä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | MdcEquipmentDetailedDto findById(@Param("id") String id); |
| | | |
| | | List<MdcEquipment> findByProductionIds(@Param("mdcProductionIds") List<String> mdcProductionIds); |
| | | |
| | | List<MdcEquipment> findByProIdsAndTeamCode(@Param("mdcProductionIds") List<String> mdcProductionIds, @Param("teamCodeList") List<String> teamCodeList); |
| | | |
| | | List<MdcEquipment> findByProIdsAndType(@Param("mdcProductionIds") List<String> mdcProductionIds, @Param("typeList") List<String> typeList); |
| | | |
| | | List<String> getEquIdsByProIds(@Param("proIds") List<String> proIds); |
| | | |
| | | List<MdcEquipment> getEquipmentList(@Param("allProductionIds") List<String> allProductionIds); |
| | | } |