소스 검색

前培商品

he2802 3 년 전
부모
커밋
6e121a6d1c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      zhongzheng-system/src/main/resources/mapper/modules/exam/ExamBeforeMapper.xml

+ 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>