|
@@ -33,8 +33,8 @@
|
|
|
select a.out_id as fa_order_repair_part_info_id,b.wxjsmxguid as wxjsmxguid,
|
|
|
'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.old_part_no as jpjbh,a.old_part_name as jpjmc,1 as jpjsl,0 as jpjdj,0 as jpjje,ifnull(a.new_part_no,'') as xpjbh,
|
|
|
+ ifnull(a.new_part_name,'') as xpjmc,ifnull(a.new_part_price,0) as xpjdj,ifnull(a.new_part_count,0) 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
|