yaozhixue 1 年之前
父節點
當前提交
4aec181667
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/GetOrderProductMapper.xml

+ 2 - 2
src/main/resources/mapper/GetOrderProductMapper.xml

@@ -17,7 +17,7 @@
                  left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE'
                  left join sys_dict_ref d on d.dict_code=a.small_id and d.brand_id = #{request.brandId} and d.dict_type='SMALL_TYPE'
                  left join sys_dict_ref e on e.dict_code=a.series_id and e.brand_id = #{request.brandId} and e.dict_type='SERIES'
-            left join product f on f.product_id=a.product_id and e.product_brand_id = #{request.brandId}
+            left join product f on f.product_id=a.product_id and f.product_brand_id = #{request.brandId}
         where a.id = #{request.id}
     </select>
 
@@ -33,7 +33,7 @@
                  left join sys_dict_ref c on c.dict_code=a.main_id and c.brand_id = #{request.brandId} and c.dict_type='MAIN_TYPE'
                  left join sys_dict_ref d on d.dict_code=a.small_id and d.brand_id = #{request.brandId} and d.dict_type='SMALL_TYPE'
             left join sys_dict_ref e on e.dict_code=a.series_id and e.brand_id = #{request.brandId} and e.dict_type='SERIES'
-            left join product f on f.product_id=a.product_id and e.product_brand_id = #{request.brandId}
+            left join product f on f.product_id=a.product_id and f.product_brand_id = #{request.brandId}
         where a.id = #{request.id}
     </select>