LiangtongHe 2 месяцев назад
Родитель
Сommit
211cf31994

+ 1 - 0
zkqy-custom-business/src/main/resources/mapper/business/ProductCodeListMapper.xml

@@ -524,6 +524,7 @@
         and ml.del_flag = '0'
         and sp.status in ('4','6')
         <if test="machineTool != null">AND dps.mac_id = #{machineTool} AND FIND_IN_SET(#{machineTool}, sp.products_line_no_arry_id) > 0</if>
+        GROUP BY sp.id
     </select>