yaozhixue 1 year ago
parent
commit
0be31d29c3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/GetOrderProductMapper.xml

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

@@ -11,13 +11,13 @@
                '' as gzwz,a.fault_reason as gzxx, a.create_by as czren,a.sale_websit as xsdw,
                a.sale_websit_mobile as xsdwdh,a.service_websit_mobile as fwdwdh,
                a.remark as beiz,'' as qqlyxh,'' as pinpai,a.price as fee,0 as xxfee,
-               '' as hsqk,i.bug_obj_code as gzxxid,a.num as shul,0 as wxcount,0 as yblength
+               '' as hsqk,i.gzid as gzxxid,a.num as shul,0 as wxcount,0 as yblength
         from order_product a
                  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.jxid = a.product_id
-                 left join repair_bug i on i.bug_id=a.fault_reason
+                 left join repair_bug i on i.main_id=a.main_id and i.bug_obj=a.fault_reason
         where a.id = #{request.id}
     </select>