feat(assets): refine inventory presentation and abnormal vehicle details
This commit is contained in:
@@ -39,6 +39,7 @@ export const MAIN_SQL = `SELECT
|
||||
CAST(vi.id AS CHAR) AS id,
|
||||
CAST(am.id AS CHAR) AS abnormal_move_id,
|
||||
am.move_type AS abnormal_move_type,
|
||||
NULLIF(TRIM(am_applicant.nick_name), '') AS abnormal_move_applicant,
|
||||
CAST(pdv.id AS CHAR) AS pending_delivery_id,
|
||||
pdts.contract_code AS pending_contract_no,
|
||||
pdts.customer_name AS pending_customer_name,
|
||||
@@ -147,6 +148,7 @@ LEFT JOIN vehicle_abnormal_move_record amr ON amr.id = (
|
||||
LIMIT 1
|
||||
)
|
||||
LEFT JOIN vehicle_abnormal_move am ON am.id = amr.move_id
|
||||
LEFT JOIN \`ry-cloud\`.sys_user am_applicant ON am_applicant.user_id = am.create_by
|
||||
${LATEST_VEHICLE_LEASE_JOIN_SQL}
|
||||
WHERE vi.del_flag = '0'
|
||||
AND COALESCE(vs.operation_status, '') <> '5'`;
|
||||
|
||||
Reference in New Issue
Block a user