|
|
@@ -165,7 +165,12 @@
|
|
|
SELECT
|
|
|
eic.id AS companyId,
|
|
|
eic.NAME AS companyName,
|
|
|
+ eic.namesimple AS namesimple,
|
|
|
pa.id AS agreeId,
|
|
|
+ pa.agreement_name AS agreementName,
|
|
|
+ pa.docking_person AS dockingPerson,
|
|
|
+ pa.create_time AS createTime,
|
|
|
+ pa.valid_status AS validStatus,
|
|
|
eic_hz.id AS partnerCompaniesId,
|
|
|
eic_hz.NAME AS partnerCompaniesName,
|
|
|
pa.partner_companies_id,
|
|
|
@@ -206,7 +211,7 @@
|
|
|
DATEDIFF(pa.end_date,NOW()) <= 30
|
|
|
</when>
|
|
|
<when test="warningStatus==2">
|
|
|
- DATEDIFF(pa.end_date,NOW()) > 30
|
|
|
+ DATEDIFF(pa.end_date,NOW()) > 30
|
|
|
</when>
|
|
|
</choose>
|
|
|
</if>
|
|
|
@@ -216,8 +221,31 @@
|
|
|
<if test="vo.partnerCompaniesId !=null and vo.partnerCompaniesId !=''" >
|
|
|
and pa.partner_companies_id =#{vo.partnerCompaniesId}
|
|
|
</if>
|
|
|
+ <if test="vo.insuranceCompanyId !=null and vo.insuranceCompanyId !=''" >
|
|
|
+ and pa.insurance_company_id =#{vo.insuranceCompanyId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY
|
|
|
pa.serial_number
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getInsuranceCompany" resultType="com.ydtech.modules.admin.model.report.user.agree.AgreeReportDto">
|
|
|
+ SELECT
|
|
|
+ a.insurance_company_id as "insuranceCompanyId",
|
|
|
+ eic.logo as "logo",
|
|
|
+ eic.namesimple as "namesimple"
|
|
|
+ FROM
|
|
|
+ `ptl_agreement` a
|
|
|
+ LEFT JOIN esm_ins_company eic ON eic.id = a.insurance_company_id
|
|
|
+ GROUP BY
|
|
|
+ a.insurance_company_id
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="findCheckAgreementListNew" resultType="com.ydtech.modules.protocol.entity.po.PtlAgreement">
|
|
|
+ select a.*,
|
|
|
+ CONCAT_WS( '-', a.agreement_abbreviation, NULLIF(a.business_description, '' ), NULLIF(a.job_description, '' ) ) AS agreementName
|
|
|
+ from ptl_agreement a
|
|
|
+ order by a.agreement_code
|
|
|
+ </select>
|
|
|
</mapper>
|