|
@@ -191,7 +191,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
|
- and eic.parent_id =#{provincePartnerCompaniesId}
|
|
|
|
|
|
|
+ and eic.parent_id LIKE CONCAT(#{provincePartnerCompaniesId}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
<if test="dockingPerson !=null and dockingPerson !=''">
|
|
<if test="dockingPerson !=null and dockingPerson !=''">
|
|
@@ -315,7 +315,7 @@
|
|
|
AND a.insured_name =#{insuredName}
|
|
AND a.insured_name =#{insuredName}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
|
- AND DATE(a.jq_start_date) BETWEEN #{syStartDate} AND #{syEndDate}
|
|
|
|
|
|
|
+ AND DATE(a.jq_start_date) BETWEEN #{jqStartDate} AND #{jqEndDate}
|
|
|
|
|
|
|
|
</if>
|
|
</if>
|
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
@@ -678,7 +678,7 @@
|
|
|
and a.is_not_car =#{isNotCar}
|
|
and a.is_not_car =#{isNotCar}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
|
- AND DATE(a.jq_start_date) BETWEEN #{syStartDate} AND #{syEndDate}
|
|
|
|
|
|
|
+ AND DATE(a.jq_start_date) BETWEEN #{jqStartDate} AND #{jqEndDate}
|
|
|
|
|
|
|
|
</if>
|
|
</if>
|
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
@@ -808,10 +808,10 @@
|
|
|
and a.is_not_car =#{isNotCar}
|
|
and a.is_not_car =#{isNotCar}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
|
- AND a.jq_end_date BETWEEN #{jqStartDate} AND #{jqEndDate} AND a.jq_start_date > = #{jqStartDate}
|
|
|
|
|
|
|
+ AND DATE(a.jq_start_date) BETWEEN #{jqStartDate} AND #{jqEndDate}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
|
- AND a.sy_start_date BETWEEN #{syStartDate} AND #{syEndDate} AND a.sy_start_date > = #{syStartDate}
|
|
|
|
|
|
|
+ AND DATE(a.sy_start_date) BETWEEN #{syStartDate} AND #{syEndDate}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
<if test="isOther !=null and isOther !=''">
|
|
<if test="isOther !=null and isOther !=''">
|
|
@@ -1053,7 +1053,7 @@
|
|
|
AND eic.parent_id LIKE CONCAT(#{allPartnerCompaniesId}, '%')
|
|
AND eic.parent_id LIKE CONCAT(#{allPartnerCompaniesId}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
|
- and eic.parent_id =#{provincePartnerCompaniesId}
|
|
|
|
|
|
|
+ and eic.parent_id LIKE CONCAT(#{provincePartnerCompaniesId}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="companyName !=null and companyName !=''">
|
|
<if test="companyName !=null and companyName !=''">
|
|
|
and a.company_id =#{companyName}
|
|
and a.company_id =#{companyName}
|
|
@@ -1187,7 +1187,7 @@
|
|
|
AND eic.parent_id LIKE CONCAT(#{allPartnerCompaniesId}, '%')
|
|
AND eic.parent_id LIKE CONCAT(#{allPartnerCompaniesId}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
<if test="provincePartnerCompaniesId !=null and provincePartnerCompaniesId !=''">
|
|
|
- and eic.parent_id =#{provincePartnerCompaniesId}
|
|
|
|
|
|
|
+ and eic.parent_id LIKE CONCAT(#{provincePartnerCompaniesId}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="licenseno != null and licenseno != ''">
|
|
<if test="licenseno != null and licenseno != ''">
|
|
|
and a.licenseno =#{licenseno}
|
|
and a.licenseno =#{licenseno}
|
|
@@ -1496,10 +1496,10 @@
|
|
|
AND a.insured_name =#{insuredName}
|
|
AND a.insured_name =#{insuredName}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
<if test="jqStartDate !=null and jqStartDate != '' and jqEndDate != null and jqEndDate !=''">
|
|
|
- AND a.jq_end_date BETWEEN #{jqStartDate} AND #{jqEndDate} AND a.jq_start_date > = #{jqStartDate}
|
|
|
|
|
|
|
+ AND DATE(a.jq_start_date) BETWEEN #{jqStartDate} AND #{jqEndDate}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
<if test="syStartDate !=null and syStartDate != '' and syEndDate != null and syEndDate !=''">
|
|
|
- AND a.sy_start_date BETWEEN #{syStartDate} AND #{syEndDate} AND a.sy_start_date > = #{syStartDate}
|
|
|
|
|
|
|
+ AND DATE(a.sy_start_date) BETWEEN #{syStartDate} AND #{syEndDate}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY YEAR(a.signdate), MONTH(a.signdate)
|
|
GROUP BY YEAR(a.signdate), MONTH(a.signdate)
|