|
|
@@ -35,6 +35,7 @@
|
|
|
<result column="cp_name" property="cpName"/>
|
|
|
<result column="integral_type" property="integralType"/>
|
|
|
<result column="integral_type_name" property="integralTypeName"/>
|
|
|
+ <result column="number_of_shares" property="numberOfShares"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用条件列 -->
|
|
|
@@ -156,4 +157,22 @@
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 查询历史记录(条件查询+分页)列表 -->
|
|
|
+ <select id="selectHistoryRecordByCond" resultMap="BaseResultMapResponse">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List_Response"/>
|
|
|
+ ,tac.cp_name
|
|
|
+ ,sys.f_get_name_i18n(tdk.kind_name_i18n,#{i18n}) as integral_type_name
|
|
|
+ ,(select count(1) from dkic_a.t_mst_integral_item tmii where tmii.cp_id = tmis.cp_id) as number_of_shares
|
|
|
+ FROM dkic_a.t_mst_integral_share tmis
|
|
|
+ left join dkic_a.t_a_company tac on tac.cp_id = tmis.cp_id
|
|
|
+ LEFT JOIN sys.t_data_kind tdk ON tmis.integral_type = tdk.kind_code
|
|
|
+ <include refid="Condition"/>
|
|
|
+ <if test="pageSize != null and currentPage != null and pageSize != 0 and currentPage != 0">
|
|
|
+ limit #{end} offset #{start}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|