xiaoyong931011
2021-05-28 19b5281d009c9bd70f15c6bfabc916942f892103
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
<?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.xcong.excoin.modules.yunding.dao.YdProductDao">
 
    <select id="getProductList" resultType="com.xcong.excoin.modules.yunding.vo.YdProductVo">
        select
            *
        from yd_product
        <if test="record != null">
            <where>
                <if test="record.typeCoin != null" >
                    and type_coin=#{record.typeCoin}
                </if>
            </where>
        </if>
        order by type,id asc
    </select>
 
    <select id="findProductInfoById" resultType="com.xcong.excoin.modules.yunding.vo.YdProductVo">
        select
        *
        from yd_product
        where id = #{id}
    </select>
 
</mapper>