Lius
2024-02-01 848e5624f3a814763e81db5d79d8f0761c5bb4f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.jeecg.modules.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.system.entity.MdcProduction;
import org.springframework.data.repository.query.Param;
 
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);
}