|
@@ -25,7 +25,7 @@
|
|
|
<result column="pre_pdf_url" property="prePdfUrl"/>
|
|
|
</resultMap>
|
|
|
<select id="page2" resultType="org.springblade.meter.vo.MaterialStartStatementVO">
|
|
|
- select IFNULL(pre_pdf_url,raw_url) as pre_pdf_url,mss.*,
|
|
|
+ select if(pre_pdf_url is null or pre_pdf_url = '',raw_url,pre_pdf_url) as pre_pdf_url,mss.*,
|
|
|
(select id from u_task where form_data_id = mss.meter_period_id and is_deleted = 0 and status in (1,2)) as taskId
|
|
|
from s_material_start_statement mss
|
|
|
where contract_id = #{statement.contractId} and type = #{statement.type} and is_deleted = 0
|