|
|
|
@@ -271,23 +271,15 @@ |
|
|
|
<result column="failed_reason" jdbcType="VARCHAR" property="failedReason" /> |
|
|
|
<result column="description" jdbcType="VARCHAR" property="description" /> |
|
|
|
<result column="sharing_receiver_id" jdbcType="BIGINT" property="sharingReceiverId" /> |
|
|
|
<result column="receiver_type" jdbcType="INTEGER" property="receiverType" /> |
|
|
|
<result column="receiver_account" jdbcType="VARCHAR" property="receiverAccount" /> |
|
|
|
<result column="receiver_comments" jdbcType="VARCHAR" property="receiverComments" /> |
|
|
|
<result column="sharing_type" jdbcType="INTEGER" property="sharingType" /> |
|
|
|
<result column="status" jdbcType="VARCHAR" property="status" /> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="findOrderDetails" parameterType="java.util.HashMap" resultMap="orderDetailsMap"> |
|
|
|
select psr.id,psr.tenant_id,psr.parent_tenant_id,psr.pay_amount,psr.create_time,sharing_status,finish_time,failed_reason,description, |
|
|
|
psr.sharing_receiver_id,psre.receiver_type,psre.receiver_account,psre.receiver_comments,psre.sharing_type,psre.`status` |
|
|
|
psr.sharing_receiver_id |
|
|
|
from wx_profit_sharing_result psr |
|
|
|
left join wx_profit_sharing_receiver psre on psr.sharing_receiver_id = psre.id |
|
|
|
where psr.sharing_order_id = #{id} and psr.tenant_id = #{tenantId} |
|
|
|
<if test=" null != isPrivate "> |
|
|
|
and psr.`is_private` = #{isPrivate} |
|
|
|
|
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
|