gongchunyi
11 小时以前 0b4c9f2a37a825a84725cb66ecf04060831ac5d0
src/main/resources/mapper/production/ProductBomMapper.xml
@@ -44,4 +44,20 @@
        where pb.id = #{id}
    </select>
    <select id="selectStrengthById" resultType="java.lang.String" parameterType="java.lang.Long">
        select sdd.dict_label
        from product_bom pb
        left join sys_dict_data sdd on pb.dict_code = sdd.dict_code
        <where>
            <choose>
                <when test="bomId != null">
                    pb.id = #{bomId}
                </when>
                <otherwise>
                    1 = 0
                </otherwise>
            </choose>
        </where>
    </select>
</mapper>