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>