mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update 财务中心查询接口新增字段、增加搜索
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user