|
|
@ -7,6 +7,7 @@ |
|
|
|
sr.applicationName, |
|
|
|
DATE_FORMAT(sr.createTime, '%Y-%m-%d') as createTime, |
|
|
|
sr.reason, |
|
|
|
sr.orgName, |
|
|
|
if(length(sr.nodeState) > 0, sr.nodeState, '待提交') as nodeState, |
|
|
|
(select count(*) from scm_vehicle_return_details sd where sd.vehicleOutSid = sr.sid) as num |
|
|
|
from scm_vehicle_return sr |
|
|
|