新火炬后端单体项目初始化代码
Lius
7 天以前 904727f59b7e10a291ce7d1576e33192a619f2f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.jeecg.modules.base.mapper;
 
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;
 
/**
 * @Description: 工厂/车间/产线
 * @Author: jeecg-boot
 * @Date:   2025-06-24
 * @Version: V1.0
 */
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);
}