|
|
@@ -4,26 +4,47 @@
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.ydtech.modules.fnc.entity.ImportResult">
|
|
|
- <id column="id" property="id" />
|
|
|
- <result column="create_time" property="createTime" />
|
|
|
- <result column="created_at" property="createdAt" />
|
|
|
- <result column="completed_at" property="completedAt" />
|
|
|
- <result column="status" property="status" />
|
|
|
- <result column="amount" property="amount" />
|
|
|
- <result column="upload_url" property="uploadUrl" />
|
|
|
- <result column="company_id" property="companyId" />
|
|
|
- <result column="partner_companies_id" property="partnerCompaniesId" />
|
|
|
- <result column="agreement_id" property="agreementId" />
|
|
|
- <result column="ids" property="ids" />
|
|
|
- <result column="hand_status" property="handStatus" />
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
+ <result column="created_at" property="createdAt"/>
|
|
|
+ <result column="completed_at" property="completedAt"/>
|
|
|
+ <result column="status" property="status"/>
|
|
|
+ <result column="total_amount" property="totalAmount"/>
|
|
|
+ <result column="upload_url" property="uploadUrl"/>
|
|
|
+ <result column="company_id" property="companyId"/>
|
|
|
+ <result column="partner_companies_id" property="partnerCompaniesId"/>
|
|
|
+ <result column="agreement_id" property="agreementId"/>
|
|
|
+ <result column="ids" property="ids"/>
|
|
|
+ <result column="hand_status" property="handStatus"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="queryNew" resultType="com.ydtech.modules.fnc.entity.ImportResult">
|
|
|
- select * from import_task
|
|
|
-
|
|
|
+ select
|
|
|
+ a.id as "id",
|
|
|
+ a.create_time as "createTime",
|
|
|
+ a.created_at as "createdAt",
|
|
|
+ a.completed_at as "completedAt",
|
|
|
+ a.status as "status",
|
|
|
+ a.total_amount as "totalAmount",
|
|
|
+ a.upload_url as "uploadUrl",
|
|
|
+ a.company_id as "companyId",
|
|
|
+ a.partner_companies_id as "partnerCompaniesId",
|
|
|
+ a.agreement_id as "agreementId",
|
|
|
+ a.ids as "ids",
|
|
|
+ a.hand_status as "handStatus",
|
|
|
+ a.hand_status as "handStatus",
|
|
|
+ eic.name as "partnerCompaniesName"
|
|
|
+ from
|
|
|
+ import_task a
|
|
|
+ LEFT JOIN esm_ins_company eic on eic.id = a.partner_companies_id
|
|
|
<where>
|
|
|
<if test="handStatus !=null and handStatus !=''">
|
|
|
- hand_status =#{handStatus}
|
|
|
+ a.hand_status =#{handStatus}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <where>
|
|
|
+ <if test="createTime !=null and createTime !=''">
|
|
|
+ a.create_time =#{createTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|