|
@@ -23,7 +23,7 @@
|
|
|
and ppt.payway !=5
|
|
|
<if test="tenantId != null">and ppt.tenant_id = #{tenantId}</if>
|
|
|
|
|
|
- <if test ="officeId != null"> and ppt.office_id = #{officeId}</if>
|
|
|
+ <if test ="officeId != null"> and ppt.company_org_id = #{officeId}</if>
|
|
|
<if test="createBy != null"> and ppt.create_by = #{createBy}</if>
|
|
|
<if test="beginTime != null"> and ppt.transtime >= #{beginTime,jdbcType=TIMESTAMP}</if>
|
|
|
<if test="endTime != null"> and ppt.transtime <= #{endTime,jdbcType=TIMESTAMP}</if>
|
|
@@ -136,7 +136,7 @@
|
|
|
ppr.payseriesno
|
|
|
FROM pay_pay_received ppt
|
|
|
LEFT JOIN pay_base_account pba on ppt.account_id = pba.id
|
|
|
- LEFT JOIN sc_community scc on scc.`code` = substring(pba.accountnumber,1,3) and scc.`status`=1
|
|
|
+ LEFT JOIN sc_community scc on scc.id =pba.community_id and scc.`status`=1
|
|
|
and scc.tenant_id = #{tenantId}
|
|
|
LEFT JOIN sc_user scu on scu.id = ppt.create_by
|
|
|
LEFT JOIN pay_pay_transactiondetails ppr on ppt.payseriesno = ppr.payseriesno and ppr.transtype = 4
|
|
@@ -213,7 +213,7 @@
|
|
|
LEFT JOIN pay_base_account pba ON pba.id = ppt.account_id
|
|
|
<where>
|
|
|
<if test="tenantId != null"> and ppt.tenant_id = #{tenantId}</if>
|
|
|
- <if test="officeId != null"> and ppt.office_id = #{officeId}</if>
|
|
|
+ <if test="officeId != null"> and ppt.company_org_id = #{officeId}</if>
|
|
|
<if test="community != null and community != ''"> and substring(pba.accountnumber,1,3) = #{community,jdbcType=VARCHAR}</if>
|
|
|
<if test="accountNumber != null and accountNumber != ''"> and pba.accountnumber like concat('%',#{accountNumber},'%')</if>
|
|
|
<include refid="permissionCondition"/>
|