xiaoyong931011
2021-05-10 5ee80b98b9b1b2e44aa4d9600ef68f6bc1629927
src/main/resources/mapper/yunding/YdProductDao.xml
@@ -4,4 +4,25 @@
<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>