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

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

@@ -34,7 +34,8 @@
                'guangfo' as created_by,a.create_time as created_date,'guangfo' as last_modified_by,
                a.update_time as last_modified_date,b.brand_wxjsguid as wxjsguid,
                a.old_part_no as jpjbh,a.old_part_name as jpjmc,1 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_name as xpjmc,a.new_part_price as xpjdj,a.new_part_count as xpjsl,
+               ifnull(a.new_part_count,0) * ifnull(a.new_part_price,0) as xpjje,
                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