无关风月
8 天以前 7fd053651ac11db87fe4f6c57e65eed3b9a59452
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.other.mapper.ShopWithdrawMapper">
 
    <select id="page" resultType="com.ruoyi.other.api.domain.ShopWithdraw">
        select tsw.id ,
        tsw.shop_id,
        tsw.money,
        tsw.audit_status,
        tsw.audit_user_id,
        tsw.audit_time,
        tsw.audit_msg,
        tsw.status,
        tsw.remark,
        tsw.arrival_time,
        tsw.create_time,
        tsw.create_user_id,
        tsw.tradeMerchantNo,
        tsw.receiverAccountNoEnc,
        tsw.receiverAccountType,
        tsw.receiverBankChannelNo,
        tsw.receiverNameEnc,
        ts.name as shopName,
        ts.phone
        from `t_shop_withdraw` tsw
        left join t_shop ts on tsw.shop_id=ts.id
        where
            tsw.del_flag=0
        <if test="auditStatus!=null">
            and tsw.audit_status=#{auditStatus}
        </if>
        <if test="null != shopIds and shopIds.size() > 0">
            and tsw.shop_id in
            <foreach collection="shopIds" item="shopId" open="(" separator="," close=")">
                #{shopId}
            </foreach>
        </if>
 
    </select>
</mapper>