瀏覽代碼

前培商品

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>