堃博OA对接宁波银行
This commit is contained in:
parent
0f93bce5ba
commit
3dae883102
|
@ -26,11 +26,14 @@
|
||||||
field0070 AS bill_date,
|
field0070 AS bill_date,
|
||||||
field0057 AS primal_money,
|
field0057 AS primal_money,
|
||||||
field0019 AS pk_oppaccount,
|
field0019 AS pk_oppaccount,
|
||||||
field0083 AS pk_supplier,
|
case
|
||||||
|
when field0065 = '-3106276434709167837' then 'GGKH'
|
||||||
|
when field0065 = '-4979667232919961351' then field0083
|
||||||
|
end AS pk_supplier,
|
||||||
field0089 AS pk_org,
|
field0089 AS pk_org,
|
||||||
field0091 AS pk_balatype,
|
field0091 AS pk_balatype,
|
||||||
field0090 AS pk_recproject_code,
|
field0090 AS pk_recproject_code,
|
||||||
field0082 AS memo,
|
field0092 AS memo,
|
||||||
'formson_0222' as table_name,
|
'formson_0222' as table_name,
|
||||||
'field0084' as field_name,
|
'field0084' as field_name,
|
||||||
field0084 as send_state
|
field0084 as send_state
|
||||||
|
@ -44,11 +47,14 @@
|
||||||
field0073 AS bill_date,
|
field0073 AS bill_date,
|
||||||
field0031 AS primal_money,
|
field0031 AS primal_money,
|
||||||
field0042 AS pk_oppaccount,
|
field0042 AS pk_oppaccount,
|
||||||
field0077 AS pk_supplier,
|
case
|
||||||
|
when field0070 = '-3106276434709167837' then 'GGKH'
|
||||||
|
when field0070 = '-4979667232919961351' then field0077
|
||||||
|
end AS pk_supplier,
|
||||||
field0082 AS pk_org,
|
field0082 AS pk_org,
|
||||||
field0084 AS pk_balatype,
|
field0084 AS pk_balatype,
|
||||||
field0083 AS pk_recproject,
|
field0083 AS pk_recproject,
|
||||||
field0076 AS memo,
|
field0086 AS memo,
|
||||||
'formson_0210' as table_name,
|
'formson_0210' as table_name,
|
||||||
'field0078' as field_name,
|
'field0078' as field_name,
|
||||||
field0078 as send_state
|
field0078 as send_state
|
||||||
|
@ -62,11 +68,14 @@
|
||||||
field0053 AS bill_date,
|
field0053 AS bill_date,
|
||||||
field0041 AS primal_money,
|
field0041 AS primal_money,
|
||||||
field0024 AS pk_oppaccount,
|
field0024 AS pk_oppaccount,
|
||||||
field0057 AS pk_supplier,
|
case
|
||||||
|
when field0048 = '-3106276434709167837' then 'GGKH'
|
||||||
|
when field0048 = '-4979667232919961351' then field0057
|
||||||
|
end AS pk_supplier,
|
||||||
field0061 AS pk_org,
|
field0061 AS pk_org,
|
||||||
field0063 AS pk_balatype,
|
field0063 AS pk_balatype,
|
||||||
field0062 AS pk_recproject,
|
field0062 AS pk_recproject,
|
||||||
field0056 AS memo,
|
field0064 AS memo,
|
||||||
'formson_0223' as table_name,
|
'formson_0223' as table_name,
|
||||||
'field0058' as field_name,
|
'field0058' as field_name,
|
||||||
field0058 as send_state
|
field0058 as send_state
|
||||||
|
@ -84,7 +93,7 @@
|
||||||
field0048 AS pk_org,
|
field0048 AS pk_org,
|
||||||
field0060 AS pk_balatype,
|
field0060 AS pk_balatype,
|
||||||
'' AS pk_recproject,
|
'' AS pk_recproject,
|
||||||
field0047 AS memo,
|
field0061 AS memo,
|
||||||
'formmain_0224' as table_name,
|
'formmain_0224' as table_name,
|
||||||
'field0055' as field_name,
|
'field0055' as field_name,
|
||||||
field0055 as send_state
|
field0055 as send_state
|
||||||
|
@ -92,7 +101,7 @@
|
||||||
LEFT JOIN formson_0225 body ON main.id = body.formmain_id
|
LEFT JOIN formson_0225 body ON main.id = body.formmain_id
|
||||||
WHERE field0058 IS NOT NULL and finishedflag = '1'
|
WHERE field0058 IS NOT NULL and finishedflag = '1'
|
||||||
group by main.id,field0002,field0058,field0051,field0048
|
group by main.id,field0002,field0058,field0051,field0048
|
||||||
,field0060,field0055,field0047
|
,field0060,field0055,field0047,field0061
|
||||||
)m1 left join formmain_0236 on m1.pk_recproject_code = formmain_0236.field0002
|
)m1 left join formmain_0236 on m1.pk_recproject_code = formmain_0236.field0002
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||||
|
|
Loading…
Reference in New Issue