update 财务中心查询接口新增字段、增加搜索

This commit is contained in:
Lemon
2023-09-16 13:45:22 +08:00
parent d869c47282
commit e524a81493
8 changed files with 168 additions and 40 deletions

View File

@@ -368,4 +368,37 @@
and app_id = #{appId,jdbcType=VARCHAR}
</if>
</select>
<select id="queryMerchantSettleInfoList" resultType="com.jsowell.pile.vo.web.MerchantSettleInfoVO">
SELECT
t1.id as merchantId,
t1.merchant_name AS merchantName,
t1.address,
t1.status,
t2.adapay_member_id AS adapayMemberId,
t2.settle_account_id AS settleAccountId,
t2.`status` as auditStatus,
t1.organization_code AS organizationCode,
t1.manager_name AS managerName,
t1.manager_phone AS managerPhone,
t1.create_time AS createTime
FROM
pile_merchant_info t1
left JOIN adapay_member_account t2 ON t1.id = t2.merchant_id
AND t1.del_flag = '0'
AND t2.del_flag = '0'
where 1 = 1
<if test="dto.deptIds != null and dto.deptIds.size() != 0">
and t1.dept_id in
<foreach collection="dto.deptIds" item="deptId" open="(" separator="," close=")">
#{deptId,jdbcType=VARCHAR}
</foreach>
</if>
<if test="dto.merchantName != null and dto.merchantName != ''">
and t1.merchant_name like #{dto.merchantName,jdbcType=VARCHAR}
</if>
<if test="dto.merchantId != null and dto.merchantId != ''">
and t1.id = #{dto.merchantId,jdbcType=VARCHAR}
</if>
</select>
</mapper>