|
@@ -12,6 +12,7 @@
|
|
|
CASE report.production_type WHEN 'LETTER' THEN '意见函' WHEN 'CONSULT' THEN '咨询报告' WHEN 'REPORT' THEN '评估报告' ELSE '-' END AS productionType,
|
|
|
report.valuation_basis_date AS valuationBasisDate,
|
|
|
report.create_production_date AS createReportDate,
|
|
|
+ report.print_count AS reportPrintCount,
|
|
|
COALESCE(report.assets_name, statement.assets_name, assets.name) AS projectName,
|
|
|
IF(nodeInfo.state = 'CLOSED','项目终止',IF(nodeInfo.name IS NULL,IF(statement.production_no IS NULL, '撰写意见书', '撰写报告'),nodeInfo.name)) AS currentNodeName,
|
|
|
assets.security AS security,
|
|
@@ -28,8 +29,11 @@
|
|
|
GROUP_CONCAT(target.id SEPARATOR '; ') AS targetId,
|
|
|
GROUP_CONCAT(target.purpose_name SEPARATOR '; ') AS purposeName,
|
|
|
GROUP_CONCAT(target.type_name SEPARATOR '; ') AS valueTypeName,
|
|
|
- GROUP_CONCAT(target.targetTypename SEPARATOR '; ') AS targetTypename,
|
|
|
- GROUP_CONCAT(target.secTargetTypaName SEPARATOR '; ') AS secTargetTypaName,
|
|
|
+ GROUP_CONCAT(
|
|
|
+ IF(target.evaluation_type_defined_sec IS NOT NULL, CONCAT(target.targetTypeName, '-', target.secTargetTypaName,
|
|
|
+ '-', target.evaluation_type_defined_sec), CONCAT(target.targetTypeName, '-', target.secTargetTypaName))
|
|
|
+ SEPARATOR '; '
|
|
|
+ ) AS targetTypeName,
|
|
|
GROUP_CONCAT(target.evaluation_method_id SEPARATOR ', ') AS evaluationMethods,
|
|
|
GROUP_CONCAT(target.defined_evaluation_method SEPARATOR '; ') AS definedEvaluationMethod,
|
|
|
GROUP_CONCAT(target.choice_evaluation_method_id SEPARATOR ', ') AS choiceEvaluationMethods,
|
|
@@ -119,15 +123,16 @@
|
|
|
defined_evaluation_method,
|
|
|
choice_evaluation_method_id,
|
|
|
choice_defined_evaluation_method,
|
|
|
- type.type_name AS targetTypename,
|
|
|
+ type.type_name AS targetTypeName,
|
|
|
secType.type_name AS secTargetTypaName,
|
|
|
+ evaluation_type_defined_sec,
|
|
|
estimated_value,
|
|
|
statement_no,
|
|
|
report_no
|
|
|
FROM assets_evaluation_target AS target
|
|
|
LEFT JOIN assets_evaluation_target_purpose AS purpose ON evaluation_purpose_id = purpose.id
|
|
|
LEFT JOIN assets_evaluation_target_type AS type ON evaluation_type_id = type.id
|
|
|
- LEFT JOIN assets_evaluation_target_type AS secType ON evaluation_type_sec_id = type.id
|
|
|
+ LEFT JOIN assets_evaluation_target_type AS secType ON evaluation_type_sec_id = secType.id
|
|
|
LEFT JOIN assets_value_type AS vType ON assets_value_id = vType.id
|
|
|
) AS target ON assets.id = target.assets_id
|
|
|
LEFT JOIN assets_production AS report ON report_no = report.production_no
|