yaozhixue 1 年之前
父节点
当前提交
780f565862
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/resources/mapper/ReasonOrderRepairDetailMapper.xml

+ 2 - 1
src/main/resources/mapper/ReasonOrderRepairDetailMapper.xml

@@ -35,7 +35,8 @@
                a.update_time as last_modified_date,b.brand_wxjsguid as wxjsguid,
                a.old_part_no as jpjbh,a.old_part_name as jpjmc,0 as jpjsl,0 as jpjdj,0 as jpjje,a.new_part_no as xpjbh,
                a.new_part_name as xpjmc,a.new_part_price as xpjdj,a.new_part_count as xpjsl,a.new_part_count*a.new_part_price as xpjje,
-               a.new_part_no as pjtm,'' as jgrtm,'' as xgrtm,a.repair_item_id as pjwxxmh,'' as jpjwxxmhmc
+               a.new_part_no as pjtm,'' as jgrtm,'' as xgrtm,
+               ifnull(a.repair_item_id,'') as jpjwxxmh,a.repair_item_name as jpjwxxmhmc
         from order_repair_detail_reason a
                  left join order_repair_detail b on b.id=a.order_repair_detail_id
         where a.id = #{request.id}