|
@@ -9,7 +9,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|
|
@@ -44,7 +44,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|
|
@@ -80,7 +80,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|
|
@@ -115,7 +115,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|
|
@@ -150,7 +150,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|
|
@@ -185,7 +185,7 @@
|
|
|
e.ref_dict_code as xiid,IFNULL(e.ref_dict_name, '') as ximc,a.inside_number as jxmc,a.out_number as jxno,
|
|
|
IFNULL(substr(a.inside_code, 1, 13), '') as njtm,'' as njtm2,
|
|
|
case when a.out_code is null then ''
|
|
|
- when length(a.out_code)>13 then left(a.out_code,13) end as wjtm,
|
|
|
+ when length(a.out_code)>13 then left(a.out_code,13) else a.out_code end as wjtm,
|
|
|
'' as beiz,'' as installambient,
|
|
|
case a.type when 'inside' then '更换内机'
|
|
|
when 'out' then '更换外机'
|