¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.system.entity.MdcProduction; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * @Description: 产线表 |
| | | * @Author: liuS |
| | | * @Date: 2023-03-23 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MdcProductionMapper extends BaseMapper<MdcProduction> { |
| | | |
| | | /** |
| | | * æ ¹æ®idä¸çº§äº§çº¿ |
| | | */ |
| | | @Select("SELECT * FROM mdc_production where del_flag ='0' AND parent_id = #{parentId,jdbcType=VARCHAR}") |
| | | List<MdcProduction> queryProdByPid(@Param("parentId") String parentId); |
| | | |
| | | /** |
| | | * é彿¥è¯¢ææåèç¹ |
| | | */ |
| | | List<String> recursionChildren(@Param("productionId") String productionId); |
| | | |
| | | /** |
| | | * ä¸ç»idé彿æåèç¹ |
| | | */ |
| | | List<String> recursionChildrenByList(@Param("productionIds") List<String> productionIds); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idå车é´idè·åç¨æ·æ¥æç车é´id |
| | | * @param userId |
| | | * @param productionId |
| | | * @return |
| | | */ |
| | | String findFirstProduction(@Param("userId") String userId, @Param("productionId") String productionId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idæ¥è¯¢ç¨æ·å·¥æ®µæé |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | String findThreeProductionId(@Param("userId") String userId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç¨æ·idæ¥è¯¢ç¨æ·å
¨é¨è½¦é´æé |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<MdcProduction> findAllProductionId(@Param("userId") String userId); |
| | | |
| | | List<String> findChildren(@Param("mdcProductionIds") List<String> mdcProductionIds); |
| | | |
| | | List<MdcProduction> loadProductionOptions(@Param("userId") String userId, @Param("productionId") String productionId); |
| | | |
| | | List<String> findTeamValue(@Param("userId") String userId, @Param("productionList") List<String> productionList); |
| | | |
| | | List<String> findProIdsByUId(@Param("userId") String userId, @Param("allProductionIds") List<String> allProductionIds); |
| | | |
| | | List<String> findChildByProId(@Param("productionId") String productionId); |
| | | |
| | | String findProName(@Param("equipmentId") String equipmentId); |
| | | } |