he2802 před 3 roky
rodič
revize
6e121a6d1c

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/exam/ExamBeforeMapper.xml

@@ -82,12 +82,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             g.CODE,
             g.stand_price
         FROM
-            goods g
-                LEFT JOIN exam_before_goods ebg ON g.goods_id = ebg.goods_id
+            exam_before_apply eba LEFT JOIN exam_apply_goods eag on eba.apply_id = eag.apply_id
+            LEFT JOIN goods g ON g.goods_id = eag.goods_id
         WHERE
             1 = 1
           AND g.STATUS IN ( 1 )
-          AND ebg.before_id =#{beforeId}
+          AND eba.before_id =#{beforeId} GROUP BY g.goods_id
 
     </select>