|
|
@@ -207,4 +207,26 @@
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+ <!-- 当日积分邀请明细 -->
|
|
|
+ <select id="selectShareItem" resultType="java.util.Map">
|
|
|
+ SELECT
|
|
|
+ tmis.share_id as "shareId",
|
|
|
+ tmis.cp_id as "cpId",
|
|
|
+ tmis.user_id as "userId",
|
|
|
+ tmis.tactic_id as "tacticId",
|
|
|
+ tmis.integral_type as "integralType",
|
|
|
+ tmis.share_date as "sharDate",
|
|
|
+ tmis.end_date as "endDate",
|
|
|
+ now() as "nowDate"
|
|
|
+ FROM dkic_a.t_mst_integral_share tmis
|
|
|
+ WHERE tmis.flg_valid
|
|
|
+ AND tmis.cp_id = #{cpId}
|
|
|
+ AND tmis.integral_type = #{integralType}
|
|
|
+ AND tmis.tactic_id = #{tacticId}::uuid
|
|
|
+ AND tmis.user_id = #{userId}::uuid
|
|
|
+ AND tmis.end_date > now()
|
|
|
+ ORDER BY tmis.share_date desc
|
|
|
+ limit 1
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|