|
|
|
@@ -239,8 +239,6 @@ |
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
<result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/> |
|
|
|
<result column="pay_amount" jdbcType="INTEGER" property="payAmount" /> |
|
|
|
<result column="single_order_amount" jdbcType="INTEGER" property="singleOrderAmount" /> |
|
|
|
<result column="single_order_id" jdbcType="BIGINT" property="singleOrderId" /> |
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|
|
|
<result column="sharing_status" jdbcType="INTEGER" property="sharingStatus" /> |
|
|
|
<result column="finish_time" jdbcType="VARCHAR" property="finishTime" /> |
|
|
|
@@ -254,11 +252,12 @@ |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="findOrderDetails" parameterType="java.util.HashMap" resultMap="orderDetailsMap"> |
|
|
|
select psr.id,psr.tenant_id,psr.parent_tenant_id,psr.pay_amount,psr.single_order_amount,psr.single_order_id,psr.create_time,sharing_status,finish_time,failed_reason,description, |
|
|
|
<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, |
|
|
|
psre.receiver_type,psre.receiver_account,psre.receiver_comments,psre.sharing_type,psre.`status` |
|
|
|
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} and psr.sharing_receiver_id!=0 |
|
|
|
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} and psr.sharing_receiver_id != 0 |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |