|
@@ -7,7 +7,8 @@
|
|
|
a.create_time as created_date,'guangfo' as last_modified_by,a.update_time as last_modified_date,
|
|
|
a.pgid,c.ref_dict_code as spid,c.ref_dict_name as spmc,d.ref_dict_code as xlid,d.ref_dict_name as xlmc,
|
|
|
(case when e.ref_dict_code > 99999 then 0 else e.ref_dict_code end) as xiid,IFNULL(e.ref_dict_name, '') as ximc,
|
|
|
- 0 as jxid,IFNULL(f.name,'') as jxmc,IFNULL(f.jxid,'') as jxno,a.buy_time as gmsj,a.create_time as czsj,
|
|
|
+ 0 as jxid,IFNULL(a.product_name, '') as jxmc,IFNULL(a.product_id, 0) as jxno,
|
|
|
+ a.buy_time as gmsj,a.create_time as czsj,
|
|
|
'' 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,
|
|
@@ -16,7 +17,6 @@
|
|
|
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
|
|
|
where a.id = #{request.id}
|
|
|
</select>
|
|
|
|
|
@@ -25,13 +25,12 @@
|
|
|
a.create_time as created_date,'guangfo' as last_modified_by,a.update_time as last_modified_date,
|
|
|
c.ref_dict_code as spid,c.ref_dict_name as spmc,d.ref_dict_code as xlid,d.ref_dict_name as xlmc,
|
|
|
(case when e.ref_dict_code > 99999 then 0 else e.ref_dict_code end) as xiid,IFNULL(e.ref_dict_name, '') as ximc,
|
|
|
- f.name as jxmc,f.jxid as jxno,a.create_time as czsj,a.price as jiage,
|
|
|
+ a.product_name as jxmc,a.product_name as jxno,a.create_time as czsj,a.price as jiage,
|
|
|
a.num as shul,IFNULL(a.unit, '套') as danw,a.out_num as wjsl,a.inside_num as njsl,a.material_number as wldm
|
|
|
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.product_id = a.product_id
|
|
|
where a.id = #{request.id}
|
|
|
</select>
|
|
|
|