src/main/java/org/jeecg/modules/base/mapper/FactoryMapper.java
@@ -3,6 +3,7 @@ import java.util.List; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.jeecg.modules.base.entity.Factory; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -14,4 +15,9 @@ */ public interface FactoryMapper extends BaseMapper<Factory> { /** * 根据id下级产线 */ @Select("SELECT * FROM base_factory where del_flag ='0' AND parent_id = #{parentId,jdbcType=VARCHAR}") List<Factory> queryFacByPid(@Param("parentId") String parentId); }