|
@@ -11,7 +11,6 @@
|
|
<association property="sourceName"
|
|
<association property="sourceName"
|
|
column="{ source_id = source_id, referrer_data_source = referrer_data_source }"
|
|
column="{ source_id = source_id, referrer_data_source = referrer_data_source }"
|
|
select="getSourceName"/>
|
|
select="getSourceName"/>
|
|
- <association property="alterNumber" column="{ id = id, from_id = from_id }" select="getAlterNumber"/>
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
<select id="getSourceName" resultType="java.lang.String">
|
|
<select id="getSourceName" resultType="java.lang.String">
|
|
<if test="referrer_data_source == null">
|
|
<if test="referrer_data_source == null">
|
|
@@ -44,6 +43,9 @@
|
|
<select id="getList" parameterType="InputVo" resultMap="BizArchiveInputResult">
|
|
<select id="getList" parameterType="InputVo" resultMap="BizArchiveInputResult">
|
|
SELECT
|
|
SELECT
|
|
t1.*,
|
|
t1.*,
|
|
|
|
+ (select count(1) from biz_archive_input t where t.deleted = 0
|
|
|
|
+ and t.from_id = t1.id
|
|
|
|
+ ) as alterNumber,
|
|
t2.name as company_name,
|
|
t2.name as company_name,
|
|
t2.old_name as oldName,
|
|
t2.old_name as oldName,
|
|
t2.social_credit_code as social_credit_code,
|
|
t2.social_credit_code as social_credit_code,
|
|
@@ -110,6 +112,9 @@
|
|
<select id="getListByInput" parameterType="InputVo" resultMap="BizArchiveInputResult">
|
|
<select id="getListByInput" parameterType="InputVo" resultMap="BizArchiveInputResult">
|
|
SELECT
|
|
SELECT
|
|
t1.*,
|
|
t1.*,
|
|
|
|
+ (select count(1) from biz_archive_input t where t.deleted = 0
|
|
|
|
+ and t.from_id = t1.id
|
|
|
|
+ ) as alterNumber,
|
|
t2.name as company_name,
|
|
t2.name as company_name,
|
|
t2.old_name as oldName,
|
|
t2.old_name as oldName,
|
|
t2.customer_label_id as customerLabelId,
|
|
t2.customer_label_id as customerLabelId,
|
|
@@ -188,6 +193,7 @@
|
|
</if>
|
|
</if>
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
|
+ order by t1.create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|