|
@@ -911,6 +911,8 @@ END) as projectScale*/
|
|
|
|
|
|
,(case when a.submit_money = '1' then ifnull((case when a.paper_filing_status = '10' then 10 when a.paper_filing_status = '6' then '6' when a.paper_filing_status = '7' then '7' else ifnull(pfp.status,0) end),0) when a.submit_money = '2' then ifnull((case when a.paper_filing_status = '10' then 10 when a.paper_filing_status = '6' then '6' when a.paper_filing_status = '7' then '7' else ifnull(ppf.status,0) end),0) else '' end) as paperFilingStatus
|
|
|
,pfp.audit_pass_date as "filingBatchAuditPassDate"
|
|
|
+ ,pfp.box_num as "filingBoxNum"
|
|
|
+ ,ppf.file_num as "ppfFileNum"
|
|
|
/*,ifnull(ppf.status,0) as "paperFilingStatus"*/
|
|
|
,ppf.process_instance_id as "ppfProcessInstanceId"
|
|
|
,ppf.id as "ppfId"
|
|
@@ -932,9 +934,9 @@ END) as projectScale*/
|
|
|
left join case_base cb on a.id = cb.project_id
|
|
|
/*LEFT JOIN project_flingbatch_relation pfp on pfp.project_id=a.id*/
|
|
|
left join
|
|
|
- (select id,status,project_id,filing_batch,audit_pass_date from
|
|
|
+ (select id,status,project_id,filing_batch,audit_pass_date,box_num from
|
|
|
(
|
|
|
- select id,create_date,status,project_id,filing_batch,audit_pass_date
|
|
|
+ select id,create_date,status,project_id,filing_batch,audit_pass_date,box_num
|
|
|
from project_flingbatch_relation order by create_date desc
|
|
|
)z
|
|
|
group by z.project_id desc
|