Lius
2024-07-31 0bd71968ff07a70c421a0f41a642742fedf125bd
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/MdcProductionMapper.java
@@ -1,9 +1,9 @@
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 org.springframework.data.repository.query.Param;
import java.util.List;
@@ -21,4 +21,28 @@
     */
    @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和车间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);
    MdcProduction findProductionList(@Param("equipmentId") String equipmentId);
}