|
@@ -13,6 +13,7 @@
|
|
|
<result property="agreementAbbreviation" column="agreement_abbreviation" jdbcType="VARCHAR"/>
|
|
<result property="agreementAbbreviation" column="agreement_abbreviation" jdbcType="VARCHAR"/>
|
|
|
<result property="isEnable" column="is_enable" jdbcType="TINYINT"/>
|
|
<result property="isEnable" column="is_enable" jdbcType="TINYINT"/>
|
|
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
|
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="partnerCompanyId" column="partner_company_id" jdbcType="VARCHAR"/>
|
|
|
<result property="startDate" column="start_date" jdbcType="TIMESTAMP"/>
|
|
<result property="startDate" column="start_date" jdbcType="TIMESTAMP"/>
|
|
|
<result property="endDate" column="end_date" jdbcType="TIMESTAMP"/>
|
|
<result property="endDate" column="end_date" jdbcType="TIMESTAMP"/>
|
|
|
<result property="moneyTime" column="money_time" jdbcType="INTEGER"/>
|
|
<result property="moneyTime" column="money_time" jdbcType="INTEGER"/>
|
|
@@ -45,7 +46,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
pa.id,pa.agreement_type,pa.agreement_code,
|
|
pa.id,pa.agreement_type,pa.agreement_code,
|
|
|
pa.agreement_name,pa.agreement_title,pa.agreement_abbreviation,
|
|
pa.agreement_name,pa.agreement_title,pa.agreement_abbreviation,
|
|
|
- pa.is_enable,pa.company_id,
|
|
|
|
|
|
|
+ pa.is_enable,pa.company_id,pa.partner_company_id,
|
|
|
pa.start_date,pa.end_date,pa.money_time,
|
|
pa.start_date,pa.end_date,pa.money_time,
|
|
|
pa.match_type,pa.docking_person,pa.docking_phone,
|
|
pa.match_type,pa.docking_person,pa.docking_phone,
|
|
|
pa.valid_status,pa.money_type,pa.file_id,
|
|
pa.valid_status,pa.money_type,pa.file_id,
|
|
@@ -57,7 +58,7 @@
|
|
|
pa.update_time,pa.is_delete,paa.username,paa.user_abbr as userAbbr,
|
|
pa.update_time,pa.is_delete,paa.username,paa.user_abbr as userAbbr,
|
|
|
suji.name as managerName,sd.name as managerDeptName,
|
|
suji.name as managerName,sd.name as managerDeptName,
|
|
|
-- suf.file_name as fileName,suf.file_size as fileSize,
|
|
-- suf.file_name as fileName,suf.file_size as fileSize,
|
|
|
- eic.name_simple as company,sdd.name as deptName,
|
|
|
|
|
|
|
+ eic.name_simple as company,sdd.name as deptName,eica.name_simple as partnerCompanyName,
|
|
|
pa.api_type,pa.jq_entrance_fee_ratio,pa.sy_entrance_fee_ratio,pa.jy_entrance_fee_ratio
|
|
pa.api_type,pa.jq_entrance_fee_ratio,pa.sy_entrance_fee_ratio,pa.jy_entrance_fee_ratio
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="queryPage" resultType="com.jzg.commons.entity.vo.AgreementVo">
|
|
<select id="queryPage" resultType="com.jzg.commons.entity.vo.AgreementVo">
|
|
@@ -69,6 +70,7 @@
|
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
|
LEFT JOIN sys_upload_files suf on pa.file_id = suf.id
|
|
LEFT JOIN sys_upload_files suf on pa.file_id = suf.id
|
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
|
|
|
+ LEFT JOIN esm_ins_company eica on pa.partner_company_id = eica.id
|
|
|
<where>
|
|
<where>
|
|
|
pa.is_delete = 0
|
|
pa.is_delete = 0
|
|
|
<if test="param.searchValue != null and param.searchValue != ''">
|
|
<if test="param.searchValue != null and param.searchValue != ''">
|
|
@@ -126,6 +128,7 @@
|
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
|
LEFT JOIN sys_upload_files suf on pa.file_id = suf.id
|
|
LEFT JOIN sys_upload_files suf on pa.file_id = suf.id
|
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
|
|
|
+ LEFT JOIN esm_ins_company eica on pa.partner_company_id = eica.id
|
|
|
<where>
|
|
<where>
|
|
|
pa.is_delete = 0
|
|
pa.is_delete = 0
|
|
|
<if test="param.searchValue != null and param.searchValue != ''">
|
|
<if test="param.searchValue != null and param.searchValue != ''">
|
|
@@ -180,6 +183,7 @@
|
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
LEFT JOIN sys_dept sd on suji.dept_id = sd.id
|
|
|
-- LEFT JOIN sys_upload_files suf on suf.id = pa.file_id
|
|
-- LEFT JOIN sys_upload_files suf on suf.id = pa.file_id
|
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
LEFT JOIN esm_ins_company eic on pa.company_id = eic.id
|
|
|
|
|
+ LEFT JOIN esm_ins_company eica on pa.partner_company_id = eica.id
|
|
|
<where>
|
|
<where>
|
|
|
<if test="id != null and id != ''">
|
|
<if test="id != null and id != ''">
|
|
|
and pa.id = #{id}
|
|
and pa.id = #{id}
|