src/main/resources/mapper/production/ProcessRouteMapper.xml
@@ -29,4 +29,24 @@ order by ps.id </select> <select id="latestTypeDate" resultType="com.ruoyi.production.pojo.ProcessRoute"> SELECT * FROM process_route pr WHERE pr.dict_code = (SELECT d.dict_code FROM sys_dict_data d WHERE d.dict_label = <choose> <when test="strength != null and strength != ''"> CONCAT(#{productName}, '-', #{strength}) </when> <otherwise> #{productName} </otherwise> </choose> AND d.dict_type = 'product_type' LIMIT 1) ORDER BY pr.create_time DESC LIMIT 1 </select> </mapper>