yangys
2024-04-18 b3cbbc1b1bf540359ac22f8733f6c322d845b38f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.qianwen.smartman.modules.cps.mapper.CraftRoutingMapper">
 
    <select id="listCraftRouting" resultType="com.qianwen.smartman.modules.cps.vo.CraftRoutingVO">
        select bcr.id          as id,
               bcr.name        as name,
               bcr.description as description,
               bcr.status      as status,
               bcr.product_id  as productId,
               bp.code         as productCode,
               bp.name         as productName
        from blade_craft_routing bcr
                 left join blade_product bp on bcr.product_id = bp.id and bp.is_deleted = 0
        where bcr.is_deleted = 0
        <if test="ew != null">
            and ${ew.sqlSegment}
        </if>
    </select>
</mapper>