Commit 4c0268e0 authored by 刘林's avatar 刘林

fix(大屏):修改检验检测拆分后bug

parent 85589c46
......@@ -40,8 +40,8 @@
<if test="tzBaseEnterpriseInfoDto.endCreateDate != null and tzBaseEnterpriseInfoDto.endCreateDate != ''">
AND create_date &lt;= #{tzBaseEnterpriseInfoDto.endCreateDate}
</if>
<if test="tzBaseEnterpriseInfoDto.unitType.indexOf('检验机构') !=-1 OR tzBaseEnterpriseInfoDto.unitType.indexOf('检测机构') !=-1 and tzBaseEnterpriseInfoDto.jyjcStatus!=null and tzBaseEnterpriseInfoDto.jyjcStatus!=''">
use_unit_code in
<if test="(tzBaseEnterpriseInfoDto.unitType != null and (tzBaseEnterpriseInfoDto.unitType.contains('检验机构') or tzBaseEnterpriseInfoDto.unitType.contains('检测机构'))) and tzBaseEnterpriseInfoDto.jyjcStatus != null and tzBaseEnterpriseInfoDto.jyjcStatus != ''">
use_unit_code in
(select distinct unit_code from tz_jyjc_opening_application
where
status = #{tzBaseEnterpriseInfoDto.jyjcStatus}
......
......@@ -100,7 +100,7 @@
COALESCE(use_unit_certificate, '身份证') AS useUnitCertificate
FROM
tz_base_enterprise_info
<if test=" tzBaseEnterpriseInfoDto.unitType.indexOf('检验机构') !=-1 OR tzBaseEnterpriseInfoDto.unitType.indexOf('检测机构') !=-1 ">
<if test=" tzBaseEnterpriseInfoDto.unitType.indexOf('检验机构') !=-1 or tzBaseEnterpriseInfoDto.unitType.indexOf('检测机构') !=-1 ">
JOIN (select unit_code,max(accept_date) from tz_jyjc_opening_application
where 1=1
<if test=" tzBaseEnterpriseInfoDto.jyjcStatus!=null and tzBaseEnterpriseInfoDto.jyjcStatus!='' ">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment