фикс
This commit is contained in:
parent
dcc22bee16
commit
ff4b6c1ecc
2 changed files with 10 additions and 11 deletions
|
|
@ -322,6 +322,7 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
|
|||
</partitioning>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit/>
|
||||
<sql>WITH
|
||||
base AS (
|
||||
SELECT
|
||||
|
|
@ -402,12 +403,12 @@ VALUES (DEFAULT, '${JOB_NAME}', 'PROCESSING', DEFAULT, null, '${IDM_ID}');
|
|||
SELECT
|
||||
*,
|
||||
CASE
|
||||
WHEN tractor_driver = false AND status = '1' THEN 1
|
||||
ELSE 0
|
||||
WHEN tractor_driver = false AND status = '1' THEN true
|
||||
ELSE false
|
||||
END AS is_has_driver_license,
|
||||
CASE
|
||||
WHEN tractor_driver = true AND status = '1' THEN 1
|
||||
ELSE 0
|
||||
WHEN tractor_driver = true AND status = '1' THEN true
|
||||
ELSE false
|
||||
END AS is_has_tractor_license
|
||||
FROM all_data
|
||||
ORDER BY recruit_id </sql>
|
||||
|
|
|
|||
|
|
@ -281,13 +281,11 @@
|
|||
<aggregate>has_driver_license</aggregate>
|
||||
<subject>is_has_driver_license</subject>
|
||||
<type>MAX</type>
|
||||
<valuefield/>
|
||||
</field>
|
||||
<field>
|
||||
<aggregate>has_tractor_license</aggregate>
|
||||
<subject>is_has_tractor_license</subject>
|
||||
<type>MAX</type>
|
||||
<valuefield/>
|
||||
</field>
|
||||
</fields>
|
||||
<give_back_row>N</give_back_row>
|
||||
|
|
@ -297,7 +295,6 @@
|
|||
</field>
|
||||
</group>
|
||||
<ignore_aggregate>N</ignore_aggregate>
|
||||
<linenr_fieldname/>
|
||||
<prefix>grp</prefix>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
|
|
@ -432,6 +429,7 @@ DO UPDATE SET
|
|||
</partitioning>
|
||||
<connection>ervu-dashboard</connection>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<limit/>
|
||||
<sql>WITH
|
||||
base AS (
|
||||
SELECT
|
||||
|
|
@ -512,12 +510,12 @@ DO UPDATE SET
|
|||
SELECT
|
||||
*,
|
||||
CASE
|
||||
WHEN tractor_driver = false AND status = '1' THEN 1
|
||||
ELSE 0
|
||||
WHEN tractor_driver = false AND status = '1' THEN true
|
||||
ELSE false
|
||||
END AS is_has_driver_license,
|
||||
CASE
|
||||
WHEN tractor_driver = true AND status = '1' THEN 1
|
||||
ELSE 0
|
||||
WHEN tractor_driver = true AND status = '1' THEN true
|
||||
ELSE false
|
||||
END AS is_has_tractor_license
|
||||
FROM all_data
|
||||
ORDER BY recruit_id </sql>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue